Skip to content
Tech Interview Prep

Real Interview Questions for the Software Development Engineer (SDE) at Amazon

New

Interview Q&A

23 questions · Flow follows Relevance until this set has a learning order.

Q&A-1Walk me through how you would reverse a linked list.

Reported in Amazon Software Development Engineer (SDE) Interview Questions

The 60-second answer

I'd confirm three things first: it's a singly linked list, so each node has only next; the list may be empty or hold one node, and both should come back unchanged; and I can relink nodes in place, using O(1) extra space. I'd also assume there are no cycles, and ask what to return if there could be one.

I'd use an iterative pointer flip. Walk the list once, and at each node point its next at the previous node. Linear time, constant space.

Python
class ListNode:
    def __init__(self, val, next=None):
        self.val = val
        self.next = next

def reverse(head):
    prev = None
    cur = head
    while cur:
        nxt = cur.next      # save the rest of the list before overwriting
        cur.next = prev     # flip this link
        prev = cur          # advance prev
        cur = nxt           # advance cur
    return prev

Trace on 1 → 2 → 3 → None

Stepnxtcur.next set toprev aftercur afterList state
startNone11 → 2 → 3
12None121 → None; 2 → 3
231232 → 1 → None; 3
3None23None3 → 2 → 1 → None

Return prev, which is node 3, the new head.

The order of the first two statements is the bug interviewers look for. If you write cur.next = prev before saving nxt, the rest of the list is unreachable and you silently return a two-node list.

Alternatives

The recursive version reverses the tail and then attaches the current node to the end of it. It reads cleanly but uses O(n) stack. CPython's default recursion limit is 1000, so a 100,000-node list raises RecursionError. I'd choose iterative unless the interviewer asks for recursion, and then I'd mention the stack cost.

For a doubly linked list, swap prev and next on every node while walking forward, then return the last node visited. The same O(n) time and O(1) space hold.

Tests I'd name

Empty list (None), one node, two nodes, and a three-node list like the trace above. For a list that could contain a cycle, the iterative loop never terminates, so I'd add a visited-set check or a Floyd cycle check before reversing. That changes the cost to O(n) extra space, or O(1) with Floyd, and I'd say which one I'm implementing.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-2Tell me about a time you disagreed with someone and how you resolved it.

Reported in Amazon Software Development Engineer (SDE) Interview Questions

The 90-second answer

The disagreement was technical, with a peer on my team. The question was whether retries for a downstream call should live in the client SDK or in the service. I wanted server-side retries with jittered backoff and a cap. He wanted the SDK to retry any 5xx, three attempts, with no shared limit. We had about three weeks before a launch that would send roughly 40 million requests a day through that path.

I stopped arguing positions and wrote down the failure each of us was defending against. His concern was that a misbehaving caller could not be fixed without every team deploying. Mine was that blind client retries multiply load on a dependency that is already failing. Both were real, and neither proposal addressed the other's concern.

I built a small experiment instead of a longer doc. Hypothetical figures for illustration: I replayed a day of production traces against staging with a 30 second injected brownout and measured offered load at the dependency. Unbounded client retries took it from 1,200 to 3,600 requests per second, exactly when it had the least capacity. A server-side retry with a per-caller budget held it near 1,300. His point also held: callers needed a way to adopt a bounded policy without a deploy.

We merged the designs. The server enforces a per-caller retry budget, and the SDK reads a retry config value we can change remotely. I sent him the numbers in writing, credited the part of his design that survived, and asked him to own the SDK change.

Where I got it wrong

I assumed callers would leave their config alone. Two teams changed theirs within a week, so the remote config path needed alerting on budget changes and a default that could not be set to unlimited. Resolving a disagreement with data does not remove the need to keep the decision reversible.

Commitment after the decision

I still had reservations about the remote config path when we chose the hybrid. I raised them once, in the design review, and then built the dashboards for it. After that I stopped reopening the question in standups and put my effort into making the choice work.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3Tell me about a time you had a conflict with someone. How did you resolve it and what did you learn?

Reported in Amazon Software Development Engineer (SDE) Interview Questions

