Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Databricks Certified Data Engineer Associate Exam Databricks-Certified-Data-Engineer-Associate Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 16 Total 231 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Databricks Intelligence Platform

Skill tested: Selects Lakehouse platform components for governed analytics and data engineering workloads.

A retail analytics team needs to maintain curated tables for both SQL analysts and downstream data-science workloads. Analysts require interactive SQL queries and dashboards, while engineers need to build repeatable transformations over the same governed data. The organization wants to avoid copying curated data into separate analytics and machine-learning platforms. Which platform design best meets these requirements?

Correct Answer: D. Use Databricks SQL for analyst queries and notebooks or jobs for engineering workloads against shared Lakehouse tables.
Explanation:

The Lakehouse supports multiple workload types over shared governed data. Databricks SQL provides an interactive SQL environment for analysts, while notebooks and jobs support programmatic engineering and data-science workflows. This avoids unnecessary copies and helps keep access controls and data freshness consistent. Separate platform copies, as in B, add synchronization and governance overhead; C excludes appropriate engineering workflows; and notebook results are not a durable shared data layer.

Question 2

New Single answer

Topic: Data Ingestion and Loading

Skill tested: Chooses Auto Loader for incremental file discovery and schema handling in cloud object storage.

A logistics company receives thousands of JSON files each hour in cloud object storage. Files arrive continuously, and ingestion must process new files incrementally without rescanning the entire directory on every run. The source occasionally adds fields, and the pipeline must retain progress across restarts. Which approach is most appropriate for loading these files into a Delta table?

Correct Answer: A. Use Auto Loader with a streaming read, a checkpoint location, and an explicit schema or schema-evolution configuration appropriate to the source.
Explanation:

Auto Loader is designed to incrementally discover files as they arrive and can maintain streaming progress through a checkpoint location. Its schema handling can be configured to accommodate the source's evolution policy. Re-reading and overwriting the whole directory is inefficient and risks disrupting table history. A streaming query without a checkpoint cannot reliably preserve progress across restarts. COPY INTO can support repeatable incremental file loading, but a one-time invocation does not itself continuously run as new files arrive.

Question 3

New Multiple answers

Topic: Data Ingestion and Loading

Skill tested: Configures a resilient file-ingestion stream with durable progress and a managed Delta destination.

A media company ingests daily CSV exports from a cloud landing zone. New files must be processed as they arrive, and a job restart must not cause already committed files to be reprocessed as new input. The team also needs a durable table that supports incremental appends and an operationally safe streaming run. Which TWO design choices best meet these requirements? Select TWO.

Correct Answer: A. Write the stream to a Delta table using an append output mode when each source record is an independent event.; B. Use Auto Loader for file discovery and configure a persistent checkpoint location for the stream.
Explanation:

Auto Loader provides incremental file discovery, while a persistent checkpoint records the stream's progress and supports recovery after a restart. For independent incoming events, appending to a Delta destination is appropriate; Delta transaction handling and streaming checkpoint progress work together to support reliable processing. Deleting the checkpoint loses progress state. Overwriting every micro-batch discards prior data, and file modification times alone are not a reliable substitute for a stream checkpoint.

Question 4

New Single answer

Topic: Data Transformation and Modeling

Skill tested: Uses PySpark DataFrame operations to clean and type source fields before analytics.

An online retailer receives transaction records with a timestamp string, a customer identifier, and an amount encoded as text. The analytics table must contain only records with a parseable timestamp and positive numeric amount, while retaining the original customer identifier. The transformation should remain distributed and produce a queryable Delta table. Which approach best satisfies these requirements?

Correct Answer: C. Use DataFrame column expressions to cast the timestamp and amount, filter out null timestamps and nonpositive amounts, then write the resulting DataFrame to Delta.
Explanation:

