Amazon data engineer interview preparation: SQL grain, replay-safe pipelines and data quality
Practise the decisions that make a pipeline trustworthy: define its grain, handle repeated events, reason about late arrivals and prove that the output is usable. Three original questions lead into a worked event-pipeline case and a plan for explaining your own experience.
Try the three-question practice first
Amazon's official data-role preparation page explicitly targets university graduates and interns. It describes data-engineering skills and a route-specific process. We do not apply its stage counts to experienced hires. Your vacancy and recruiting contact determine the actual assessment and interview requirements.
Try three original practice questions
Original Prepti practice, not real or reported Amazon questions. Optional 90-second timing is a practice aid, not an employer test limit. Your score describes these three questions only, not hiring readiness or an employer result. No account needed; the tool runs in this page and sends no answers to a server.
Original Prepti practice, not employer questions. Timing is optional; no answer is submitted automatically.
What Amazon officially says, and the university boundary
Amazon’s university data-role page describes data engineers working on ingestion, modelling, processing and persistence, with scalable infrastructure and distributed storage/compute concepts. It names SQL, ETL, data modelling and at least one scripting or programming language. It also stresses accuracy, availability and the effect of technical choices on analytics and reporting.
The page distinguishes data engineering from business intelligence engineering. Both can involve SQL and business understanding, but a data-engineering answer should explain how trustworthy data reaches its users, not only what a dashboard displays. We link the BIE guide separately so candidates do not mistake two related role tracks for the same interview.
The published university route includes technical and behavioural conversations and recommends reviewing the actual job description with the recruiting contact. Its internship and full-time stage descriptions belong to that university context. We do not promise those rounds for an experienced role. Use the official page for the scope it states, and ask your recruiter about your invitation.
Worked pipeline case: daily orders with duplicate and late events
Original fictional scenario: a retail service emits order events. Network retries can redeliver an event, corrections can update an order, and some events arrive two days after their event date. Analysts want a daily order-value table. Before naming a storage engine, define what a row means and what counts as the latest valid state.
Raw delivery
Preserve the received event and arrival metadata for investigation.
Canonical event
Apply an explicit identity and version rule without losing valid corrections.
Daily output
Aggregate the intended business grain and show completeness limits.
Ask whether the source emits a full order state or a change event. Replaying a full-state snapshot requires different logic from adding every change amount. Ask whether cancellations and refunds change the same measure or belong to separate measures. These questions decide the model; they are not minor implementation details.
A first design could retain immutable raw deliveries, build a canonical order state keyed by order identity and source version, then calculate daily measures from that state. That is one approach, not a universal answer. Explain how it changes if the analyst needs an auditable event history instead of only the current order state.
SQL grain: demonstrate the join before trusting the total
Consider one order with a total value of 90 and three item rows. Joining the order to its items produces three rows containing the order total. Summing that column gives 270, not 90. A syntactically correct query can be wrong because the join changes the grain.
orders: order_id=42, total_value=90 items: (42, item_A), (42, item_B), (42, item_C) joined order totals: 90, 90, 90
State the intended output: one row per order, item, customer or date. If you need item-level revenue, use a defined item-level amount. If you need one order total after a filtering join, consider selecting qualifying order IDs or aggregating to the order grain before the final sum. The right query depends on the business definition and the keys.
Do not use SUM(DISTINCT total_value) as a general repair. Two different legitimate orders can have the same value; removing equal values would undercount them. Test with a tiny dataset containing one multi-item order, one single-item order and two distinct orders sharing the same value. Small counterexamples often expose a modelling error faster than a large production-like dataset.
Replay safety, corrections and late data
A retry is not automatically a second purchase. Define a stable business identity, a delivery identity if needed and a version or correction rule supplied by the source. If two rows share an event ID but carry different payloads, decide whether that is a legitimate correction or a source contract violation. Record and surface the conflict; do not silently choose whichever row arrived first.
For late data, distinguish event date from arrival date. A table grouped by event date may need earlier partitions rebuilt when new events arrive. State the supported lateness, the reprocessing window and the treatment of events beyond it. A backfill should use the same business rules as the regular run so that retrying it does not change the answer for unrelated reasons.
Quality checks should cover the expected invariants: uniqueness at the chosen grain, valid required fields, reconciliation to a source control total where available, and freshness or completeness indicators. A green scheduler status only tells you the job completed its operational steps. It does not prove that all source events arrived or that a join preserved the correct total.
A worked design explanation and a real behavioural example
“I would keep the raw deliveries so we can audit a late correction. The canonical layer would use the source’s stable order identity and version semantics, not delivery time alone. I would calculate daily order value at the order grain, then rebuild affected event-date partitions under a defined late-data policy. Before calling the result complete, I would reconcile counts and values with available source controls and report known lateness. I would test the same batch twice and confirm that its second application does not duplicate the business outcome.”
This is an original fictional answer. For behavioural preparation, bring a real example where you found a data-quality problem or changed a pipeline decision. Describe the situation, your responsibility, the action and the result. Amazon’s university page recommends STAR and connects behavioural questions to Leadership Principles. Explain what you personally did without converting a team’s work into your sole achievement.
Good follow-ups include the missed alternative, the business impact of incorrect data, how users were informed and what prevented recurrence. If a number was estimated, give the basis and limit. Do not invent an incident to make your answer fit the case above.
A practical preparation sequence
- Model: write the source contracts and target grain for the worked case. Define correction, cancellation and lateness assumptions.
- SQL: build the small join counterexample by hand or in a local database. Explain both the wrong total and the corrected query.
- Pipeline: trace normal load, duplicate delivery, correction, late event and replay. Name the expected result for each.
- Reliability: separate job failures from quality failures and define what should alert a human.
- Experience: rehearse one genuine incident or trade-off, including impact and learning.
- Invitation: confirm role level, interview format, permitted tools and any coding environment with your recruiting contact.
Do not try to name every AWS service in one answer. A simple design with clear state transitions and failure handling is easier to evaluate than a diagram whose components have no stated responsibility.
Questions about this preparation guide
Does the official university process apply to experienced data engineers?
Not automatically. The source explicitly covers university graduates and interns. Use your recruiter and vacancy for the experienced-hire route.
Is a data engineer interview the same as BIE?
No. The roles overlap in SQL and data reasoning, but this guide focuses on ingestion, modelling, replay, quality and availability. The BIE guide is linked separately.
Are these actual Amazon assessment questions?
No. They are original Prepti exercises. Their score cannot predict an Amazon result or replace role-specific instructions.
Choose a useful next step
Sources and scope
- Amazon Jobs: university data-role interview preparation
- Amazon Jobs: interview preparation FAQ
- Prepti: Amazon BIE guide, a related but distinct role
Employer statements are limited to the official sources and scopes named above. Cases, questions, plans and worked answers are original Prepti teaching. Do not present fictional examples as your own work or use practice material as unauthorised help during a live assessment.
Correction drill: newest receipt is not always newest business state
Original event fixture: order X has version 1, value 40; version 2 corrects its value to 35; version 3 is a cancellation tombstone. A replay delivers version 1 again after version 3. What belongs in a current active-order total?
Reveal the canonical state
Under this exercise’s rule, versions are authoritative, strictly ordered integers for each order. Version 3 is the latest state, so X contributes nothing to the active total. The late receipt of version 1 must not resurrect it. “Last received wins” would produce the wrong state.
Keep the tombstone or an equivalent version checkpoint so future replays cannot restore an older active record. Preserve raw evidence separately. A same-version conflict with different payloads needs a stated resolution or quarantine rule; arrival order is not automatically a valid answer.
Clarify whether a dashboard is current state or historical booked value. An event-time accounting report may retain a cancellation movement, while a current active-order report removes the order. Neither definition should silently borrow the other’s SQL. Test reruns and partial failure against the exact business meaning.
Explain a business metric before recommending action
Original Prepti practice extension, added November 11, 2026. Fictional inputs, not employer questions or scoring rules.