Revizo / Databricks / DB-DEP

DATABRICKS CERTIFICATION STUDY GUIDE

DB-DEP practice questions.
Prepare with a clearer plan.

Validates advanced skills in data engineering using Databricks platform.

Download Revizo
Revizo certification practice question on iPhone

What to know about DB-DEP.

Validates advanced skills in data engineering using Databricks platform.

Format
Multiple choice and hands-on tasks
Duration
120 minutes
Passing score
700/1000
Recommended experience
1+ years of Databricks experience

Exam details are based on the available Databricks catalogue information. Confirm current requirements with the exam provider before booking.

How to prepare for DB-DEP.

Use the provider's current objectives as your source of truth, then organise your Revizo sessions around data and AI workflows, platform capabilities and the practical decisions named in the certification. The DB-DEP exam is listed as Multiple choice and hands-on tasks; your starting point should reflect 1+ years of Databricks experience.

01

Map the official objectives.

Read the current Databricks objectives and make a short list of the areas you need to revisit before booking DB-DEP.

02

Practise one area at a time.

Select DB-DEP in Revizo and use focused question sessions to test one topic or decision type at a time, rather than relying on a single long cram session.

03

Review, then repeat.

Use your results to return to incorrect answers, revisit the official material behind them and repeat short DB-DEP practice sessions until the gaps are clearer.

FREE PRACTICE PREVIEW

Read the first 20
DB-DEP questions.

Review each question, its correct answer and any available source explanation before continuing your certification study in Revizo.

FIRST 20 QUESTIONS

Answers & available explanations

QUESTION 1

An upstream system has been configured to pass the date for a given batch of data to the Databricks Jobs API as a parameter. The notebook to be scheduled will use this parameter to load data with the following code: df = spark.read.format('parquet').load(f'/mnt/source/(date)')
Which code block should be used to create the date Python variable used in the above code block?

  1. AA. date = spark.conf.get("date")
  2. BB. input_dict = input()date= input_dict["date"]
  3. CC. import sysdate = sys.argv[1]
  4. DD. date = dbutils.notebooks.getParam("date")
  5. EE. dbutils.widgets.text("date", "null")date = dbutils.widgets.get("date")
Show answer & explanation

Correct answer: E

Explanation

QUESTION 2

The Databricks workspace administrator has configured interactive clusters for each of the data engineering groups. To control costs, clusters are set to terminate after 30 minutes of inactivity. Each user should be able to execute workloads against their assigned clusters at any time of the day.
Assuming users have been added to a workspace but not granted any permissions, which of the following describes the minimal permissions a user would need to start and attach to an already configured cluster.

  1. AA. "Can Manage" privileges on the required cluster
  2. BB. Workspace Admin privileges, cluster creation allowed, "Can Attach To" privileges on the required cluster
  3. CC. Cluster creation allowed, "Can Attach To" privileges on the required cluster
  4. DD. "Can Restart" privileges on the required cluster
  5. EE. Cluster creation allowed, "Can Restart" privileges on the required cluster
Show answer & explanation

Correct answer: D

Explanation

QUESTION 3

When scheduling Structured Streaming jobs for production, which configuration automatically recovers from query failures and keeps costs low?

  1. AA. Cluster: New Job Cluster;Retries: Unlimited;Maximum Concurrent Runs: Unlimited
  2. BB. Cluster: New Job Cluster;Retries: None;Maximum Concurrent Runs: 1
  3. CC. Cluster: Existing All-Purpose Cluster;Retries: Unlimited;Maximum Concurrent Runs: 1
  4. DD. Cluster: New Job Cluster;Retries: Unlimited;Maximum Concurrent Runs: 1
  5. EE. Cluster: Existing All-Purpose Cluster;Retries: None;Maximum Concurrent Runs: 1
Show answer & explanation

Correct answer: D

Explanation

QUESTION 4

The data engineering team has configured a Databricks SQL query and alert to monitor the values in a Delta Lake table. The recent_sensor_recordings table contains an identifying sensor_id alongside the timestamp and temperature for the most recent 5 minutes of recordings.
The below query is used to create the alert:

