Courseiva

Databricks-DE-Assoc · topic practice

Data Transformation and Modeling practice questions

This domain covers building reliable lakehouse tables on Databricks: Delta Lake DML, partitioning and layout optimization, slowly changing dimensions, and Structured Streaming ingestion into Bronze/Silver/Gold layers. Questions are scenario-based, asking you to pick the correct MERGE, OPTIMIZE, Z-ORDER, or streaming output mode for a described pipeline problem.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Data Transformation and Modeling

What the exam tests

What to know about Data Transformation and Modeling

Be able to write Delta Lake MERGE statements for SCD Type 2 and CDC, and choose layout strategies like partitioning, Z-ORDER, or OPTIMIZE for query performance. The most important thing: match the merge condition and streaming output mode to the exact insert/update/delete scenario described.

Choosing partition columns, Z-ORDER, and OPTIMIZE to speed filtered Delta queries

Implementing Type 2 SCD with Delta Lake MERGE and effective/end date columns

Applying CDC inserts, updates, and deletes from staging via MERGE INTO

Selecting Structured Streaming output modes and deduplication for Silver tables

Watch out for

Common Data Transformation and Modeling exam traps

  • ▸Assuming partitioning alone fixes slow filters; Z-ORDER or liquid clustering may be the intended answer instead.
  • ▸Writing SCD Type 2 MERGE logic that fails to expire the current row before inserting the new version.
  • ▸Using append mode for CDC merges or forgetting foreachBatch when MERGE must run inside streaming.

Practice set

Data Transformation and Modeling questions

20 questions · select your answer, then reveal the explanation

Question 1mediummultiple choice
Study the full Python automation breakdown →

A data engineer is processing streaming data using Delta Live Tables (DLT) in Python and needs to append incoming records to an existing Delta table without modifying historical records. Which declarative table decorator should be used?

A data engineer is writing a PySpark script to transform a DataFrame and needs to compute rolling window statistics across ordered time-series events. Which Spark SQL function should be used in combination with window specifications to assign a unique sequential rank to rows within a partition without gaps?

Refer to the exhibit. An engineer is attempting to perform a windowed aggregation on an incoming stream, but the pipeline fails with the provided error. What is the most likely cause of this error?

Exhibit

{
  "table": "orders",
  "schema": "order_id LONG, amount DOUBLE, event_time TIMESTAMP",
  "error": "AnalysisException: Cannot resolve 'event_time' given input columns: ['order_id', 'amount']",
  "pipeline_stage": "Silver_Transformation"
}

A data engineer needs to perform an UPSERT operation on a Delta table. Which command is the correct way to achieve this functionality?

You are auditing a Databricks environment and notice that the Silver tables contain massive amounts of historical data that is no longer needed. Which TWO operations should be used to safely remove this data while keeping the Delta Lake ACID consistency?

Which DLT feature should a data engineer use to ensure that the Silver layer remains highly available and that data lineage is automatically tracked?

Which THREE of the following are valid ways to define schemas in a Databricks data engineering pipeline?

A data engineer is tasked with reading a legacy CSV dataset with inconsistent column formats. Which approach ensures the most reliable data ingestion into a Delta table?

A data engineer is designing a pipeline using Delta Live Tables (DLT) to process streaming data. The engineer needs to ensure that only records with a valid 'user_id' are processed, while records without one are quarantined for further analysis. Which DLT constraint is best suited for this requirement?

A data engineer is designing a Gold-level table. Which THREE of the following are best practices to ensure optimal performance and usability for downstream BI reporting?

Which of the following describes the behavior of the 'MERGE INTO' command in Delta Lake when dealing with duplicate source records?

A data engineer is tasked with ensuring that a Delta table's schema is enforced strictly during ingestion. Which feature should they use to reject any data that does not match the predefined schema?

A data engineer is processing streaming JSON data using Auto Loader in Databricks. The incoming schema evolves frequently, and the engineer needs to prevent pipeline failures caused by unexpected columns while capturing those changes. Which parameter configuration achieves this behavior?

A data engineer is designing a Delta Lake Bronze-to-Silver pipeline using Delta Live Tables (DLT) in Python. The engineer wants to ensure that incoming records are validated for data quality, dropping records that fail null checks on critical ID fields while failing the pipeline for invalid business logic. Which TWO DLT expectation decorators should be used to accomplish this?

Refer to the exhibit. A data engineer runs the provided Structured Streaming code to ingest CSV files using Auto Loader. The pipeline fails after a few hours with an AnalysisException stating that the inferred schema has changed due to a new column header in an incoming file. How should the engineer resolve this issue permanently?

Exhibit

SparkSession
  .readStream
  .format("cloudFiles")
  .option("cloudFiles.format", "csv")
  .option("cloudFiles.inferSchema", "true")
  .load("/mnt/source/csvs")
  .writeStream
  .format("delta")
  .option("checkpointLocation", "/mnt/checkpoints/csv_stream")
  .table("silver_csv_data")
Question 16mediummultiple choice
Study the full Python automation breakdown →

A data engineer needs to join two streaming tables in a Delta Live Tables (DLT) pipeline using Python. Which approach properly implements a streaming-to-streaming join within the framework?

A data engineer has a Delta table named `sales` with columns `sale_id`, `customer_id`, `sale_date`, and `amount`. The table is partitioned by `sale_date`. The engineer needs to overwrite only the data for `sale_date = '2024-01-01'` with a new DataFrame containing records only for that date, while preserving all other partitions. Which command should the engineer use?

A data engineer is building a Delta Live Tables (DLT) pipeline that ingests streaming data from a Kafka topic. The pipeline must process only new data since the last run and must handle late-arriving data up to 7 days old. The engineer wants to ensure that the pipeline does not reprocess all historical data on each run. Which configuration should the engineer apply to the streaming table?

A data engineer is optimizing a Delta table that is used for frequent merge operations. The table has a column `id` that is used as the merge key. The engineer wants to improve the performance of the merge by reducing the amount of data scanned. Which two actions should the engineer take? (Choose two.)

A data engineer is building a Databricks SQL dashboard that must return only the 10 most recent orders for each customer from a large Delta table named sales.orders. The table contains columns customer_id, order_id, order_date, and amount. The engineer wants a single query that avoids scanning the entire table for every customer and returns a deterministic result even when two orders share the same order_date. Which SQL statement should the engineer use?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Data Transformation and Modeling sessions

Start a Data Transformation and Modeling only practice session

Every question in these sessions is drawn from the Data Transformation and Modeling domain — nothing else.

Related practice questions

Related Databricks-DE-Assoc topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the Databricks-DE-Assoc exam test about Data Transformation and Modeling?
Be able to write Delta Lake MERGE statements for SCD Type 2 and CDC, and choose layout strategies like partitioning, Z-ORDER, or OPTIMIZE for query performance. The most important thing: match the merge condition and streaming output mode to the exact insert/update/delete scenario described.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Data Transformation and Modeling questions in a focused session?
Yes — the session launcher on this page draws every question from the Data Transformation and Modeling domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other Databricks-DE-Assoc topics?
Use the topic links above to move to related areas, or go back to the Databricks-DE-Assoc question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the Databricks-DE-Assoc exam covers. They are not copied from any real exam or dump site.