Choose your practice level
Choose experience for the scope of responsibility, then difficulty for the reasoning challenge. Filters narrow the existing questions; they do not change or remove the answers.
Fresher: fundamentals and beginner projects. Intermediate: implementation, debugging and optimization. Senior: architecture, scale, cost and technical decisions. Years are suggested study ranges, not eligibility rules; if you fall between ranges, choose by readiness. Difficulty remains an independent filter. These are editorial practice groupings, not employer ratings.
- Fresher (0–1 year): Create synthetic records with stable source IDs and explicit units. Demonstrate duplicate handling, event versus ingestion time and a freshness check independent of run success.
- Intermediate (2–5 years): Process corrections, unknown enum values and quarantined records. Interrupt the consumer between writing output and committing its checkpoint, then explain safe replay.
- Senior (5+ years): Design atomic snapshot publication and a historical backfill alongside live ingestion. Defend ordering, idempotency, resource isolation and rollback/reconciliation rules.
Showing 10 of 10 unique questions.
These are original practice questions, not questions reported from a particular employer. Every scenario below is hypothetical. Use the answers to understand the reasoning, then explain the decision in your own words and connect it to work you actually did.
How to practise
First answer aloud without reading. State the goal, assumptions, proposed approach, checks and trade-offs. Then compare your reasoning with the answer, tackle the follow-up and write down one gap to practise. Aim for a clear two-minute initial explanation; expand when asked. This timing is a practice suggestion, not an interview rule.
Role-based questions and detailed answers
What should a source data contract define?
Show answerHide answer: What should a source data contract define?
Answer: Define record grain, stable identity, field meanings, types, nullability, allowed values and update semantics. Include timing expectations and how deletions or corrections are represented. Agree on validation and ownership when the contract fails. A schema establishes structure, but a useful contract also explains business meaning so technically valid data cannot silently change interpretation.
Hypothetical scenario: A source changes salary from an annual amount to a monthly amount without changing the numeric field type.
Follow-up: Which contract check could detect a semantic change?
Common mistake: Believing type validation alone protects downstream business meaning.
Worked example: Use salary_amount = 80,000 with currency = USD and period = year, not just a numeric salary column. Specify whether null means not supplied and whether source_id identifies an opening or a company. Reject an unexpected period or quarantine the record with a reason. Numeric range alarms may detect a change, but cannot replace explicit unit/version contracts.
What a strong answer demonstrates: Describe record grain, identity, semantics, update/deletion rules and ownership when the contract breaks.
How can incremental ingestion miss corrected records?
Show answerHide answer: How can incremental ingestion miss corrected records?
Answer: A watermark based only on creation time misses records updated after their original ingestion. Understand the source's update guarantees and use a reliable change feed, updated timestamp or bounded lookback with deduplication as appropriate. Reconcile periodically and record checkpoints durably. No watermark strategy should be described as complete without explaining late updates and deletion handling.
Hypothetical scenario: An employer corrects yesterday's job location, but the next run fetches only records created today.
Follow-up: What source capability would make correction capture reliable?
Common mistake: Using creation time as if it also represents every later modification.
Worked example: Record 12 was created Monday and corrected Wednesday. A creation-time query after Tuesday never sees the correction. Prefer reliable CDC/update sequencing; if using updated_at, handle timestamp ties with a stable key or overlapping window and version-aware upserts. Periodic inventory reconciliation is still needed for deletions or missed changes not represented by that feed.
What a strong answer demonstrates: State source guarantees, tie handling and a completeness check instead of assuming a watermark sees every change.
How do you distinguish duplicates from legitimate similar records?
Show answerHide answer: How do you distinguish duplicates from legitimate similar records?
Answer: Choose identity from the source's stable keys and documented business rules, not from title similarity alone. Preserve source IDs and provenance, then define what constitutes an update versus a separate record. Normalize carefully and test collisions. Similar titles can represent different openings, while tracking parameters can make the same underlying URL appear different.
Hypothetical scenario: Two openings share a title and company but have different requisition IDs and locations.
Follow-up: Which evidence would justify merging rather than retaining both?
Common mistake: Deleting all similar-looking rows without a defensible identity rule.
Worked example: Keep (source, requisition_id) as identity when that contract is reliable. Two identical titles with different IDs remain separate openings. For replayed versions of one ID, retain the greatest authoritative version; a URL normalization rule must not drop a query parameter that actually identifies the job. This toy reducer assumes unique, totally ordered versions and no conflicting equal-version payloads.
rows = [('ats', 'R1', 1), ('ats', 'R1', 2), ('ats', 'R2', 1)]
latest = {}
for source, req_id, version in rows:
key = (source, req_id)
latest[key] = max(version, latest.get(key, -1))
assert latest == {('ats', 'R1'): 2, ('ats', 'R2'): 1}
# A real sink also handles payload conflicts, tombstones and concurrent writes.
What a strong answer demonstrates: Defend the identity rule and distinguish deduplication, version updates and fuzzy similarity.
How do you prevent readers from seeing a half-published dataset?
Show answerHide answer: How do you prevent readers from seeing a half-published dataset?
Answer: Stage and validate a complete candidate output before making it visible. Use an atomic commit, version pointer or database transaction appropriate to the storage system. Define the publication boundary and retain the previous valid version for recovery. Successful writing of some files is not equivalent to successful publication of a coherent dataset.
Hypothetical scenario: A dashboard reads the new dimension table while its associated fact table still comes from yesterday's run.
Follow-up: Which versioning approach would let readers select a consistent snapshot?
Common mistake: Publishing each intermediate output immediately without a consistency boundary.
Worked example: Write facts and dimensions under snapshot v18, validate counts/references, then atomically change a manifest pointer from v17 to v18. Readers pin one manifest for the request rather than resolving a new pointer per table. Keep v17 until in-flight readers and rollback needs are satisfied. Partially written v18 files remain invisible before commit.
What a strong answer demonstrates: Define atomic visibility and reader consistency, plus validation and recovery when publication fails.
What makes a schema change backward compatible?
Show answerHide answer: What makes a schema change backward compatible?
Answer: Compatibility depends on actual reader expectations, not only whether a column was added or removed. Optional additions may be safe, while renamed fields, changed units or new enum values can break consumers. Inventory readers, test representative contracts and coordinate migration where necessary. Version semantic changes explicitly rather than relying on permissive parsing to conceal them.
Hypothetical scenario: A new status value passes storage validation but an older consumer treats every unfamiliar value as closed.
Follow-up: How would you test consumers before enabling that value?
Common mistake: Calling every additive change safe without checking reader behaviour.
Worked example: Adding status = ‘review’ breaks a consumer whose else branch means ‘closed’. Introduce the value in test fixtures and run consumer contract tests before enabling it. Readers need explicit unknown-state handling; a staged version migration may be required. A nullable added field can also break SELECT * position-based consumers, so test real readers rather than assuming additive means safe.
What a strong answer demonstrates: Include semantic and behavioural compatibility, migration sequencing and unknown-value tests.
How do event time and processing time differ?
Show answerHide answer: How do event time and processing time differ?
Answer: Event time represents when something happened according to the source, while processing time represents when your system handles it. Arrival can be delayed or reordered. Choose aggregation windows and correction policies based on the business question, preserve relevant timestamps and account for clock quality. A late event should not silently become an event that happened today.
Hypothetical scenario: An offline device uploads yesterday's measurements during this morning's processing run.
Follow-up: Which timestamp should determine a daily activity report?
Common mistake: Grouping by ingestion date when the metric is defined by occurrence date.
Worked example: A purchase occurred at 23:55 UTC Monday but arrived at 00:10 Tuesday. Revenue by occurrence date belongs to Monday, while ingestion monitoring records Tuesday. Store both timestamps with clear zones and define the late-data correction window. A watermark is a processing policy estimate, not proof that no older event will ever arrive.
from datetime import datetime
event_time = datetime.fromisoformat('2026-01-05T23:55:00+00:00')
ingested_at = datetime.fromisoformat('2026-01-06T00:10:00+00:00')
assert event_time.date().isoformat() == '2026-01-05'
assert ingested_at.date().isoformat() == '2026-01-06'
assert (ingested_at - event_time).total_seconds() == 900
# These example daily buckets use UTC; choose/report the business time zone.
What a strong answer demonstrates: Use a concrete late-event example and explain window correction and timestamp/time-zone semantics.
When should a pipeline quarantine rather than discard a record?
Show answerHide answer: When should a pipeline quarantine rather than discard a record?
Answer: Quarantine when a record cannot safely enter the trusted output but can be retained for diagnosis or correction under the applicable data policy. Store the reason, source identity and enough context to replay it safely. Distinguish recoverable data-quality problems from security or retention constraints that require different handling. Monitor quarantine volume so failures do not become invisible data loss.
Hypothetical scenario: A job record contains an invalid location code but otherwise has a valid source identifier.
Follow-up: What information is needed to correct and replay it?
Common mistake: Dropping invalid records silently and reporting the batch as entirely successful.
Worked example: For invalid currency on a source record, store a controlled reason code, source/version and permitted replay context in quarantine. Reconcile total input = accepted + quarantined + explicitly accounted exclusions. Fix the contract or record, replay by stable identity and prevent repeat publication. Do not retain secrets or prohibited personal data merely to make replay convenient.
What a strong answer demonstrates: Make rejection visible and recoverable under retention/access rules, with counts and replay semantics.
Why does a successful scheduled run not prove freshness?
Show answerHide answer: Why does a successful scheduled run not prove freshness?
Answer: A run may complete while the upstream source is stale, pagination is incomplete or no new records were actually consumed. Measure source and output timestamps, expected volumes and checkpoint movement alongside process status. Define freshness relative to the business requirement. Alert on missing progress or delayed data rather than treating an exit code as a completeness guarantee.
Hypothetical scenario: The pipeline reports success but has published the same source snapshot for three days.
Follow-up: Which independent signal would expose the lack of fresh input?
Common mistake: Using scheduler success as the only data-health metric.
Worked example: If the newest source update is 14:00 and the published checkpoint is still 09:00, a run finishing at 14:05 may still serve five-hour-old data. Monitor source-to-publication lag and checkpoint movement, with expected idle periods handled explicitly. Compare volume and source inventory too: one fresh row does not prove complete ingestion.
What a strong answer demonstrates: Separate task liveness, data freshness and completeness using independent signals and actionable thresholds.
How would you run a safe historical backfill?
Show answerHide answer: How would you run a safe historical backfill?
Answer: Define a bounded time range, source snapshot and target identity rules. Estimate resource impact, isolate or throttle the backfill and validate outputs before publication. Make replay idempotent and protect current data from older corrections overwriting newer state. Reconcile counts and changed records, and retain a rollback plan rather than treating a historical rerun as harmless.
Hypothetical scenario: A backfill of last month's records runs alongside today's incremental ingestion.
Follow-up: How would you prevent older versions from replacing newer updates?
Common mistake: Replaying history into production without version ordering or resource limits.
Worked example: Backfill January into a staging snapshot with throttled workers while live ingestion continues. Merge only if the incoming source version is newer than the target; preserve newer corrections and tombstones. Reconcile counts and representative values before promotion, then retain a rollback snapshot. Write amplification and warehouse cost need a budget as well as correctness checks.
What a strong answer demonstrates: Address concurrent version ordering, deletion preservation, resource isolation and a reversible publication boundary.
When should a consumer advance its checkpoint?
Show answerHide answer: When should a consumer advance its checkpoint?
Answer: Advance only when the corresponding output is durably recorded under the chosen delivery semantics. If output and checkpoint cannot share a transaction, use deduplication or an idempotent sink and explain the recovery window. Advancing first can lose records; writing first can replay them after a crash. Correctness requires handling that trade-off explicitly rather than assuming failures occur between batches.
Hypothetical scenario: The process saves its offset and crashes before committing the transformed records.
Follow-up: Which records are at risk, and how could the design prevent loss?
Common mistake: Committing offsets early to make the dashboard appear up to date.
Worked example: For offsets 10–19, write to an idempotent sink and durably commit output before acknowledging offset 19. A crash before acknowledgement may replay the batch, so stable event IDs or versioned upserts must suppress duplicate effects. Advancing first risks permanent loss. When sink and offset store cannot share a transaction, describe this recovery gap explicitly.
What a strong answer demonstrates: Explain the write/ack failure ordering and the receiver's durable deduplication contract.
Turn practice into evidence
Implement an ingestion exercise using synthetic job records with stable IDs, late corrections and duplicates. Keep a raw input log, a quarantine table and a published snapshot. Interrupt processing between stages, replay a batch and verify that totals, identities and correction history remain consistent.
Score each response informally: 0 if you cannot explain it, 1 for a definition, 2 for an approach with checks, and 3 for justified trade-offs plus a failure-recovery plan. This is a self-study rubric, not a validated hiring assessment. Revisit weak answers and never invent project outcomes or experience.
Career roadmap and related jobs
Build the underlying skills with the Data Engineer career guide. For a shorter starting point, read AI interview answer frameworks.
Explore relevant live jobs. Listings are filtered by Data Engineering for AI and can include adjacent roles. Read the employer's requirements and original posting before applying. Use one listing to select the questions most relevant to its responsibilities.
Methodology
Editorial synthesis of cited sourcesAI-assisted original educational practice material. These are not actual employer interview questions, reported interview experiences or hiring guarantees. Answers, hypothetical scenarios, follow-ups and self-assessment advice are original editorial synthesis. Official Google references support background concepts, not endorsements of these answers. Related job recommendations use role-title aliases and, for specialist roles, primary specialization checks. Recommendations are a limited sample; adjacent roles may appear and availability changes. References checked 17 October 2026.
Read our editorial and research policy →Worked examples are original, hypothetical learning exercises, not employer results or production-ready implementations. Code uses the Python standard library; test and adapt it before real use.
Sources
- Dataflow overview
Google Cloud · Checked 17 October 2026
- MLOps: continuous delivery and automation pipelines
Google Cloud · Checked 17 October 2026