The query is set to refresh each minute and always completes in less than 10 seconds. The alert is set to trigger when mean (temperature) > 120. Notifications are triggered to be sent at most every 1 minute.
If this alert raises notifications for 3 consecutive minutes and then stops, which statement must be true?

  1. AA. The total average temperature across all sensors exceeded 120 on three consecutive executions of the query
  2. BB. The recent_sensor_recordings table was unresponsive for three consecutive runs of the query
  3. CC. The source query failed to update properly for three consecutive minutes and then restarted
  4. DD. The maximum temperature recording for at least one sensor exceeded 120 on three consecutive executions of the query
  5. EE. The average temperature recordings for at least one sensor exceeded 120 on three consecutive executions of the query
Show answer & explanation

Correct answer: E

Explanation

QUESTION 5

A junior developer complains that the code in their notebook isn't producing the correct results in the development environment. A shared screenshot reveals that while they're using a notebook versioned with Databricks Repos, they're using a personal branch that contains old logic. The desired branch named dev-2.3.9 is not available from the branch selection dropdown.
Which approach will allow this developer to review the current logic for this notebook?

  1. AA. Use Repos to make a pull request use the Databricks REST API to update the current branch to dev-2.3.9
  2. BB. Use Repos to pull changes from the remote Git repository and select the dev-2.3.9 branch.
  3. CC. Use Repos to checkout the dev-2.3.9 branch and auto-resolve conflicts with the current branch
  4. DD. Merge all changes back to the main branch in the remote Git repository and clone the repo again
  5. EE. Use Repos to merge the current branch and the dev-2.3.9 branch, then make a pull request to sync with the remote repository
Show answer & explanation

Correct answer: B

Explanation

QUESTION 6

The security team is exploring whether or not the Databricks secrets module can be leveraged for connecting to an external database.
After testing the code with all Python variables being defined with strings, they upload the password to the secrets module and configure the correct permissions for the currently active user. They then modify their code to the following (leaving all other variables unchanged).

Which statement describes what will happen when the above code is executed?

  1. AA. The connection to the external table will fail; the string "REDACTED" will be printed.
  2. BB. An interactive input box will appear in the notebook; if the right password is provided, the connection will succeed and the encoded password will be saved to DBFS.
  3. CC. An interactive input box will appear in the notebook; if the right password is provided, the connection will succeed and the password will be printed in plain text.
  4. DD. The connection to the external table will succeed; the string value of password will be printed in plain text.
  5. EE. The connection to the external table will succeed; the string "REDACTED" will be printed.
Show answer & explanation

Correct answer: E

Explanation

QUESTION 7

The data science team has created and logged a production model using MLflow. The following code correctly imports and applies the production model to output the predictions as a new DataFrame named preds with the schema 'customer_id LONG, predictions DOUBLE, date DATE'.

The data science team would like predictions saved to a Delta Lake table with the ability to compare all predictions across time. Churn predictions will be made at most once per day.
Which code block accomplishes this task while minimizing potential compute costs?

  1. AA. preds.write.mode("append").saveAsTable("churn_preds")
  2. BB. preds.write.format("delta").save("/preds/churn_preds")
  3. CC.
  4. DD.
  5. EE.
Show answer & explanation

Correct answer: A

Explanation

QUESTION 8

An upstream source writes Parquet data as hourly batches to directories named with the current date. A nightly batch job runs the following code to ingest all data from the previous day as indicated by the date variable:

Assume that the fields customer_id and order_id serve as a composite key to uniquely identify each order.
If the upstream system is known to occasionally produce duplicate entries for a single order hours apart, which statement is correct?

  1. AA. Each write to the orders table will only contain unique records, and only those records without duplicates in the target table will be written.
  2. BB. Each write to the orders table will only contain unique records, but newly written records may have duplicates already present in the target table.
  3. CC. Each write to the orders table will only contain unique records; if existing records with the same key are present in the target table, these records will be overwritten.
  4. DD. Each write to the orders table will only contain unique records; if existing records with the same key are present in the target table, the operation will fail.
  5. EE. Each write to the orders table will run deduplication over the union of new and existing records, ensuring no duplicate records are present.
Show answer & explanation

Correct answer: B

Explanation

QUESTION 9

A junior member of the data engineering team is exploring the language interoperability of Databricks notebooks. The intended outcome of the below code is to register a view of all sales that occurred in countries on the continent of Africa that appear in the geo_lookup table.
Before executing the code, running SHOW TABLES on the current database indicates the database contains only two tables: geo_lookup and sales.

