Data Engineering · Workspace
Interview prep
What interviews ask, mock interviews to practise on, the design problems from across the course and the numbers worth knowing by heart. 8 interview lessons, 16 design problems, 50 key numbers.
Data engineering interviews8
- Interview skills
Data engineering interviews: what companies test
A data engineering loop mixes SQL, modeling, design, coding and behavioural rounds, and each rewards different preparation. Knowing what each round checks lets you spend limited weeks on the work that gets judged. - Interview skills
SQL interview problems: patterns that repeat
Many data engineering interview loops include a live SQL round. The questions look new each time, but most are a handful of patterns in new words, and the score depends on how you handle ties, NULLs and duplicates as much as on whether the query runs. - Interview skills
Data modeling interviews
A data modeling round hands you a business you have never seen and 45 minutes to turn it into tables someone could report from. The same steps that make a model correct at work make the round easy to follow, and skipping one shows up as a number counted twice. - Interview skills
Pipeline design interviews: a framework
A pipeline design round asks you to move data from a source to its readers in under an hour. Interviewers learn most from how you keep the numbers right when things go wrong, so a plan for the time leaves room to show that. - Interview skills
Spark and streaming interview questions
Spark and streaming questions usually arrive as symptoms: a stage that won’t finish, executors that keep dying, counts that are too high. Answering them well is the same skill as debugging the job at work: name the mechanism, check it, fix it, and say what the fix costs. - Interview skills
Common mistakes in data engineering interviews
Most rounds are lost on a gap, not on missing knowledge: a rerun that doubles a total, or a report that changes after it was sent. A short self-check finds those gaps before the interviewer does. - Mock interview
Mock interview: designing a clickstream platform
A clickstream platform is a common prompt in data engineering design rounds, because it puts a high event rate, a live reader and an exact nightly reader on one stream. This mock shows a full 45-minute round on Kartly’s clicks, with the numbers a strong answer computes and the probes it should expect. - Mock interview
Mock interview: modeling an e-commerce warehouse
Most modeling rounds end up at an online store, because everyone knows what an order is. That makes the round look easy and the mistakes easy to make: one copied column turns a ₹60 crore day into ₹90 crore, and nothing errors.
Design problems 16
- Module 1 · Data engineering fundamentals
Design: a first analytics pipeline for an online store
Most data engineers build a pipeline like this one in their first months: one database, one nightly job, one report someone reads every morning. The decisions in it, fixed windows, reruns that replace, checks before publishing, are the same ones every larger pipeline rests on. - Module 3 · Python for data engineering
Design: a script that loads daily sales files
Partners, banks, couriers and marketplaces still send data as daily files. A loader for them looks like ten lines of Python, and most of the real work is deciding when a file is complete, what it replaces, and what happens when it is wrong. - Module 5 · Data modeling for analytics
Design: a data model for an online store
Each modeling technique is easy to get right on its own. Real models break where the techniques meet: a dimension that keeps history, joined by a load written before it did. Designing the whole model at once, with one key rule and checks between the tables, is what keeps a dozen tables telling one story. - Module 6 · Data pipelines: ETL and ELT
Design: ingesting orders from five sources
Almost every company’s key number comes from more than one place: its own database plus partners, marketplaces or acquired systems. Each one arrives differently, and the report is only as trustworthy as the least reliable of them. - Module 7 · Change data capture and replication
Design: syncing a production database to analytics
Copying a production database into the warehouse is one of the most common jobs a data platform has. Each piece is simple; the design is in making the pieces agree, switching readers over without a gap, and noticing within minutes when the copy stops moving. - Module 8 · Batch processing with Spark
Design: a nightly job over a billion orders
Most companies end up with a few batch jobs that read all of their history every night. Whether those jobs finish on time, and whether their numbers can be trusted after a crash, decides whether the morning report and the models that depend on them are right. - Module 9 · Event streaming with Kafka
Design: a clickstream pipeline for an online store
Most online products send a click stream to a data platform, and the same handful of choices decide whether it survives a sale: the key, the partition count, the acknowledgements, the schema rules, the sink’s files and the alerts. This lesson puts them on one page, so you can defend each one and know what breaks when it’s wrong. - Module 10 · Stream processing with Flink
Design: real-time fraud signals for payments
Fraud checks, rate limits and “too many tries” warnings all need a count that is seconds old, read in a few milliseconds, inside someone else’s request. Building one means choosing where the count is made, where it is stored, and what the request does when either is missing. - Module 11 · Data warehouses
Design: a reporting warehouse for an online store
Most companies end up with one warehouse account that finance, dashboards, analysts and partners all depend on. Each part can be set up correctly and one team’s bad night can still reach everyone, so the account has to be designed as a whole, around who reads it and what each failure would cost them. - Module 12 · Data lakes and lakehouses
Design: turning a data lake into a lakehouse
Most teams don’t build a lakehouse from nothing; they convert a lake that dozens of jobs already read. The table format is the easy part. The work is moving history, keeping every reader right while two copies exist, and being able to step back at any point. - Module 13 · OLAP and real-time analytics
Design: a live sales dashboard for a festival sale
A live screen in front of many people is where streaming, an analytics database and finance’s numbers meet. Each part may work alone, and the screen can still be slow, overloaded or disagree with the official report. This lesson puts the whole path on one page, with what each failure costs. - Module 14 · Orchestration with Airflow
Design: orchestrating a daily reporting pipeline
Most data teams own one DAG that a business reads every morning. Each Airflow setting can be right on its own and the report still be late, so the night has to be designed as a whole, backwards from the reader’s clock. - Module 15 · Transformations with dbt
Design: a dbt project for sales reporting
Most analytics teams end up with one dbt project that feeds the reports the business runs on. Each feature can be set up correctly and the report still be late or wrong, so the project has to be designed as a whole, backwards from the people who read it. - Module 16 · Data quality and observability
Design: a quality system for finance reports
Each quality incident tends to get its own fix, and after a year the fixes run in five tools that never talk to each other. A finance report needs more than many checks: it needs every check to change what is published, reach the person who can act, and leave a record. This lesson puts the whole module into one design. - Module 17 · Governance, privacy and security
Design: a deletion request across every system
A deletion request reaches every system that ever received a copy, including systems run by other companies. Without one record of who must act, what each did and when the bytes are gone, nobody can say the request is finished, and a forgotten copy turns up months later. - Module 18 · Scale, performance and cost
Design: halving a data platform’s monthly bill
Every data team is asked, sooner or later, to cut the bill by a round number. A flat cut on every line breaks the reports people rely on, and a plan built on discounts nobody has quoted misses. This lesson puts the module’s levers into one plan, with the arithmetic shown and the promises it can keep.
Key numbers 50
5 days, keeping at least 1 snapshot
Iceberg’s default snapshot retention when expiring
3,500 write and 5,500 read requests a second
S3 request rate per prefix
$0.025 per GB a month (first 50 TB)
S3 Standard storage price in Mumbai
$0.005 per 1,000 requests
S3 Standard write and list request price in Mumbai
$0.0004 per 1,000 requests ($0.004 per 10,000)
S3 Standard read request price in Mumbai
Up to 10,000 parts of 5 MiB to 5 GiB; objects up to 48.8 TiB
S3 multipart upload limits
1,048,588 bytes (about 1 MiB)
Kafka’s default maximum record batch size
7 days (604,800,000 ms)
Kafka’s default topic retention
1 partition, replication factor 1, min.insync.replicas 1
Kafka’s default partitions and replication
linger.ms 5, batch.size 16,384 bytes
Kafka producer default batching
acks=all, idempotence on
Kafka producer default delivery settings
session 45 s, heartbeat 3 s, poll interval 5 min
Kafka consumer default liveness timeouts
64 MB
Spark’s default target shuffle partition size under AQE
5× the median and over 256 MB
Spark’s default skew join thresholds
0.6 of heap minus 300 MB; half of that protected for storage
Spark’s default unified memory split
Off until an interval is set; exactly-once mode when on
Flink checkpointing by default
X-Small 1, doubling each size to 6X-Large 512
Snowflake credits per hour by warehouse size
60 seconds each time it starts
Snowflake warehouse billing minimum
50 MB to 500 MB of uncompressed data
Snowflake micro-partition size
100,000 to 1 million rows
DuckDB’s preferred Parquet row group size
0.81% standard error, up to 12 KB
HyperLogLog error and size in Redis
32 task instances per scheduler, 16 per DAG run, 16 active runs per DAG
Airflow’s default concurrency limits
30 seconds (default of max_standby_streaming_delay)
How long a PostgreSQL replica waits before cancelling a query that blocks replay
100 (default itersize)
Rows a psycopg server-side cursor fetches per round trip when iterated
8 kB
PostgreSQL’s default page size
The smallest unit PostgreSQL reads; a scan of any column reads every page of the table.
At least 100 MB per partition
DuckDB’s guidance on data per partition
100 (partitioned_write_max_open_files)
DuckDB’s default limit on open files in a partitioned write