Amazon Interview Question for Software Engineer / Developers






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

This is a very interesting question. Mercury's Loadrunner tool uses virtual users as a way of simulating thousands of real world users.

If the task is to load test a web page without the use of a tool then I would probably reduce the system resources (virtual memory, page swaps, cpu, etc) to a great extent and then test from the perspective of a single user. I belive that this scenario is a parallel to testing with adequate system resources and simulating real world users via a test tool.

- Ram Balakrishnan February 27, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Write a simple mutithreaded program...

- FireFox March 03, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

how many threads can you create at one time?

The questions seems to be related to load testing a web page - number of users might go upto 10000 at one time. Can you create 10000 threads and hold them without killing even one?

I like Ram's idea better...to reduce system resources so as to simulate a huge load with just 5-10 users.

Seshagiri

Seshagiri

- Seshagiri March 15, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

In linux 10000 threads is a piece of cake. we can create 200,000 threads using the pthread library wihtout killing the threads. I think this number has increased much more in recent times.

How much can u test with one user? It is a decent idea but not good enough keeping amazon in mind. when we are talking about load it is 1000s and 1000s of users.

- Sidharth August 10, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I have done performance testing, i did not use any tools, but just wrote a simple vb script to call the asp inside a loop with diff parameters.
Do you people think this will work for you

- panchu October 12, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

If you create a multithreaded prog, you are using a test tool you made. Also, you are testing the machine, your purpose is to test it the way it is. If you modify its properties, you need to have separate test scenarios.

Approach 1:
Ask team members to pose as users. Enable a profiler on the app server.

Approach 2:
Run a process scheduler. Most OSes offer a tool to schedule processes, not intended for testing purposes specifically.

- Jack December 20, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Siege, a load-testing and benchmarking utility that will help stress test your setup before exposing it to the world.



siege -d10 -c50 filename
The -d option specifies the delay, while the -c option tells siege how many users it should simulate. Note that the -d option is a random interval between 0 and X seconds, with X being the number of seconds you specify -- so if you say 10 seconds, it may be 0 seconds, it may be 4 seconds, and so on -- it just won't be longer than 10.

- shweta May 31, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

can we just create a batch file which just opens the link in a loop or give it to different team members to do the same?

Batch scripting should not come under 'load test tool' i guess

- Gaurav Khurana September 07, 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