Distributed DataFrame expressions perform parsing, casting, and filtering across the Spark workers without collecting the dataset to the driver. Filtering null parsed timestamps and amounts that are not positive enforces the stated data-quality rules before writing a queryable Delta table. Driver-side loops and conversion to pandas do not scale for distributed datasets. Keeping malformed rows unchanged would leave data-quality enforcement to every consumer and fail the requirement for a cleaned analytics table.

Question 5

New Multiple answers

Topic: Data Transformation and Modeling

Skill tested: Builds deterministic deduplication and aggregation transformations with PySpark DataFrames.

A subscription business receives a daily dataset that can contain repeated events for the same subscription and event timestamp. Analysts need one record per subscription per day with the total billed amount, and invalid amounts must not contribute. The input is too large for driver-side processing, and the transformation must be repeatable. Which TWO PySpark DataFrame operations are most appropriate? Select TWO.

Correct Answer: D. Filter invalid or null billed amounts before aggregation.; E. Group by subscription and event date, then aggregate the billed amount using a sum expression.
Explanation:

Filtering invalid amounts before the aggregation prevents bad values from affecting reported totals. Grouping by subscription and event date and summing the valid billed amount directly expresses the requested output in distributed DataFrame operations. Collecting to the driver is unsuitable for a dataset too large for local processing. dropDuplicates removes duplicate rows rather than summing event values, and random sampling is neither deterministic nor a valid deduplication method.

Question 6

New Single answer

Topic: Data Transformation and Modeling

Skill tested: Implements a Delta Lake upsert to apply changed source records without replacing unaffected target rows.

A product team maintains a Delta table of customer profiles. Each nightly source extract contains only new or changed profiles, identified by a stable customer key; it does not contain every customer. The target must retain profiles absent from the nightly extract, while updating changed attributes and inserting new customers. Which operation is the best fit?

Correct Answer: A. Use a Delta MERGE keyed on the customer identifier, updating matched rows and inserting unmatched rows.
Explanation:

A Delta MERGE can match source and target rows by the stable customer key, update existing profiles, and insert new ones while leaving target keys absent from the partial extract untouched. Overwrite would discard unaffected customers. Append would create multiple versions without resolving the current profile, leaving correctness to every consumer. A separate delete and append is more fragile and does not provide the atomic upsert behavior of a merge.

Question 7

New Single answer

Topic: Working with Lakeflow Jobs

Skill tested: Defines task dependencies so a downstream job task runs only after its prerequisite succeeds.

A data platform team has a Lakeflow job with two tasks: `ingest_orders` loads source data and `build_mart` transforms the ingested data. A run must not begin the transformation before ingestion completes successfully. The team also wants the job graph to make this dependency explicit for monitoring and retries. What should the team configure?

Correct Answer: D. Set `build_mart` as a task that depends on `ingest_orders` in the job's task graph.
Explanation:

A predecessor dependency in the Lakeflow job graph expresses the required execution order and lets the orchestrator schedule the downstream task based on its prerequisite's outcome. This also gives the job an explicit graph for operational visibility and task-level recovery. Matching schedules or task creation order does not guarantee sequencing, and a fixed sleep is unreliable. Notifications report events; they should not replace the job's dependency configuration.

Question 8

New Multiple answers

Topic: Working with Lakeflow Jobs

Skill tested: Configures task-level compute and dependency-aware execution for a multi-task Lakeflow job.

A finance team's Lakeflow job has a lightweight validation task followed by a resource-intensive transformation task. Validation should run first, and the transformation must not consume its larger compute allocation unless validation succeeds. The two tasks have different resource needs, and operators need task-level failure visibility. Which TWO configurations best support this design? Select TWO.

Correct Answer: A. Assign task-appropriate compute to the tasks, using a smaller configuration for validation and suitable compute for transformation.; E. Configure the transformation task to depend on the validation task.
Explanation:

The dependency ensures that the transformation is scheduled only after validation meets its prerequisite, avoiding premature downstream processing. Task-appropriate compute limits unnecessary resource use for the lightweight validation and provides adequate resources for the transformation. Running tasks concurrently violates sequencing, while suppressing validation failures defeats the control. Notifications are for operational communication, not execution gating.

