Amazon | SDE 2 | Seattle | Rejected

657
Apr 18, 2024
Apr 18, 2024

Me: 3 YOE SDE 1 at Medium-Tier Service Based Company
I was interviewed for SDE 2 with AWS.

I emailed recruiter after coming across a post on linkedin. Got response from recruiter and applied for the position.
Online Assessment(Mar 1st week):
2 Questions: Fruit Crush and Weak Passwords ( these are already in leetcode discuss sections )

Technical Phone Screen(Mar 2nd week) with SDM
Favorite Project and questions on my answers
1 coding question similar to invert a binary tree but given a BST, solved within few minutes and coded it

Recruiter reached out after 1 day and asked availability for virtual onsite. I took 3 weeks time to prepare.

Virtual Onsite(Apr 2nd week):

  1. SDM
    time when you learned something new
    time when you were asked to compromise, how did you deal with it? how did u communicate with stakeholders?
    coding: given customers and products(browsed by customers), give the top 3 products for each customer. (i used map<customer, treemap<product, freq>>, interviewer stopped me saying that got all data points needed.
    this went good.

  2. SDE 2
    time when you went above and beyond. how did you deal with consistency across cache instances.
    time when you felt customers demands were unreasonable. what were they asking, did u provide what they asked for? what do u think now? i did not answer properly.
    coding: dfs+backtracking, given nx2 grid and target word.
    interviewer was impatient, asking why i took variable in method signature in my comments, i did not even start actual code.
    solved within time, answering questions along the way. overall went good.

  3. SDE 2
    time when you simplified something.
    time when you dug deeper, follow up questions on my answer.
    coding: given nodes, delete sequences with sum 0.
    told brute force approach and how i can optimize sum calculation by prefix sum, but only coded brute force.
    went ok.

  4. Bar Raiser - Senior SDM
    time when you had a conflict with manager, what were his concerns? how did you convince? how many meetings to convince him?
    time when you received challenging feedback, what did he tell you? how did you overcome those?
    time when you agreed with your team, what was the issue?
    time when you helped a peer? how did you know he was having issues? how did he respond after your help? what was the technical issue ?
    i answered all the questions and follow ups, but i think my scenarios i mentioned were not that great.

System Design(only last 20 minutes):
Amazon Use Case(seemed like a specific portion of a big system):
Given,
Products, queue1 & queue2, service1 & service2
product events will be in queue1
service1 will ask service2 for information.

Design use case: service1 should read events from queue1, get information from service2 and put it on queue2 based on the info from service2.

My Approach(please provide feedback in comments):
listed down,
functional requirements
non-functional reqs: high availability, scale 100K events in a day, events should not be dropped.

API design:
since i did not have much time, i told i would have a GET endpoint in service2 by passing productID as path params

Approach:
queue1: divide products based on categories like electronics, food, clothing etc, have multiple topics(or partitions)
service1: will have multiple consumers reading events from partitions(parallel processing), save to db, and asking for info from service2 and put it on queue2.

as we don't want to drop events, we can have ack msgs from consumers, saying like processed event, then move the offset on the partition.
if service1 goes down, we can replay messages from latest offset.
we will have multiple instances(maybe regions if required) of service1 running to attain availability.

by this time, only 2 minutes left, he stopped me and asked the following questions:
what if service2 goes down say for a minute or 2?
answer: we can have a exponential backoff in service1
interviewer: can't we push to the original queue?
answer: we could do that, but maybe to retry partition

what if queue1 goes down?
answer: will have multiple instances of queue as well

Time was up, i asked 2 questions abuot the role.

Recruiter did not reach out to me within 5 days, i made up my mind that i did not get through.
On 6th day, i emailed recruiter and response was "I did not raise the bar" and cool off is 1 yr. I was told, i could apply to SDE1.

Overall, i had good experience, i believe i messed up few LPs.
This is the first Loop i ever took, I'm happy with the progress i've made. Before this, I wasn't even able to come up with an approach for a problem. Keep Grinding!

Comments (2)