CertLumen

Free practice questions · Databricks

9 Databricks Certified Data Engineer Associate practice questions, with answers

Exam-style questions from the CertLumen course, spread over the exam's sections by their weights. Each has its answer and why. They're written for practice: never questions from the real exam.

Question 1 · Databricks Intelligence Platform

A data engineering team lands source extracts unchanged into bronze Delta tables, then uses Spark SQL on Databricks compute to build cleaned silver tables and aggregated gold tables. When a business rule changed last month, they rebuilt silver and gold from the retained bronze data. Which pattern is the team using?

  1. AETL — data is transformed in a separate engine before it is loaded, so cleaned data is what reaches the platform
  2. BChange data capture — only rows that changed in the source systems are extracted and loaded into each layer
  3. CELT — raw data is loaded first and transformed in-platform, so tables can be rebuilt from it
  4. DReverse ETL — curated gold data is pushed from the lakehouse back into operational and SaaS systems
Show the answer

C. In ELT, data is extracted and loaded in raw form, then transformed with the target platform's own scalable compute. Keeping the raw (bronze) copy means downstream tables can be rebuilt whenever logic changes or a bug is fixed. This is the standard lakehouse and medallion approach.

Question 2 · Data Ingestion and Loading

A silver job flattens orders with SELECT order_id, item.* FROM orders LATERAL VIEW explode(items) t AS item. Reconciliation shows 1,200 orders in bronze but only 1,150 distinct order_id values in silver. The missing orders have an empty or NULL items array. Which change keeps every order?

  1. AReplace explode with posexplode so that each element keeps its position
  2. BReplace explode with inline, which also returns the struct fields as columns
  3. CUse LATERAL VIEW OUTER explode(items) (or explode_outer)
  4. DAdd WHERE size(items) >= 0 to the query so that orders with empty arrays are kept
Show the answer

C. explode produces no rows for NULL or empty arrays, so those orders disappear. The OUTER variant (LATERAL VIEW OUTER or explode_outer) emits one row with a NULL element instead, which preserves every parent row. The same applies to the other generators: inline_outer and posexplode_outer exist for the same reason.

Question 3 · Data Transformation and Modeling

Before writing a bronze DataFrame to silver, a data engineer must add two columns: source with the constant value 'crm', and ingest_ts with the current timestamp. Which code is correct?

  1. Adf.withColumn('source', 'crm').withColumn('ingest_ts', F.current_timestamp)
  2. Bdf.withColumn('source', F.lit('crm')).withColumn('ingest_ts', F.current_timestamp())
  3. Cdf.withColumns('source', F.lit('crm'), 'ingest_ts', F.current_timestamp())
  4. Ddf.withColumn(F.col('source'), F.lit('crm')).withColumn(F.col('ingest_ts'), F.current_timestamp())
Show the answer

B. withColumn(name, col) takes the new column's name as a string and a Column expression. A constant must be wrapped with F.lit, and F.current_timestamp() must be called to produce a Column. To add several columns at once, withColumns takes a single dict that maps names to Columns.

Question 4 · Data Transformation and Modeling

workspace.dea_lab.customer_updates contains several rows per customer_id, each with an updated_at timestamp. The silver layer needs exactly one row per customer — the most recent one — with all of its columns. Which query is correct?

  1. ASELECT customer_id, MAX(updated_at) AS updated_at FROM workspace.dea_lab.customer_updates GROUP BY customer_id
  2. BSELECT * FROM workspace.dea_lab.customer_updates QUALIFY ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY updated_at DESC) = 1
  3. CSELECT * FROM workspace.dea_lab.customer_updates QUALIFY ROW_NUMBER() OVER (PARTITION BY customer_id, updated_at ORDER BY updated_at DESC) = 1
  4. DSELECT * FROM workspace.dea_lab.customer_updates QUALIFY RANK() OVER (PARTITION BY customer_id ORDER BY updated_at ASC) = 1
Show the answer

B. ROW_NUMBER() assigns 1 to the newest row in each customer partition when ordered by updated_at DESC, and QUALIFY keeps only that row while retaining every column. This window-function pattern is the standard way to keep the latest record per key.