Which statement correctly describes the outcome of executing these command cells in order in an interactive notebook?

  1. AA. Both commands will succeed. Executing show tables will show that countries_af and sales_af have been registered as views.
  2. BB. Cmd 1 will succeed. Cmd 2 will search all accessible databases for a table or view named countries_af: if this entity exists, Cmd 2 will succeed.
  3. CC. Cmd 1 will succeed and Cmd 2 will fail. countries_af will be a Python variable representing a PySpark DataFrame.
  4. DD. Both commands will fail. No new variables, tables, or views will be created.
  5. EE. Cmd 1 will succeed and Cmd 2 will fail. countries_af will be a Python variable containing a list of strings.
Show answer & explanation

Correct answer: E

Explanation

QUESTION 10

A Delta table of weather records is partitioned by date and has the below schema: date DATE, device_id INT, temp FLOAT, latitude FLOAT, longitude FLOAT
To find all the records from within the Arctic Circle, you execute a query with the below filter: latitude > 66.3
Which statement describes how the Delta engine identifies which files to load?

  1. AA. All records are cached to an operational database and then the filter is applied
  2. BB. The Parquet file footers are scanned for min and max statistics for the latitude column
  3. CC. All records are cached to attached storage and then the filter is applied
  4. DD. The Delta log is scanned for min and max statistics for the latitude column
  5. EE. The Hive metastore is scanned for min and max statistics for the latitude column
Show answer & explanation

Correct answer: D

Explanation

QUESTION 11

The data engineering team has configured a job to process customer requests to be forgotten (have their data deleted). All user data that needs to be deleted is stored in Delta Lake tables using default table settings.
The team has decided to process all deletions from the previous week as a batch job at 1am each Sunday. The total duration of this job is less than one hour. Every Monday at 3am, a batch job executes a series of VACUUM commands on all Delta Lake tables throughout the organization.
The compliance officer has recently learned about Delta Lake's time travel functionality. They are concerned that this might allow continued access to deleted data.
Assuming all delete logic is correctly implemented, which statement correctly addresses this concern?

  1. AA. Because the VACUUM command permanently deletes all files containing deleted records, deleted records may be accessible with time travel for around 24 hours.
  2. BB. Because the default data retention threshold is 24 hours, data files containing deleted records will be retained until the VACUUM job is run the following day.
  3. CC. Because Delta Lake time travel provides full access to the entire history of a table, deleted records can always be recreated by users with full admin privileges.
  4. DD. Because Delta Lake's delete statements have ACID guarantees, deleted records will be permanently purged from all storage systems as soon as a delete job completes.
  5. EE. Because the default data retention threshold is 7 days, data files containing deleted records will be retained until the VACUUM job is run 8 days later.
Show answer & explanation

Correct answer: E

Explanation

QUESTION 12

A junior data engineer has configured a workload that posts the following JSON to the Databricks REST API endpoint 2.0/jobs/create.

Assuming that all configurations and referenced resources are available, which statement describes the result of executing this workload three times?

  1. AA. Three new jobs named "Ingest new data" will be defined in the workspace, and they will each run once daily.
  2. BB. The logic defined in the referenced notebook will be executed three times on new clusters with the configurations of the provided cluster ID.
  3. CC. Three new jobs named "Ingest new data" will be defined in the workspace, but no jobs will be executed.
  4. DD. One new job named "Ingest new data" will be defined in the workspace, but it will not be executed.
  5. EE. The logic defined in the referenced notebook will be executed three times on the referenced existing all purpose cluster.
Show answer & explanation

Correct answer: C

Explanation

QUESTION 13

