Data Engineer Screen: Schemas, Integrity, Pipeline Failures
BehavioralModel answerLast updated
Answer five data-engineering screening prompts: intro, grad-school skills, source-to-target schema mismatches, end-to-end data integrity, and a STAR story about a pipeline failure.
You are in an early technical screen for an entry-level data engineering position (co-op or internship) at a large financial institution. The interviewer mixes background questions with technical ones. Answer each part concisely, with concrete examples, trade-offs, and a description of how you would check that your approach works.
- Introduce yourself briefly: your background, your current graduate program, and where you want your career to go.
- Which new skills from your graduate studies apply directly to data engineering?
- In an ETL pipeline, how do you deal with differences between the schemas of upstream source systems and the downstream target tables?
- How do you protect data integrity across the whole pipeline, from ingestion to the final published tables?
- Tell me about a hard problem you hit while building a data pipeline. Cover the root cause, how you diagnosed it, and what you changed so the same kind of problem would not recur.
Answer as a strong candidate would, in roughly 60 to 90 seconds per part.
Hints
Hint 1
For the technical parts, use the pattern: principle, then concrete mechanism, then how you would verify it works.
Hint 2
For schema differences, separate planned mapping (renames, type casts, code translations) from unplanned drift (new, dropped or retyped columns), and give each a different policy.
Hint 3
For integrity, walk through the pipeline stage by stage: ingestion, transform, quality checks, reconciliation, load, monitoring. Say that failed checks should block publication.
Hint 4
For the story, choose a bug with a non-obvious cause (duplicates from retries, timezone shifts, late data, silent truncation) and end with a preventive control plus a metric showing it worked.
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
What the interviewer is looking for
- Clear communication: each answer fits in 60 to 90 seconds.
- Real hands-on experience: your claims survive follow-ups such as "how many rows?", "which tool?", "why not X?".
- Engineering judgment: idempotency, reconciliation, schema evolution and observability.
- Fit for a regulated industry: correctness, auditability and controls matter more than raw speed.
Use a compressed STAR structure (Situation, Task, Action, Result) for experience questions, and principle, mechanism, validation for technical ones.
1. Self-introduction (about 60 seconds)
Go past, present, future, and tie it to the role.
"I studied [field] as an undergraduate and first worked with data on [project or internship], where I built a Python job that loaded transaction logs into PostgreSQL for reporting. I'm now in a master's program focused on distributed processing and databases. Long term, I want to build reliable, well-governed data platforms. Finance interests me because data quality directly affects customers and regulatory reporting, which is why this role fits."
Avoid reciting the whole resume or giving a vague goal like "I want to learn a lot".
2. Skills from the graduate program
Pick two or three skills, each with a concrete artifact and why it matters.
- Distributed processing: "In a course project I processed about 50 GB with PySpark. I learned about partitioning, avoiding shuffles and broadcast joins. Repartitioning by date cut runtime from 40 to 12 minutes."
- Data modeling and SQL: "I designed a star schema and used Type 2 slowly changing dimensions to keep history, which supports auditability."
- Orchestration: "I built an Airflow DAG with retries, sensors and backfills, writing Parquet to object storage."
Avoid buzzword lists and ML-only answers for a data engineering role.
3. Schema differences between source and target
Cover both planned mapping and unplanned drift.
- Explicit mapping layer. Keep a version-controlled source-to-target mapping (config or dbt models) recording renames, type casts (string to
DATE, money asDECIMAL(18,2), never float), unit conversions and code translations. Do not hard-code it in jobs. - Raw/staging zone. Land data as received with metadata (
ingest_ts,source_file,batch_id), then transform into typed, conformed tables. If the mapping changes, you reprocess without re-pulling from the source. - Drift detection. Compare the incoming schema with the expected one on every run, with a policy per change type:
- Additive (new nullable column): allow and alert, optionally using Delta or Iceberg schema merge.
- Breaking (dropped column, narrowed type, renamed key): fail fast and quarantine the batch rather than load silently.
- Dead-letter table. Rows that fail casting go to a reject table with a reason code. They are never silently dropped.
- Upstream agreements. Use data contracts or a schema registry (Avro or Protobuf with compatibility rules) so breaking changes are caught before release.
Trade-off: automatic evolution keeps pipelines running but can let bad changes through. I would use strict enforcement on critical tables and permissive evolution only in raw zones.
Validation: unit tests for mapping logic, a test file with an added column and a changed type to confirm the pipeline alerts or fails as designed, and per-run monitoring of reject counts.
4. End-to-end data integrity
| Stage | Controls |
|---|---|
| Ingestion | Checksums, expected row counts from control files, dedupe on source keys, record batch_id and offsets |
| Transformation | Idempotent jobs (MERGE on business keys or overwrite by partition) so retries never double-count; no silent NULL coercion |
| Quality checks | Not-null and unique keys, referential integrity, range and enum checks, freshness (Great Expectations, dbt tests, SQL assertions) |
| Reconciliation | Source-to-target row counts and control totals (for example daily sum of amounts) within tolerance; hash totals |
| Load | Write-audit-publish: write to staging, run checks, then atomically swap or publish |
| Observability | Lineage, run metadata, alerts on failed checks and volume anomalies (for example volume 40% below the 7-day average) |
| Security | Encryption, masking or tokenization of PII, least privilege, audit logs |
The key principle: checks must block publication of bad data, not just log it. Consumers should never read a half-loaded or unreconciled table.
Validation: inject known-bad data in a test environment (duplicates, orphan keys, truncated file) and confirm each control catches it. Track incidents caught before versus after consumers see them.
5. A difficult pipeline issue (STAR example)
Choose a real bug with a non-obvious root cause. Example structure:
- Situation: A daily job loaded card transactions from an API into a warehouse table behind a revenue dashboard. Finance noticed some days were about 2% higher than the source system.
- Task: Find why, fix the numbers, and stop it recurring.
- Diagnosis:
- Reconciled totals by day and found only certain days inflated.
- Grouping by transaction ID showed duplicates, all from batches that had been retried after a timeout.
- Root cause: the load used plain
INSERT, and a retry after a partial success re-inserted rows already written. The job was not idempotent.
- Action:
- Replaced the insert with a
MERGEon the transaction ID (alternatively, overwrite by partition). - Backfilled the affected days and re-reconciled them against the source.
- Added a uniqueness test on the key, a daily control-total comparison against the source, and an alert on mismatch above a tolerance.
- Wrote a short runbook and a postmortem.
- Replaced the insert with a
- Result: Totals matched the source again, the new checks caught a later duplicate within one run, and no inflated figures reached the dashboard afterward.
State the lesson: assume any step can be retried, so make every write idempotent and reconcile against the source.
Common mistakes
- Vague claims with no numbers, tools or outcomes.
- Presenting schema evolution as "just let it auto-merge".
- Treating data quality as logging rather than gating.
- A story with no root cause, no prevention, or no way of showing the fix worked.
- Taking sole credit for team work, or blaming others.