Databricks Certified Data Engineer Associate Exam-style mock test
Databricks Data Engineer Associate Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Databricks Lakehouse Platform
A global retail analytics team currently runs a separate data warehouse for BI dashboards and a separate data lake for data science on raw clickstream files. They want a single platform that serves SQL analytics and machine learning directly on the same governed, open-format storage without maintaining two copies of the data. Which characteristic of the Databricks Lakehouse architecture most directly enables this consolidation?
・It stores all tables inside a closed, proprietary columnar warehouse engine that only the SQL query service can read.
Incorrect. The lakehouse deliberately uses open formats on object storage rather than a closed engine, so many tools can read the same data.
✓It layers a transactional layer (Delta Lake) over open files in object storage, so SQL and ML read one governed copy.
Correct. The lakehouse adds a transactional layer (Delta Lake) on open files in object storage, giving one governed copy for both BI and ML.
・It copies every table out of the lake into pre-built cube structures each night so dashboards and notebooks never contend for the same files.
Incorrect. Nightly cube copies recreate the two-copy problem the team wants to eliminate.
・It keeps the data lake and the warehouse as two physically separate systems but synchronizes them nightly with a scheduled batch job to keep records aligned.
Incorrect. Keeping two separate systems in sync is exactly the architecture the team is replacing.
Explanation
A lakehouse unifies warehouse and lake by placing a transactional management layer over open-format files in cloud object storage. This yields a single governed copy that both SQL analytics and ML can consume directly.
Example2 · ELT with Spark SQL and Python
A retail analytics team receives daily CSV files of in-store transactions landing in a cloud object storage path. An engineer wants to run an ad-hoc Spark SQL query that reads the raw CSV files directly from that path without first defining any table or view. Which construct lets the engineer query the files in place?
✓SELECT * FROM csv.`/mnt/retail/transactions/`, using the format-dot-backtick-path pattern to read the comma-delimited transaction files directly in place.
Correct. Spark SQL supports querying files directly with the pattern SELECT * FROM <format>.`<path>`, so csv.`<path>` reads the CSV files in place.
・SELECT * FROM READ_CSV('/mnt/retail/transactions/'), calling a table-valued function to parse the files.
Incorrect. READ_CSV is not a valid Spark SQL table-valued function used for this in-place file query pattern in Databricks.
・SELECT * FROM text.`/mnt/retail/transactions/`, which reads each whole line as one single string column named value.
Incorrect. The text format reads each line as a single string column named value, so it would not parse the delimited columns of the CSV transactions.
・SELECT * FROM EXTERNAL '/mnt/retail/transactions/', using an EXTERNAL keyword prefix to point the query at the raw storage path given.
Incorrect. There is no EXTERNAL keyword used as a prefix this way to query files directly in a SELECT statement.
Explanation
Databricks lets you query files directly using the format.`path` syntax in the FROM clause. For comma-delimited retail transaction files this means csv.`/path/`, which avoids having to register a table or view first.
Example3 · Incremental Data Processing
A global retail analytics team receives nightly files containing updated customer loyalty records in a bronze table 'loyalty_updates'. They must upsert these into the silver table 'loyalty_master' using 'customer_id' as the key, updating existing rows and inserting new ones in a single atomic operation. Which Delta Lake command fits this requirement?
・COPY INTO loyalty_master FROM loyalty_updates, which only appends brand-new file records into the destination table automatically on every single scheduled nightly run here.
Incorrect. COPY INTO ingests files from a path and appends records; it cannot match on a key to update existing rows for an upsert.
✓MERGE INTO loyalty_master USING loyalty_updates ON customer_id, matching the key to UPDATE existing rows and INSERT new ones atomically.
Correct. MERGE INTO matches on customer_id and applies UPDATE on matches and INSERT on non-matches as one atomic transaction, which is exactly an upsert.
・INSERT OVERWRITE loyalty_master SELECT * FROM loyalty_updates, which replaces every stored row with tonight's file.
Incorrect. INSERT OVERWRITE replaces the entire target with the source, destroying customers not present in tonight's file instead of upserting.
・A plain INSERT INTO loyalty_master SELECT * FROM loyalty_updates, which relies on a declared key constraint to reject the duplicate rows.
Incorrect. Delta tables do not enforce primary-key uniqueness constraints, so a plain INSERT would create duplicate customer rows rather than updating them.
Explanation
An upsert that both updates existing keys and inserts new ones in a single atomic step is the defining use case for MERGE INTO. COPY INTO is append-only ingestion, and plain INSERT or INSERT OVERWRITE cannot perform key-based updates without side effects.
Example4 · Production Pipelines
A healthcare analytics team builds a Databricks Job with three tasks: 'ingest_claims' loads raw claims, 'validate_claims' runs quality checks, and 'publish_summary' refreshes a reporting table. The team requires that 'validate_claims' starts only after 'ingest_claims' succeeds, and 'publish_summary' starts only after 'validate_claims' succeeds. How should the team configure the job to enforce this execution order?
・Place all three tasks in separate jobs and chain them using three independent cron schedules spaced a few minutes apart so each one runs after the previous.
Incorrect. Spacing separate cron schedules a few minutes apart does not guarantee the upstream task finished successfully and creates fragile timing-based coupling instead of real dependencies.
✓In one multi-task job, set each task's 'Depends on' field to its own required predecessor task.
Correct. Within a single multi-task job, setting each task's 'Depends on' field to its predecessor creates a dependency graph so a task runs only after its upstream task completes successfully.
・Define the three tasks in one job with no dependencies and rely on Databricks to run them alphabetically by task name in the correct order.
Incorrect. Databricks does not order tasks alphabetically; without explicit dependencies, tasks with no predecessors run in parallel rather than in the required sequence.
・Define all three tasks in one job and set a retry policy on each task so that failed downstream tasks automatically wait for upstream completion.
Incorrect. A retry policy only re-runs a task that fails on its own; it does not establish ordering between tasks or make one task wait for another.
Explanation
Databricks Jobs model execution order through task dependencies. Each task's 'Depends on' setting references upstream tasks, and a task runs only after all of its dependencies complete successfully, producing the required linear sequence.
Example5 · Data Governance (Unity Catalog)
A data engineer at a retail bank queries the daily_balances table, which lives in the risk schema inside the treasury catalog. Which fully qualified name correctly references this table under the Unity Catalog three-level namespace?
✓treasury.risk.daily_balances, naming the catalog then the schema then the table in that order
Correct. Unity Catalog uses the catalog.schema.table order, so treasury then risk then daily_balances is right.
・risk.treasury.daily_balances, which wrongly lists the schema before the catalog
Incorrect. This swaps the catalog and schema positions; the catalog must come first, not the schema.
・daily_balances.risk.treasury, which reverses the order with the table placed first
Incorrect. This reverses the order entirely, placing the table name first instead of the catalog name.
・hive_metastore.treasury.daily_balances, using the legacy two-level metastore instead of the catalog
Incorrect. hive_metastore is the legacy two-level metastore and is not the governed treasury catalog named here.
Explanation
Unity Catalog introduces a three-level namespace of catalog.schema.table, replacing the legacy two-level schema.table model of the Hive metastore.
Example6 · Databricks Lakehouse Platform
A hospital analytics team stores raw HL7 patient admission feeds, cleaned encounter tables, and aggregated readmission-rate reports in one Databricks platform. They want ACID transactions and BI dashboards to run directly on the same storage that holds the raw files, without copying data into a separate warehouse. Which capability of the lakehouse architecture directly enables this single-copy approach?
・A proprietary columnar warehouse engine that ingests the files on a nightly schedule and keeps its own separately governed copy purely for the BI dashboards to query
Incorrect. Maintaining a separate governed copy in a proprietary warehouse is the two-system pattern the lakehouse is designed to eliminate.
✓An open Delta Lake storage layer on object storage that adds ACID and schema enforcement so raw and curated data are queried in place
Correct. The lakehouse adds a Delta Lake transaction layer over open-format files in object storage, giving ACID and schema enforcement so raw and curated data are queried in place without a second copy.
・A streaming message bus that buffers the incoming HL7 feeds until an external relational database finishes loading each nightly batch destined for reporting
Incorrect. A message bus feeding an external database still requires loading into a separate warehouse, contradicting the single-copy goal.
・A row-oriented transactional database that is periodically exported out to flat files so that downstream dashboards can read only the exported point-in-time snapshots
Incorrect. Exporting a row-oriented database to flat files creates duplicate snapshots rather than querying one governed copy in place.
Explanation
The lakehouse combines the low-cost open storage of a data lake with the ACID guarantees and performance of a warehouse by layering Delta Lake over object storage. This lets raw and curated healthcare data live in one copy that both engineering jobs and BI dashboards query directly.
Example7 · Databricks Lakehouse Platform
A logistics company stores raw GPS pings from its delivery fleet in cloud object storage and also runs BI dashboards and ML routing models over curated tables. The platform team wants one architecture that gives them low-cost open storage plus ACID transactions and schema enforcement on the same data. Which approach matches the Databricks lakehouse design?
・Keep a separate warehouse for BI and a separate lake for ML, copying curated tables between them nightly so each tool queries its own copy
Incorrect. Maintaining and syncing two separate systems is exactly the copy-and-drift problem the lakehouse removes, and it duplicates cost and storage.
✓Store all of the fleet GPS data as Delta Lake tables directly on low-cost cloud object storage, so that a single open-format copy with ACID transactions and schema enforcement serves BI dashboards, ML routing, and streaming at once
Correct. The lakehouse stores data in an open format (Delta Lake) on object storage, adding ACID transactions and schema enforcement so one copy serves all workloads.
・Load every GPS ping into a traditional row-store relational database and expose it to ML frameworks through nightly CSV extracts placed back on object storage
Incorrect. A row-store warehouse plus CSV extracts recreates the warehouse-plus-lake split and loses the transactional open-table benefits of Delta.
・Persist the pings only as compressed JSON files and rely on each downstream consumer to enforce schema and concurrency on its own during reads
Incorrect. Plain JSON files have no transaction log or schema enforcement, so concurrent writers and schema drift are left unmanaged.
Explanation
The lakehouse combines the low-cost open storage of a data lake with the ACID transactions, schema enforcement, and governance of a warehouse. Delta Lake is the storage layer that provides these guarantees on object storage.
Example8 · Databricks Lakehouse Platform
A manufacturing data team runs a scheduled nightly pipeline that aggregates sensor readings from a smart factory. The job must spin up compute, run the notebook tasks, and terminate automatically to minimize cost, with no interactive users attached. Which Databricks cluster type should the pipeline use?
・An all-purpose cluster shared by the whole analytics team so that engineers can also attach notebooks and explore the sensor data interactively
Incorrect. All-purpose clusters are meant for interactive, shared exploration and stay up, which wastes cost for an automated nightly batch run.
✓A job cluster, created when the scheduled job starts and terminated when it completes
Correct. A job cluster is provisioned when a scheduled job starts and is torn down on completion, which is the cost-efficient choice for automated pipelines.
・A SQL warehouse configured in serverless mode, because scheduled multi-task notebook jobs always execute on SQL warehouses rather than on clusters
Incorrect. SQL warehouses serve SQL queries and dashboards, not scheduled multi-task notebook pipelines, which run on job clusters.
・A single-node all-purpose cluster left running continuously so the nightly aggregation never has to wait for compute to provision at kickoff time
Incorrect. Leaving an all-purpose cluster running continuously keeps paying for idle compute and is the opposite of the ephemeral job-cluster model.
Explanation
Job clusters are created for a specific job run and automatically terminated afterward, making them ideal for scheduled, non-interactive workloads. All-purpose clusters are for interactive, collaborative development.
Example9 · Databricks Lakehouse Platform
A fleet-logistics engineer edits ingestion notebooks and wants changes tracked in the team's remote repository with pull-request review, branch switching, and the ability to pull teammates' commits directly inside the workspace. Which Databricks feature provides this Git integration?
✓Databricks Repos, which provides native Git integration so notebooks can be versioned, branched, committed, and pulled inside the workspace
Correct. Databricks Repos gives first-class Git integration, letting users clone, branch, commit, push, and pull against a remote provider from the workspace.
・The workspace revision history panel, because every notebook already keeps unlimited local snapshots that fully replace a remote Git provider for the team
Incorrect. Notebook revision history is only local versioning and does not provide branches, pull requests, or integration with a remote Git provider.
・DBFS mounts, which expose object storage so branches and commits can be managed by copying files between folders
Incorrect. DBFS mounts expose object storage for data access and have nothing to do with Git branching or commit management.
・Cluster-scoped init scripts, since they automatically clone the remote repository onto every worker node and keep each notebook synchronized with the branch
Incorrect. Init scripts run setup commands on cluster nodes and are not a mechanism for versioning or synchronizing notebooks with Git.
Explanation
Databricks Repos is the built-in Git integration that supports cloning, branching, committing, and pulling from remote providers like GitHub. Notebook revision history is only a lightweight local snapshot feature.
Example10 · Databricks Lakehouse Platform
A gaming-telemetry engineering team runs scheduled overnight ETL that ingests raw match-event logs and must terminate automatically when the workload completes to avoid idle billing. Which Databricks compute option should they attach to the scheduled workflow?
・An always-on all-purpose cluster the analysts keep attached for interactive daytime notebook work
Incorrect. All-purpose clusters are designed for interactive, shared analysis and keep running (incurring cost) rather than terminating when a scheduled job finishes.
✓A jobs cluster the workflow creates and auto-terminates on completion
Correct. A jobs cluster is provisioned when the scheduled workflow starts and is automatically terminated when the run ends, minimizing idle compute cost.
・A shared serverless SQL warehouse serving the workspace interactive BI dashboards
Incorrect. SQL warehouses serve SQL queries and BI tools, not the notebook/JAR-based ETL tasks of a scheduled data-engineering workflow.
・A pinned single-node all-purpose cluster the cleanup policy never deletes automatically
Incorrect. Pinning an all-purpose cluster keeps it available but does not auto-terminate after a job, so idle billing continues.
Explanation
Jobs clusters are created for a specific job run and terminated automatically when the run completes, which is the cost-efficient choice for scheduled ETL. All-purpose clusters target shared interactive work and remain running.
Example11 · Databricks Lakehouse Platform
A B2B SaaS data team accidentally ran a MERGE that overwrote correct values in the Delta table events_silver one hour ago. They need to inspect how the table looked before the bad write. Which Delta Lake capability lets them query that earlier state?
✓Delta Lake time travel, querying an earlier version with VERSION AS OF or TIMESTAMP AS OF
Correct. Delta time travel uses the transaction log to serve a prior snapshot via VERSION AS OF or TIMESTAMP AS OF.
・A full REFRESH TABLE command forcing Spark to recompute and reload every partition from the latest committed data files
Incorrect. REFRESH TABLE only invalidates cached metadata/files for the current version; it does not expose any earlier version of the data.
・Enabling mergeSchema, which automatically restores previously dropped table columns for you on read
Incorrect. mergeSchema controls how new columns are added on write and has nothing to do with viewing historical table states.
・Calling CACHE TABLE to keep all the historical row copies cached in executor memory
Incorrect. CACHE TABLE stores the current table in memory for faster reads and does not retain historical versions.
Explanation
Delta Lake records each commit in its transaction log, enabling time travel to any retained version by version number or timestamp. This is the mechanism for reviewing or recovering a prior table state.
Example12 · Databricks Lakehouse Platform
A national energy ministry runs its smart-meter analytics on a single Databricks workspace. The data engineering team needs a scheduled nightly ETL run that spins up compute only for the duration of the run and terminates automatically afterward to control the public budget. Which compute choice should they select?
・An always-on all-purpose cluster that analysts also attach interactive notebooks to during the day
Incorrect. An always-on all-purpose cluster wastes budget overnight and is optimized for shared interactive work, not an isolated scheduled run.
✓A jobs cluster on the scheduled Databricks Job, created when the job starts and terminated when it ends
Correct. A jobs cluster is provisioned when the scheduled job starts and is torn down when the job completes, giving ephemeral, cost-controlled compute for ETL.
・A SQL warehouse deliberately set to never auto-stop so that every ministry dashboard remains instantly available at all hours of the day
Incorrect. A never-auto-stop SQL warehouse serves BI queries, not ETL, and never terminating defeats the cost-control goal.
・A manually started all-purpose cluster that an on-call engineer remembers to shut down after confirming the nightly load finished
Incorrect. Relying on a person to manually stop an all-purpose cluster is unreliable and is not the automated, self-terminating pattern required.
Explanation
Jobs clusters are created for a specific job run and terminated automatically when the run finishes, making them the cost-efficient choice for scheduled ETL. All-purpose clusters are intended for collaborative, interactive development and persist until explicitly or idle-terminated.
Example13 · Databricks Lakehouse Platform
A city transit authority stores raw GPS pings from its public buses as Parquet files and wants the open table format that adds ACID transactions and a transaction log on top of those files without migrating to a proprietary warehouse. Which format should they adopt for the lakehouse tables?
✓Delta Lake, which stores data as Parquet plus a _delta_log transaction log to give ACID guarantees on object storage
Correct. Delta Lake layers a JSON-based transaction log (_delta_log) over Parquet data files to deliver ACID transactions on open object storage.
・A classic external Hive table that simply points at the plain Parquet files on disk with no transaction log of any kind ever layered on top of them
Incorrect. A plain Hive-over-Parquet table has no transaction log, so it offers no ACID guarantees for concurrent writes.
・A proprietary columnar warehouse export that locks the GPS ping data into a vendor-specific binary storage engine
Incorrect. A proprietary warehouse export abandons the open lakehouse goal and locks the data into a vendor format.
・A single merged CSV file rewritten in full on every ingestion so that readers always observe one consistent snapshot
Incorrect. Rewriting one CSV fully each load is inefficient, lacks a transaction log, and does not provide transactional ACID behavior.
Explanation
Delta Lake is the open storage layer of the lakehouse: it keeps data in Parquet and adds a transaction log to bring ACID transactions, scalable metadata, and time travel. It avoids both the limitations of plain Parquet/Hive tables and vendor lock-in.
Example14 · Databricks Lakehouse Platform
A travel-booking analytics team currently keeps raw clickstream files in cloud object storage (a data lake) and copies curated aggregates into a separate warehouse for BI dashboards. They want a single platform where both the raw data scientists' workloads and the SQL analysts' dashboards query the same tables, with ACID transactions and schema enforcement directly on object storage. Which capability of the Databricks lakehouse architecture lets them achieve this without maintaining two disconnected systems?
✓A transactional metadata layer (Delta Lake) that adds ACID guarantees and governance to open-format files in object storage
Correct. The lakehouse uses Delta Lake to add a transactional metadata/storage layer over open-format files in object storage, giving ACID transactions, schema enforcement, and governance to one shared copy of the data.
・A proprietary columnar database engine that replaces cloud object storage and must first ingest every file into its own internal binary format before querying
Incorrect. The lakehouse does not replace object storage with a proprietary internal format; it works directly on open files such as Parquet in the customer's cloud storage.
・An ETL scheduler that nightly exports warehouse rows back into the lake to reconcile the two copies
Incorrect. Reconciling two separate copies via nightly ETL is exactly the two-system problem the lakehouse eliminates, not how it unifies the workloads.
・A caching tier that keeps a read-only duplicate of the warehouse in memory for analysts while scientists continue to use the lake
Incorrect. An in-memory cache of a duplicated warehouse still leaves two distinct systems and data copies rather than a single governed table.
Explanation
The lakehouse pattern layers Delta Lake's transaction log and metadata over open-format files in cloud object storage, so data engineering, data science, and BI all read and write the same ACID-compliant tables. This removes the need to maintain separate lake and warehouse copies.
Example15 · Databricks Lakehouse Platform
An insurance data engineer schedules a nightly claims-aggregation workflow that runs a notebook on an automated, short-lived compute resource that is created when the run starts and terminated when it finishes, keeping costs low. During the day the same engineer needs an interactive cluster to explore data and collaborate with colleagues in the notebook UI. Which compute choice correctly matches the nightly workflow?
✓A jobs cluster that is automatically provisioned when the scheduled nightly run begins and is then terminated the moment the batch job completes, minimizing idle compute cost each night
Correct. A jobs cluster is created for a scheduled job run and terminates automatically when the run finishes, which minimizes cost for nightly batch workloads.
・An all-purpose cluster left running continuously so the job never waits to start up
Incorrect. Keeping an all-purpose cluster running continuously wastes compute cost and is intended for interactive, not scheduled batch, use.
・A SQL warehouse configured for serverless BI dashboards shared by the whole department
Incorrect. A SQL warehouse serves SQL/BI queries, not the scheduled execution of a notebook-based ETL job.
・A single-user interactive cluster manually started by the engineer each evening before the run
Incorrect. Manually starting an interactive cluster each evening defeats automation and uses the compute type meant for exploration.
Explanation
Jobs clusters are ephemeral compute created for a scheduled run and torn down afterward, which is ideal for cost-efficient batch pipelines. All-purpose clusters are for interactive, collaborative development.
▶ Try 10 free questions (graded)