Question 9

New Single answer

Topic: Implementing CI/CD

Skill tested: Promotes version-controlled Databricks assets through controlled deployment to production.

An engineering group develops notebooks and job definitions in a shared Git repository. Production changes must be reviewable, traceable to a commit, and deployed consistently; developers must not edit production assets manually. The team wants CI to validate changes before release and a controlled mechanism to publish approved changes. Which workflow best satisfies these constraints?

Correct Answer: C. Use a reviewed version-control change, run automated validation in CI, and deploy the approved revision to production through an automated deployment process.
Explanation:

A reviewed change in version control provides a traceable source of truth, while CI validation catches issues before deployment. Deploying an approved revision through an automated process makes production changes consistent and auditable without manual editing. Editing production first reverses the safe promotion flow. Periodic exports are not a reliable release process, and deploying arbitrary personal branches bypasses review and controlled release decisions.

Question 10

New Single answer

Topic: Troubleshooting, Monitoring, and Optimization

Skill tested: Diagnoses shuffle-heavy Spark stages and reduces unnecessary data movement in transformations.

A Spark job that aggregates a large event table has become slow. The Spark UI shows a stage dominated by shuffle read and write, while CPU utilization remains modest. The code repartitions the full input by a high-cardinality field, then performs a group-by on a different field. The cluster has adequate memory, and reducing output detail is not acceptable. What is the best first optimization?

Correct Answer: B. Remove the unconditional repartition and inspect whether the aggregation can use an appropriate partitioning strategy, reducing avoidable shuffle.
Explanation:

The UI indicates data movement is the bottleneck, and the code adds a repartition on a key different from the aggregation key. Removing unnecessary redistribution is the most direct first step; the aggregation may still require a shuffle, but avoidable shuffle work can be eliminated. More driver memory does not make a distributed group-by local. Additional repartitioning can add more movement, while caching may help repeated reads but does not remove the shuffle required to aggregate by key.

Question 11

New Single answer

Topic: Governance and Security

Skill tested: Applies Unity Catalog privileges and least-privilege access to shared data objects.

A company stores curated sales data in Unity Catalog. Analysts in one group must query a table but must not alter it, while a small engineering group manages the table definition. Administrators want access to be granted through groups rather than individual users. Which design best enforces least privilege?

Correct Answer: D. Grant the analyst group `SELECT` on the table and grant the engineering group only the object-management privileges required for its duties.
Explanation:

Unity Catalog supports privilege grants on securable objects, and granting the analyst group only `SELECT` allows queries without granting modification rights. Group-based grants simplify administration and avoid user-by-user exceptions. Broad catalog privileges and table ownership grant substantially more authority than required. Direct storage access bypasses the intended table-level governance boundary and is not an appropriate substitute for governed object privileges.

Question 12

New Multiple answers

Topic: Governance and Security

Skill tested: Uses Unity Catalog object privileges and governed data discovery to restrict access appropriately.

A healthcare analytics organization separates protected patient data from de-identified reporting data in Unity Catalog. Reporting analysts should query only the de-identified table, while a restricted clinical group may access the protected table. The organization also requires users to discover approved datasets without receiving broader access as a side effect. Which TWO practices best meet these requirements? Select TWO.

Correct Answer: C. Publish or document approved datasets for discovery while managing their access separately through Unity Catalog privileges.; E. Grant each group only the required privileges on its approved Unity Catalog objects.
Explanation:

Least-privilege grants on the appropriate Unity Catalog objects separate access to protected and de-identified data. Dataset discovery can be supported through catalog organization and documentation without granting extra query privileges; discovery and authorization are distinct concerns. Catalog ownership is excessive, direct storage credentials bypass governed access, and relying on voluntary filters in a combined table does not enforce the required separation.