注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 笨死了 于 2022-5-5 19:16 编辑
刚刚面完印地得卡拉卡,回馈社区。因为临场紧张,第一轮加第二轮redo都没能完全做完。以后再尝试了。
第一轮,晚上十点面的,是个在印度的小哥,全程很友好,但是确实就像别的帖说的一直在说话。五个domain topic
1. Web application
Building user interfaces for web services and sites
2. Production issues
Diagnosing problems with production services
3. System internals
How computers manage and allocate resources like CPU and memory
4.OOP
Best practices for building classes and systems of classes
5.Testing
Validating code and related concerns
选择System internals和OOD 具体题目答案可以参照
https://www.1point3acres.com/bbs/thread-670064-1-1.html
coding 题
面我的印度小哥说会给我credit,本来以为可能差不多过了,结果第二天HR让redo。第二天按了redo之后就根据地里面的帖子把所有题目好好做了一遍,第二天是个黑人妹子,全程无表情,连名字给的都是ebony(??)。五个topic,和预期一样改变了
- General Programming
- Fundamental concepts underlying the design of well-structured code.
- Web / API Concepts
- Interactions between web servers and clients/browsers.
- Networking and Security
- Safe remote interactions between multiple systems.
- Database Concepts and Internals
- Design of complex data storage systems.
- Performance Issues & Troubleshooting
- Identifying and troubleshooting issues with real services.
选Web/API Concepts 和 Database Concepts and Internals, 快速问完六题。
题目参照 https://www.1point3acres.com/bbs/thread-828123-1-1.html
Web/API Concepts
1. What is same origin in java script? What is the work around?
Ans: Under same origin security policy, web browser permits scripts contained in a first web page to access data in a second web page, but only if both web pages have the same origin
Work Around?
Ans: 1. Property to filter input 2. encode data 3. use content-type and x-content-type header 4. Use Content Security Policy(CSP)
2. What is your preferred way to version rest api
Ans: Version through URI, it is most popular and easy
3. How cookies works between web server and browser and how to access it?
Ans: Cookies are sent by the browser to the server when an HTTP request starts, and they are sent back from the server, which can edit their content
Clinte side, read through document.cookie in javascript, server side, read through HttpServeletResponse addcookie, HttpServeletRequest getCookie
Database Concepts and Internals
1. what is idempotency and how it is used in database
Ans: it is an operation that produces the same results no matter how many times it is performed.
Idempotency is the implemented through strong consistency model in database
2. What is optimistic concurrency control
Ans: Optimistic concurrency control also known as optimistic locking. It is a concurrency control method applied to transactional systems such as relational database management systems and software transactional memory. OCC assumes that multiple transactions can frequently complete without interfering with each other. While running, transactions use data resources without acquiring locks on those resources. Before committing, each transaction verifies that no other transaction has modified the data it has read. If the check reveals conflicting modifications, the committing transaction rolls back and can be restarted.
3. What is strong consistency vs eventual consistency and what are the usages
Ans: Strong consistency: any read operation returns a value corresponding to the result of the most updated write data item. A client never sees out of date data
Eventual consistency: this is a specific form of weak consistency. Given enough time, all updates are propagated, and all replicas are consistent.
Usage for strong consistency can be financial transaction system, eventual consitency can be a facebook news feed
下面是coding,本来以为做完了地里加简书里面所有题目,胸有成竹,结果出了新题,当时就慌了。题目倒是不难,但是最后还是没能完全做完。
新题感觉比之前地里面的题目都要简单,但是实在是有点慌了,下次沉住气,再接再厉。看在楼主fail了,可怜可怜,赏点大米吧
|