Question 5 · Working with Lakeflow Jobs

A team has an existing Lakeflow Spark Declarative Pipeline that builds silver tables. They want a nightly job that first runs an ingestion notebook and then updates that pipeline. The pipeline should keep using its own serverless compute. How should the second step be configured?

  1. AA notebook task that points to the pipeline's source notebook and runs on the job's serverless compute
  2. BA Run Job task that references the pipeline ID
  3. CA SQL task that runs the CREATE OR REFRESH STREAMING TABLE statements on a SQL warehouse
  4. DA Pipeline task that references the pipeline ID and depends on the notebook task
Show the answer

D. A Pipeline task (pipeline_task with pipeline_id) starts an update of an existing pipeline, and the update runs on the pipeline's own compute. The depends_on entry makes it wait for the ingestion notebook. Pipeline source code isn't meant to run as an ordinary notebook task.

Question 6 · Working with Lakeflow Jobs

A partner uploads CSV files to a Unity Catalog volume at unpredictable times, from zero to a dozen times a day. The data must be processed within a few minutes of arrival, and the team doesn't want compute running when no files arrive. Which trigger should the job use?

  1. AA file arrival trigger on the volume path
  2. BA schedule that runs every minute
  3. CContinuous mode with Auto Loader
  4. DA table update trigger on the bronze table
Show the answer

A. A file arrival trigger checks the volume about every minute and starts a run only when new files appear. Latency is a few minutes, and no compute runs while the location is idle. The run can use Auto Loader with availableNow to process only the new files.

Question 7 · Implementing CI/CD

An analyst relies on the cell outputs, widget values and reviewer comments in a notebook that lives in a Git folder. Which Git folder operation would clear this notebook state?

  1. ACommitting and pushing a change to a different notebook
  2. BCreating a new branch from the current branch
  3. CPulling upstream changes that modify this notebook's source
  4. DSharing the Git folder link with a collaborator
Show the answer

C. A Git operation that changes a notebook's source code overwrites the notebook, which clears its state: cell outputs, comments, version history and widgets. Pull does this, as do merges and rebases that change the file. Commit, push and creating a branch don't change source code, so they keep notebook state.

Question 8 · Troubleshooting, Monitoring, and Optimization

An analyst's query joins a large Delta fact table with a small dimension table, and the SQL text filters the fact table on event_date = '2026-05-01' after the join. EXPLAIN FORMATTED shows the date filter applied at the scan of the fact table, before the join, and only a few of its columns being read. Which component produced this optimization?

  1. ATungsten's whole-stage code generation and off-heap memory management
  2. BAdaptive Query Execution, using shuffle statistics at runtime
  3. CPhoton's vectorized execution engine
  4. DThe Catalyst optimizer, through predicate pushdown and column pruning
Show the answer

D. Catalyst rewrites the logical plan before execution: predicate pushdown moves filters as close to the data source as possible, and column pruning reads only the referenced columns. This lets Delta skip files using their statistics. Because it happens at planning time, it is visible in EXPLAIN output before the query runs.

Question 9 · Governance and Security

A data engineer runs GRANT SELECT ON SCHEMA prod.sales TO bi_team. The bi_team group already has USE CATALOG on prod and USE SCHEMA on prod.sales. Next week another engineer creates the table prod.sales.returns. What access does bi_team have to the new table?

  1. AIt can query the new table, because schema-level SELECT applies to current and future tables
  2. BIt needs its own SELECT grant, because schema grants cover tables that existed at grant time
  3. CIt gains access once the new table's owner runs GRANT … WITH INHERITANCE
  4. DIt can query and modify the table, because SELECT on a schema implies MODIFY
Show the answer

A. Unity Catalog privileges inherit downward: a grant on a schema applies to all current and future objects in it. Because bi_team already has the usage privileges, it can read tables created later without extra grants. SELECT never implies write access.

How ready are you?

Take ten more, weighted like the real exam, and see your score by section and a rough chance of passing. The course has 395 questions and 4 timed practice exams.

Take the free check

About the course · Free study guide · A question a day by email