Sanjaay Gowda T S
All company profiles

COMPANY CONTEXT / 05 IN THE STUDY LIST

Amazon.com, Inc.

Consumer DiscretionaryUnited StatesSystem designSQL & data engineering

Amazon operates retail, logistics, digital services and the AWS cloud-computing business.

Original company-context practice, not verified company interview questions. Use the business setting to explain technical choices clearly.

01 / PRACTICE IN CONTEXT

Two problems to reason through.

Clarify assumptions before reading the model answer. Discuss what would change with different constraints.

Original company-context practiceHard

System design

Reserve scarce stock without overselling

Amazon.com, Inc. · Concept

Original practice scenario: Design a hypothetical marketplace checkout for a product with ten units and heavy concurrent demand. Customers can abandon checkout, retry payment and cancel orders.

Read model answer

Separate stock reservation, payment and order confirmation into explicit states. The inventory invariant must hold under concurrent attempts and repeated callbacks, not just a successful checkout sequence.

Work through it

  1. Use an authoritative per-item quantity with atomic conditional reservation; assign each checkout attempt a stable reservation identity and expiration.
  2. Record payment outcomes idempotently and define compensation when payment succeeds after the reservation expires or fulfillment becomes impossible.
  3. Release expired or cancelled reservations through a recoverable process and reconcile inventory, orders and payments using durable state transitions.

Tradeoffs to discuss

  • Long reservations reduce customer frustration but hide stock from other shoppers; short reservations increase availability while complicating slow payments.

Common pitfalls

  • A client-side countdown is not an authoritative expiration decision.
  • Do not refund or release twice when cancellation, timeout and payment notifications race with each other.
Open full question
Original company-context practiceHard

SQL & data engineering

Count shipped orders without multiplying package rows

Amazon.com, Inc. · Concept

Original practice scenario: A hypothetical fulfillment dataset has orders, order lines, packages and package events. Explain how to calculate distinct shipped orders per day when orders span multiple packages.

Read model answer

Define what shipped means at order grain before joining event tables. One order may have several lines, packages and scans, each of which can multiply the apparent count.

Work through it

  1. Choose the qualifying event and time rule, including whether the order counts after its first package or only after all required packages ship.
  2. Deduplicate package events by event identity, derive the relevant shipment timestamp per package, then aggregate to one row per order.
  3. Join that order-level result to the reporting calendar and group by the declared time zone, preserving unshipped orders for separate completeness controls.

Tradeoffs to discuss

  • First-package and fully-shipped metrics answer different questions; either can be valid if its population and timestamp are explicit.

Common pitfalls

  • COUNT DISTINCT can hide multiplication while leaving sums and timestamps wrong.
  • Handle split shipments, reversed scans and missing package mappings instead of treating every event as a completed order.
Open full question

02 / STRENGTHEN THE FOUNDATIONS

Related technical practice.

Browse company questions

03 / TEST AN APPROACH

Suggested coding exercises.

Exercises selected for these technical tracks. They are independent practice with visible tests and public solutions.

Study list: PwC Global Top 100 companies by market capitalisation, 2026 · 31 March 2026.

Keep learning beyond the interview.

Explore the Learning Hub