An upstream system is emitting change data capture (CDC) logs that are being written to a cloud object storage directory. Each record in the log indicates the change type (insert, update, or delete) and the values for each field after the change. The source table has a primary key identified by the field pk_id.
For auditing purposes, the data governance team wishes to maintain a full record of all values that have ever been valid in the source system. For analytical purposes, only the most recent value for each record needs to be recorded. The Databricks job to ingest these records occurs once per hour, but each individual record may have changed multiple times over the course of an hour.
Which solution meets these requirements?

  1. AA. Create a separate history table for each pk_id resolve the current state of the table by running a union all filtering the history tables for the most recent state.
  2. BB. Use MERGE INTO to insert, update, or delete the most recent entry for each pk_id into a bronze table, then propagate all changes throughout the system.
  3. CC. Iterate through an ordered set of changes to the table, applying each in turn; rely on Delta Lake's versioning ability to create an audit log.
  4. DD. Use Delta Lake's change data feed to automatically process CDC data from an external system, propagating all changes to all dependent tables in the Lakehouse.
  5. EE. Ingest all log information into a bronze table; use MERGE INTO to insert, update, or delete the most recent entry for each pk_id into a silver table to recreate the current table state.
Show answer & explanation

Correct answer: E

Explanation

QUESTION 14

An hourly batch job is configured to ingest data files from a cloud object storage container where each batch represent all records produced by the source system in a given hour. The batch job to process these records into the Lakehouse is sufficiently delayed to ensure no late-arriving data is missed. The user_id field represents a unique key for the data, which has the following schema: user_id BIGINT, username STRING, user_utc STRING, user_region STRING, last_login BIGINT, auto_pay BOOLEAN, last_updated BIGINT
New records are all ingested into a table named account_history which maintains a full record of all data in the same schema as the source. The next table in the system is named account_current and is implemented as a Type 1 table representing the most recent value for each unique user_id.
Assuming there are millions of user accounts and tens of thousands of records processed hourly, which implementation can be used to efficiently update the described account_current table as part of each hourly batch job?

  1. AA. Use Auto Loader to subscribe to new files in the account_history directory; configure a Structured Streaming trigger once job to batch update newly detected files into the account_current table.
  2. BB. Overwrite the account_current table with each batch using the results of a query against the account_history table grouping by user_id and filtering for the max value of last_updated.
  3. CC. Filter records in account_history using the last_updated field and the most recent hour processed, as well as the max last_iogin by user_id write a merge statement to update or insert the most recent value for each user_id.
  4. DD. Use Delta Lake version history to get the difference between the latest version of account_history and one version prior, then write these records to account_current.
  5. EE. Filter records in account_history using the last_updated field and the most recent hour processed, making sure to deduplicate on username; write a merge statement to update or insert the most recent value for each username.
Show answer & explanation

Correct answer: C

Explanation

QUESTION 15

A table in the Lakehouse named customer_churn_params is used in churn prediction by the machine learning team. The table contains information about customers derived from a number of upstream sources. Currently, the data engineering team populates this table nightly by overwriting the table with the current valid values derived from upstream data sources.
The churn prediction model used by the ML team is fairly stable in production. The team is only interested in making predictions on records that have changed in the past 24 hours.
Which approach would simplify the identification of these changed records?

  1. AA. Apply the churn model to all rows in the customer_churn_params table, but implement logic to perform an upsert into the predictions table that ignores rows where predictions have not changed.
  2. BB. Convert the batch job to a Structured Streaming job using the complete output mode; configure a Structured Streaming job to read from the customer_churn_params table and incrementally predict against the churn model.
  3. CC. Calculate the difference between the previous model predictions and the current customer_churn_params on a key identifying unique customers before making new predictions; only make predictions on those customers not in the previous predictions.
  4. DD. Modify the overwrite logic to include a field populated by calling spark.sql.functions.current_timestamp() as data are being written; use this field to identify records written on a particular date.
  5. EE. Replace the current overwrite logic with a merge statement to modify only those records that have changed; write logic to make predictions on the changed records identified by the change data feed.
Show answer & explanation

Correct answer: E

Explanation

QUESTION 16

A table is registered with the following code:

Both users and orders are Delta Lake tables. Which statement describes the results of querying recent_orders?

  1. AA. All logic will execute at query time and return the result of joining the valid versions of the source tables at the time the query finishes.
  2. BB. All logic will execute when the table is defined and store the result of joining tables to the DBFS; this stored data will be returned when the table is queried.
  3. CC. Results will be computed and cached when the table is defined; these cached results will incrementally update as new records are inserted into source tables.
  4. DD. All logic will execute at query time and return the result of joining the valid versions of the source tables at the time the query began.
  5. EE. The versions of each source table will be stored in the table transaction log; query results will be saved to DBFS with each query.
