Home / Databricks Certified Data Engineer Professional / Mock exam
Databricks Certified Data Engineer Professional Exam-style mock test

Databricks Data Engineer Professional Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Databricks Tooling and Architecture (Advanced)
A B2B SaaS analytics company runs a shared all-purpose cluster where several data engineers co-develop PySpark notebooks. The platform lead reports that a user-defined Scala JAR loaded by one engineer occasionally corrupts the session state of another engineer on the same cluster. The team requires that each notebook session be isolated from the others while still sharing compute. Which cluster configuration best satisfies this requirement?
・Switch to single-user access mode, dedicating the cluster to one engineer.
Incorrect. Single-user mode isolates by dedicating the cluster to one principal, which prevents the shared-compute collaboration the team explicitly wants to keep.
✓Use shared access mode, which isolates concurrent sessions.
Correct. Shared access mode runs each user's code in an isolated process so one session cannot corrupt another's state while compute is still shared.
・Reduce the executor count so sessions cannot overlap on a worker node.
Incorrect. Reducing executors changes capacity but does not create process-level isolation between user sessions.
・Enable autoscaling so each engineer receives a dedicated executor pool.
Incorrect. Autoscaling adjusts cluster size based on load and provides no isolation guarantee between users.
Explanation
Shared access mode is designed to let multiple users share a cluster while isolating each user's execution, which directly addresses the cross-session corruption problem.
Example2 · Data Processing: Streaming, Delta, Optimization
A B2B SaaS analytics team ingests usage events from their product into a bronze Delta table using Structured Streaming. The data arrives in small bursts a few times per hour, and the team wants to minimize cluster uptime cost while still processing all available data in a single incremental batch each time the job runs on a schedule. Which trigger should they configure on the streaming write?
✓Trigger.AvailableNow, which drains available data then stops
Correct. Trigger.AvailableNow consumes all data currently available, optionally across multiple batches, then terminates the query so a scheduled cluster can be deprovisioned, matching the bursty, cost-sensitive requirement.
・Trigger.Continuous with a one-second checkpoint for lowest latency
Incorrect. Trigger.Continuous keeps a long-running query alive for low latency, which maximizes cluster uptime cost rather than minimizing it.
・Trigger.ProcessingTime set to one millisecond so micro-batches fire constantly
Incorrect. A one-millisecond ProcessingTime trigger keeps the stream running continuously and defeats the goal of shutting the cluster down between bursts.
・No trigger, keeping the query running forever at the default cadence
Incorrect. Omitting the trigger runs the stream forever at the default cadence, keeping the cluster alive indefinitely instead of stopping after a scheduled run.
Explanation
Trigger.AvailableNow is the batch-like trigger designed for scheduled incremental ingestion: it drains all available data and stops, so clusters only run when there is work to do.
Example3 · Data Modeling and Lakehouse Design
A B2B SaaS company ingests raw subscription event JSON from Kafka into its lakehouse. Analysts need deduplicated, type-cast records, while the finance team needs aggregated monthly recurring revenue per customer. The data engineer wants to follow the medallion architecture. How should the three tables be assigned?
✓Bronze holds the raw unmodified JSON as ingested, Silver holds the deduplicated and type-cast events, and Gold holds the aggregated monthly recurring revenue.
Correct. Bronze preserves raw ingested data, Silver applies cleansing and conformance such as deduplication and casting, and Gold serves business-level aggregates like MRR.
・Bronze holds the aggregated revenue, Silver holds the raw JSON, and Gold holds the deduplicated events for analysts.
Incorrect. This inverts the layers; raw data belongs in Bronze, not Silver, and aggregates belong in Gold, not Bronze.
・Bronze holds the deduplicated events, Silver holds the raw JSON, and Gold holds nothing at all here.
Incorrect. Deduplication is a Silver concern and business aggregates should be materialized in Gold rather than pushed entirely to the BI tool.
・All three of the layers hold identical copies of the raw JSON for each separate team.
Incorrect. Duplicating raw JSON across all layers defeats the purpose of the medallion pattern and wastes storage and compute.
Explanation
The medallion architecture maps raw to Bronze, cleansed/conformed to Silver, and curated business aggregates to Gold.
Example4 · Security, Governance, and Unity Catalog
A healthcare services firm is onboarding its patient-encounter datasets into Unity Catalog. A data engineer must decide where a managed table of admission records should live so that it can be referenced with a fully qualified three-level name. Which hierarchy correctly describes where that table sits within Unity Catalog?
✓A metastore contains catalogs, catalogs contain schemas, and schemas in turn contain the governed tables
Correct. Unity Catalog nests objects as metastore to catalog to schema to table, so the admission table is addressed as catalog.schema.table within the metastore.
・Workspace contains databases, databases contain tables, tables contain partitions
Incorrect. The legacy Hive metastore model used workspace-scoped databases, but Unity Catalog adds the catalog level and is not partition-terminated in its naming hierarchy.
・Catalog contains metastores, metastores contain schemas, schemas contain tables
Incorrect. The metastore is the top-level container, not a child of a catalog, so this reverses the relationship.
・Account contains schemas, schemas contain catalogs, catalogs contain tables
Incorrect. Schemas do not contain catalogs; catalogs contain schemas, and the account is not part of the three-level name.
Explanation
Unity Catalog uses a three-level namespace of catalog.schema.table, all governed by a metastore at the top.
Example5 · Testing, Deployment, and Monitoring
A data engineering team at a healthcare services firm maintains a shared transformation function that normalizes patient encounter timestamps to UTC and derives a length-of-stay column. The team wants a fast, deterministic test that validates this transformation logic on a handful of crafted rows without depending on production Delta tables or external storage. What is the most appropriate approach?
・Run the full nightly production job against a copy of the live encounters table and compare row counts before and after the transformation step
Incorrect. Running the full job against live-sized data is slow, nondeterministic, and tests far more than the targeted transformation logic.
✓Build a small in-memory DataFrame of known input rows in the test, apply the transformation function, and then assert the resulting output matches the expected rows
Correct. A unit test constructs a small controlled input DataFrame, applies the pure transformation function, and asserts on the expected output, giving fast deterministic coverage of the logic.
・Deploy the pipeline to a staging workspace and manually inspect the resulting dashboard tiles for plausible length-of-stay values
Incorrect. Manual dashboard inspection is neither automated nor deterministic and cannot serve as a repeatable unit test.
・Enable Delta Live Tables expectations on the production pipeline and rely on dropped-record metrics to confirm the logic is correct
Incorrect. DLT expectations validate data quality at runtime in production and do not isolate or unit-test the transformation logic.
Explanation
Unit testing transformation logic is best done by feeding a small, crafted in-memory DataFrame into the pure function and asserting on the expected result, keeping tests fast, isolated, and deterministic.
Example6 · Databricks Tooling and Architecture (Advanced)
A data engineer at a healthcare services firm runs an ETL job that joins patient encounter records with a claims table on an interactive cluster. The Spark UI shows one stage with 200 tasks, but only 8 tasks finish quickly while the remaining tasks run for a very long time on a few executors. What is the most likely cause of this behavior?
・The cluster has too few executor cores, so the scheduler cannot launch every task at once
Incorrect. Too few cores would slow all tasks proportionally rather than leaving most tasks running far longer than a handful.
✓A skewed join key concentrates most rows into a few partitions
Correct. When a join key is heavily skewed, a small number of partitions receive most of the rows, so the tasks owning those partitions run much longer than the rest.
・Dynamic allocation was disabled at submit time, forcing all of the stage's tasks onto one executor
Incorrect. Dynamic allocation controls how many executors are added or removed, not how data is distributed across tasks within a stage.
・The DataFrame was cached, and the caching serializes task execution across the stage boundary
Incorrect. Caching stores data for reuse and does not serialize task execution; the symptom here is uneven task runtimes, which points to data distribution.
Explanation
A long-tail of slow tasks while a few finish fast is the classic signature of data skew, where certain key values dominate partitions and overload specific tasks.
Example7 · Databricks Tooling and Architecture (Advanced)
The platform team at UrbanThread, a retail apparel brand, is documenting the Databricks architecture for a security audit. An auditor asks where cluster compute runs versus where notebooks, jobs metadata, and the web UI are managed. Which statement correctly describes the split between the control plane and the compute plane?
✓Notebooks and the web UI live in the control plane, while cluster VMs run in the customer's compute plane.
Correct. The control plane (managed by Databricks) hosts the UI, notebooks, and job metadata, while compute clusters that actually process data run in the compute plane inside the customer's cloud account.
・Both the control plane and the compute plane run entirely inside the Databricks-managed cloud account, with no resources deployed into the customer's subscription.
Incorrect. The compute plane (cluster VMs) runs in the customer's own cloud account by default, not entirely inside Databricks' account.
・Cluster VMs and the web application both run in the customer's account, while only the Unity Catalog metastore resides in the Databricks control plane.
Incorrect. The web application runs in the Databricks control plane, not in the customer's account.
・The control plane is where all row-level customer data gets processed, while the compute plane merely stores notebook source code and nightly job schedules.
Incorrect. Customer data is processed in the compute plane; the control plane handles orchestration and metadata, not row-level data processing.
Explanation
Databricks separates a managed control plane (UI, notebooks, job orchestration, metadata) from a compute plane where cluster VMs process customer data inside the customer's cloud account.
Example8 · Databricks Tooling and Architecture (Advanced)
UrbanThread runs an interactive, shared cluster used all day by several analysts running ad-hoc SQL and Python against Delta tables. The data engineer wants to minimize idle cost without forcing analysts to wait long for a cluster at the start of each session. Which single configuration change best balances these goals?
・Convert the all-purpose cluster to a single-node job cluster that is created fresh for every query.
Incorrect. Job clusters created per query are for scheduled automated jobs, not interactive multi-user ad-hoc sessions, and would add startup latency to every query.
✓Enable auto-termination after a short idle window while keeping autoscaling on for the shared all-purpose cluster so it resizes to demand.
Correct. Auto-termination reclaims idle cost while autoscaling sizes the shared cluster to demand, keeping interactive latency reasonable during active use.
・Disable autoscaling and pin the cluster to its maximum worker count at all times.
Incorrect. Pinning to max workers wastes money during the many idle periods a shared analyst cluster experiences.
・Replace the cluster with a serverless SQL warehouse and route all Python notebook workloads to it unchanged.
Incorrect. A SQL warehouse cannot run arbitrary Python notebook code, so Python workloads cannot run unchanged on it.
Explanation
For an all-day shared interactive cluster, auto-termination plus autoscaling minimizes idle spend while preserving responsiveness; job clusters and fixed max-size clusters do not fit this profile.
Example9 · Databricks Tooling and Architecture (Advanced)
UrbanThread's nightly ingestion pipeline is currently scheduled on a long-lived all-purpose cluster that the team also uses interactively during the day. A reviewer recommends switching the scheduled job to a job cluster. What is the primary benefit of this change for the production pipeline?
・A job cluster persists between runs, so the pipeline avoids any cluster startup time each night.
Incorrect. Job clusters are ephemeral; they are created per run and terminated after, so they do not persist between runs.
・A job cluster is billed at the interactive DBU rate, which is lower than the jobs compute rate for scheduled runs.
Incorrect. The pricing is reversed: jobs compute is cheaper than the all-purpose (interactive) rate.
✓A job cluster is created for the run and terminated afterward, giving isolated resources and lower jobs-compute pricing.
Correct. A job cluster spins up for the scheduled run and terminates afterward, providing isolation from interactive users and the lower jobs-compute DBU rate.
・A job cluster automatically grants every analyst interactive access to the pipeline's notebooks while it runs.
Incorrect. Job clusters are dedicated to the job run, not opened up for interactive analyst access.
Explanation
Moving a scheduled pipeline to a job cluster gives per-run isolation and the lower jobs-compute pricing, trading persistent availability for cost and reliability in production.
Example10 · Databricks Tooling and Architecture (Advanced)
A financial services firm runs a nightly regulatory reporting job on Databricks. The job is a scheduled Spark pipeline that must run reliably, must not share compute with any other work, and should terminate automatically when it finishes to control cost. Which compute choice best fits these requirements?
・An interactive all-purpose cluster that stays running so analysts can attach notebooks at any time during the day
Incorrect. An always-on all-purpose cluster is meant for interactive, shared use and does not terminate when a job finishes, so it wastes cost for a nightly batch pipeline.
✓A dedicated job cluster that terminates automatically when the run completes
Correct. A job cluster is spun up for the scheduled run, is isolated to that job, and terminates on completion, matching the reliability, isolation, and cost goals.
・A serverless SQL warehouse configured with auto-stop so analysts can query the reporting tables interactively
Incorrect. A SQL warehouse serves interactive SQL queries, not a scheduled Spark pipeline job, so it is the wrong compute type for this workload.
・A shared high-concurrency all-purpose cluster used by several teams for ad hoc exploration throughout the day
Incorrect. A shared high-concurrency cluster is explicitly the opposite of isolated compute and is tuned for concurrent interactive users, not a dedicated nightly job.
Explanation
Scheduled production batch jobs should run on ephemeral job clusters, which provide isolation and automatic termination, whereas all-purpose clusters are for interactive shared use.
Example11 · Databricks Tooling and Architecture (Advanced)
A security architect at a bank is documenting where the customer's sensitive transaction data physically resides when a Databricks Spark job executes. In the classic Databricks deployment architecture, where does the actual processing of this data take place?
・In the control plane, which Databricks manages and where notebooks, job metadata, and cluster configurations live
Incorrect. The control plane holds management constructs like notebooks, job configs, and cluster metadata, but customer data processing does not occur there.
✓In the data plane within the customer's own cloud account, where the cluster compute actually reads and processes the sensitive transaction data
Correct. In the classic architecture, cluster compute runs in the data plane inside the customer's cloud account, which is where the transaction data is actually read and processed.
・In a Databricks-managed shared storage layer that caches all customer datasets for faster repeated access
Incorrect. Databricks does not maintain a shared managed store that caches all customer datasets; data stays in the customer's own storage.
・In the web application tier of the control plane, where the query results are rendered for the user
Incorrect. The web application only renders UI and results; it is not where large-scale data processing happens.
Explanation
The control plane (managed by Databricks) holds management services, while the data plane in the customer's cloud account is where compute processes the data.
Example12 · Databricks Tooling and Architecture (Advanced)
A manufacturing distributor runs a nightly Scala job that calls a low-level RDD API to reshape shipment telemetry, and the same workspace must also serve Unity Catalog governed tables to analysts. The platform team needs the Scala job to run while still being governed by Unity Catalog. Which cluster access mode should they assign to the job cluster?
✓Single-user (dedicated) mode for the service principal
Correct. Single-user (dedicated) mode assigned to the job's service principal supports the full Scala and RDD API surface while still enforcing Unity Catalog governance, which fits a nightly service-principal job needing low-level APIs.
・No-isolation shared access mode so the RDD API is unrestricted
Incorrect. No-isolation shared mode cannot enforce Unity Catalog governance, so it fails the requirement that the job remain governed.
・Shared access mode for all interactive analyst sessions
Incorrect. Shared mode restricts certain low-level RDD and Scala APIs, so the telemetry reshaping job would fail.
・Table ACL-only legacy mode with Unity Catalog disabled
Incorrect. Legacy table ACL mode disables Unity Catalog, violating the governance requirement for the workspace.
Explanation
Single-user access mode is the correct choice when a workload needs full Scala/RDD APIs plus Unity Catalog governance, which shared mode cannot fully provide.
Example13 · Databricks Tooling and Architecture (Advanced)
While tuning a join between the distributor's orders and regional-warehouse dimension, an engineer sees in the Spark UI that one shuffle task in a stage runs for 14 minutes while the other 199 tasks finish in under 20 seconds each. What does this pattern most directly indicate?
・The cluster has too few executor cores to run tasks in parallel
Incorrect. Too few cores would slow all tasks roughly equally rather than leaving one straggler among otherwise fast tasks.
✓Data skew is concentrating a disproportionate number of rows on one hot partition key
Correct. One extremely long task among many fast ones is the classic signature of data skew, where a hot key sends a disproportionate number of rows to one partition.
・The driver is garbage collecting and blocking all task scheduling
Incorrect. Driver GC would stall scheduling broadly and show up in driver metrics, not as a single long task in a stage.
・Adaptive query execution has disabled broadcast joins for this query
Incorrect. Disabling broadcast joins affects join strategy selection, not the per-task duration distribution within a shuffle stage.
Explanation
A single long-running task amid many short ones is the textbook Spark UI signature of partition skew on a hot join key.
Example14 · Databricks Tooling and Architecture (Advanced)
A telecom operator runs its Databricks workspace with all customer call-detail records stored as Delta tables in cloud object storage. The platform team wants to shut down all clusters overnight to save cost but keep the data fully available for a different workspace in the morning. Which characteristic of the lakehouse architecture makes this safe?
✓Compute and storage are decoupled, so the Delta files survive cluster termination
Correct. Databricks separates elastic compute from durable cloud object storage, so clusters can be terminated at any time without affecting the persisted Delta files.
・The driver node caches all table data onto its local disk and flushes that cache to storage on shutdown
Incorrect. Driver local disk is ephemeral scratch space; table durability comes from object storage, not from a shutdown flush of the driver.
・Delta tables are pinned into cluster memory and so must stay running to remain readable at all
Incorrect. Delta tables persist as files in object storage and do not require a running cluster to remain readable.
・The metastore itself physically stores all of the table rows and rehydrates the clusters again on restart
Incorrect. The metastore holds metadata and pointers, not the actual table rows, so it does not rehydrate data into clusters.
Explanation
The lakehouse decouples compute from storage: data lives durably in cloud object storage as Delta files, so clusters are disposable and sharable across workspaces.
Example15 · Databricks Tooling and Architecture (Advanced)
During a security review at the telecom operator, an auditor asks where the actual subscriber data is processed when a job runs. The engineer explains the classic Databricks architecture split. Which statement correctly describes the data plane?
・It hosts the web UI, the notebook source, and the job scheduler, all managed by Databricks
Incorrect. The web UI, notebook source metadata, and job scheduler are control plane components managed by Databricks.
✓It is where the compute clusters run and process the subscriber data, inside the customer's own cloud account
Correct. The data plane is where compute clusters run and process customer data, and in the classic deployment it resides in the customer's own cloud account.
・It stores only the account billing records that belong to Databricks itself for metering
Incorrect. Databricks billing records are not the definition of the data plane, which is about where data is processed.
・It is a Databricks-managed service that keeps full copies of all of the query results
Incorrect. Databricks does not keep copies of all query results as the data plane; processing happens on customer compute.
Explanation
The control plane (managed by Databricks) holds the UI, scheduler, and metadata, while the data plane processes customer data on compute that lives in the customer's cloud account in the classic model.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)