The 2-minute answer (STAR, with Amazon's Earn Trust and Disagree and Commit in mind)

Situation. Two quarters ago I owned the retry layer for our order-ingest service. A senior engineer on the payments team, Priya, wanted failed charge calls retried inline in the request path with no cap. I thought that would push p99 past our 800 ms budget during a provider brownout. We disagreed in design review and then in two threads that went nowhere.

Task. I needed a decision on the retry design before the launch branch was cut, and I needed Priya to still trust my reviews afterward.

Action. Before arguing again, I wrote the numbers down. Hypothetical figures, for illustration: three retries with 300 ms backoff against a provider that times out at 2 s is about 6.9 s worst case per order. At 2,000 requests per second, that pins roughly 4,000 requests in threads during a brownout. I asked Priya to rerun the arithmetic herself. She found a case I had missed: her version already held a row lock across the call, so the real exposure was worse than mine. That moved the conversation from who was right to what the system actually does.

We agreed on a split. Retries move to an async queue with jittered exponential backoff, capped at 5 attempts. The synchronous path gets a 1 s timeout and a circuit breaker that opens at 50% errors over a 20 s window. Priya owned the queue, and I owned the breaker. On the cap, 5 versus 8, we still disagreed. We chose 5, agreed to measure for two weeks, and revisit with data. I did not pretend I had changed her mind, and she did not pretend the inline timeout was fine.

Result. In the next provider incident the breaker opened within 40 seconds, p99 stayed under 900 ms, and no orders were lost because queued retries drained once the provider recovered. The two-week data showed the 8-attempt cap added no successful recoveries, so 5 stayed.

What I learned. Engineering conflicts that stall are usually about different assumptions, not different values. Writing the arithmetic down turned a personal disagreement into a question about numbers, which made it easy for both of us to move without losing face. I also now ask early what evidence would change someone's mind. I waited too long to ask that here, and the delay cost us a week.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-4Walk me through Leadership Principle examples from your past work.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 2-minute answer

I'd pick two or three stories that each cover a different principle, and I'd check that every one has a decision I personally made, a number that moved, and something I'd do differently. I'd start with the one that best shows Ownership, because interviewers at Amazon probe it hardest. Each story takes about 60 to 90 seconds: situation in one sentence, my task, the specific actions I took, then the result with figures. I keep the team's work separate from mine so the interviewer can see what I did.

Here's the first one, hypothetical but representative of the shape I'd use. Our nightly settlement job for a payments service failed on roughly 38% of runs over a six-week stretch. The on-call rotation had been restarting it by hand, and nobody had been assigned to fix it, because each failure looked like a different bug. I took it on without being asked. Ownership here meant I didn't wait for a ticket. I pulled 60 days of job logs and grouped the failures by the first exception. Three causes covered 91% of them: a stale connection pool after a database failover, a timeout on one upstream FX-rate call, and a race on a shared staging table. I fixed the pool by setting a max connection lifetime of 10 minutes, added a bounded retry with jitter to the FX call, and made the staging writes idempotent by keying them on batch id. I also wrote the runbook entry that had been missing, so the next person on call wouldn't need me. Failed runs dropped to 2 in the following six weeks, and the job's p99 duration fell from 4 minutes to 40 seconds because it no longer hit the 3-minute timeout-and-restart cycle.

Mapping the stories to principles

Be explicit about which principle each story demonstrates and why. Here's how I'd lay out the pool:

  • Ownership: took an unassigned problem and carried it to a measured end state.
  • Dive Deep: grouped 60 days of logs before proposing any fix, so the fixes targeted 91% of the failures.
  • Invent and Simplify: the idempotent staging writes removed a whole class of retry bugs instead of patching each one.

A second story should show a different principle, such as Customer Obsession or Earn Trust. For example, I'd describe a case where I told a product owner that a launch date was at risk because the load test showed the new endpoint's p99 going from 180 ms to 900 ms once the pool saturated at 20 connections. The uncomfortable part was that the date had already been promised. I put the numbers in front of them, proposed two options with their costs, and let them choose. Naming the trade-off openly is what earns trust, so I'd say that directly.

What interviewers actually check

They're testing three things. First, whether my "I" statements are real: they will ask what I decided, what I would have done alone, and what I'd change. Second, whether the result is measured, so I give a number and say where it came from. Third, whether I can be honest about a miss. I'd keep one story where something went wrong, such as a rollback I should have caught sooner, and describe what I changed afterwards. Without that, the stories sound rehearsed.

I'd finish each story by naming the principle in plain words, not by quoting the phrase, and then stop. Ending on the result keeps the answer inside the time limit.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-5Walk me through how you would count the downward paths in a binary tree whose values add up to a target sum, where a path does not need to start at the root or end at a leaf.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

Assumptions first: a path is a sequence of parent-to-child links, so it goes downward and may start and stop at any node. Values can be negative, so I can't prune on the running sum. Node count is up to about 1000 and values fit in 32 bits, so the total can reach roughly 10^12 and I'd use a 64-bit accumulator.

The brute force starts a downward scan from every node and checks each prefix: O(n × h) time, where h is the height, and O(n²) in a skewed tree. The fix is prefix sums. Let S(v) be the sum from the root down to v. The sum of the downward path from ancestor a to node v is S(v) − S(parent(a)). So at node v I need the number of ancestors whose prefix sum equals S(v) − target. I keep a hash map of prefix sums along the current root-to-node path, and I update it on the way down and undo it on the way back up.

Python
# Python 3.11
def path_sum(root, target):
    counts = {0: 1}  # empty prefix
    def dfs(node, running):
        if node is None:
            return 0
        running += node.val
        total = counts.get(running - target, 0)
        counts[running] = counts.get(running, 0) + 1
        total += dfs(node.left, running) + dfs(node.right, running)
        counts[running] -= 1  # backtrack: this node leaves the path
        return total
    return dfs(root, 0)

The backtrack step is what most candidates forget. Without it, a prefix from a sibling subtree would count as an ancestor.

Trace on a chain 1 → 2 → 3 with target 3. Paths that match are [3] and [1, 2].

noderunning Slooks up S − 3foundmap after insert
11−20{0:1, 1:1}
2301 (path 1,2){0:1, 1:1, 3:1}
3631 (path 3){0:1, 1:1, 3:1, 6:1}

Total 2, as expected.

Complexity. Time is O(n), since each node does one lookup and one update. Space is O(h) for the recursion plus O(h) map entries, because the map only holds the current path. A balanced tree gives O(log n) and a skewed tree gives O(n).

Alternatives. The O(n²) scan from each node is fine for a quick sanity check and is easier to get right under pressure, but it's the answer to avoid unless the interviewer asks for it. Iterative DFS avoids recursion-depth risk on a 1000-deep skewed tree, though Python's default limit of 1000 frames is close, so I'd raise it or go iterative.

Failure modes to name. Forgetting the backtrack decrement overcounts across sibling branches. Forgetting the initial {0:1} misses paths that start at the root. Using a 32-bit int in Java can overflow when prefix sums grow. I'd check all three with a small case where a sibling shares a prefix sum and where the whole root path equals the target.

I'd test with: empty tree, single node equal to target, all-negative values, and a target of 0 where zero-sum paths must count.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-6Design a package-tracking system that lets customers see current order status and receive updates as packages move through fulfillment centers.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

I'd separate the write path from the read path. Fulfillment centers emit scan events, and I'd store them as an append-only log. Customers read a separate projection that holds only the current status per package. Notifications come off the same stream, so a customer update never depends on a customer request.

First assumptions, all hypothetical: 300 million packages a year, a peak of 2,000 scan events per second across all centers, about 4 scans per package, and 1 KB per event. That's roughly 2 MB/s at peak, which is modest for Kinesis. The hard parts are duplicate scans, out-of-order events from different devices, and read traffic that spikes around delivery windows.

Write path

Handheld and conveyor scanners post to an ingestion API, which validates the event and writes it to Kinesis Data Streams partitioned by tracking_id. Partitioning by tracking ID keeps all events for one package in order within a shard. Each event carries a event_id generated at the scanner, plus event_time and facility_id.

The ingestion API returns 202 once Kinesis accepts the record. Scanners retry on timeout, so the same event_id can arrive twice. The consumer deduplicates on it.

Projection

A consumer reads the stream and writes into a DynamoDB table keyed by tracking_id. Each row holds the current status, the last_event_time applied, and the event_id that set it.

Out-of-order events are handled by a conditional write:

Incoming eventStored last_event_timeResult
12:01:00 OUT_FOR_DELIVERY12:00:00 SORTEDapply, update status
12:00:30 SORTED (late)12:01:00reject, keep current status, append to log only
12:01:00 OUT_FOR_DELIVERY (retry)12:01:00 same event_idno-op

The condition is last_event_time < :incoming OR (last_event_time = :incoming AND event_id = :incoming_id). Retries become no-ops and late events cannot move status backwards. The full history stays in the log, so audits and customer support can rebuild any timeline.

Clock skew between scanners is real. I'd rely on the facility-supplied event_time only for ordering within a single package and use the stream sequence number as the tie-breaker.

Read path

GET /shipments/{tracking_id}/status reads the projection with a strongly consistent read only when the customer has just placed the order. Otherwise an eventually consistent read is fine, since the projection lags the scanner by seconds. The response carries an ETag so clients can poll cheaply with If-None-Match and get 304 when nothing changed.

For push, the projection consumer publishes a status-changed message to SNS, with per-customer subscriptions routed to email, push and an in-app channel. I wouldn't hold a WebSocket per customer. Most customers check status a few times, and a notification with a status link covers most of that.

Failure modes and detection

  • Consumer lag: alarm on Kinesis GetRecords.IteratorAgeMilliseconds. Customers see stale status long before anyone complains.
  • Hot partition: a single large order or a bad scanner loop floods one shard. Watch per-shard write throughput and WriteProvisionedThroughputExceeded on the table.
  • Poison event: a malformed record blocks a shard if the consumer retries forever. Route it to a dead-letter queue after a bounded number of attempts, and alarm on DLQ depth.
  • Duplicate notifications: the SNS publish happens after the conditional write succeeds. A crash between the two can resend. Notifications should carry event_id so the client can dedupe.

Trade-offs

A single table holding both history and current status is simpler, but reads of the latest status then depend on history size. Splitting them costs one more component and eventual consistency between the two, which customers rarely notice.

I would not use the transactional database that serves orders as the event store. Scan volume at peak would compete with checkout.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7Tell me about a time you identified a technical issue that others had overlooked and how you resolved it.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

In my last team we owned the order-status service that fed package updates to customers. Scanner events came from many fulfilment centres, and our handler wrote each event with last-write-wins on the event timestamp. Everyone assumed that was safe because the timestamps were set at the source. I noticed a support ticket pattern nobody had connected: customers saw a package as delivered and then still saw it in transit days later. I wanted to know how often the final stored state disagreed with the physically latest event before deciding whether it mattered.

Finding it

I replayed a week of events in shadow mode and compared the stored final state for each order against the state from the latest event by arrival order. Hypothetical figures for the example: 2.1 million events across 480,000 orders, and 1,900 orders (about 0.4%) ended in a state earlier than their last physical event. Those orders clustered in two centres whose clocks ran 2 to 3 seconds ahead of the others.

Trace of one order, with the clock in the second centre running +2.5 s:

Physical timeSourceStamp on eventEventStored after write
10:02:12.000centre B (+2.5 s)10:02:14.500IN_TRANSITIN_TRANSIT, stamp 14.500
10:02:13.000centre A (correct)10:02:13.000DELIVEREDrejected, since 13.000 < 14.500; stays IN_TRANSIT

The delivery event was physically later and correct, but the skewed clock on the earlier event gave it a higher stamp, so last-write-wins discarded the terminal update. Nothing in the system flagged it because the write succeeded as far as the database knew.

The fix

I did not want the correctness of ordering to depend on clocks. The producer already assigned a per-order sequence number in its outbox table, but the consumer ignored it. I made the write conditional on it:

UPDATE order_status SET state = :state, seq = :seq WHERE order_id = :id AND seq < :seq

A write that matches zero rows is counted and dropped, and the counter is logged with the order id. I also added a rank check against the state machine so a bad sequence could not move a delivered order back into transit. I backfilled the 1,900 affected orders from the event log in sequence order and added an alarm on dropped writes that pages if the count stays above zero for 15 minutes.

Trade-offs and what I would still check

Sequence numbers are only as good as the producer. If it resets sequences on failover, the consumer would drop legitimate updates, so I added a test for failover and a dashboard for dropped writes. A pure rank check would have been wrong for states that legitimately reopen, such as a returned package going back into transit, which is why the sequence is the primary guard and the rank check is only a backstop. A vector clock or pinning each order to one partition would also work, but both cost more than a conditional update at this volume.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-8Find the longest substring without repeating characters.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

I'd use a sliding window over the string with a hash map from each character to the index where it last appeared. I'll assume a plain string of characters, return only the length, and return 0 for an empty input. The window always starts at start and ends at the current index i. When s[i] was last seen inside the window, I move start just past that earlier occurrence. Each index is visited once, so this is O(n) time. Space is O(k), where k is the number of distinct characters, which is at most 128 for ASCII.

Python
def length_of_longest_substring(s: str) -> int:
    last = {}  # char -> index of its most recent occurrence
    start = 0
    best = 0
    for i, ch in enumerate(s):
        prev = last.get(ch)
        if prev is not None and prev >= start:
            start = prev + 1
        last[ch] = i
        best = max(best, i - start + 1)
    return best

Trace on abba

ichprevstart beforestart afterwindowbest
0anone00a1
1bnone00ab2
2b102b2
3a022ba2

The check prev >= start is the part candidates miss. At i=3, a was seen at index 0, but index 0 is already outside the window, so start must not move back to 1. Without that guard, the answer comes out wrong.

Alternatives

A set-based window that shrinks from the left one character at a time is also O(n), but it does more work per step and is easier to get wrong. Brute force over all substrings is O(n^2) time with a set check, which is fine for a warm-up but not what I'd ship.

Failure modes to name

  • Off-by-one on best: the length is i - start + 1, not i - start.
  • Stale map entries: an index left of start must be ignored, which is why the guard exists.
  • Code points versus bytes: Python indexes code points, so a multi-byte UTF-8 string gives a different answer than its byte length. I'd confirm the input unit before coding.

Tests I'd run before calling it done

Empty string returns 0. A single repeated character such as aaaa returns 1. pwwkew returns 3. A string with no repeats returns its full length.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-9Walk me through how you would construct a binary tree given its preorder and inorder traversals.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

Preorder gives the root first. Inorder places the root between the left and right subtrees. So the first unused preorder value is always the root of the current subtree, and its position in inorder splits the range into left and right. I'd build it recursively with a value-to-index map over inorder, so each lookup is O(1) and the whole build is O(n). I'd state up front that the values are unique. With duplicates, the split point is ambiguous and the input does not determine one tree.

Python
class TreeNode:
    def __init__(self, val, left=None, right=None):
        self.val, self.left, self.right = val, left, right

def build_tree(preorder, inorder):
    if len(preorder) != len(inorder) or set(preorder) != set(inorder):
        raise ValueError('traversals do not describe the same multiset')
    pos = {v: i for i, v in enumerate(inorder)}
    pre = iter(preorder)

    def helper(lo, hi):
        if lo > hi:
            return None
        v = next(pre)
        node = TreeNode(v)
        mid = pos[v]
        node.left = helper(lo, mid - 1)   # consumes the next preorder items first
        node.right = helper(mid + 1, hi)
        return node

    return helper(0, len(inorder) - 1)

Trace. preorder = [3, 9, 20, 15, 7], inorder = [9, 3, 15, 20, 7]. The map is {9:0, 3:1, 15:2, 20:3, 7:4}.

callrangenext preorderposaction
helper(0,4)whole31root 3, recurse left and right
helper(0,0)[9]90leaf, left and right are None
helper(2,4)[15,20,7]203root 20
helper(2,2)[15]152leaf
helper(4,4)[7]74leaf

The left recursion must run before the right one, because it consumes the preorder items that belong to the left subtree. Swapping the calls breaks the build.

Alternatives. The textbook slicing version passes preorder[1:k+1] and inorder[:k] down each level. It reads cleanly but copies lists, so it is O(n^2) time and space in the worst case. Indices into the original arrays keep it at O(n) time. Without the map, finding the root in inorder is a linear scan, which makes the build O(n^2) even with index arithmetic. Say that trade-off out loud: the map costs O(n) extra memory for a constant-factor and asymptotic win.

Failure modes I'd check.

  • Mismatched inputs: different lengths or different element sets. The guard above catches this. Without it, next(pre) raises StopIteration partway through, which looks like a bug in the recursion.
  • Duplicates: the map keeps only the last index, so the tree comes out silently wrong. If duplicates are possible, the problem needs a different input, such as an explicit null marker in the serialization.
  • Recursion depth: a skewed tree of n nodes recurses n deep. For a 10^5-node chain, that exceeds Python's default limit of 1000. Either raise the limit with care or convert to an explicit stack.

Test cases to run before saying it's done. A single node, an empty input, a left-only chain, a right-only chain, and the example above. Checking the output by an inorder traversal of the built tree is a cheap way to catch an off-by-one in the split.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-10Find the lowest common ancestor in a BST given nodes P and Q.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

I'd use the BST ordering instead of a general tree search. I'll assume keys are distinct, P and Q both exist in the tree, and nodes have only key, left and right, with no parent pointers. Starting at the root, if both keys are smaller than the current node's key, the LCA is in the left subtree. If both are larger, it's in the right. The first node where the keys split, or where one of them equals the current node, is the LCA. That needs no recursion and no extra memory.

Python
def lca(root, p, q):
    node = root
    lo, hi = sorted((p.key, q.key))
    while node:
        if hi < node.key:
            node = node.left
        elif lo > node.key:
            node = node.right
        else:
            return node

The sorted call means I only compare against the low and high keys, so the function works regardless of argument order. If P equals Q, the loop returns P itself, which matches the usual definition: a node is its own ancestor.

Trace. Take the tree 6(2(0, 4(3, 5)), 8(7, 9)) with P=3 and Q=5. At 6, both keys are below 6, so go left. At 2, both are above 2, so go right. At 4, 3 is below and 5 is above, so the split happens and the answer is 4. With P=2 and Q=8, the split happens at the root, so the answer is 6.

Complexity. Time is O(h), where h is the tree height: O(log n) for a balanced tree and O(n) for a degenerate, skewed one. Space is O(1) iteratively. A recursive version uses O(h) stack.

Alternatives. Without the BST property, you'd need a general LCA: record the root-to-P path, walk root-to-Q and find the last shared node, or use a single DFS that returns found flags from each subtree. That's O(n) time regardless of shape. With parent pointers, you can walk both nodes up to the root and find the first intersection, which takes O(h) time and O(h) space for a set, or O(1) extra space by equalising depths first. I'd only reach for these if the tree weren't ordered.

Failure modes to call out. Comparing node references, not keys, is the most common bug, and it breaks as soon as the tree is rebuilt. Duplicate keys break the invariant that decides direction, so I'd ask whether duplicates are allowed. If P or Q might be absent, the function returns a wrong ancestor silently. A guard that first searches for each key costs another O(h) pass and makes the failure explicit. Finally, a skewed tree turns an O(log n) expectation into O(n), so I'd mention the height bound before claiming logarithmic time.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-11Tell me about a time when you missed a deadline.

Reported in Amazon SDE II Interview Experience (2026) - Aced (formerly ...

The 90-second answer

Pick a real deadline you owned, say exactly what slipped and why, and show what you did within the first hour of knowing. Interviewers are testing whether you raised the risk early with numbers, whether you took ownership without spin, and whether you changed how you work afterwards. The example below is hypothetical, with figures labelled as such, so use it as a shape for your own story.

Situation. I was the SDE on a team moving our order-status updates from a nightly batch to an event-driven feed. We had agreed with the PM and the Returns team that cutover would happen in the second week of the month, because Returns froze its own release train after that.

Where it went wrong. On day 4 of the sprint I estimated six working days left. Two days later, a load test in staging showed the consumer dropping about 1 in 40 events under load (hypothetical). The partition key did not match our ordering assumption. My estimate had covered the happy path only, and I had scheduled the load test for week three. That scheduling was the real miss: a load test belonged at kickoff, not after the build.

What I did in the first hour. I told the PM and the Returns lead that day, before the date was at risk on paper. I gave them three numbers: the drop rate, a revised estimate of four more working days to fix the key, and the cost of slipping, which was a five-week wait for the next Returns window. I offered two options: ship the batch path on time and move the feed to the next window, or hold the feed date and cut scope. I recommended the first and said why: the Returns dependency mattered more to the business than the feed's latency gain.

The decision and the work. We shipped batch on time. I fixed the partition key, then reran the load test at 3x expected peak (hypothetical: 1,200 events/s for 2 hours) and recorded zero drops before scheduling the feed cutover.

Outcome. The feed cutover slipped five weeks. Returns' release was not blocked, and the migration lost one sprint of its plan.

What I changed. A load test against production-like volume is now an exit criterion at kickoff for any consumer I build. Estimates for streaming work carry an explicit risk line until the first load test passes.

Follow-ups to expect. Could I have caught it earlier? Yes, by testing at kickoff. Would I make the same call on the date? Yes, but I would have escalated on day 4 instead of day 6, because the two-day gap was the cost of waiting for certainty.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12Walk me through how you would solve House Robber: first the simple version, then the one on a binary tree.

Reported in Amazon SDE II Interview Experience (2026) - Aced (formerly ...

The 90-second answer

Assumptions I'd confirm first: house values are non-negative, adjacent houses can't both be robbed, and an empty input returns 0. The linear version is a one-pass DP that keeps two running values, so it's O(n) time and O(1) space. The tree version reuses the same idea, but each node returns a pair: the best total if this node is robbed, and the best total if it's skipped. Post-order traversal gives O(n) time and O(h) stack space.

Linear version (LeetCode 198)

For each house, either take it (its value plus the best from two houses back) or skip it (the best from one house back). Keep those two values as you scan.

Python
def rob(nums: list[int]) -> int:
    two_back = 0  # best total up to i-2
    one_back = 0  # best total up to i-1
    for x in nums:
        two_back, one_back = one_back, max(one_back, two_back + x)
    return one_back

Trace with [2, 7, 9, 3, 1]:

xtwo_back (before)one_back (before)new one_backnote
2002take 2
70277 beats 2
927112 + 9
371111skipping 3 is better
11111122 + 9 + 1

Answer: 12.

Tree version (LeetCode 337)

The constraint is that a robbed node forbids both children. Each node returns (take, skip):

  • take = node.val + skip_left + skip_right
  • skip = max(left) + max(right), where each child's max is max(take, skip)
Python
from typing import Optional

class TreeNode:
    def __init__(self, val=0, left=None, right=None):
        self.val, self.left, self.right = val, left, right

def rob_tree(root: Optional[TreeNode]) -> int:
    def dfs(node):
        if node is None:
            return 0, 0
        lt, ls = dfs(node.left)
        rt, rs = dfs(node.right)
        take = node.val + ls + rs
        skip = max(lt, ls) + max(rt, rs)
        return take, skip
    return max(dfs(root))

Trace on [3, 2, 3, null, 3, null, 1]: the leaf 3 returns (3, 0), node 2 returns (2, 3), the leaf 1 returns (1, 0), node 3 returns (3, 1). At the root, take = 3 + 3 + 1 = 7 and skip = max(2, 3) + max(3, 1) = 6. Answer: 7.

Failure modes I'd call out

  • Recursion depth. The LeetCode tree limit is 10^4 nodes, and a skewed tree exceeds CPython's default recursion limit of 1000. Either convert to an iterative post-order traversal or raise the limit deliberately, and say which.
  • Returning only one value. Returning just the best overall total loses the parent's constraint. It gives wrong answers on trees where the root is worth taking, which is why the pair is needed.
  • Using None as a sentinel in place of (0, 0). It crashes on the first leaf.

When not to use this

If the input can be a general graph rather than a tree, a plain DFS with a visited set isn't enough, since the 'adjacent cannot both be taken' rule becomes a maximum-weight independent set problem, which is NP-hard in general. I'd ask whether the structure is guaranteed to be a tree before writing any code.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-13Design an Amazon locker.

Reported in Software Development Engineer II Interview Experience - Exponent

The 90-second answer

I'd start by pinning scope: a locker bank at a station, roughly 200 compartments in mixed sizes, serving two flows: a carrier deposits a package, and a customer retrieves it with a code. I'd assume the locker controller is an embedded device with a local agent and that it can lose network for minutes at a time. The core model is one state machine per compartment, and every transition goes through one service that owns the truth.

Compartment states: AVAILABLE -> RESERVED (a carrier claimed it for a parcel) -> OCCUPIED (door closed with the parcel inside) -> PICKUP_PENDING (customer has a code) -> AVAILABLE (retrieved or expired). Reservation is the step that matters. Two carriers scanning at the same bank must not get the same compartment.

TransitionWriteGuard
reserveUPDATE compartment SET state='RESERVED', parcel_id=? WHERE id=? AND state='AVAILABLE' AND version=?rows affected = 1
occupydevice event, door_closed + weight sensoronly from RESERVED
releaseexpiry sweep or pickuponly from OCCUPIED or PICKUP_PENDING

The conditional update is the concurrency control. Zero rows affected means someone else won, so the carrier gets another compartment. I'd avoid a read-then-write, because two requests can read AVAILABLE within the same millisecond.

Pickup codes: 6 digits gives 10^6 values, and a bank with 200 compartments has at most 200 live codes, so a random guess succeeds about 200 in a million per attempt. I'd still rate limit per bank (for example 5 failed attempts per code, then lock the code) and bind the code to the compartment and parcel, so it cannot unlock another box.

Device sync: the controller keeps a local cache of compartment states and sends door events with a sequence number. The server applies events idempotently by (device_id, seq). When the device is offline, customers can still be told the locker is ready, but the open command waits until the device acknowledges.

Failure modes I'd watch:

  • Door reports closed but the latch did not engage. Detect with a latch sensor mismatch and mark the compartment FAULT, out of rotation, with an alert to ops.
  • Parcel deposited, then the reserve response is lost. The carrier retries; without an idempotency key on reservation, you get a stranded compartment. The sweep job finds RESERVED rows older than 10 minutes with no occupy event and releases them.
  • Expiry race: customer opens the door at the moment the sweep releases the box. Expiry must check state in the same conditional update, not in application memory.

What I'd measure: reservation conflict rate, median time from RESERVED to OCCUPIED, and count of compartments in FAULT per site. A rising conflict rate usually means a bad capacity signal or a stuck sync, not a load problem.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14Walk me through how you would determine a ship's capacity to ship packages in D days.

Reported in Amazon Software Engineer Interview Experience (2026) - Aced ...

The 90-second answer

I'd binary search on the ship's capacity. The answer lies between max(weights) (the ship must carry the heaviest package in one trip) and sum(weights) (one day carries everything). Capacity is monotonic: if a capacity c ships everything in D days, any larger capacity does too. So I find the smallest c where a greedy feasibility check passes. Greedy works because packages must ship in the given order, so each day loads as many consecutive packages as fit, and that minimises days for a fixed capacity.

Complexity is O(n log(sum(weights))) time and O(1) extra space.

Python
def ship_within_days(weights, days):
    def days_needed(cap):
        d, load = 1, 0
        for w in weights:
            if load + w > cap:
                d += 1
                load = 0
            load += w
        return d

    lo, hi = max(weights), sum(weights)
    while lo < hi:
        mid = (lo + hi) // 2
        if days_needed(mid) <= days:
            hi = mid
        else:
            lo = mid + 1
    return lo

Trace. Weights [1..10], D = 5. The search range is [10, 55].

Capacity 15 packs as [1,2,3,4,5] [6,7] [8] [9] [10], which is 5 days, so it is feasible.

Capacity 14 packs as [1,2,3,4] [5,6] [7] [8] [9] [10], which is 6 days, so it is not. The answer is 15.

Edge cases I'd state before coding. Empty input and days > len(weights) (answer is max(weights), the one-package-per-day case, which the search already returns). Non-positive weights would break the monotonicity argument, so I'd confirm weights are positive integers.

Off-by-one risk. The most common bug is writing lo = mid or hi = mid - 1 and looping forever or returning a value one too high. The lo < hi loop with hi = mid and lo = mid + 1 avoids both. Dry-running a two-element input catches it quickly.

Alternatives. A linear scan from max(weights) upward is O(n · (sum − max)) and times out at large sums. Dynamic programming over (package index, days used) is correct but O(n² · D). Binary search is the right choice because the feasibility check is cheap and monotone.

Overflow. Python integers don't overflow. In Java or C++, lo + hi can overflow int when the total weight is large, so I'd write mid = lo + (hi - lo) / 2 and use long for the sum if the constraints allow values above about 2^31.

What I'd test. A single package, D = 1 (answer is the total), D = n (answer is the max), and a case where the answer equals the max weight exactly.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-15Tell me about a time you handled a difficult technical stakeholder.

Reported in Amazon Software Engineer Interview Experience (2026) - Aced ...

The 90-second answer

I'd start by pinning down what the stakeholder needed and what I could actually show. In one case the stakeholder was a senior product manager who wanted a checkout change shipped on a fixed date. Every time I gave an estimate, he dismissed the risk, because he saw the change as a config flag. The change actually touched idempotency handling in the payment-capture path, so I stopped debating the estimate and built evidence he could check himself. I wrote a query over 30 days of capture logs (hypothetical figures for this example): about 0.4% of requests were retried by clients within 2 s, and in staging, two of those retries without an idempotency key produced duplicate captures. I then gave him two options with numbers. Option A: ship on the date behind a flag, with a 5% canary and a rollback under 10 minutes. Option B: ship a week later with the full path and no canary. He chose A, and I wrote the rollback criteria into the launch doc before anything went out.

Why it worked

The real disagreement was about what "done" meant, not about engineering taste. Once I reframed the launch as a shared failure budget, the conversation changed. The rollback triggers were duplicate captures above zero, or checkout p99 above 400 ms for five minutes. Trace from the canary (hypothetical): 10:02 canary to 5% of traffic; 10:19 one duplicate capture detected in 9,870 requests; 10:23 rollback to 0%; fix and replay test added the same day; full rollout three days later. We missed his date by a week, but no customer was double charged.

Mistakes I watched for

I made two. First, I reported the cross-region retry count twice in one meeting because I had double counted regional logs. I corrected it in the same thread within the hour, before anyone else caught it. That mattered more to him than getting the number right the first time. Second, when he escalated to a director, I did not argue in the escalation. I sent the same query and the same two options, so the director was looking at the same facts I had.

What I'd repeat

Translate technical risk into the stakeholder's unit: money, date, or customer impact. Put the decision, its owner, and its rollback trigger in writing. Once the decision is made, commit to it fully, even if you argued against it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16Walk me through how you would create a queue.

Reported in Amazon Software Development Engineer 1 (SDE-1) Interview Experience (2026) - Aced (formerly Exponent)

The 90-second answer

I'd confirm three things first: is it FIFO only, or does it need priority; is capacity fixed or unbounded; and is it used from more than one thread. I'll assume FIFO, bounded capacity known up front, and single-threaded use, then say what changes otherwise. The operations are enqueue, dequeue, peek, and size, and I want all of them O(1).

A fixed-capacity circular buffer over an array does this with no allocation after construction. I keep a head index and a size. The tail is never stored; it is always (head + size) % capacity, so there is nothing to keep in sync.

Python
class Queue:
    def __init__(self, capacity: int):
        self._buf = [None] * capacity
        self._head = 0
        self._size = 0

    def enqueue(self, x):
        if self._size == len(self._buf):
            raise OverflowError("queue full")
        self._buf[(self._head + self._size) % len(self._buf)] = x
        self._size += 1

    def dequeue(self):
        if self._size == 0:
            raise IndexError("queue empty")
        x = self._buf[self._head]
        self._buf[self._head] = None  # drop the reference so it can be collected
        self._head = (self._head + 1) % len(self._buf)
        self._size -= 1
        return x

    def peek(self):
        if self._size == 0:
            raise IndexError("queue empty")
        return self._buf[self._head]

    def __len__(self):
        return self._size

Trace, capacity 3. enqueue(a), enqueue(b), enqueue(c) gives buf=[a,b,c], head 0, size 3. dequeue() returns a, head moves to 1, size 2. enqueue(d) writes to index (1+2)%3 = 0, so buf=[d,b,c], head 1, size 3. The fourth enqueue would now raise, because the size check comes before any write.

Why not a list with pop(0). Removing the front shifts every element, so dequeue is O(n). A linked list with head and tail pointers is also O(1) and unbounded, at the cost of one allocation per element and worse cache behaviour. In Python I'd reach for collections.deque, which gives O(1) append and popleft, and only write the ring buffer when the interviewer wants the mechanism or a hard capacity bound.

Unbounded version. Either grow the array by doubling and copy into a fresh buffer with the head reset to 0, which makes enqueue amortised O(1), or use a linked list. The doubling copy is a latency spike for one call, which matters if this sits on a hot path.

Failure modes I'd check for.

  • Off-by-one on full versus empty. Tracking size explicitly avoids the classic one-slot-wasted scheme where head equals tail means both states.
  • Forgetting to clear slots on dequeue. The buffer keeps the object alive until it is overwritten, which shows up as memory that never drops under load.
  • Calling peek or dequeue on empty and returning None. That lets a None payload be indistinguishable from empty. Raising, or returning an explicit sentinel, is safer.

If it must be thread-safe. Guard the three fields with one lock and use a condition variable so dequeue can block when empty. A single lock is correct and fast enough for most workloads. Lock-free ring buffers exist, but I would not write one in an interview without an existing test harness to prove it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-17Walk me through how you would return all letter combinations that a string of digits from 2 to 9 could represent on a classic phone keypad.

Reported in Amazon SDE II Software Development Engineer Interview Experience (2026) - Aced (formerly Exponent)

The 90-second answer

This is a backtracking problem over a fixed-branching tree. Each digit selects one of 3 or 4 letters, so the output has at most 4^n strings for n digits (the 4 comes from 7 and 9). I'd build the answer one digit at a time, keep a single mutable buffer, and append a copy only when the depth reaches the input length. Empty input returns an empty list, not [""], and I'd confirm that with the interviewer because the two conventions differ.

The mapping goes in a lookup table, not a chain of conditionals. Length-n output means the work is O(4^n * n) for building strings, and the recursion depth is n, so the stack is bounded by the input size.

Python
MAP = {
    '2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl',
    '6': 'mno', '7': 'pqrs', '8': 'tuv', '9': 'wxyz',
}

def letter_combinations(digits: str) -> list[str]:
    if not digits:
        return []
    out: list[str] = []
    buf: list[str] = []

    def backtrack(i: int) -> None:
        if i == len(digits):
            out.append(''.join(buf))
            return
        for ch in MAP[digits[i]]:
            buf.append(ch)
            backtrack(i + 1)
            buf.pop()

    backtrack(0)
    return out

Trace on "23"

callibufaction
backtrack0[]digit 2, try a
backtrack1[a]digit 3, try d, emit "ad"
backtrack1[a]try e, emit "ae", then f, emit "af"
backtrack0[]pop a, try b, emits bd, be, bf, then cd, ce, cf

Output: ["ad","ae","af","bd","be","bf","cd","ce","cf"]. Order follows the keypad order, which is what interviewers usually expect.

Alternatives

An iterative version starts with [""] and, for each digit, replaces the list with the cross product of existing prefixes and the digit's letters. It is equally correct, uses O(4^n) extra memory for the intermediate lists, and avoids recursion. I'd mention it and pick backtracking, because the buffer version uses O(n) auxiliary space beyond the output.

A BFS queue works too, but it holds whole partial strings in memory at every level, which is the wasteful part.

Failure modes I'd check for

Digits 0 and 1 have no letters here. If the input can contain them, MAP[digits[i]] raises a KeyError; I'd ask whether to skip them or reject the input. Forgetting buf.pop() produces strings that accumulate letters from earlier branches, which shows up as outputs longer than n. Forgetting to copy the buffer when emitting, for example appending the list itself, gives a result full of references that all end up identical.

Scale and follow-ups

For n = 10 the output is at most 4^10 = 1,048,576 strings, roughly tens of MB as Python strings, so a real service would return a lazy generator or cap the input length rather than materialise it. I'd say that aloud, since Amazon interviewers often ask how the solution behaves at larger inputs. If the letters per key change, only the table changes; the algorithm does not.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-18Given a number of courses and a list of prerequisite pairs, return true or false depending on whether it is possible to finish all courses. Walk me through how you would approach it.

Reported in Amazon SDE II Software Development Engineer Interview Experience (2026) - Aced (formerly Exponent)

The 90-second answer

I'd treat this as a directed graph problem. Each course is a node, and a pair [a, b] means b must be finished before a, so it becomes an edge b -> a. Finishing all courses is possible exactly when the graph has no cycle. I'd check for a cycle with Kahn's algorithm: repeatedly remove nodes with in-degree zero. If every course gets removed, there is no cycle and the answer is true. If some courses are left over, they are stuck in or behind a cycle and the answer is false. This runs in O(V + E) time and O(V + E) space.

Before coding I'd confirm three things: the pair order ([a, b] means b first, which I'd check against the example), whether the pairs can repeat (duplicates should still work with in-degree counting), and whether self-loops like [3, 3] are possible (they form a cycle and must return false).

Code (Python 3)

Python
from collections import deque

def can_finish(num_courses, prerequisites):
    indegree = [0] * num_courses
    graph = [[] for _ in range(num_courses)]
    for course, prereq in prerequisites:
        graph[prereq].append(course)
        indegree[course] += 1
    queue = deque(i for i in range(num_courses) if indegree[i] == 0)
    finished = 0
    while queue:
        node = queue.popleft()
        finished += 1
        for nxt in graph[node]:
            indegree[nxt] -= 1
            if indegree[nxt] == 0:
                queue.append(nxt)
    return finished == num_courses

Trace

Input: num_courses = 4, prerequisites = [[1, 0], [2, 1], [1, 2]]. Courses 1 and 2 depend on each other.

StepQueueActionIn-degree after step
init[0, 3]0 and 3 have no prerequisites0:0, 1:2, 2:1, 3:0
pop 0[3]0 unlocks 1, finished = 11:1
pop 3[]3 unlocks nothing, finished = 2unchanged
end[]queue empty1:1, 2:1

finished is 2, num_courses is 4, so the function returns false. Courses 1 and 2 never reach in-degree zero because each waits on the other.

Alternatives

DFS with three colours (unvisited, in progress, done) also detects a cycle, in the same complexity. I'd pick it when I need to find the cycle itself, since a back edge to an in-progress node identifies it. Its weakness is recursion depth: a chain of 10^5 courses can overflow a default Python stack, so an iterative version or raised limit is needed. Kahn's is iterative and also yields a valid completion order as a by-product, which is why I'd default to it.

Failure modes I'd watch for

  • Reversed edge direction. Treating [a, b] as a -> b gives the wrong answer on any chain. The trace above catches it quickly, so I'd verify with a two-course example before finishing.
  • Forgetting isolated courses. If the queue is seeded only from nodes that appear in prerequisites, a course with no links is never counted and finished comes out short. Seeding from range(num_courses) avoids this.
  • Self-loops. [3, 3] raises the in-degree of 3 to 1 and nothing ever removes it, so it correctly returns false. An undirected union-find approach would miss this, which is one reason I'd avoid it here.
  • Input bounds. With n up to a few thousand and edges up to a few thousand, the adjacency list is small. I'd state the bounds I'm assuming instead of guessing them.

If the interviewer pushes on scale, I'd say the same algorithm works on a streamed edge list if the graph fits in memory, and that a distributed version would partition by course and exchange in-degree decrements, which is a much harder problem than this one.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-19Why do you want to join Amazon?

Reported in Amazon Software Engineer Interview Experience (2026)

The 60-second answer

I want to work on systems where a single engineering decision reaches a very large number of customers and has to keep working at that scale. Amazon's order, fulfilment and delivery-tracking paths are exactly that kind of problem, and I've spent the last two years on a smaller version of it: a notifications service that fans out roughly 40k events per minute at peak. I want to see how those problems look when the scale is an order of magnitude higher and the operational bar is set by the team that owns the system.

I'd also say what I'm not claiming. I'm not joining for a specific team yet. I want the role where I can own a service end to end, carry its on-call, and be measured on latency and correctness, not only on features shipped.

What makes the answer hold up

The follow-up will be whether I can name what I'd do with the role, so I tie the motivation to concrete work:

InterestConcrete example from my workWhat I'd want at Amazon
ScaleFan-out at 40k events/min, p99 at 180 ms once consumers saturate at 20 connectionsOwning a path where saturation is measured per partition
OwnershipWrote the retry and dead-letter policy myselfCarrying on-call for a service I designed
Customer impactTracked a duplicate-notification bug that affected about 0.3% of sendsMetrics tied to a customer-visible outcome

The last row matters most. A strong answer shows I've already thought about failure, not just scale. Duplicate delivery is what I'd expect to hit first in a fulfilment event pipeline, so I'd design consumers to be idempotent on event id from the start, with the dedup window sized to the redelivery horizon of the queue.

Where candidates go wrong

  • Praising the company in general terms ("customer obsession", "innovation") without naming a system or a constraint. Interviewers hear this as no research.
  • Answering with the salary or the brand. Both are fine to mention, neither is the reason.
  • Naming a Leadership Principle by label and giving no example. Pick one, tie it to a real decision you made, and say what you'd have done differently.
  • Saying you want to join because it's a big company. Scale is the reason; size alone is not.

If I'm asked for a second reason, I'd point to the on-call expectation. Teams that run their own pagers write better retry logic, because they have been woken up by it.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-20Design the backend for Audible's checkout system.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

Start by pinning scope. Audible sells digital goods (audiobooks, subscriptions, credits), so there is no shipping and no inventory reservation. The fulfilment step is granting an entitlement to the customer's library. I'd assume a synchronous checkout API called from web and app, one payment processor per region, and a 99.95% availability target for the order-placement path.

The core is a checkout state machine persisted per attempt: created → priced → payment_authorized → captured → entitled, with terminal failed and cancelled. Every transition is a conditional write (UPDATE checkouts SET state = 'payment_authorized' WHERE id = ? AND state = 'priced'), so two concurrent workers cannot both advance the same checkout.

Flow:

  1. POST /checkouts with Idempotency-Key. The server snapshots the cart: item ids, unit prices, currency, tax jurisdiction, and a price-lock expiry of 15 minutes. It returns the checkout id and total.
  2. POST /checkouts/{id}/payments authorizes the card through the processor. The processor call carries its own idempotency key, derived from checkout id plus attempt number.
  3. On authorization success, one database transaction writes payment_authorized and an outbox row grant_entitlement.
  4. Capture and entitlement run from the outbox. The grant is idempotent on (customer, product, checkout id), so replays do nothing.

Trace. The client sends step 2. The processor authorizes, then the app crashes before writing state. The client retries with the same key. The checkout is still priced, and the processor returns the existing authorization because it saw the same idempotency key. The state moves once. Without the processor key, the customer is charged twice.

FailureDetectionResponse
processor timeout after authorizestate stuck in payment_pending for over 60 sreconcile job queries processor by checkout id, then advances state
price lock expiredexpiry before step 2409 price_changed, client refetches the checkout
entitlement service downoutbox oldest-unsent age above 30 sretry with backoff, alert on oldest row age
double submitduplicate Idempotency-Keyreplay the stored response for 24 h

Trade-offs. A synchronous entitlement grant is simpler for the UI but couples checkout availability to the library service. The outbox gives entitlement within seconds in the normal case and keeps payment success independent of it. I'd choose the outbox. For one-time purchases I'd capture immediately to avoid void-and-refund churn. Subscriptions can defer capture to the billing cycle.

Regional and PCI. Compute prices and tax at checkout creation from the customer's marketplace. Store currency with the snapshot so later FX changes never alter what was charged. Tokenize card data in the client so raw card numbers never reach our service, which keeps us out of the heaviest PCI scope.

Detection. Alert on the count of stuck payment_pending rows, the age of the oldest unsent outbox row, and the gap between authorized and entitled counts. That gap should be zero within five minutes. Any nonzero value after that is a reconciliation incident.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21Describe your experience with LLMs.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

I'd start by asking what the interviewer means by experience, because I've used LLMs in three ways: as a feature inside a product, as a tool in my own development work, and as a component I had to evaluate and operate. I'll focus on the second and third, since those are where I made engineering decisions.

The most substantial project was a support-ticket summarizer for a team handling about 4,000 tickets a day. I called a hosted model through the Converse API, behind a service with a 1.5 s p95 budget. Three things mattered more than the prompt wording. First, I set max_tokens explicitly and capped input by truncating the ticket thread to the last 20 messages, because an unbounded thread pushed p99 latency past 6 s. Second, I wrote an offline eval set of 300 tickets with human-written reference summaries and scored each prompt change against it, using a rubric for factual omissions rather than string similarity. Third, I treated model output as untrusted: the service validated JSON against a schema and retried once on failure, and it logged the raw response so a regression could be traced to a specific model version.

What I'd flag as the hard parts

Non-determinism makes ordinary unit tests weak. I pinned the model version, set temperature to 0 for the classification path, and accepted that summaries would still vary, so the eval threshold had to be a distribution, not an exact match. Cost also surprised us in the first week: input tokens dominated, so prompt-caching the static system instructions and trimming boilerplate cut the monthly bill by roughly a third in a rough estimate I checked against the billing dashboard.

Where I'd push back on the hype

I haven't used LLMs as the decision-maker for anything that needs a guaranteed answer. For routing, where a wrong answer costs a customer a refund, I used a deterministic rules layer and let the model suggest tags only. I'd use retrieval augmented generation for questions over our own documentation, but I'd measure retrieval recall separately from generation quality, since a fluent answer built on the wrong chunk looks correct until someone checks.

If you want, I can go deeper on the eval design or on how we handled the schema-failure path.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-22How do you use GenAI to fast track your general workflow?

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

The 90-second answer

I use it for work that is slow but checkable: test scaffolding, boilerplate, first-pass migrations, reading unfamiliar code, and drafting design notes I will then rewrite. I don't use it to make design decisions, and I don't merge anything I couldn't explain line by line. The speedup comes from shortening the gap between knowing what I want and having something that runs. The verification step stays with me.

A concrete case: a parser function had no tests. I gave the assistant the function, its contract from the spec, and asked for table-driven tests covering empty input, malformed rows and the buffer-size boundary. Two generated cases failed. Both came from the model's assumption about how the parser handles a trailing newline. I checked the spec, corrected the expectation, and kept the rest.

StepWhoCheck
Frame the task with the contract and constraintsmethe spec is the input, not the prompt
Generate draft (tests, boilerplate, migration)assistantdiff reviewed, not the summary
Run tests, linter, type checkerCI and localmust pass before review
Read every line as if I wrote itmeI can explain each change
Submit with a note on what was generatedmereviewer knows where to look

Hypothetical figures for illustration: on a ticket I'd estimated at two days, the test scaffolding and a mechanical rename took about three hours instead of most of a day. The saving was real, but it came from the boring parts, not from the design.

Guardrails. Amazon's policies on confidential and customer data apply to every prompt. I only paste code and data into tools the company has approved, and I strip customer identifiers, credentials and internal hostnames first. Generated code is untrusted input until it passes the same review as anything else.

Failure modes and how I catch them

  • Plausible code that compiles and is wrong. Caught by tests written from the spec, not from the generated output.
  • Invented methods or flags. Caught by compiling and checking against the docs for the library version pinned in the repo.
  • Changes beyond the request, such as a refactor slipped into a bug fix. Caught by reading the diff, not the assistant's description of it.
  • New dependencies nobody vetted. Caught by reviewing lockfile changes in every pull request.

Where I hold back. Security-sensitive code, anything touching customer data paths without an independent review, and any output I can't verify quickly. Here the Ownership principle is the test. I own the result, so faster drafting should never mean lighter verification.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23Tell me about a time when you made a decision with limited data.

Reported in Amazon Software Development Engineer (SDE) Interview Experiences (2026) - Aced (formerly Exponent)

Opening answer (about 90 seconds)

I'll use a payments-adjacent example, with figures I've labelled as hypothetical for this walkthrough. Our team owned the client retry layer for charge calls. Gateway timeouts were running at about 1.2% of attempts, and the client timeout was 2 s. Before the Q4 peak, we had to decide whether to raise it to 5 s. We had a change freeze in 48 hours and only nine days of telemetry on the new timeout behaviour, which was thin for the tail.

Clarify and state what I didn't know

The real unknown was whether the timeouts were slow successes or true failures. If the gateway had already charged the card, a longer timeout hides a failure, and a retry without an idempotency key creates a duplicate charge. I wrote those two possibilities down before touching the config.

Dive into the data I had

I split the nine days by gateway region and by hour. The timeouts clustered in one region between 14:00 and 16:00 local. At about 40,000 attempts per hour, 1.2% is roughly 480 timeouts an hour in that window, so the cluster was large enough to matter and small enough to isolate. I checked that charge calls already sent an idempotency key, which they did, so retries could not double-charge.

The decision

I picked a narrow, reversible change: raise the timeout only for that region, behind a feature flag, and only during the peak window. I wrote a short decision memo with the reversal condition stated up front: if duplicate-charge reconciliation exceeded 0.05% of retried charges in the first 24 hours, we roll back. Naming the rollback threshold before acting was the part that made the limited data acceptable to the team.

What happened

Regional timeouts dropped from 1.2% to about 0.3%. Reconciliation showed no duplicates in the first day. In week two it found three duplicates, traced to a bug in how I had documented key generation, which the instrumentation caught because the threshold forced us to measure it. I was also wrong about one thing. I had assumed the slow responses were gateway-side. About a fifth were our own connection pool saturating at 20 connections, so we raised the pool size as well.

What I'd change

I should have checked pool metrics before the decision. That was an hour of work that would have removed one of my assumptions. The general lesson I'd defend: with limited data, choose the change you can undo cheaply, write the condition that reverses it before you act, and then measure that condition hard.

Curated: · Written: · Reviewed:

Difficulty: Easy

Curated: · Written: · Reviewed: