Data Engineer · interview questions

Data Engineer interview questions: how you'd do it

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

Data Engineering Core 7

  1. Most asked How do you implement incremental extraction, and what can go wrong?
  2. Most asked How do you deduplicate events, and what does 'exactly-once' really mean?
  3. Most asked How do you monitor data pipelines beyond job success?
  4. How do you run a safe backfill of two years of data?
  5. How do you make sure readers never see a half-loaded table?
  6. How would you reduce a data platform's warehouse bill?
  7. How do you handle late-arriving and out-of-order events in a streaming pipeline?

PostgreSQL Core 9

  1. Most asked How do you read EXPLAIN ANALYZE output in PostgreSQL?
  2. Most asked How do you build a job queue on PostgreSQL with SELECT ... FOR UPDATE SKIP LOCKED?
  3. Most asked How do you prevent lost updates in PostgreSQL under READ COMMITTED?
  4. How do you find the queries that cost the most in PostgreSQL?
  5. How do you make LIKE '%term%' searches fast in PostgreSQL?
  6. How should you store money in PostgreSQL?
  7. How do you detect and fix table and index bloat?
  8. How do you implement efficient pagination in PostgreSQL?
  9. How do you upgrade PostgreSQL to a new major version?

Database Concurrency & Scaling Core 12

  1. Most asked How do you choose a shard key for a multi-tenant SaaS?
  2. Most asked How do you rename a column with zero downtime?
  3. Most asked How do you prevent overselling in a flash sale with 50,000 buyers in the first minute?
  4. How would you prevent double-booking a meeting room?
  5. How do you build a reliable job queue on Postgres?
  6. How do you retry a transaction safely after a serialization failure or deadlock?
  7. How do you choose the column order of a composite index?
  8. How would you make webhook processing exactly-once from the database's point of view?
  9. How do you delete 90 days of old events every night without hurting production?
  10. How do you generate unique IDs across database shards?
  11. How do you safely backfill 50 million rows?
  12. How do you design user-facing features on top of eventually consistent data like search indexes?

Messaging & Queues Core 9

  1. Most asked How do you make message consumers idempotent?
  2. How do you guarantee message ordering?
  3. How do you design background job processing for a web application?
  4. How do you evolve message schemas safely?
  5. What should you monitor in a messaging system?
  6. How do you test asynchronous, message-driven code?
  7. How do you implement priority processing?
  8. How do you increase throughput of message processing?
  9. How do you secure message brokers?

Python Developer Recommended 4

  1. How do you profile and optimize Python code?
  2. How do you mock correctly in Python tests?
  3. How do you run external commands safely with `subprocess`?
  4. How do you implement structured logging in Python services?

MySQL Recommended 12

  1. Most asked How do you read EXPLAIN output in MySQL?
  2. Most asked What causes deadlocks in MySQL, and how do you handle them?
  3. Most asked How do you deal with replication lag when reading from replicas?
  4. Most asked How should you store money in MySQL?
  5. Most asked How do you find the slowest queries in a MySQL server?
  6. Most asked How do you delete or update millions of rows safely in production?
  7. How would you shard a MySQL database, and what problems does sharding create?
  8. How do you store and index JSON in MySQL?
  9. How do you manage users and privileges securely in MySQL?
  10. How do you route reads to replicas and writes to the primary?
  11. How would you plan an upgrade to a newer MySQL major version?
  12. How do you choose integer column sizes, and does INT(11) mean anything?

pandas Recommended 1

  1. How do you handle missing data in pandas?

Databases & Transactions Recommended 6

  1. Most asked How do you choose between SQL and NoSQL databases?
  2. Most asked How do you run schema migrations without downtime?
  3. What causes deadlocks and how do you handle them?
  4. How do you read a query plan and optimize a slow query?
  5. How should you back up and restore databases?
  6. How should you test database code?

Was this page helpful?

Report a mistake