Show answer & explanation

Correct answer: B

Explanation

QUESTION 17

A production workload incrementally applies updates from an external Change Data Capture feed to a Delta Lake table as an always-on Structured Stream job. When data was initially migrated for this table, OPTIMIZE was executed and most data files were resized to 1 GB. Auto Optimize and Auto Compaction were both turned on for the streaming production job. Recent review of data files shows that most data files are under 64 MB, although each partition in the table contains at least 1 GB of data and the total table size is over 10 TB.
Which of the following likely explains these smaller file sizes?

  1. AA. Databricks has autotuned to a smaller target file size to reduce duration of MERGE operations
  2. BB. Z-order indices calculated on the table are preventing file compaction
  3. CC. Bloom filter indices calculated on the table are preventing file compaction
  4. DD. Databricks has autotuned to a smaller target file size based on the overall size of data in the table
  5. EE. Databricks has autotuned to a smaller target file size based on the amount of data in each partition
Show answer & explanation

Correct answer: A

Explanation

QUESTION 18

Which statement regarding stream-static joins and static Delta tables is correct?

  1. AA. Each microbatch of a stream-static join will use the most recent version of the static Delta table as of each microbatch.
  2. BB. Each microbatch of a stream-static join will use the most recent version of the static Delta table as of the job's initialization.
  3. CC. The checkpoint directory will be used to track state information for the unique keys present in the join.
  4. DD. Stream-static joins cannot use static Delta tables because of consistency issues.
  5. EE. The checkpoint directory will be used to track updates to the static Delta table.
Show answer & explanation

Correct answer: A

Explanation

QUESTION 19

A junior data engineer has been asked to develop a streaming data pipeline with a grouped aggregation using DataFrame df. The pipeline needs to calculate the average humidity and average temperature for each non-overlapping five-minute interval. Events are recorded once per minute per device.
Streaming DataFrame df has the following schema:
'device_id INT, event_time TIMESTAMP, temp FLOAT, humidity FLOAT'
Code block:

Choose the response that correctly fills in the blank within the code block to complete this task.

  1. AA. to_interval("event_time", "5 minutes").alias("time")
  2. BB. window("event_time", "5 minutes").alias("time")
  3. CC. "event_time"
  4. DD. window("event_time", "10 minutes").alias("time")
  5. EE. lag("event_time", "10 minutes").alias("time")
Show answer & explanation

Correct answer: B

Explanation

QUESTION 20

A data architect has designed a system in which two Structured Streaming jobs will concurrently write to a single bronze Delta table. Each job is subscribing to a different topic from an Apache Kafka source, but they will write data with the same schema. To keep the directory structure simple, a data engineer has decided to nest a checkpoint directory to be shared by both streams.
The proposed directory structure is displayed below:

Which statement describes whether this checkpoint directory structure is valid for the given scenario and why?

  1. AA. No; Delta Lake manages streaming checkpoints in the transaction log.
  2. BB. Yes; both of the streams can share a single checkpoint directory.
  3. CC. No; only one stream can write to a Delta Lake table.
  4. DD. Yes; Delta Lake supports infinite concurrent writers.
  5. EE. No; each of the streams needs to have its own checkpoint directory.
Show answer & explanation

Correct answer: E

Explanation

Build a focused DB-DEP practice routine.

Choose DB-DEP in Revizo and work through original, question-by-question practice on your iPhone. Review results, revisit what needs attention and keep your next session tied to one specific certification objective.

Practise DB-DEP with Revizo

DB-DEP practice questions.

Is Revizo the official Databricks exam?

No. Revizo is an independent iPhone app for certification practice. Refer to the provider's official resources for current exam policies and registration.

How should I use these DB-DEP practice questions?

Use the exam code to select the matching certification in Revizo, then build short, focused sessions around the areas you want to review.

Are Revizo questions copied from live examinations?

No. Revizo provides original practice questions for certification study. Use the provider's official objectives, documentation and policies as the source of truth for your preparation.

What should I use alongside DB-DEP practice questions?

Use the current Databricks objectives, documentation and registration guidance as your source of truth. Revizo is designed to support focused practice, not replace the provider's official materials.

Where can I confirm current DB-DEP requirements?

Check the official Databricks exam page for the latest objectives, registration details and policies.