Google Interview Question for Interns


Country: United States




Comment hidden because of low score. Click to expand.
1
of 1 vote

1. Write multi threaded code which simulates emails from multiple hosts.
2. Simulate other factors like new users joining/ adminstrative tasks/emails/spams.
3. Since he talks about distribution, test node failures.
4. Test replication of storage.
5. Test storage of attachments.
6. Test across data centres.
7. Test with timezones. Various timezones have various loads at different times.
8. Test dispatch of advertisements.

- Abhi October 17, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

City axis with city code and name with date of Birth

- Anonymous October 20, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Requirements:
1. millions of users
2. each user can login from multiple devices (assume 1 at a time)
3. user can send, draft, delete, trash, spam, move to another folder
4. Add contact, add calendar entry, send invite... (optional)
5. 2 level authentication for new device
6. Long term testing (many days), short term (hours)

Scale:
Need many users (100s of millions)
Distributed tests with 100s of agents/slaves
Each slave runs multi-threaded agents with 1000s of email clients
Do we need geographical diversity?

High Level Test Design:
Distributed testing recommended
Master tester keeps track of all slaves completed test, failed test etc.
Asynchronous. Master polls for results or receives some notification when test is done.
Master times out at some point with data of tests passed, failed, incomplete
Master also allocates username lists to slaves (common, unique etc).
Mechanisms to enforce some sequencing when slaves access same account
Slave tester provides list of usernames
Slave tester uses unique identifies to store info in drafts folder.
Slaves logs all tests and uploads results/logs to master.

- haroud November 09, 2015 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More