Retail / cloud · Interview pack

Amazon data interview pack

28 written questions with answers, the loop shape people report for Amazon, and 5 SQL coding labs to practise. Built from DataLane's original question bank and publicly discussed interview themes, not leaked exams. Last editorial update 2026-06-28.

What is in this pack

Questions by topic

  • SQL3
  • Coding2
  • Data modeling1
  • Streaming2
  • Warehouse1
  • Cloud14
  • System design2
  • Data quality1
  • Behavioral2
  • SQL coding labs5

8 easy · 15 medium · 5 hard

Rounds (2)

  1. SQL
  2. AWS data

Themes: Scale, S3 layout, Glue vs EMR

Free with a DataLane account

The first 3 questions are below. Sign in (free, no plan needed) to read all 28 and download the pack as a PDF.

Sign in free to download

Free preview

  1. 1. SQL · easy · SQL

    Write top-3 orders per country. What breaks if you use RANK() instead of ROW_NUMBER()?

    RANK() (and DENSE_RANK()) ties share a rank, so you can return more than three rows when amounts match. ROW_NUMBER() always returns exactly N. Say when you want ties (leaderboard) versus a hard cap (sample / pagination).

  2. 2. SQL · medium · SQL

    A query is correct but scans last year. How do you prove partition pruning?

    Read the plan / bytes scanned / partitions assigned. Add the partition column to the filter (or clustering). EXPLAIN or the warehouse profile — not a guess.

  3. 3. SQL · hard · SQL

    EXPLAIN says Hash Join. When do you want Nested Loop instead?

    When one side is tiny and indexed (point lookups), nested loop + index can beat building a hash. Warehouse SQL usually hashes; OLTP Postgres often nested-loops. Say “probe side size,” not “hash is always faster.”

25 more questions and 5 SQL labs are in the full pack.

Sign in free to unlock →

Search DataLane

↑↓ navigatealt ↑↓ jump group↵ openesc close