Question 1
A gold table joins a large fact table with several dimensions nightly using a full recompute that takes 3 hours. Only 1% of facts change. What is a better approach?
- Disable the job
- Recompute every hour
- Process only changed data incrementally — Correct
- Add more workers and keep the full recompute
Correct answer
Process only changed data incrementally
Explanation
Incremental processing avoids recomputing unchanged data.
Question 2
A query in the Spark UI shows a BroadcastNestedLoopJoin taking hours. What is the most likely cause?
- Photon being enabled, which converts every hash join into a nested loop join
- A non-equi or missing join condition — Correct
- A properly written equi-join on a primary key, which Spark always executes as a nested loop
- Too few columns in the select list, which forces nested loop joins
Correct answer
A non-equi or missing join condition
Explanation
Nested loop joins arise from conditions without equality keys; rewriting with equi-join keys or ranges helps.
Question 3
Which file sizing guidance is generally appropriate for large Delta tables read by analytic queries?
- Files of about 1 KB
- Files of roughly 128 MB to 1 GB, managed by OPTIMIZE or auto-tuning — Correct
- Exactly one file per row, so that updates rewrite as little data as possible during MERGE operations
- One file per table
Correct answer
Files of roughly 128 MB to 1 GB, managed by OPTIMIZE or auto-tuning
Explanation
Moderately large files balance scan efficiency and parallelism; Databricks auto-tunes sizes.
Question 4
Which statement about materialized view incremental refresh is correct?
- It always performs a full recompute
- It is used when the query and source support it — Correct
- It requires external tables
- It cannot be used with joins
Correct answer
It is used when the query and source support it
Explanation
Databricks chooses incremental or full refresh based on the query and source capabilities.
Question 5
A MERGE source has 10 million rows and the target 5 billion rows. The join key is the target's clustering key. Which join strategy is typically chosen, and why does clustering help?
- No join
- A shuffle or broadcast join with file pruning on the clustered key — Correct
- A nested loop join on the driver, which scales best for large MERGE operations with billions of rows
- A cross join, because MERGE always compares every source row with every target row
Correct answer
A shuffle or broadcast join with file pruning on the clustered key
Explanation
Clustering on the merge key lets Delta prune target files during the join.
Question 6
Which property enables optimized writes and auto compaction to reduce small files during writes?
- delta.logRetentionDuration
- delta.autoOptimize.optimizeWrite and autoCompact — Correct
- delta.enableChangeDataFeed
- delta.columnMapping.mode
Correct answer
delta.autoOptimize.optimizeWrite and autoCompact
Explanation
Optimized writes produce larger files; auto compaction compacts small files after writes.
Question 7
A stage shows high 'Shuffle Read Blocked Time'. What does this suggest?
- Tasks wait on fetching shuffle data over the network — Correct
- The table has too many Delta versions
- The cluster is using too much cache memory
- The driver is computing the query plan for too long
Correct answer
Tasks wait on fetching shuffle data over the network
Explanation
Blocked time indicates network or remote fetch bottlenecks.
Question 8
A table has thousands of small files because a streaming job writes every 10 seconds. Which change reduces small files most directly?
- Lower the trigger interval to 1 second so that each file is even smaller
- Partition the table by event second
- Enable auto compaction and optimized writes — Correct
- Disable the checkpoint for the stream
Correct answer
Enable auto compaction and optimized writes
Explanation
Auto compaction and optimized writes consolidate small files from frequent writes.
Question 9
A table is read by many teams with different filters, and query patterns evolve. Which layout strategy needs the least manual tuning?
- No layout optimization
- Hive-style partitioning by three columns
- Automatic liquid clustering — Correct
- Manual ZORDER weekly on all columns
Correct answer
Automatic liquid clustering
Explanation
Automatic clustering adapts keys to observed query patterns.
Question 10
Which approach keeps gold tables efficient for dashboards that always show the last 90 days?
- Pre-aggregate and cluster on date — Correct
- Use dynamic views over bronze
- Store gold as JSON
- Compute aggregates from bronze at query time
Correct answer
Pre-aggregate and cluster on date
Explanation
Pre-aggregation and clustering on common filters speed reads.