DATA-ENG-ASSOC Sample Questions & Answers
Declarative pipelines built on the medallion architecture, alongside notebook development and Auto Loader ingestion, tie for the heaviest weight, with the rest covering Asset Bundles and workflow management, platform architecture basics, and Unity Catalog governance.
Launch the full DATA-ENG-ASSOC simulator →Showing 10 of 20 free samples.
- Question 1Intermediate
Data Processing & Transformations · Describe the three layers of the Medallion Architecture
During a code review, a senior engineer observes the following PySpark code snippet intended to update customer records based on new transactions. What is the primary issue with this approach for transforming data from a Bronze to a Silver table in a Medallion architecture?
# bronze_df is the raw, unvalidated source DataFrame # silver_table is the path to the clean, validated Delta table (bronze_df.write .format("delta") .mode("overwrite") .save(silver_table))Show answer & explanation
Correct answer: A
The primary purpose of the Silver layer is to store cleansed, validated, and enriched data. This code snippet moves data directly from the source (Bronze) to Silver using a blind overwrite without any intermediate transformation steps. This violates the core principle of the Medallion architecture, as it bypasses the crucial data quality and shaping processes that should occur between the Bronze and Silver layers.
- Question 2Advanced
Data Processing & Transformations · Implement data pipelines using LDP
A data engineer is building a Delta Live Tables (DLT) pipeline. They need to define a table that combines streaming data from a Kafka source with a static dimension table from Unity Catalog for enrichment. The pipeline should enforce a quality constraint: the join key from the streaming source must not be null. If a record violates this constraint, it should be dropped, and the pipeline should continue processing valid records. Which DLT function and expectation clause should be used?
graph TD A[Kafka Stream] --> C{DLT Pipeline}; B[UC Dimension Table] --> C; C -->|Join & Enrich| D[Silver Table]; D -->|CONSTRAINT key IS NOT NULL| E{Quality Check}; E -->|Violation| F[Drop Row]; E -->|Valid| G[Process Row];Show answer & explanation
Correct answer: C
To create a physical table that can be queried later,
@dlt.tableis the correct decorator. To enforce a quality rule where invalid records are dropped while allowing the pipeline to continue,@dlt.expect_or_dropis the appropriate function.@dlt.expect_or_failwould halt the pipeline, and@dlt.expectwould only record the violation statistics without dropping or failing. - Question 3Intermediate
Data Governance & Quality · Use the Delta Sharing feature available with Unity Catalog to share data
A company wants to provide its external partners with read-only access to a curated sales dataset managed in Unity Catalog. The partners do not have Databricks workspaces. The data engineering team needs to set up a secure sharing mechanism that does not require creating and managing users within their Databricks account. Which technology should be used to achieve this?
Show answer & explanation
Correct answer: C
Delta Sharing is the open protocol specifically designed for sharing live data from Databricks to any external consumer, regardless of their platform. It works by creating shares and recipients, then providing the recipient with a secure, one-time activation link to download a credential file. This allows them to access the shared data using various connectors (like Power BI, Tableau, pandas) without needing a Databricks account. Lakehouse Federation is for querying external data sources from within Databricks, not sharing data out.
- Question 4Beginner
Databricks Intelligence Platform · Identify the applicable compute to use for a specific use case
An organization is looking to optimize its ad-hoc analytics query performance and reduce infrastructure management overhead. The analytics team runs a large number of concurrent, short-running queries against Gold tables throughout the day. The workload pattern is highly variable. Which type of compute resource is the best fit for this scenario?
Show answer & explanation
Correct answer: B
Serverless SQL warehouses are ideal for this use case. They provide instant compute, automatically scale up and down to handle concurrent query loads, and eliminate the need for administrators to manage cluster configurations. This directly addresses the requirements for performance on variable workloads and reduced management overhead. A job cluster is for automated jobs, and an all-purpose cluster requires manual management and is less efficient for handling concurrent SQL queries.
- Question 5Intermediate
Data Processing & Transformations · Identify DDL (Data Definition Language)/DML features
A data engineer needs to write a PySpark DataFrame containing daily sales aggregates to a Delta table. The operation must insert new sales records and update the total sales amount for existing dates that are already in the target table. Which operation should be used to accomplish this combined insert and update logic efficiently?
Show answer & explanation
Correct answer: B
The
mergeoperation is specifically designed for this type of 'upsert' (update or insert) scenario. It allows you to define conditions for matching records between a source DataFrame and a target Delta table. ThewhenMatchedUpdateclause specifies the update logic for existing records, while thewhenNotMatchedInsertclause handles the insertion of new records, all within a single, atomic transaction. - Question 6Intermediate
Productionizing Data Pipelines · Deploy a workflow, repair, and rerun a task in case of failure
A multi-task workflow fails on a task that processes a large volume of data. The engineer determines the failure was due to a transient network issue. The workflow is configured with three tasks:
ingest_data,transform_data, andload_summary. Thetransform_datatask failed. What is the most efficient way to rerun the workflow to completion?Show answer & explanation
Correct answer: C
The 'Repair and Rerun' feature is designed for this exact purpose. It allows you to resume a failed workflow run from the point of failure. It intelligently skips the tasks that have already completed successfully (like
ingest_data) and reruns only the failed tasks and their downstream dependencies. This is the most efficient method as it avoids re-processing data unnecessarily. - Question 7Beginner
Development and Ingestion · Determine the capabilities of Notebooks functionality
A data team uses Databricks notebooks for collaborative development. To maintain code quality and history, they have integrated their project with a Git provider using Databricks Repos. Which of the following Git operations must be performed outside the Databricks Repos UI, typically in the command line or a Git client?
Show answer & explanation
Correct answer: D
The Databricks Repos UI provides core Git functionality like commit, pull, push, and branching. However, for complex operations like resolving merge conflicts that Git cannot handle automatically, the user must pull the changes to their local machine, use standard Git tools to resolve the conflicts, and then push the resolved code back to the remote repository.
- Question 8Intermediate
Databricks Intelligence Platform · Enable features that simplify data layout decisions and optimize query performance
A data analyst needs to query a large partitioned Delta table containing several years of sales data. The queries are often slow because they scan an excessive amount of data. The analyst notices that most queries filter on the
order_dateandproduct_categorycolumns. The table is currently partitioned only byorder_date. What optimization technique should be applied to the Delta table to significantly improve the performance of these queries?Show answer & explanation
Correct answer: B
Partitioning is effective for low-cardinality columns like date. For a high-cardinality column like
product_category, adding it as a partition key would create too many small files (the small files problem) and be inefficient. Z-Ordering is the correct technique here. It co-locates related data from different columns (in this case,product_category) within the same set of files. This allows the query engine to skip a significant amount of data that doesn't match the filter conditions, dramatically improving query performance without the downsides of fine-grained partitioning. - Question 9Advanced
Data Governance & Quality · Identify Use cases of Lakehouse Federation when connected to external sources
A financial services company needs to join its customer data, stored in a Delta table within Unity Catalog, with a list of sanctioned individuals, which is maintained in a PostgreSQL database outside of Databricks. The security team has mandated that the PostgreSQL credentials must not be stored in notebooks. The join operation needs to be performed daily as part of a compliance check workflow. What is the most secure and efficient way to perform this cross-system join?
Show answer & explanation
Correct answer: C
Lakehouse Federation is the feature designed for this exact use case. It allows you to create read-only connections to external database systems like PostgreSQL and register their tables as foreign tables within Unity Catalog. This approach securely manages credentials using Databricks Secrets and allows users to run standard SQL queries that join data across the Databricks and PostgreSQL systems seamlessly and efficiently, pushing down predicates where possible.
- Question 10Intermediate
Productionizing Data Pipelines · Identify the difference between DAB and traditional deployment methods
True or False: A Databricks Asset Bundle (DAB) can only be used to deploy resources to a single, predefined Databricks workspace.
Show answer & explanation
Correct answer: B
This statement is false. A key feature of Databricks Asset Bundles is the use of 'targets' in the
databricks.ymlconfiguration file. Targets allow a single bundle to define deployment configurations for multiple environments, such as development, staging, and production, which can correspond to different Databricks workspaces. This makes bundles a powerful tool for managing deployments across a project's entire lifecycle.
Ready for the real thing?
The full DATA-ENG-ASSOC simulator has every exam-style question, timed mode, and instant scoring.