Amazon Interview Question for Software Engineer in Tests






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

i would start with testing each of them independently (queue, processor and logger) for all possible scenarios. For example; for a queue i would test the push, pop, isempty and other such functions for different states of the queue. Same for the processor and logger by creating a stub queue for processor and a stub processor for logger.

- intuidev January 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

like muhammd said

start by testing all possible scenarios for each of the parts in the system
queues, processor, and logger

for queues check enqueue dequeue operations,case of empty queues,
for processor, cases like read failure write failure, what happens if the power is lost during reading, during writing, what back up mechanism?? make sure the processor reads and writes at exactly hour apart.

a logger can have several scenarios since it connects to the database. what happens when there are no files, what does it write to database, power failures, back up mechanisms, database failures, connection failures,


Then go to the interface testing. what will the processor do if the queue is empty.
if it fails to read data, then what happens to the logger, what would it write to the database.

- veerun14 March 17, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Individual testing of queue, processor and logger
Intra module tests bw q&p, p&l and q,p&l
End to end tests (postive test)
Integration tests
Negative End-2-End tests
Exception handling
Failure recovery

- Asheesh August 28, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

-- Queue has provided so much data that file that is being created by processor has crossed file size limit( say a file greater than 4 GB),, Will it create new file for the same hour

- Gaurav Khurana February 01, 2014 | 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