Data Engineering Intern Screen: Graduate Skills, ETL Contracts, and Debugging
Easy · Behavioral & Leadership · Data Engineer · Technical Screen
Prompt
In an initial technical screen for a Data Engineer intern / co-op position at Royal Bank of Canada (RBC), respond to the five resume- and pipeline-focused prompts below:
- Academic & career overview: Introduce your technical background, the focus of your current master's degree, and the long-term direction you want your engineering career to take.
- Graduate data-engineering capabilities: Point to concrete technical capabilities gained during your master's coursework that apply directly to designing and operating data pipelines.
- Source-to-target structural drift: Explain how an ETL workflow should reconcile structural mismatches—such as added, missing, renamed, or mistyped columns—between upstream operational feeds and target analytics tables.
- Stage-by-stage quality protection: Detail how you preserve data correctness across the full pipeline lifecycle, from initial feed landing through transformation stages to published tables.
- Debugging a tough pipeline failure: Walk through a challenging defect or reliability breakdown you hit while building a pipeline, covering the underlying fault, your diagnostic steps, and the lasting changes you shipped so that category of failure could not recur.
Scope & Expectations
- Concrete project grounding: Keep every response crisp and specific, drawing on real pipelines you have built rather than listing tool names in the abstract.
- Explicit engineering trade-offs: Weigh competing priorities—such as table freshness versus strict blocking—when describing schema rules and quality controls.
- Measurable verification: Explain clearly how you confirm that your schema policies, quality gates, and bug fixes work reliably in practice.
Step-by-step walkthrough
What this co-op technical screen is really testing
Because this is a co-op / intern Data Engineer screen, nobody expects five years of petabyte-scale production war stories. Across the five prompts, the interviewer is checking four core habits:
- Crisp, structured communication: Can you introduce your background, graduate coursework, and career direction in about a minute without rambling?
- Practical understanding of ETL failure modes: In an ETL (Extract, Transform, Load—pulling raw data from operational sources, cleaning and reshaping it, and loading it into analytics tables) pipeline, do you anticipate missing columns, bad data types, network timeouts, and duplicate loads?
- Correctness over "the script ran": Royal Bank of Canada (RBC) is one of North America's largest banks, where pipelines feed risk models, customer statements, and regulatory reports. Showing that you prefer stopping a job loudly over publishing an unverified financial number is a huge positive signal.
- Methodical root-cause debugging: Can you narrow down a data discrepancy with SQL/logs, fix the underlying mechanism rather than patching rows by hand, and add a check that prevents the whole category of bug from returning?
Anchor all five prompts in one or two real projects
Giving five disconnected examples in a 25-minute screen feels scattered. Pick one real pipeline you built—from a prior internship, research lab, or master's capstone—and reuse it as the backbone across your answers. Be completely honest if your pipeline came from a university capstone; interviewers respect deep ownership of a small pipeline far more than inflated claims.
Notice too that the interviewer expects both engineering trade-offs and concrete verification proof. End both your schema-drift answer and your quality-gates answer with one clear sentence explaining how you prove the control works in practice:
5-Prompt Screen Blueprint: Part 1 (Intro) Present (master's focus) -> Past (prior co-op/degree) -> Future (banking DE) Part 2 (Skills) 2-3 master's skills -> exact project where applied -> concrete speedup/quality win Part 3 (Schemas) Raw-vs-target contract -> rule per change type -> trade-off -> validation check Part 4 (Integrity) Stage-by-stage checks + idempotent writes -> failure action -> validation check Part 5 (Bug Story) STAR: Symptom (%) -> SQL/log diagnosis -> Root cause -> 3 fixes & preventionParts 1 and 2: self-introduction and master's skills
Before reading the sample answers for Parts 1 and 2, review three technical concepts referenced in Part 2:
- Partitioning, shuffle, and broadcast join (in Apache Spark): Partitioning splits a dataset across worker machines; a shuffle redistributes rows over the network during joins or aggregations, whereas a broadcast join sends a small lookup table to every worker so the huge table never has to move over the network.
- Star schema & slowly changing dimension (SCD): A star schema organizes analytics warehouses into central numeric event tables (fact tables) linked to descriptive lookup tables (dimension tables); SCD patterns (such as effective start/end dates) preserve historical accuracy when attributes like store territories or transit routes change.
- Orchestration & backfills: Using a workflow scheduler like Apache Airflow to run tasks in dependency order, retry transient glitches, and execute backfills (reprocessing historical date ranges cleanly).
Part 1 — Self-introduction (~125 words):
I'm currently in the second year of my master's in computer science specializing in data systems, building on an undergraduate degree in statistics and an eight-month data analyst co-op at a retail company. During that co-op, I built my first automated daily pipeline loading point-of-sale CSV files from 200 stores into PostgreSQL for finance dashboards. Realizing I enjoyed making data pipelines reliable even more than building charts pushed me toward data engineering for graduate school, where my capstone ingests live city transit GPS feeds into daily route-reliability tables. Long term, I want to engineer high-trust data platforms that analytics and risk teams depend on, which is why starting in financial data engineering at RBC really excites me.
Part 2 — Graduate capabilities applied to pipelines (~115 words):
Three hands-on skills changed how I build pipelines. First, distributed execution in Spark: learning how shuffles work helped me cut my capstone's daily job runtime from 40 minutes to 12 minutes by using a broadcast join for our small route-metadata table instead of shuffling GPS pings. Second, dimensional data modeling: designing star schemas with Type-2 slowly changing dimensions so historical transit metrics stayed accurate even when city bus routes changed mid-semester. Third, automated orchestration and data testing in Airflow: instead of eyeballing notebooks manually like I used to, I now wire row-count, nullability, and primary-key uniqueness assertions directly into every scheduled run.
Part 3: reconciling structural drift across source and target
A schema is a table's structural contract—its column names, data types, and whether
NULLvalues are permitted. Schema drift happens when an upstream application changes that structure without warning. The cleanest defense is a two-zone design: land raw files untouched in a raw staging zone so you never lose incoming data, then enforce an explicit, version-controlled schema contract when transforming into target tables, routing malformed rows into a quarantine table (an error-holding table that records rejected rows and failure reasons for inspection):Upstream Schema Change Pipeline Action at the Target Boundary ------------------------------------ --------------------------------------------------------------- Extra new column arrives Safe: keep in raw zone; ignore in target until mapped; notify team. Optional column missing Fill target column with NULL/default and log missing-column metric. Required column missing Fail load immediately before touching target table; alert owner. Widening type (INT32 -> INT64) Safe once target column is widened; block until target DDL updates. Narrowing or bad cast ("N/A" -> INT) Cast safely per row; send failures to quarantine; fail job if > 0.1%. Column renamed (e.g. fee -> svc_fee) Appears as "1 missing + 1 unknown column" in the same batch! Halt even for optional columns so values don't silently turn into NULLs.Spoken summary & validation (~95 words):
I separate raw ingestion from target modeling using a declarative schema mapping file listing expected source columns, target types, and required flags. Safe additions land in raw storage while unknown columns stay ignored downstream; breaking changes—like missing required columns, type overflows, or a simultaneous missing-plus-new column pair suggesting a silent rename—halt the target load immediately so we never publish silent
NULLs. Trade-off-wise, strict halting occasionally delays a dashboard, which beats corrupting financial tables. To validate, I assertrows_in == rows_loaded + rows_quarantinedon every run and unit-test synthetic files covering each drift case in CI.Part 4: ensuring data integrity end to end
Ensuring integrity means placing automated gates at every stage rather than checking only at the end, backed by three core primitives:
- Checksum: A file fingerprint (like SHA-256) proving a transferred file arrived intact without mid-transfer truncation.
- Control total: Summary figures sent by the source system (such as expected row count and total dollar sum) used to reconcile completeness and accuracy.
- Idempotent load & upsert: Designing writes so re-running a job produces the exact same table state without duplicates—for instance via an atomic upsert (
INSERT ... ON CONFLICT DO UPDATE, updating existing business keys in place) or atomic partition replacement.
Pipeline Flow & Integrity Gates: [Source] ---> (1. Ingestion) ---> (2. Staging) ---> (3. Transform) ---> (4. Final Table) - File on time - Non-null keys - Unique PKs - Freshness SLA - SHA-256 checksum - Safe type casts - FK joins match - Sum == source - Row count match - Allowed ranges - Dollar balance control total On fail: Abort On fail: Quaran- On fail: Block On fail: Keep old before staging tine / threshold publish snapshot + alertSpoken summary & validation (~95 words):
I layer checks across four stages: file arrival, checksums, and source row counts at ingestion; nullability, type casts, and range bounds in staging; primary-key uniqueness and referential joins during transformation; and dollar-total reconciliation plus freshness checks before exposing final tables. Every write is idempotent and stamped with audit metadata like
load_idandsource_fileso any row traces back to its raw input. For validation, I run duplicate-replay tests in staging to confirm reruns leave row counts unchanged, and treat dollar reconciliation against the source system's control totals as a hard publish gate.Part 5: sample STAR story on debugging a pipeline failure
Below is a realistic first-person STAR (Situation, Task, Action, Result) walkthrough (~355 words) tailored for a Data Engineer intern or co-op screen at RBC:
During my previous data analyst co-op at a retail company, I owned a daily Python and PostgreSQL pipeline loading point-of-sale CSV files from 200 stores into the table powering finance's daily revenue dashboard. Three weeks after launch, finance flagged that dashboard revenue occasionally ran 1% to 3% higher than their accounting ledger, which immediately eroded trust in our numbers.
To isolate the problem, I wrote a SQL query comparing each store's loaded daily sum against the control total printed in the footer of its raw CSV file across the prior 60 days. Fifty-four days matched to the cent; on the other six days, between five and twelve stores had exact duplicate rows for the first portion of their file. Because the raw CSV files on disk had no duplicates, I knew our loader created them. Cross-referencing those six dates against our scheduler logs revealed the smoking gun: every affected run had hit a mid-load PostgreSQL network timeout followed by an automatic task retry.
That exposed the root cause. My loader inserted rows in 10,000-row batches, committing after every batch without a unique key constraint. Whenever a connection dropped at row 25,000, the first 20,000 rows stayed committed; five minutes later, the scheduler retried from row 1 and inserted those first 20,000 rows a second time.
I shipped three permanent fixes. First, I made loads atomic and idempotent: each file now bulk-loads into a temporary staging table and merges into the final table inside a single database transaction using an upsert on
(store_id, register_id, receipt_id, line_number), so a timeout rolls back cleanly and reruns never duplicate rows. Second, I added a file-manifest table tracking SHA-256 checksums so already-succeeded files aren't reprocessed accidentally. Third, I promoted my footer-reconciliation query into an automated gate that blocks dashboard refreshes whenever any store total drifts by even one cent. After repairing the six historical days, we ran four months with zero duplicates—and the gate caught a truncated upstream file before finance ever saw it. At RBC, where duplicate financial records carry real risk, I'd build idempotency and reconciliation in on day one.Handle the technical follow-up probes
Interviewers almost always test whether you truly understand the mechanics of your Part 5 story:
- "Why didn't you just add
SELECT DISTINCTto the finance dashboard query?" Two reasons: first,DISTINCTmasks data corruption in one chart while every other analyst or model querying the table still gets inflated sums; second, as soon as rows carry audit columns likeload_idoringested_at, retried duplicates are no longer identical across every column, soSELECT DISTINCT *stops deduplicating them anyway! - "What if a store sends a corrected full-day file that deleted a voided receipt line?" A pure
UPSERTupdates matching keys and inserts new ones, leaving the deleted line orphaned in the target table. To support full-file restatements cleanly,DELETE FROM pos_lines WHERE store_id = ? AND sale_date = ?andINSERTthe staging rows inside the exact same single database transaction—which also reconciles cleanly against the new file's footer total. - "How did you validate your fix before deploying to production?" Two automated integration tests: (1) load the same sample CSV twice back-to-back and assert both row counts and dollar totals stay identical, and (2) simulate a raised exception halfway through loading and assert the database rolls back to zero partial rows before retry succeeds cleanly.
- "What if the store file's footer control total itself has a rounding bug upstream?" The gate still halts automatic publishing and alerts on-call rather than guessing which number is right—for financial reporting, pausing for human verification beats silently overriding a reconciliation mismatch.
- "Why didn't you just add
Intuition & how it works
Think of an ETL pipeline (Extract, Transform, Load—pulling raw data from operational apps, cleaning and reshaping it, and loading it into analytics tables) like a city water-treatment plant. Raw river water arrives with unpredictable leaves and silt (upstream schema changes), passes through mesh filters and chemical sensors at multiple tanks (stage-by-stage integrity checks), and automatically shuts the main outbound valve rather than pumping dirty water into kitchens if the final purity test fails.
Beginners often stumble in data engineering interviews by treating "my Python script finished with exit code 0" as proof that the data is right. Without explicit rules for schema drift (unannounced upstream changes to column names or types), a renamed column silently fills executive reports with NULLs. And without idempotent loads (writes designed so re-running a failed job produces the exact same table without duplicating rows), a routine network timeout followed by an automatic scheduler retry quietly doubles revenue rows.
Trace how one well-guarded retail pipeline catches bad shapes, survives mid-load retries, and proves accuracy before publishing:
1. Raw Landing: Store CSV arrives -> verify SHA-256 checksum & row count against file footer.
2. Schema Gate: Compare headers against versioned mapping contract -> halt on missing required
columns or suspected renames; route uncastable rows to a quarantine table.
3. Atomic Merge: Load into temp staging, then UPSERT on (store_id, register_id, receipt_id, line)
inside ONE database transaction -> mid-run timeouts roll back with 0 partial rows!
4. Publish Gate: Verify SUM(amount) == footer control total to the cent before refreshing dashboards.
When all five interview answers—your intro, master's coursework, schema rules, integrity gates, and debugging story—draw from this same mental model, an intern or co-op candidate sounds remarkably grounded and trustworthy.
What interviewers look for
- A crisp 60-second introduction: Connecting your academic background, current master's focus, and prior project experience directly to building trustworthy data pipelines.
- Coursework tied to measurable outcomes: Explaining how graduate concepts like Spark broadcast joins (copying a small lookup table to every worker node to avoid shuffling a massive dataset across the network) or star schemas (central numeric fact tables linked to descriptive dimension tables) improved a real project's speed or accuracy.
- Explicit schema-change rules instead of buzzwords: Distinguishing harmless additions (extra columns kept in raw storage) from breaking changes (missing required columns or silent renames that must halt target loads), plus using a quarantine table (a separate holding table for malformed records and error reasons).
- Multi-stage integrity checks with clear failure actions: Pairing ingestion checksums (file fingerprints detecting corruption) and control totals (upstream summary counts/sums) with staging range checks, primary-key uniqueness, and atomic upserts (
INSERT ... ON CONFLICT DO UPDATE). - Concrete validation steps: Answering how you know your solution worked via row-accounting equations (
rows_in == rows_loaded + rows_quarantined), replay tests, and automated reconciliation queries. - Methodical root-cause debugging in STAR format: Narrowing down symptoms with SQL and logs, fixing the underlying transaction/idempotency bug, repairing historical partitions, and adding a permanent guardrail.
Common mistakes
- Reciting every bullet on your resume during the self-introduction: Taking three minutes on coursework lists leaves too little time for technical depth on Parts 3–5.
- Naming tools instead of skills: Saying "I learned Spark, Airflow, and Snowflake" without explaining a single partitioning, modeling, or testing problem you solved with them.
- Answering Part 3 with "I'd enable automatic schema evolution": Blindly auto-evolving schemas lets upstream bugs and renamed columns pollute downstream financial tables with
NULLs or stringified numbers. - Adding data-quality checks that only print log warnings: In financial workflows, a reconciliation check that logs a warning to unread stdout while still refreshing executive dashboards provides zero real protection.
- Forgetting retry safety (idempotency): Scheduled pipelines experience network blips every week; committing partial batches without a transaction or unique key guarantees eventual duplicate data.
- Telling a Part 5 story where the fix was manual: Saying "I deleted the bad rows by hand and re-ran the script" without changing the pipeline code to prevent repeats misses half the prompt.
Follow-up questions
- When a pipeline validation rule trips, how do you decide between halting downstream table updates versus firing a non-blocking alert? Ask what breaks downstream if the questionable data goes live. Anything that could corrupt financial totals, regulatory filings, customer-facing balances, or automated risk models—such as duplicate primary keys, missing required fields, or failed dollar reconciliation—must be a hard blocking check that leaves consumers safely on the prior verified snapshot. Softer statistical anomalies that happen naturally on holidays, like a 25% dip in daily transaction count when dollar reconciliation still matches 100%, should fire an informational alert to the data owner without halting delivery, and noisy warning thresholds should be tuned monthly so engineers never ignore real pages.
- What pre-deployment testing workflow do you run before shipping changes to a transformation job? Layer three fast checks before merging. First, write unit tests feeding tiny synthetic input rows—including nulls, boundary dates, duplicate keys, and bad type strings—into the transformation function and asserting exact output rows. Second, run the updated job against a sample or full snapshot of recent production raw files into an isolated sandbox schema and run a SQL diff comparing row counts, primary keys, and aggregated sums against current production output so every intentional change is verified and zero unintended drift slips in. Third, run the job twice back-to-back on the same input to prove idempotency before merging.
- What draws you to launching your data engineering career inside a major financial institution like RBC instead of a consumer tech company? In consumer analytics, a 0.5% clickstream logging drop rarely hurts anyone, so teams sometimes treat strict data contracts and reconciliation as optional polish. At a major bank, every transaction record affects customer trust, risk calculations, or regulatory reporting, which makes habits like idempotent writes, end-to-end lineage, and automated control-total reconciliation core engineering discipline from day one. Building those habits early at enterprise scale is the strongest foundation a junior data engineer can get.
Follow-up questions
- When a pipeline validation rule trips, how do you decide between halting downstream table updates versus firing a non-blocking alert?
- What pre-deployment testing workflow do you run before shipping changes to a transformation job?
- What draws you to launching your data engineering career inside a major financial institution like RBC instead of a consumer tech company?
Similar questions
- Schema Contracts, End-to-End Pipeline Quality, and Production Troubleshooting
- Technical Pushback, Skill Gaps, and Pairing Decisions
- Pandas Structures, SQL Filtering, and Duplicate Emails
- In-Memory Key-Value Command Processor
- Greenfield Ownership, Two-Way Candid Feedback, Success Metrics, and OpenAI Fit
- Navigating a Principle-Driven Engineering Disagreement