ETL vs ELT & Pipelines Questions with Answers

17 practice questions on ETL vs ELT & Pipelines (Data Engineering) with answers and step-by-step solutions. Try 10 samples below, then practise all 17 free in the AptiNest app.

Sample questions

Question 1Easy

In ELT, transformations happen:

  1. Inside the target warehouse after raw data is loaded
  2. In the BI dashboard after each query
  3. On the source database before extraction
  4. On a separate server before loading

Answer: A. Inside the target warehouse after raw data is loaded

Explanation

ELT loads raw data first and uses the warehouse's compute (often with SQL) to transform it.

Step-by-step solution

  1. ELT stands for extract, load, transform.
  2. Raw data is loaded into the target warehouse first.
  3. The transformation then runs inside the warehouse, using its compute, often with SQL, so the answer is option A.

Why the other options are wrong

  • B. A BI dashboard shows results; it does not transform the stored data after each query.
  • C. In ELT the source is not transformed before extraction.
  • D. ELT does not use a separate transform server before loading; that is closer to ETL.

Tip: ELT loads raw data first and transforms inside the warehouse; ETL transforms before loading.

Question 2Easy

In ETL, the "T" step typically includes:

  1. Encrypting the network link
  2. Cleaning, joining and reshaping data
  3. Copying files to tape backup
  4. Provisioning new servers

Answer: B. Cleaning, joining and reshaping data

Explanation

Transform covers type conversion, deduplication, joins, aggregation and business rules.

Step-by-step solution

  1. Transform step in ETL handles data cleaning.
  2. It includes joining different datasets.
  3. Reshaping data to fit target format.
  4. This matches option B exactly.
  5. Final answer: B (Cleaning, joining and reshaping data).

Why the other options are wrong

  • A. Encrypting the network link is security work, not the transform step of ETL.
  • C. Copying files to tape is backup work, not transforming data for the target.
  • D. Provisioning servers is infrastructure work, not the transform step that reshapes data.

Question 3Easy

SQL MERGE (upsert) in a warehouse is used to:

  1. Combine two separate databases into one physical server in a single step
  2. Merge two columns into a single text column
  3. Update matching rows and insert new ones in one statement
  4. Delete every row and reload the whole table

Answer: C. Update matching rows and insert new ones in one statement

Explanation

MERGE compares source and target on a key, updating matches and inserting the rest.

Step-by-step solution

  1. MERGE matches on a key.
  2. Updates matches and inserts new rows.
  3. One statement.

Why the other options are wrong

  • A. Doesn't merge databases.
  • B. Doesn't merge columns.
  • D. Doesn't delete all.

Question 4Easy

A backfill in data engineering is:

  1. Deleting data older than the retention period
  2. Filling NULLs with the column average
  3. Re-running a pipeline for past date ranges
  4. Sending data back to the source system

Answer: C. Re-running a pipeline for past date ranges

Explanation

Backfills populate history after a new pipeline or a logic fix.

Step-by-step solution

  1. A backfill fills in data for past date ranges.
  2. It is used after a new pipeline is added or a logic fix is made.
  3. The pipeline is re-run for the old dates, so the answer is option C.

Why the other options are wrong

  • A. Deleting data older than retention is clean-up, not a backfill.
  • B. Filling NULLs with a column average is imputation, not a backfill.
  • D. Sending data back to the source is write-back or reverse ETL, not a backfill.

Tip: A backfill re-runs a pipeline for past dates to fill in history.

Question 5Medium

A pipeline extracts 2.4 million rows per day. A full monthly backfill of 30 days runs at 40,000 rows per second. How long does it take?

  1. 3 minutes
  2. 30 minutes
  3. 1,800 minutes
  4. 60 minutes

Answer: B. 30 minutes

Explanation

2,400,000 × 30 = 72,000,000 rows;
72,000,000 / 40,000 = 1,800 s = 30 minutes.

Step-by-step solution

  1. Total rows = 2.4 million × 30 = 72 million.
  2. Time in seconds = 72 million / 40,000 = 1,800 s.
  3. Convert to minutes: 1,800 / 60 = 30.
  4. Final answer: 30 minutes.

Why the other options are wrong

  • A. Three minutes is far too short; 72 million rows at 40,000 per second takes 1,800 seconds, which is 30 minutes.
  • C. 1,800 is the time in seconds, not minutes; dividing by 60 converts it to 30 minutes.
  • D. Sixty minutes is double the correct time; 1,800 seconds divided by 60 is 30 minutes.

Tip: Multiply daily rows by days, then divide by speed and convert units.

Question 6Medium

A full refresh reloads a table from scratch each run. When is it a reasonable choice?

  1. When the source system cannot be queried at all
  2. When the job must finish in under a millisecond
  3. When the table is small enough that reloading is cheap and simple
  4. When the table holds billions of rows that change only rarely each day

Answer: C. When the table is small enough that reloading is cheap and simple

Explanation

Full refreshes avoid incremental logic bugs but scale poorly with size.

