Databricks Certified Data Engineer Associate Exam-style mock test
Databricks Certified 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 and Workspace
A B2B SaaS analytics company currently keeps a separate data lake for machine-learning files and a separate data warehouse for BI dashboards, and struggles to keep the two copies consistent. Which statement best describes how the Databricks Lakehouse architecture addresses this problem?
✓It combines the low-cost open storage of a data lake with warehouse-style ACID transactions and governance over one copy of the data
Correct. The Lakehouse unifies cheap open-format object storage with ACID transactions, schema enforcement, and governance, so ML and BI read one governed copy of the data.
・It migrates every table into a proprietary columnar warehouse engine so that BI tools can query the data at low latency
Incorrect. The Lakehouse stores data in open formats on object storage rather than migrating everything into a proprietary warehouse engine.
・It replaces cloud object storage with an in-memory tier that caches the hottest records so dashboards never touch disk
Incorrect. The Lakehouse relies on inexpensive cloud object storage as the source of truth, not an in-memory tier replacing that storage.
・It keeps the lake and the warehouse as two systems but adds a nightly batch job that synchronizes records between them
Incorrect. The point of the Lakehouse is to remove the two-copy sync problem, not to keep two systems reconciled by a nightly batch job.
Explanation
The Lakehouse pattern layers warehouse capabilities (ACID, governance, performance) on top of open data-lake storage, eliminating the need to maintain and reconcile two separate systems.
Example2 · ELT with Spark SQL and Python
A data engineer at a B2B SaaS company lands daily usage logs as JSON files in a cloud storage path and wants to run an ad-hoc Spark SQL query directly against those files without first creating or loading a managed table. Which approach lets the engineer query the raw JSON files in place?
✓Reference the files inline with the json.`/mnt/usage/logs/` syntax directly inside the FROM clause of the SELECT statement
Correct. Spark SQL supports querying files directly using the format.`path` syntax (for example json.`/mnt/usage/logs/`) in the FROM clause, requiring no table or view to be created first.
・Define an external Delta table over the directory and then run a standard SELECT against that registered external table
Incorrect. Defining an external Delta table is a valid pattern but it creates a persistent object in the metastore, which is more than the ad-hoc, in-place query the engineer wants.
・Use COPY INTO to ingest the JSON into a staging Delta table and then issue the SELECT against the staging table
Incorrect. COPY INTO physically loads the data into a staging table before querying, so it does not query the files in place as requested.
・Create a temporary view backed by spark.read.json and subsequently run the SELECT statement against that view
Incorrect. Creating a temporary view works but requires defining the view object first, whereas the file-path syntax queries the JSON directly without that extra step.
Explanation
The format.`path` syntax (json.`...`, parquet.`...`, csv.`...`) lets Spark SQL read files directly in place with no intermediate table or view.
Example3 · Incremental Data Processing and Delta Lake
A B2B SaaS analytics team writes concurrent updates to a Delta table holding customer subscription records. They want assurance that a reader never sees a half-finished write. Which Delta Lake capability directly provides this guarantee?
✓ACID transactions ensure each write commits atomically so readers only observe complete, consistent table versions
Correct. Delta's transaction log commits writes atomically, so readers always see a complete snapshot and never partial data.
・Z-ordering physically clusters related records together so that partial writes remain hidden from readers
Incorrect. Z-ordering is a data layout optimization for query skipping and does not provide transactional isolation between writers and readers.
・Auto-compaction merges many small files into larger ones to keep every query reading consistent data
Incorrect. Auto-compaction optimizes file sizes but is unrelated to atomic visibility of in-flight writes.
・Schema enforcement rejects malformed rows so that readers always observe a fully consistent table state
Incorrect. Schema enforcement blocks incompatible data but does not govern whether readers see partial writes mid-transaction.
Explanation
ACID transactions backed by the Delta transaction log give atomic, isolated commits so readers only observe fully committed versions.
Example4 · Production Pipelines, Jobs, and Delta Live Tables
A healthcare analytics team must run a nightly workflow where a notebook ingests raw claims files, then a second notebook aggregates them, and the aggregation must run only after the ingestion task completes successfully. How should the engineer configure this in Databricks Jobs?
✓Create a single Job with two tasks and set the aggregation task's 'Depends on' field to reference the ingestion task so it runs only after success
Correct. A multi-task Job lets you set an explicit dependency so the aggregation task runs only after the upstream ingestion task succeeds, which is the native orchestration pattern.
・Create two separate Jobs and manually trigger the aggregation Job from a cell after the ingestion Job finishes running
Incorrect. Two separate Jobs with manual triggering defeats the purpose of Databricks Jobs orchestration and does not enforce the success dependency automatically.
・Create one Job with two tasks that both start at the same scheduled time and rely on checkpointing to order them correctly
Incorrect. Starting both tasks at the same time with no dependency does not guarantee ordering, and checkpointing controls streaming state rather than task sequencing.
・Create a single Job task that calls both notebooks sequentially using dbutils.notebook.run inside one combined driver notebook
Incorrect. Calling both notebooks from one combined driver notebook works but loses per-task retries, monitoring, and the clean dependency graph Jobs provide.
Explanation
Databricks multi-task Jobs express ordering with the 'Depends on' setting, running downstream tasks only after upstream tasks succeed.
Example5 · Data Governance, Unity Catalog, and Security
A healthcare services firm migrates its analytics workspace to Unity Catalog and the lead engineer must reference a patient admissions table in a query. The table was created in the schema named 'encounters' inside the catalog named 'clinical_prod'. Which fully qualified name should the engineer use to read it reliably across workspaces?
✓clinical_prod.encounters.admissions, following the catalog.schema.table three-level namespace used by Unity Catalog
Correct. Unity Catalog uses a catalog.schema.table three-level namespace, so clinical_prod.encounters.admissions is the correct fully qualified reference.
・encounters.clinical_prod.admissions, placing the schema first and the catalog second in the reference path
Incorrect. The order is reversed; the catalog must come first and the schema second, not the schema first.
・hive_metastore.encounters.admissions, because Unity Catalog routes all reads through the legacy metastore
Incorrect. hive_metastore is the legacy single-metastore catalog and does not point to a Unity Catalog object named clinical_prod.
・admissions, since Unity Catalog resolves unqualified table names across every catalog automatically
Incorrect. An unqualified name is not resolved across catalogs; it only resolves within the current catalog and schema context.
Explanation
Unity Catalog adds a catalog layer on top of schema and table, giving a three-level namespace catalog.schema.table.
Example6 · Databricks Lakehouse Platform and Workspace
A healthcare analytics team at a regional hospital network is adopting the Databricks Lakehouse Platform to consolidate patient claims data. Which statement best describes how the lakehouse architecture lets them serve both BI reporting and machine learning workloads?
・It stores data only in proprietary warehouse tables, requiring a separate data lake to be maintained in parallel for machine learning feature engineering
Incorrect. The lakehouse does not keep proprietary warehouse tables separate from the lake; it unifies them so a second parallel lake is unnecessary.
✓It combines the low-cost open storage of a data lake with ACID transactions and governance normally found in a data warehouse on one copy of data
Correct. The lakehouse unifies cheap open-format lake storage with warehouse-grade ACID transactions and governance over a single copy of data serving both BI and ML.
・It forces all machine learning jobs to export data into an external relational database before any training can be performed on it
Incorrect. ML jobs read directly from lakehouse tables and do not need to be exported into an external relational database first.
・It replaces cloud object storage entirely with an in-memory cache that keeps every patient record resident in cluster RAM at all times
Incorrect. The lakehouse persists data on cloud object storage, not entirely in cluster memory; caching is an optimization, not the storage layer.
Explanation
The lakehouse pattern delivers data warehouse reliability and governance on top of inexpensive, open data lake storage, letting BI and ML share one copy of the data.
Example7 · Databricks Lakehouse Platform and Workspace
The data team at UrbanThread, an online apparel retailer, runs BI reporting on a warehouse and ML on a separate data lake, forcing nightly copies between the two. They want one platform that serves both workloads on a single copy of data. Which characteristic of the Databricks Lakehouse directly addresses this need?
・It stores BI tables in a proprietary warehouse while keeping ML features in a parallel lake synced hourly by jobs
Incorrect. This keeps two separate stores and scheduled copies, which is exactly the duplication the team wants to eliminate.
✓It combines data warehouse reliability and governance with data lake openness over one set of files
Correct. The lakehouse unifies warehouse-grade reliability and governance with open lake storage, letting BI and ML share a single copy of data.
・It replaces the data lake entirely with a managed relational warehouse engine for all workloads
Incorrect. The lakehouse does not discard the lake; it adds transactional and governance layers on top of open storage.
・It mirrors every table into both a warehouse and a lake so each team queries its own dedicated copy
Incorrect. Maintaining two mirrored copies reintroduces the nightly duplication problem rather than solving it.
Explanation
The lakehouse pattern layers warehouse capabilities (ACID transactions, governance, performance) directly onto open data lake files, so a single copy serves both BI and ML.
Example8 · Databricks Lakehouse Platform and Workspace
A security reviewer at UrbanThread asks where the compute clusters that process customer order data actually run within the Databricks platform architecture. As the data engineer, which statement correctly describes the placement of that compute?
・Clusters run in the control plane, so Databricks fully hosts and operates the compute resources on the customer's behalf
Incorrect. Compute does not live in the control plane; the control plane handles management services, not cluster execution.
✓Clusters run in the customer's own cloud account data plane, while the control plane handles the UI and management
Correct. Compute runs in the data plane inside the customer's cloud account, while the control plane hosts the web app and cluster management.
・Clusters run in the control plane, while notebooks and jobs are stored in the customer's data plane account
Incorrect. This reverses the roles; clusters run in the data plane and management services run in the control plane.
・Clusters run in a shared region-wide plane managed jointly by the cloud provider and the reviewer's team
Incorrect. There is no jointly managed region-wide plane; compute runs in the customer account data plane.
Explanation
The control plane (web app, jobs, cluster manager) is operated by Databricks, while the data plane where clusters process data resides in the customer's cloud account.
Example9 · Databricks Lakehouse Platform and Workspace
UrbanThread schedules a nightly production ETL pipeline that ingests sales data and then terminates. The team wants to minimize compute cost and avoid clusters lingering after the run completes. Which cluster type should they configure for this scheduled pipeline?
・An all-purpose cluster kept running continuously so the nightly pipeline can attach to it whenever it triggers
Incorrect. A continuously running all-purpose cluster incurs cost even when idle, which the team wants to avoid.
✓A job cluster that the scheduler creates for the run and automatically terminates when the job finishes
Correct. A job cluster is created for the scheduled run and terminated automatically afterward, minimizing idle cost.
・An all-purpose cluster shared by analysts during the day and reused by the pipeline each night as well
Incorrect. Sharing an all-purpose cluster leaves it running and billed outside the pipeline's actual run window.
・A SQL warehouse configured on a fixed size to execute the pipeline's transformations every night
Incorrect. SQL warehouses target BI SQL queries, not scheduled Spark ETL pipelines of this kind.
Explanation
Job clusters are provisioned per scheduled run and auto-terminate, making them the cost-efficient choice for automated production pipelines compared to always-on all-purpose clusters.
Example10 · Databricks Lakehouse Platform and Workspace
A financial services firm currently runs a data warehouse for BI reporting and a separate data lake for machine learning on transaction data. Leadership wants to reduce the cost and governance overhead of keeping two copies of data in sync. Which characteristic of the Databricks Lakehouse architecture directly addresses this concern?
・It replaces all cloud object storage with a proprietary high-performance block storage layer managed entirely by Databricks
Incorrect. The Lakehouse uses the customer's existing open cloud object storage (such as S3 or ADLS), not a proprietary block storage layer that replaces it.
✓It combines data warehouse management features and data lake scalability on a single copy of data in open cloud storage
Correct. The Lakehouse unifies warehouse-style management, ACID transactions, and governance with data-lake scalability over one copy of data stored in open cloud object storage, eliminating duplicate systems.
・It forces all machine learning workloads to run through the SQL warehouse engine to keep governance consistent
Incorrect. ML and SQL workloads use different compute, and nothing forces ML through the SQL warehouse engine; governance is applied through Unity Catalog, not a single engine.
・It requires nightly ETL jobs to copy curated tables from the lake into a separate reporting warehouse
Incorrect. Avoiding nightly copies into a separate warehouse is exactly the duplication problem the Lakehouse removes by serving BI and ML from the same tables.
Explanation
The Lakehouse paradigm delivers warehouse reliability and governance plus lake openness and scale on a single copy of data, removing the need to maintain two synchronized systems.
Example11 · Databricks Lakehouse Platform and Workspace
A security reviewer at a bank asks a data engineer where the actual transaction records are processed when a Databricks job runs, versus where the notebook commands and job metadata live. How should the engineer describe this split in the Databricks platform architecture?
・Both the cluster compute and the stored data reside permanently inside the Databricks-managed control plane subscription
Incorrect. Compute and customer data live in the data plane within the customer's cloud account, not permanently inside the Databricks control plane.
✓Customer data is processed by compute in the data plane, while notebooks and job metadata are managed in the control plane
Correct. The data plane (in the customer's cloud account) runs the clusters that process data, while the control plane hosts the web UI, notebooks, and job orchestration metadata.
・The control plane processes customer records and the data plane only renders the web UI shown to analysts in the browser
Incorrect. This reverses the roles; the control plane manages the UI and metadata, and it is the data plane that processes customer records.
・All processing happens on single-tenant servers that Databricks physically installs inside the bank's on-premises data center
Incorrect. Databricks runs on cloud infrastructure, not physical servers installed on-premises in the customer's data center.
Explanation
Databricks separates a Databricks-hosted control plane (UI, notebooks, job config) from a data plane in the customer's cloud account where clusters process the actual data.
Example12 · Databricks Lakehouse Platform and Workspace
A manufacturing distributor currently runs a separate data lake for raw sensor files and a separate data warehouse for finished BI reports, forcing nightly copies between them. An architect proposes moving to the Databricks Lakehouse. Which statement best describes the fundamental benefit the Lakehouse provides in this situation?
・It replaces the storage layer with a proprietary binary format so that only Databricks compute clusters can ever read or write the distributor's manufacturing data going forward
Incorrect. The Lakehouse is built on open formats (Delta/Parquet) on cloud object storage, not a closed format locking the data to Databricks.
✓It unifies data warehousing and data lake workloads on one platform, adding warehouse-style management to low-cost open storage
Correct. The Lakehouse combines the reliability and governance of a warehouse with the openness and low cost of a data lake on a single platform, removing the need for separate systems and copies.
・It forces every raw sensor file to be loaded into an in-memory relational engine before any analyst in the plant can query a single record
Incorrect. Data stays in open storage; there is no requirement to load everything into an in-memory relational engine before querying.
・It keeps the lake and the warehouse as two fully independent systems but automatically schedules and monitors the nightly copy jobs between the two tiers
Incorrect. The point is to eliminate the two-system copy pattern, not to keep both systems and merely orchestrate the copies.
Explanation
The Lakehouse's core value is unifying lake and warehouse workloads on one open platform, eliminating the dual-system copy pattern.
Example13 · Databricks Lakehouse Platform and Workspace
A security reviewer at the distributor asks where the actual shipment records are processed when a job runs, versus where the web UI and job scheduling live. In the Databricks architecture, which description correctly maps these responsibilities?
・Both the notebooks UI and the cluster compute that reads the shipment data run entirely inside Databricks' own managed control-plane account
Incorrect. The cluster compute runs in the customer's cloud account (data plane), not in the Databricks-managed control plane.
✓The control plane hosts the UI, notebooks, and job orchestration, while cluster compute processing the shipment data runs in the customer's cloud account
Correct. The control plane (managed by Databricks) holds the UI, notebooks, and orchestration, while compute and the data it reads live in the customer's account (data plane).
・The data plane hosts the UI and job scheduling, while the control plane runs the clusters that actually read and transform the shipment records in storage
Incorrect. This reverses the roles; the UI and scheduling are in the control plane, not the data plane.
・The control plane copies all shipment records into a Databricks-owned bucket so that clusters in the control plane can process them close to the UI
Incorrect. Customer data is not copied into a Databricks-owned bucket; it remains in the customer's storage read by the data plane.
Explanation
Databricks separates a managed control plane (UI, orchestration) from the customer-account data plane where clusters and data live.
Example14 · Databricks Lakehouse Platform and Workspace
A telecom operator currently runs a traditional data lake for raw call-detail records and a separate data warehouse for billing analytics, forcing nightly copies between the two. The platform team wants a single architecture that serves both BI dashboards and machine-learning churn models on one copy of the data. Which characteristic of the Databricks Lakehouse best explains why it fits this goal?
・It stores data in proprietary binary tables that only Databricks SQL warehouses are able to read and query efficiently.
Incorrect. The lakehouse uses open formats like Delta/Parquet that many engines can read, not a closed Databricks-only format.
✓It layers warehouse features like ACID transactions and governance directly on open data-lake storage, serving BI and ML together.
Correct. The lakehouse adds warehouse capabilities such as ACID transactions and governance on top of open lake storage, so one copy of data serves both BI and ML.
・It replaces the object storage layer entirely with an in-memory database so every query runs without touching cloud storage.
Incorrect. The lakehouse keeps data on cloud object storage; it does not swap storage for an in-memory database.
・It requires all data to be loaded into a dedicated OLTP engine before analytics or machine-learning workloads can begin.
Incorrect. No separate OLTP load step is needed; analytics and ML run directly on the lakehouse tables.
Explanation
The lakehouse unifies data-lake openness and low cost with warehouse reliability and governance, letting one dataset support both dashboards and ML without copying between systems.
Example15 · Databricks Lakehouse Platform and Workspace
During a security review at a telecom operator, an engineer must explain where the actual subscriber usage data is processed when a cluster runs a job, versus where the web UI and job scheduling live. In the Databricks architecture, where is customer data processed by cluster compute resources?
・In the Databricks-managed control plane, where the notebooks, job configurations, and the web application are hosted.
Incorrect. The control plane hosts the UI, notebooks, and job metadata, but it is not where the cluster processes customer data.
✓In the customer's own cloud account data plane, where cluster compute reads and processes the records directly.
Correct. Cluster compute runs in the data plane inside the customer's cloud account, where it reads and processes the data directly.
・In a shared multi-tenant region operated by Databricks that permanently stores all processed customer records for every workspace.
Incorrect. Databricks does not permanently store all customer records in a shared tenant; compute happens in the customer data plane.
・In the local browser session on each analyst's laptop, which downloads the full dataset before any processing occurs.
Incorrect. Processing is done by cluster compute, not by downloading full datasets into each analyst's browser.
Explanation
The control plane (managed by Databricks) holds UI, notebooks, and job orchestration, while the data plane in the customer's cloud account runs the compute that actually processes the data.
▶ Try 10 free questions (graded)