Amazon: AI engineer interview
Last reviewed: November 2026. Based only on public information - official pages, engineering blogs, and publicly shared candidate reports. Processes change and vary by team; treat this as a map, not a contract. No confidential or leaked material.
TL;DR
- Leadership Principles are half the interview. Every interviewer in the loop is assigned 2-3 of Amazon's 16 Leadership Principles and grades you against them with STAR-format behavioural questions. This is not a formality - candidates with strong technical rounds fail on weak LP stories. Prepare 8-10 quantified stories before you touch LeetCode.
- The Bar Raiser is real and has veto power. One interviewer from outside the hiring team, specially trained, whose job is to keep the bar high. They ask the hardest behavioural questions and probe your STAR stories several "why" levels deep.
- The loop shape is well documented. Recruiter screen → (sometimes) online assessment → 1-2 technical phone screens → 4-6 back-to-back ~60-minute interviews covering coding, (ML) system design, domain depth, and behavioural. Amazon publishes official prep pages for several tracks.
- "AI engineer" spans very different orgs. AWS AI platform teams (Bedrock, SageMaker, Amazon Quick, Q Developer and Kiro) interview like senior SDE loops with an ML flavour; the AGI org (Nova models and agents) runs science-style loops with ML breadth/depth rounds and - per candidate reports - fewer behavioural questions and heavy modern-LLM content. The AGI org has been reshaped: since December 2025 it sits under Peter DeSantis alongside Amazon's custom silicon, and 2026 reports describe job cuts, a narrower Nova model roadmap, the SF Lab's founding lead leaving in February, and the San Francisco AGI site closing by late July, with frontier-model work consolidating under a new Frontier Model Research effort led by Pieter Abbeel. Confirm the team's current remit with your recruiter (reported, varies). AWS also now has a dedicated Forward Deployed Engineering org (see roles).
- Coding is still classic DS&A. Unlike most frontier labs, Amazon keeps traditional algorithm rounds (graphs, heaps, design-a-cache) alongside ML content. System design is at genuine extreme scale: multi-tenancy, throttling, cell-based isolation, and operational excellence are native vocabulary.
- Know the AI-use rules for your loop. Amazon has begun mixing an AI-assisted coding task into some online assessments (documented in its own newsroom), while treating unauthorised AI-generated code in evaluations as misrepresentation. 2026 candidate reports describe one conventional problem followed by a repository task where you work from failing tests alongside a guard-railed AI assistant, while other candidates in the same season still got two conventional problems; live interview rounds remain no-AI (reported, varies). AI is allowed only where candidate instructions explicitly permit it - read them carefully. Separately, an October 2026 engineering leadership update expects leaders to use AI hands-on and to say which tasks it improved and which it did not, and calls token-usage and code-volume metrics "deeply flawed", so expect LP questions on how you chose and measured AI use (Q14).
Company context
Amazon runs two distinct AI bets: AWS sells the picks and shovels - Bedrock (multi-model inference platform), SageMaker, Amazon Quick (the agentic workplace assistant that succeeded Q Business, which closed to new customers at the end of July 2026), Q Developer and the Kiro agentic IDE, and Trainium silicon - while the AGI org builds Amazon's own models (the Nova family) and agents (Nova Act, built by the AGI SF Lab founded around Adept's team). The SF site had closed by late July 2026 (reported): Nova Premier, Omni, Reel and Canvas are being wound down, Nova 2 Lite, Nova 2 Sonic, Nova Forge and Nova Act stay available, and frontier-model resources are moving to a Frontier Model Research effort led by Pieter Abbeel, with a new flagship model expected at re:Invent. Since a December 2025 reorganisation, the AGI org, Nova, and custom silicon (Trainium, Graviton, Nitro) report to Peter DeSantis, which pulls model work closer to the hardware teams. On silicon, Trn3 UltraServers (up to 144 Trainium3 chips) have been generally available since December 2025, TorchNeuron (a native PyTorch backend for Trainium) is in beta on Trn2 and Trn3, and AWS and Cerebras announced in March 2026 a Bedrock disaggregated-inference offering with Trainium doing prefill and Cerebras CS-3 doing decode (announced for "the coming months"; check whether it has launched). Inference-infrastructure loops can probe heterogeneous prefill/decode and running PyTorch on Trainium. On the agent side, product-org postings now name the AWS agent stack directly: Amazon Stores Finance SWE roles, for example, ask candidates to build agents on Bedrock AgentCore with the Strands SDK, including MCP tools, context and memory management, evaluation harnesses and guardrails. Engineers want in for scale you cannot get elsewhere - Bedrock serves foundation-model inference to a large share of the world's enterprises - and, on the AGI side, for a funded frontier-model effort with its own silicon. "AI engineer" at Amazon therefore means anything from multi-tenant GPU serving infrastructure, to applied GenAI teams embedding LLMs in every product org (search, ads, Alexa+, Rufus), to research engineering on pretraining and agents.
Roles & titles they hire
- Software Development Engineer (SDE I/II/III) - on Bedrock, SageMaker, Quick, Q Developer/Kiro, and GenAI feature teams; the most common door into AI work at Amazon
- Applied Scientist / Senior Applied Scientist - science track; official interview-prep page exists; heavy ML breadth/depth
- Machine Learning Engineer / ML Ops Engineer - productionising models, more common in product orgs
- Research Scientist / Research Engineer (AGI org) - frontier model training and agents. Amazon's San Francisco AGI site had closed by late July 2026 (reported), frontier-model work is consolidating under a Frontier Model Research effort led by Pieter Abbeel, and Nova Act remains a shipped product. Ask your recruiter which AGI team the role sits in
- Forward Deployed Engineer (AWS Forward Deployed Engineering) - FDE, Senior, Principal and manager roles posted since October 2026 in the US, Berlin, London, Sydney and Melbourne. FDEs embed with customers and own production AI systems: monitoring, evaluations, guardrails, CI/CD and rollback, with 30-50% travel. Basic qualifications include "agentic and spec-driven development" plus eval frameworks, agent tooling, RAG and prompt engineering. A Model Customization and Optimization variant covers SFT, preference optimization and RL on open-weight models. US Government variants require an active TS/SCI clearance
- Solutions Architect / Prototyping Architect (GenAI specialist) - customer-facing AWS pre-sales roles, adjacent to the FDE track
- Data Scientist - analytics-leaning, separate loop
The interview loop
Public confidence here is high: Amazon documents its process (including official applied-scientist and SDE prep pages), and thousands of candidate reports are broadly consistent. Exact round count varies by level and org.
| Stage | Format | What's evaluated |
|---|---|---|
| Recruiter screen | 15-30 min | Fit, level calibration, timeline |
| Online assessment | Coding tasks + work-style simulation; mainly SDE-track and junior roles. Some SDE/MLE assessments now include an AI-assisted task: work in a small repository, typically starting from failing tests, alongside an interactive AI assistant instead of a second standalone algorithm problem (rollout reported as uneven by team, still seen in 2026 reports) | DS&A correctness, LP-aligned judgement; on the AI-assisted variant, how you direct and verify the assistant |
| Technical phone screen(s) | 1-2 × ~60 min, shared editor; for Applied Scientist, with a senior scientist/leader (official) | Coding, ML fundamentals (metrics, evaluation), 1-2 LP questions |
| Onsite "loop" | 4-6 × 55-60 min back-to-back, virtual or in person; 4 interviews is the official applied-scientist shape | See below - every round includes assigned Leadership Principles |
| - Coding round(s) | 1-2 rounds, classic DS&A; AGI loops add ML coding (implement a model component) (reported, varies) | Working code, complexity analysis, testing instincts |
| - ML breadth + ML depth | Science-track and AGI loops: fundamentals sweep, then deep dive in your specialty; heavy modern LLM-training content reported for AGI | Real understanding vs. buzzwords |
| - System design / ML system design | SDE II+ and all senior roles | Scale, multi-tenancy, tradeoffs, operational excellence |
| - Science application / tech talk | Applied-scientist loops: applied problem or presentation of your own work (official + reported) | Research-to-product judgement |
| - Bar Raiser round | One interviewer from outside the team, veto power (official) | LPs under deep probing; overall hiring bar |
| Debrief → offer | Interviewers vote; Bar Raiser must agree | - |
Typical end-to-end timeline reported publicly: 3-6 weeks. AGI-org loops are reported to weight behavioural questions lighter and ML depth heavier than standard Amazon loops (reported, varies).
What they emphasise
- Leadership Principles, operationalised. Not culture-fit vibes - a scoring rubric. The most commonly probed LPs in engineering loops per public reports: Customer Obsession, Ownership, Dive Deep, Invent and Simplify, Have Backbone; Disagree and Commit, Deliver Results. Answers must be first-person ("I", not "we"), specific, and quantified.
- Dive Deep as a technical signal. Interviewers push past your first answer: why that data structure, why that consistency model, what exactly was the root cause. Vague seniority reads as a red flag.
- Operational excellence. AWS teams live on-call: expect debugging scenarios, p99 thinking, blast-radius reduction, rollback-first instincts. Knowing what a metric/alarm/runbook culture looks like is a differentiator.
- Scale and multi-tenancy by default. Design answers that ignore noisy neighbours, throttling, quotas, and per-tenant isolation miss the core of what AWS builds.
- Frugality applied to GPUs. Cost-per-token and right-sizing model choice is an Amazon-flavoured design axis; "use the biggest model everywhere" is the wrong answer.
- For AGI: modern LLM literacy. Candidate reports describe questions on training techniques, evaluation (including perplexity and preference-based evals), and data quality - closer to a frontier-lab loop than a classic Amazon one.
Representative questions
Representative questions synthesised from this company's publicly known focus areas and role descriptions - not leaked questions.
1. Tell me about a time you disagreed with your team's technical direction. What did you do?
Answer
This targets Have Backbone; Disagree and Commit - a heavily probed LP. Structure with STAR and keep the Action section longest.
Strong answer shape: (S/T) a concrete decision with real stakes - e.g., the team wanted to fine-tune a model where you believed retrieval would be cheaper and easier to update. (A) You disagreed with data: built a quick eval set, benchmarked both approaches, presented cost and latency numbers, and escalated respectfully when the first conversation didn't land. (R) Either you changed the decision - quantify the outcome - or you were overruled and committed fully, without relitigating or sandbagging, and you can say what you learned.
What the interviewer (often the Bar Raiser) is grading:
- Did you disagree with evidence rather than opinion or seniority?
- Did you push at the right level - direct, not passive-aggressive, not a flame war?
- After the decision, did you genuinely commit? "I kept saying I told you so" fails the second half of the principle.
- Is it a real story? They will probe: exact metrics, who was in the room, what you'd do differently. Rehearsed-but-hollow stories collapse under Bar Raiser follow-ups.
Avoid: stories where the disagreement was trivial, where "we" did everything, or where your only action was voicing concern once and going quiet.
Follow-ups: What would you have done if you'd been overruled and then proven right? Tell me about a time you were the one who was wrong.
2. Design a multi-tenant inference platform that serves many foundation models to thousands of customers (Bedrock-shaped).
Answer
Split control plane from data plane immediately - that's the AWS-native move.
Control plane: model catalogue and versioning, tenant onboarding, quotas, per-tenant config (guardrails, logging opt-outs), capacity reservations. Data plane: the request path - authn/authz, per-tenant throttling (token bucket keyed on account + model), admission control, then routing to a model fleet.
Fleet design: each model family gets a pool of GPU workers running continuous batching with paged KV-cache. Two capacity classes mirror the real product: on-demand (shared pools, fair-queued, may queue under load) and provisioned throughput (dedicated capacity for a tenant - strict isolation, predictable latency, higher cost). Scale pools on queue depth and tokens/sec, not CPU.
Isolation is the crux of multi-tenancy: no cross-tenant KV or prompt leakage (clear per-request state), per-tenant encryption of logs, cell-based architecture so one region/cell failure or one abusive tenant has bounded blast radius, and noisy-neighbour control via admission and per-tenant concurrency caps.
Cross-cutting: guardrails/content filtering as a composable layer before and after the model; metering every input/output token for billing; observability split into TTFT, per-token latency, and queue time so you can localise regressions; deployment via canary cells with automatic rollback.
Tradeoffs to name: batching raises throughput but hurts tail latency for streaming; provisioned capacity wastes GPUs at low utilisation but is the only honest latency SLA; model-agnostic APIs limit per-model optimisations.
Follow-ups: How do you handle a 10× traffic spike on one model? Where does prompt caching fit, and what does it leak-risk across tenants?
3. Design an enterprise assistant that answers questions over a company's internal documents, respecting per-user permissions (Amazon Q Business / Quick-shaped).
Answer
This is enterprise RAG where ACL enforcement is the hard requirement, not retrieval quality.
Ingestion: connectors (SharePoint, S3, Confluence, Jira...) pull documents and their ACLs. Chunk, embed, and index - but store principal lists (users/groups) as metadata on every chunk. Sync ACL changes on a short schedule; a revoked permission must propagate quickly, so treat ACL sync as a separate, faster pipeline than content re-indexing.
Query path: authenticate the user, expand their group memberships, then filter retrieval at query time by ACL metadata - never rely only on index-time filtering, because permissions change between crawls. Hybrid retrieval (BM25 + dense) with a reranker; pass only permitted chunks to the LLM with citation markers.
The failure mode to call out explicitly: the model must never see a document the user can't see. If it enters the context window, no prompt instruction reliably keeps it out of the answer. Filtering must happen before generation - this single sentence signals you understand the security model.
Answer quality: require citations, run a groundedness check (is each claim supported by a retrieved chunk?), and return "I don't know" when retrieval confidence is low - hallucinated answers about HR policy are worse than none.
Evaluation: per-connector golden question sets, retrieval recall@k, groundedness/citation precision via calibrated LLM-judge, and a red-team suite specifically for permission leakage (user A asking about user B's restricted docs).
Follow-ups: How do you handle a document whose ACL is broader than its content should be? What changes when the corpus is 100M documents across 50 connectors?
4. Find the top-K most frequent items in a high-volume event stream with bounded memory.
Answer
Start with the exact solution, then show you know when it breaks - that's the Dive Deep signal.
Exact (fits in memory): hash map of counts + min-heap of size K. O(n log K) time, O(n) space for the map. The map, not the heap, is the memory problem: cardinality of a real event stream (user IDs, queries) can be billions.
Bounded memory: Count-Min Sketch for approximate counts + a K-sized heap of candidates.
import heapq
class TopK:
def __init__(self, k, width, depth, hashes):
self.k = k
self.cms = [[0] * width for _ in range(depth)]
self.hashes = hashes # depth independent hash fns
self.heap = [] # (est_count, item)
self.in_heap = {}
def add(self, item):
est = min(
self._bump(row, h(item) % len(row))
for row, h in zip(self.cms, self.hashes)
)
if item in self.in_heap:
self.in_heap[item] = est
elif len(self.heap) < self.k or est > self.heap[0][0]:
# insert / evict min (rebuild heap lazily in practice)
...
def _bump(self, row, idx):
row[idx] += 1
return row[idx]
Properties worth stating: CMS never undercounts, only overcounts. In one row the expected overcount is at most n/w, so by Markov's inequality the min over d rows is within 2n/w with probability at least 1 − (1/2)^d. The textbook form: width ⌈e/ε⌉ and depth ⌈ln(1/δ)⌉ give error ≤ εn with probability 1 − δ, so memory is a tunable accuracy knob. For distributed streams, CMS sketches merge by element-wise addition, so each shard sketches locally and a reducer merges - this is what makes it production-viable.
Follow-ups: How do you get top-K over a sliding 5-minute window? When would you just use exact counting sharded over hosts instead?
5. Why did transformers displace RNNs for language modelling, and what exactly does the KV cache buy you at inference time?
Answer
Two separate wins. Training: an RNN must process tokens sequentially - the hidden state at step t depends on t−1 - so you can't parallelize across the sequence, and gradients degrade over long ranges even with LSTM gating. A transformer computes attention over all positions at once: full sequence parallelism on accelerators, and any token can attend directly to any other in one step instead of information surviving hundreds of recurrent updates. That's what made scaling to trillions of training tokens practical. Modelling: direct pairwise attention handles long-range dependency better than a compressed fixed-size hidden state.
The cost is attention's O(n²) compute and memory in sequence length, versus O(n) for an RNN - which is why long-context work centres on attention variants (sliding-window, grouped-query, sparse) and better kernels.
KV cache: at generation step t you need attention between the new query and keys/values of all previous tokens. Without caching you'd recompute every layer's K and V for the whole prefix at every step - O(n²) redundant work per token. Caching stores each layer's K,V once, making each new token roughly O(n) attention against cached tensors. The price is memory: cache size scales with layers × KV-heads × head_dim × sequence length × batch, which is exactly why serving systems care about grouped-query attention (fewer KV heads), quantized caches, and paged allocation - KV memory, not weights, is often what caps concurrent batch size on a GPU.
Follow-ups: Why does grouped-query attention shrink the cache and what does it trade? How does prefix/prompt caching relate to the KV cache?
6. Your LLM endpoint's p99 latency doubled after a deploy. The model weights didn't change. Walk me through your debugging.
Answer
Lead with the operational instinct: mitigate before root-causing. If a rollback is safe and the regression is customer-impacting, roll back first - the investigation can proceed against the bad build in a test cell. Interviewers at AWS are explicitly listening for this ordering.
Then decompose. "Latency" for an LLM service is at least three numbers: queue/admission time, time-to-first-token (prefill), and per-token time (decode). Which moved?
- Queue time up: admission control or autoscaling changed - check batch scheduler config, max concurrent sequences, scaling thresholds shipped in the deploy.
- TTFT up: prefill path - longer prompts (traffic-mix shift, not deploy), a tokenizer or prompt-template version change silently inflating input tokens, or prompt-cache hit rate dropped because a cache key changed.
- Per-token time up: decode path - batch size limits changed, KV-cache memory pressure causing preemption/recompute, a runtime/driver/kernel version bump in the container image, or speculative decoding disabled by a config flag.
Also rule out the boring suspects: retries amplifying load (check retry rate - a new timeout can create a retry storm that looks like a latency problem), one bad host or heterogeneous GPU node in the fleet (check per-host p99), and upstream/downstream dependencies (guardrail or logging service slowed down in-line).
Close with prevention: config changes should canary like code, dashboards should split TTFT/TPOT/queue by default, and the finding feeds a blameless COE-style writeup with action items.
Follow-ups: p99 doubled but p50 is flat - what does that tell you? What alarm would have caught this pre-customer?
7. You're training a large model across hundreds of accelerators. Compare data, tensor, and pipeline parallelism - when do you combine them?
Answer
Data parallelism (DP): replicate the model, shard the batch, all-reduce gradients each step. Simplest and scales widest, but requires the model (plus optimizer state) to fit on one device - optimizer state is the killer: Adam in mixed precision costs several times the parameter memory. ZeRO/FSDP fix this by sharding parameters, gradients, and optimizer state across the DP group, gathering shards on demand; this is the default for models that almost fit.
Tensor parallelism (TP): split individual weight matrices across devices - each matmul becomes partial matmuls plus an all-reduce inside every layer. Communication is frequent and latency-sensitive, so TP lives within a node on the fastest interconnect (NVLink, or NeuronLink on Trainium). It's how a single layer too big for one device fits at all.
Pipeline parallelism (PP): assign contiguous layer blocks to different devices; microbatch the input so stages overlap. Communication is small (activations at stage boundaries), so PP tolerates slower cross-node links - but pipeline "bubbles" waste compute at the start and end of each step, so you need enough microbatches to amortise, and interleaved schedules to shrink the bubble.
Combining: frontier-scale training uses 3D parallelism - TP within a node, PP across nodes, DP across the remaining axis - plus sequence/context parallelism for long-context phases. Rule of thumb: use the minimum TP that fits a layer, minimum PP that fits the model, and spend everything else on DP, because DP scales throughput most cheaply.
At hundreds of hosts, checkpointing strategy and straggler/failure recovery matter as much as the parallelism math - mean time between hardware failures becomes shorter than the run.
Follow-ups: Where does gradient accumulation fit? Why does activation checkpointing trade compute for memory, and when is it not worth it?
8. How would you decide an LLM-powered assistant is ready to launch to millions of customers?
Answer
Frame it as a gate ladder, and anchor every gate to a customer-facing metric - that's the Customer Obsession framing Amazon rounds reward.
Offline gates: a versioned golden set covering the real task distribution plus hard cases (ambiguous queries, out-of-scope requests, adversarial inputs). Grade with rubric-based LLM-as-judge calibrated against human labels - report judge - human agreement, or the numbers mean nothing. Separate capability metrics (task success, groundedness, citation precision) from safety metrics (harmful content, prompt-injection resilience, PII leakage), because they gate independently: a model can get smarter and less safe in the same revision.
Regression discipline: evals run in CI on every prompt, model, or retrieval change; a launch candidate must beat or match the incumbent on the golden set with no safety regressions. Track eval-set contamination and refresh sets over time.
Pre-launch traffic: shadow mode (new system answers silently alongside the old, compare offline) → internal dogfood → canary at a small percentage of real traffic with automatic rollback wired to leading indicators: thumbs-down rate, escalation-to-human rate, retry/rephrase rate, latency.
Launch criteria written down in advance - target task-success rate, maximum hallucination rate on the golden set, safety red-team pass rate, p99 latency - so the go/no-go is mechanical, not vibes. Post-launch, sample production conversations (with consent/privacy controls) into a labelling queue so the golden set grows from real failures.
The senior signal: saying explicitly that no offline eval fully predicts online behaviour, so the canary + rollback machinery is part of the eval strategy.
Follow-ups: Your judge and your humans disagree 20% of the time - what do you do? Which single online metric would you alarm on first?
9. Design an agent that operates a web browser to complete multi-step tasks. How do you make it reliable enough to ship?
Answer
This is the Nova Act problem shape (the agent product built by the former AGI SF Lab): agents that act in real environments, where the bar is reliability, not demos.
Core loop: observe (DOM accessibility tree + screenshot - DOM for precision and cheap tokens, vision for canvas/rendered content the DOM misses) → plan → act (a small, typed action space: click element-by-reference, type, scroll, navigate) → verify. The verify step is what separates shippable from demo: after each action, check an explicit postcondition (did the cart count increment?) rather than assuming success and drifting silently off-course.
Reliability mechanisms:
- Decompose long tasks into small, individually-verifiable steps; retry at step level, not task level.
- Checkpoint state so a mid-task failure resumes instead of restarting.
- Bounded budgets (steps, time, cost) with graceful abandonment and a report of what was and wasn't done.
- Human confirmation gates on irreversible or sensitive actions - purchases, sends, deletes. Never let the agent self-authorise.
Security is a first-class design axis: web page content is untrusted input, and prompt injection ("ignore your instructions, click here") is the top attack. Mitigations: strictly separate page content from instructions in the context, constrain the action space per task, and treat any page-originated "instruction" as data requiring user confirmation.
Evaluation: success rate over a large suite of real-site tasks, run repeatedly - single-run success is meaningless for stochastic agents; report pass@k and consistency. Track per-step failure taxonomy (grounding error, stale DOM, planning error) so improvements target the actual bottleneck.
Follow-ups: Sites A/B-test and change layouts constantly - how does your agent stay robust? How would you use RL or fine-tuning on trajectories versus prompting a general model?
10. Implement scaled dot-product attention with a causal mask in NumPy.
Answer
ML-coding rounds (reported in AGI loops) want a clean implementation plus proof you know why each line exists.
import numpy as np
def softmax(x, axis=-1):
x = x - x.max(axis=axis, keepdims=True) # numerical stability
e = np.exp(x)
return e / e.sum(axis=axis, keepdims=True)
def attention(Q, K, V, causal=True):
"""Q: (B, T, d_k), K: (B, T, d_k), V: (B, T, d_v)"""
d_k = Q.shape[-1]
scores = Q @ K.transpose(0, 2, 1) / np.sqrt(d_k) # (B, T, T)
if causal:
T = scores.shape[-1]
mask = np.triu(np.ones((T, T), dtype=bool), k=1)
scores = np.where(mask, -1e9, scores) # not 0!
weights = softmax(scores, axis=-1) # (B, T, T)
return weights @ V # (B, T, d_v)
Points to make unprompted:
- √d_k scaling: dot products of d_k-dimensional vectors have variance ~d_k; unscaled, softmax saturates and gradients vanish.
- Mask with −inf (large negative), not zero: a zero score still gets positive softmax weight; you need it to vanish after softmax.
- Stable softmax: subtract the row max first, or large logits overflow.
- Complexity: O(T²·d) time, O(T²) score memory per head - say that this T² memory is what FlashAttention eliminates by tiling and never materialising the full matrix.
Extension the interviewer often asks for: multi-head - reshape to (B, h, T, d_k/h), attend per head, concatenate, project. Be able to write it without hesitation.
Follow-ups: Modify it for grouped-query attention. How does the causal mask interact with a KV cache at inference (hint: the new token attends to everything cached - no mask needed at decode)?
11. A customer's Bedrock-hosted workload costs too much. Cut inference cost dramatically without unacceptable quality loss - walk me through it.
Answer
Frugality-flavoured design question. The senior move: measure before optimising - get cost per request decomposed into input tokens, output tokens, and model choice; the biggest lever is usually not where intuition points.
Ordered by typical impact:
- Right-size the model per task. Most traffic in a real workload is easy. Route with a cheap classifier or confidence signal: small model (a Haiku/Nova-Lite-class option) for the bulk, large model for the hard tail. This alone is often a multiple-x cost cut. Requires an eval set to prove quality holds - routing without evals is guessing.
- Attack input tokens. Prompts accrete cruft: trim the system prompt, deduplicate few-shot examples, cap retrieved chunks by relevance instead of a fixed k. Prompt caching makes repeated prefixes (long system prompts, shared documents) dramatically cheaper - restructure prompts so the static part is a stable prefix.
- Cap and shorten outputs. Output tokens cost more than input; set max-token limits, ask for terse formats (JSON, not prose), stop sequences.
- Batch the asynchronous work. Anything not latency-sensitive (nightly summarisation, backfills) moves to batch inference, which Bedrock prices at a discount to on-demand for supported models.
- Distill or fine-tune small. If one high-volume task dominates, fine-tune a small model on the large model's outputs for that task - highest effort, biggest durable win.
- Semantic caching for genuinely repeated queries - measure the real hit rate first; it's often lower than hoped.
Wrap with governance: per-team token budgets, cost dashboards, and alarms - otherwise the savings erode in a quarter.
Follow-ups: Which of these would you do first with one week and no fine-tuning budget? How do you prove quality didn't regress?
12. Tell me about your most significant failure. What happened, and what did you change afterward?
Answer
A Bar Raiser staple, targeting Ownership, Dive Deep, and Earn Trust. The trap is picking a fake failure ("I worked too hard"). Pick a real one with real cost - a launch that missed, an outage you caused, a model that regressed in production.
Structure that works:
- Situation/Task: stakes stated plainly, with numbers. "I owned the ranking model powering X; a bad deploy degraded conversion for N hours."
- Action (the longest part): what you did in the moment - detection, mitigation, communication - told honestly, including what you got wrong. First person throughout.
- Root cause, Amazon-style: show five-whys depth. Not "the config was wrong" but "the config was wrong because nothing validated it, because our deploy pipeline treated config as data, because we'd never treated config changes as code changes."
- Result + mechanism: what changed structurally, not just "I learned to be careful." Amazon's culture explicitly prefers mechanisms over good intentions: the validation you added, the canary stage you introduced, the runbook or alarm that now exists. If you wrote a blameless postmortem and drove its action items, say so - that maps directly to Amazon's Correction of Errors practice.
What gets probed: whether you take real ownership (blaming a teammate or "the process" fails Earn Trust), whether your root cause survives three more "why"s, and whether the mechanism actually stuck. Quantify the recurrence: "zero repeats in the following year" is the ending they want.
Follow-ups: What signal existed before the failure that you missed? How did you communicate it to your customers or leadership?
13. You get a small repository, a set of failing tests, and an AI assistant with guardrails. Walk me through how you work, and how you know the fix is right.
Answer
Treat the assistant as a fast, unreliable collaborator: useful for reading and drafting, never the authority on correctness. What is being assessed is how you direct and verify it, not how much code it produces.
A workflow that holds up:
- Read before prompting. Run the tests yourself, read the failures, and skim the modules they touch. Form your own hypothesis about the bug first. Pasting the failure straight into the assistant hands over the one judgement being measured.
- Ask narrow questions. "What does
parse_windowreturn when end equals start?" is answerable and checkable. "Fix the tests" invites a patch that special-cases the test inputs, the classic failure where the suite goes green and the behaviour is still wrong. - Review every diff as if a stranger wrote it. Is the change in the right layer? Did it weaken an assertion, delete a test, or swallow an exception? Any line you cannot explain yourself, ask the assistant to justify, then check the justification against the code.
- Verify beyond the given tests. Add one or two cases of your own around the boundary the bug lived on, run the full suite rather than the failing subset, and confirm nothing nearby regressed.
- Leave a trail. If the task asks for a summary or notes, state the root cause, what you accepted from the assistant, and what you rejected and why. This is Dive Deep in practice: the reviewer wants evidence you understood the cause, not just that the tests pass.
Common ways to fail: accepting a confident but wrong explanation, letting the assistant rewrite unrelated code, burning time on prompt iteration instead of reading the code, and finishing with green tests you cannot explain.
Follow-ups: The assistant's fix passes every test but you believe it is wrong, with ten minutes left. What do you do? If you were designing this assessment, how would you stop a candidate passing by letting the assistant drive?
14. Leadership wants to track AI adoption across engineering, and someone proposes a token-usage leaderboard. What would you measure instead, and how do you stop the metric becoming the target?
Answer
This is a Frugality, Dive Deep and Insist on the Highest Standards question dressed up as a metrics question. It is topical: Amazon's October 2026 engineering guidance calls token usage, AI-tool adoption and code-change counts "deeply flawed" measures, says tokenmaxxing is at odds with Frugality, and asks leaders to name one task where AI helped and one where it did not, treating work that does not benefit from AI as "a finding, not a failing". CNBC reported that Amazon shut down an internal usage leaderboard in May.
Why the leaderboard fails. Tokens are a cost, not an output. Ranking people on spend rewards long contexts, agent loops left running and regenerating the same answer, which is Goodhart's law with a bill attached. Code-change counts fail the same way: they reward volume, while Invent and Simplify rewards deleting code.
What to measure instead. Measure outcomes at the team level, paired with guardrails:
- Delivery. Lead time from ticket to production, review turnaround and deployment frequency, compared with the team's own baseline before and after adoption, not across teams.
- Quality, so speed cannot be bought with defects. Change failure rate, rollbacks, Sev-2s traced to recent changes, and post-merge defects in AI-assisted code compared with the rest.
- Cost per outcome. AI spend per shipped change or per resolved ticket, so spend that buys nothing shows up.
- Qualitative evidence. Each team writes up where AI helped and where it did not, with an example of each. This is cheap, hard to game, and it spreads what works.
Keeping it from becoming the target. Report at team level only, never as individual rankings. Use the numbers for decisions (which tools to fund, where to invest in better context or tests) rather than for performance reviews. Pair every speed metric with a quality metric. Rotate in a few spot-check deep dives each quarter, because a metric with no audit gets gamed. Treat "AI did not help here" as useful data, so people do not feel pushed to inflate adoption.
In an interview, back it with a story: a time you chose not to use a tool, or measured that it was not helping, and changed course. The Bar Raiser will want to know what you measured and what decision it drove.
Follow-ups: A team's lead time improves 30% but its rollback rate doubles. What do you do? How would you run a fair experiment to decide whether a new coding agent is worth its cost? Tell me about a time you pushed back on a metric your leadership wanted.
How to prepare
Priority order for this repo, given Amazon's loop shape:
- 11-ai-system-design - the highest-leverage dir. AWS design rounds are extreme-scale and multi-tenant by default; practise saying "control plane vs data plane," "cell-based isolation," "throttling and admission control" naturally. Closest case study: 01-enterprise-rag-assistant (this is Amazon Q Business, now succeeded by Amazon Quick, almost exactly - permissions-aware enterprise RAG); also do 02-ai-code-assistant if you're targeting Q Developer or Kiro.
- 12-coding-challenges - Amazon keeps classic DS&A rounds more than any frontier lab. Heaps, graphs, design-a-cache, streaming problems.
- 01-ml-and-dl-foundations + 02-llm-fundamentals - the ML breadth round is a real filter, and AGI loops go deep on attention, KV caching, training techniques, and evaluation metrics.
- 08-inference-and-production - batching, KV-cache memory, quantization, latency decomposition. This is AWS's home turf; shallow answers here hurt more than anywhere else.
- 07-evaluation-and-observability - launch gates, LLM-judge calibration, canary/rollback thinking pairs directly with Amazon's operational culture.
- 04-rag-and-retrieval and 06-agents-and-tool-use - Bedrock Knowledge Bases/Agents, Q, AgentCore and Strands, and Nova Act's agent focus make both fair game.
Company-specific moves:
- Write your LP stories first. 8-10 STAR stories, quantified, first-person, covering at minimum: Customer Obsession, Ownership, Dive Deep, Invent and Simplify, Have Backbone/Disagree and Commit, Deliver Results, and a genuine failure. Practise them aloud - Bar Raiser follow-ups destroy stories you've only written down.
- Build something small on Bedrock. A weekend RAG or agent project using Knowledge Bases and Guardrails teaches you the platform's real seams (provisioned vs on-demand throughput, model routing, guardrail layering) - exactly the vocabulary of their design rounds.
- Read the official prep pages for your track on amazon.jobs ("how we hire," the applied-scientist interview-prep page) - Amazon is unusually explicit about what it grades.
- Skim the AWS Machine Learning Blog and Amazon Science blog for posts from your target team (Bedrock, AgentCore, Quick, Kiro, Nova, Trainium/Neuron) - referencing their actual architecture posts lands well and generates good questions for you to ask.
- For FDE loops: expect the AWS operational bar applied to customer work: be ready to talk through evals, guardrails, CI/CD and rollback for an agent you put into production, and for the Model Customization track, SFT and RL on open-weight models.
- For AGI-org loops: weight prep toward ML depth - modern training techniques, distributed training, data curation, eval design - and expect fewer behavioural questions than a standard Amazon loop (per candidate reports; still prepare LP stories).
Compensation data for Amazon is on levels.fyi.
Sources
- Amazon official: Applied Scientist interview prep - official loop shape (phone screen + four 55-min interviews), STAR guidance
- Amazon official: Leadership Principles - the 16 LPs interviewers grade against
- Amazon official: AGI team page - AGI org scope
- Amazon AGI Labs - AGI SF Lab, agents focus
- Amazon Science blog: Amazon opens new AI lab in San Francisco - SF Lab mission and hiring (historical; the site had closed by late July 2026, as reported)
- TechCrunch: Amazon forms an AI agent-focused lab led by Adept's co-founder - AGI SF Lab background
- Dataford: Amazon AI Engineer interview guide - loop stages, Bar Raiser, evaluation areas
- IGotAnOffer: Amazon Machine Learning Engineer interview - MLE loop structure (surfaced in search; page body not fully retrievable at review time)
- Publicly shared candidate reports on 1Point3Acres (e.g., AGI ML onsite, AGI SF Lab ML coding and design) - AGI loop shape: coding, ML breadth/depth, science application; heavier LLM-training content, lighter behavioural (reported)
- About Amazon - How Amazon is using AI in hiring - official newsroom coverage of AI-assisted assessment elements
- techinterview.org - AI tool policy tracker (2026) - third-party tracker; Amazon live rounds no-AI, selected SDE assessments pairing a conventional problem with an AI-assisted repository task
- PracHub - Amazon SDE interview: AI coding assessment - single candidate report of the repository-plus-failing-tests AI task
- AWS docs - Amazon Q Business availability change - official; Q Business closed to new customers from 31 July 2026, Amazon Quick recommended as successor
- The Register - Jassy taps Peter DeSantis to run AGI org (December 2025) - AGI, Nova, and custom silicon combined under one leader
- GeekWire - Head of Amazon's AGI lab is leaving (2026) - AGI SF Lab leadership change (surfaced via search)
- Neowin - Amazon reportedly winds down most Nova models in AGI strategy overhaul - reported Nova roadmap narrowing and AGI-group cuts; Nova 2 Lite, Nova 2 Sonic, Nova Forge, and Nova Act stay available (surfaced via search)
- The Next Web - Amazon winds down Nova models, shifts to Frontier Model Research (July 2026) - SF AGI site closure (citing GeekWire), Pieter Abbeel leading FMR, which Nova products stay
- About Amazon - The software engineer role guideline in the AI era (October 2026) and The Next Web on the tokenmaxxing memo - input metrics "deeply flawed", tokenmaxxing at odds with Frugality
- amazon.jobs - Senior Forward Deployed Engineer, AWS Forward Deployed Engineering - FDE scope, travel, basic qualifications
- AWS - Trn3 UltraServers generally available (December 2025), Neuron docs - TorchNeuron and Cerebras - AWS collaboration (March 2026)
- levels.fyi: Amazon - compensation data