Step-by-step solution

  1. Full refresh reloads data from scratch, so it's fast for small tables.
  2. Reloading a small table is cheaper and simpler than incremental updates.
  3. Small tables mean less data to process, making full refresh efficient.
  4. This makes full refresh reasonable when the table is small enough.
  5. Final answer: When the table is small enough that reloading is cheap and simple.

Why the other options are wrong

  • A. If the source cannot be queried, a full refresh cannot run either, so this is not a reason to use it.
  • B. Finishing in under a millisecond is not realistic for reloading data, so this is never a reasonable reason.
  • D. Billions of rows that change rarely is where incremental loads fit better than reloading everything.

Tip: Use full refresh for small, simple tables to save time and effort.

Question 7Medium

A pipeline task is idempotent when:

  1. It always finishes in under one minute
  2. It runs on exactly one machine at a time
  3. It writes its output to a brand-new table with a fresh name each time it runs
  4. Running it twice for the same input gives the same result as running it once

Answer: D. Running it twice for the same input gives the same result as running it once

Explanation

Idempotency makes retries and backfills safe, for example by overwriting a partition instead of appending.

Step-by-step solution

  1. Idempotent means doing something multiple times has same effect as once.
  2. Running task twice with same input must give same output.
  3. This ensures no extra data or errors from repeated runs.
  4. So, running it twice gives same result as once.

Why the other options are wrong

  • A. Finishing in under one minute says nothing about idempotence; the property is about repeated runs giving the same result.
  • B. Running on one machine at a time is about concurrency, not idempotence; the key is repeated-run results.
  • C. Writing to a new table each run creates duplicates rather than the same result, so it is not idempotence.

Tip: Remember: idempotent tasks produce same result on repeat.

Question 8Medium

A daily job appends rows to a table. It fails half-way and is retried. What is the risk, and a common fix?

  1. Wrong data types; cast every column to strings before loading it again
  2. Duplicate rows; overwrite the day's partition or MERGE on a key
  3. Lost rows; disable retries for this job entirely
  4. Slow queries; add more columns to the table

Answer: B. Duplicate rows; overwrite the day's partition or MERGE on a key

Explanation

Appends are not idempotent; partition overwrite or upserts make reruns safe.

Step-by-step solution

  1. Appending rows is not idempotent, so retries cause duplicates.
  2. Overwrite the day's partition to avoid duplicate rows.
  3. MERGE on a key ensures only new rows are added.
  4. This fix handles duplicates from failed retries safely.
  5. Final answer: Duplicate rows; overwrite the day's partition or MERGE on a key.

Why the other options are wrong

  • A. Wrong data types are not the risk here; a retried append creates duplicate rows, not casting errors.
  • C. Disabling retries would not duplicate rows; the risk is duplicates from a retried append, not lost rows.
  • D. Adding columns does not cause duplicates or slow queries in this scenario; the risk is repeated rows.

Tip: Use overwrite or MERGE to avoid duplicate rows from retries.

Question 9Hard

A transformation reads a dimension table while another job is rewriting it, and sometimes sees half-updated data. Which fix is most robust?

  1. Write to a new table or version and swap atomically when complete
  2. Add a sleep of five minutes before every read so the writer can finish
  3. Remove the primary key from the dimension table
  4. Run the reading job twice and keep the larger result

Answer: A. Write to a new table or version and swap atomically when complete

Explanation

Atomic swaps (or transactional table formats) ensure readers see either the old or the new version, never a mix.

Step-by-step solution

  1. Writing to a new table avoids half-updated data during reads.
  2. Swapping tables atomically ensures consistent data for readers.
  3. This method prevents conflicts with ongoing writes.
  4. It works reliably even if the writer takes time.
  5. Final answer: Write to a new table or version and swap atomically when complete.

Why the other options are wrong

  • B. A fixed sleep is fragile, since the writer may take longer; it does not guarantee a consistent read.
  • C. Removing the primary key does not stop half-updated reads; it only weakens the table's integrity.
  • D. Running twice and keeping the larger result does not make the data consistent; it is arbitrary.

Tip: Use atomic swaps for reliable data reads during writes.

Question 10Hard

An incremental load filters on updated_at > last_mark. Which source change will it miss?

  1. Rows with long text columns
  2. Rows updated with a newer timestamp
  3. Rows inserted after the last run finished
  4. Hard-deleted rows, which no longer exist to be selected

Answer: D. Hard-deleted rows, which no longer exist to be selected

Explanation

Deleted rows leave no trace in a query-based extract; soft deletes or log-based CDC capture them.

Step-by-step solution

  1. An incremental load selects rows where updated_at is later than the last mark.
  2. A row that was hard deleted from the source no longer exists, so it cannot be selected.
  3. Rows changed or inserted after the last run do have a newer timestamp and are picked up.
  4. So the change this filter misses is option D, hard-deleted rows.

Why the other options are wrong

  • A. Long text columns do not stop a row being selected by updated_at.
  • B. A newer updated_at is exactly what this filter catches.
  • C. Rows inserted after the last run have a newer timestamp, so the next run picks them up.

Tip: Query-based incremental loads miss hard deletes; use soft deletes or log-based change data capture.

Practise all 17 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all Data Engineering topics · All topics