Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

Certified Data Engineer Professional

Practice questions for the Certified Data Engineer Professional certification exam.

4.7★★★★★(154 ratings)
16,712 studentsAdvanced
This course covers everything you need to pass the Certified Data Engineer Professional (CERTIFIED-DATA-ENGINEER-PROFESSIONAL) exam. Each part of this course contains real exam questions taken from the actual exam pool, with hint answers to guide your study. Practice with these questions to build confidence and master the topics needed for certification success.

What you'll learn

  • Master the core concepts for CERTIFIED-DATA-ENGINEER-PROFESSIONAL certification
  • Practice with real exam-style questions
  • Understand platform services and architectures covered in CERTIFIED-DATA-ENGINEER-PROFESSIONAL
  • Build confidence through timed practice exams
  • Learn from detailed hint answers and explanations
  • Pass the official CERTIFIED-DATA-ENGINEER-PROFESSIONAL certification exam on your first try

CERTIFIED-DATA-ENGINEER-PROFESSIONAL

Lectures3
Questions170
Duration30 week
Students16,712

$20.00

Full Free Question Bank (170 Questions)

Certified Data Engineer Professional (CERTIFIED-DATA-ENGINEER-PROFESSIONAL) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1Cost & Performance Optimisation

A data engineer runs agroupByaggregation on a massive user-activity log, grouping byuser_id. A small number of users have millions of records, resulting in task skew and long execution times. Which technique will resolve the skew in this aggregation?

AIncrease the Spark driver memory and retry.
BFilter out the skewed users before the aggregation
CUse salting by adding a random prefix to skewed keys before aggregation, then aggregate again after removing the prefix.
DUse reduceByKey instead of groupBy to avoid shuffles.
Question #2Part 1Developing Code for Data Processing using Python and SQL

A junior data engineer must build a streaming data pipeline using DataFrame df that performs a grouped aggregation. The pipeline must calculate average humidity and average temperature for every non-overlapping five-minute interval. Incremental state data must be retained for 10 minutes to accommodate late-arriving data. The streaming DataFrame df has this schema: device_id INT, event_time TIMESTAMP, temp FLOAT, humidity FLOAT Code block: ![Question Image](https://cdn.examcademy.com/images/questions/1784034537455-ijflo04h.png) Choose the response that correctly fills the blank in the code block to finish this task.

AwithWatermark("event_time", "10 minutes")
BawaitArrival("event_time", "10 minutes")
Cawait("event_time + ‘10 minutes'")
DslidingWindow("event_time", "10 minutes")
EdelayWrite("event_time", "10 minutes")
Question #3Part 1Data Governance

A small United States-based company has recently engaged a consulting firm in India to implement several new data-engineering pipelines that will power artificial-intelligence applications. All company data is stored in regional cloud storage in the United States. The company’s workspace administrator is unsure where the Databricks workspace used by the contractors should be deployed. Assuming all data-governance considerations have been addressed, which statement correctly guides this decision?

ADatabricks runs HDFS on cloud volume storage; as such, cloud virtual machines must be deployed in the region where the data is stored.
BDatabricks workspaces do not rely on any regional infrastructure; as such, the decision should be made based upon what is most convenient for the workspace administrator.
CCross-region reads and writes can incur significant costs and latency; whenever possible, compute should be deployed in the same region the data is stored.
DDatabricks notebooks send all executable code from the user’s browser to virtual machines over the open internet; whenever possible, choosing a workspace region near the end users is the most secure.
Question #4Part 1Data Governance

The data architect has required that every table in the Lakehouse be configured as an external (also called “unmanaged”) Delta Lake table. Which approach ensures this requirement is satisfied?

AWhen a database is being created, make sure that the LOCATION keyword is used.
BWhen the workspace is being configured, make sure that external cloud object storage has been mounted.
CWhen data is saved to a table, make sure that a full file path is specified alongside the USING DELTA clause.
DWhen tables are created, make sure that the UNMANAGED keyword is used in the CREATE TABLE statement.
Question #5Part 1Developing Code for Data Processing using Python and SQL

A data engineer is analyzing transactional data in a PySpark DataFrame df that contains customer_id, transaction_timestamp (precise to milliseconds), and amount_spent. The goal is to calculate a cumulative sum of amount_spent for each customer, strictly ordered by transaction_timestamp. The cumulative sum must include every transaction from the earliest timestamp through and including the current row, while preserving temporal order within each customer partition. Which PySpark code snippet most accurately defines the required window specification and applies the aggregation to produce the correct cumulative expenditure per customer?

A![](https://cdn.examcademy.com/images/questions/1785603957446-paeq54ei.png)
B![](https://cdn.examcademy.com/images/questions/1785603960397-drz1nafl.png)
C![](https://cdn.examcademy.com/images/questions/1785603962966-acijsps3.png)
D![](https://cdn.examcademy.com/images/questions/1785603965467-tey6tgxq.png)
Question #6Part 1Ensuring Data Security and Compliance

The security team is investigating whether the Databricks secrets module can be used to connect to an external database. After testing the code with all Python variables defined as strings, they upload the password to the secrets module and set the correct permissions for the currently active user. They then update their code as follows, leaving every other variable unchanged. ![Question Image](https://cdn.examcademy.com/images/questions/1783771911974-bjycxomq.png) Which statement explains what will occur when the preceding code runs?

AThe connection to the external table will fail; the string "REDACTED" will be printed.
BAn 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.
CAn 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.
DThe connection to the external table will succeed; the string value of password will be printed in plain text.
EThe connection to the external table will succeed; the string "REDACTED" will be printed.
Question #7Part 1Debugging and Deploying

A Delta Lake table was created by using the query below: ![Question Image](https://cdn.examcademy.com/images/questions/1783774672161-le3z03pf.png) After noticing that the original query contained a typographical error, the following code was run: ALTER TABLE prod.sales_by_stor RENAME TO prod.sales_by_store What result occurs after the second command runs?

AThe table reference in the metastore is updated and no data is changed.
BThe table name change is recorded in the Delta transaction log.
CAll related files and metadata are dropped and recreated in a single ACID transaction.
DThe table reference in the metastore is updated and all data files are moved.
EA new Delta transaction log Is created for the renamed table.
Question #8Part 1Monitoring and Alerting

A production cluster contains 3 executor nodes and uses the same virtual machine type for both the driver and executors. When evaluating the Ganglia Metrics for this cluster, which indicator would signal a bottleneck caused by code running on the driver?

AThe five Minute Load Average remains consistent/flat
BBytes Received never exceeds 80 million bytes per second
CTotal Disk Space remains constant
DNetwork I/O never spikes
EOverall cluster CPU utilization is around 25%
Question #9Part 1Debugging and Deploying

How do the operational characteristics of Lakeflow Spark Declarative Pipelines differ from those of Spark Structured Streaming?

ALakeflow Spark Declarative Pipelines automatically handle schema evolution, while Structured Streaming always requires manual schema management.
BStructured Streaming can process continuous data streams, while Lakeflow Spark Declarative Pipelines cannot.
CLakeflow Spark Declarative Pipelines manage the orchestration of multi-stage pipelines automatically, while Structured Streaming requires external orchestration for complex dependencies.
DLakeflow Spark Declarative Pipelines can write to Delta Lake format while structured streaming cannot.
Question #10Part 1Cost & Performance Optimisation

A Databricks user who is new to the platform is attempting to troubleshoot lengthy execution times for pipeline logic they are developing. Currently, the user executes code one cell at a time and uses display() calls to verify that, as new transformations are added to an operation, the code produces logically correct results. To measure average execution time, the user runs every cell interactively several times. Which adjustment will provide a more accurate measurement of how the code is likely to perform in production?

AScala is the only language that can be accurately tested using interactive notebooks; because the best performance is achieved by using Scala code compiled to JARs, all PySpark and Spark SQL logic should be refactored.
BThe only way to meaningfully troubleshoot code execution times in development notebooks Is to use production-sized data and production-sized clusters with Run All execution.
CProduction code development should only be done using an IDE; executing code against a local build of open source Spark and Delta Lake will provide the most accurate benchmarks for how code will perform in production.
DCalling display() forces a job to trigger, while many transformations will only add to the logical query plan; because of caching, repeated execution of the same logic does not provide meaningful results.
EThe Jobs UI should be leveraged to occasionally run the notebook as a job and track execution time during incremental code development because Photon can only be enabled on clusters launched for scheduled jobs.
Question #11Part 1Ensuring Data Security and Compliance

All records from an Apache Kafka producer are ingested into one Delta Lake table with this schema: key BINARY, value BINARY, topic STRING, partition LONG, offset LONG, timestamp LONG Five unique topics are being ingested. Only the registration topic contains Personally Identifiable Information (PII). The company wants to restrict access to PII. It also wants to retain records containing PII in this table for only 14 days after initial ingestion. However, it wants to retain non-PII records indefinitely. Which of the following solutions meets these requirements?

AAll data should be deleted biweekly; Delta Lake's time travel functionality should be leveraged to maintain a history of non-PII information.
BData should be partitioned by the registration field, allowing ACLs and delete statements to be set for the PII directory.
CBecause the value field is stored as binary data, this information is not considered PII and no special precautions should be taken.
DSeparate object storage containers should be specified based on the partition field, allowing isolation at the storage level.
EData should be partitioned by the topic field, allowing ACLs and delete statements to leverage partition boundaries.
Question #12Part 1Monitoring and Alerting

When scheduling Structured Streaming jobs in production, which configuration automatically recovers from query failures while keeping costs low?

ACluster: New Job Cluster;Retries: Unlimited;Maximum Concurrent Runs: Unlimited
BCluster: New Job Cluster;Retries: None;Maximum Concurrent Runs: 1
CCluster: Existing All-Purpose Cluster;Retries: Unlimited;Maximum Concurrent Runs: 1
DCluster: New Job Cluster;Retries: Unlimited;Maximum Concurrent Runs: 1
ECluster: Existing All-Purpose Cluster;Retries: None;Maximum Concurrent Runs: 1
Question #13Part 1Ensuring Data Security and Compliance

Which statement describes a primary technical challenge of ensuring consistent PII masking across every node in large-scale, distributed Databricks batch and streaming pipelines?

APII masking is only required for direct identifiers.
BDynamic data masking is applied only at rest, so it does not affect query performance.
CMasking functions must be standardized and managed through Unity Catalog, with enforcement applied across all relevant datasets to avoid any data inconsistency.
DNative masking in Databricks automatically synchronizes with all downstream external Databricks systems.
Question #14Part 1Data Ingestion & Acquisition

A nightly job ingests data into a Delta Lake table using the following code: ![Question Image](https://cdn.examcademy.com/images/questions/1783775418551-cf1xdx97.png) The next pipeline step requires a function that returns an object that can be used to manipulate new records that have not yet been processed into the next table in the pipeline. Which code snippet completes this function definition? ``python def new_records(): `` def new_records():

Areturn spark.readStream.table("bronze")
Breturn spark.read.option("readChangeFeed", "true").table ("bronze")
C![](https://cdn.examcademy.com/images/questions/1783775421635-h3c1g2pf.png)
D![](https://cdn.examcademy.com/images/questions/1783775424817-wbkxxv9n.png)
Question #15Part 1Data Governance

The data architect has required that every table in the Lakehouse be configured as an external (also called “unmanaged”) Delta Lake table. Which approach will ensure this requirement is satisfied?

AWhen a database is being created, make sure that the LOCATION keyword is used.
BWhen configuring an external data warehouse for all table storage, leverage Databricks for all ELT.
CWhen data is saved to a table, make sure that a full file path is specified alongside the Delta format.
DWhen tables are created, make sure that the EXTERNAL keyword is used in the CREATE TABLE statement.
EWhen the workspace is being configured, make sure that external cloud object storage has been mounted.
Question #16Part 1Developing Code for Data Processing using Python and SQL

A junior data-engineering team member is investigating language interoperability in Databricks notebooks. The desired result of the code below is to register a view containing all sales made in countries from the continent of Africa that are present in the geo_lookup table. Before the code is run, SHOW TABLES in the current database shows that it contains only two tables: geo_lookup and sales. ![Question Image](https://cdn.examcademy.com/images/questions/1783772487131-sjewqbwf.png) Which statement accurately describes the result of running these command cells sequentially in an interactive notebook?

ABoth commands will succeed. Executing show tables will show that countries_af and sales_af have been registered as views.
BCmd 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.
CCmd 1 will succeed and Cmd 2 will fail. countries_af will be a Python variable representing a PySpark DataFrame.
DBoth commands will fail. No new variables, tables, or views will be created.
ECmd 1 will succeed and Cmd 2 will fail. countries_af will be a Python variable containing a list of strings.
Question #17Part 1Data Ingestion & Acquisition

A data engineer is ingesting JSON files from cloud object storage by using Databricks Auto Loader. The source folder may occasionally receive large data files, risking an overwhelmed stream. To ensure predictable micro-batch sizes, the team wants to throttle ingestion at 1 GB based on the volume of data scanned, irrespective of the number of files. Which Auto Loader configuration should the data engineer use to accomplish this?

AConfigure cloudFiles.maxBytesPerTrigger with 1 GB to place a limit.
BConfigure cloudFiles.maxSizePerTrigger with 1 GB to place a limit.
CConfigure cloudFiles.maxFilesPerTrigger and estimate the average file size to approximate a size-based throttle of 1 GB.
DConfigure cloudFiles.maxPartitionBytes with 1GB to limit data in each partition.
Question #18Part 1Data Transformation, Cleansing, and Quality

A data engineering team needs to implement a tagging system for its tables as part of an automated ETL process and must apply tags to Unity Catalog tables programmatically. Which SQL command programmatically adds tags to a table?

AALTER TABLE table_name SET TAGS (‘key1’ = ‘value1’, ‘key2’ = ‘value2’);
BAPPLY TAGS ON table_name VALUES (‘key1’ = ‘value1’, ‘key2’ = ‘value2’)
CCOMMENT ON TABLE table_name TAGS (‘key1’ = ‘value1’, ‘key2’ = ‘value2’)
DSET TAGS FOR table_name AS (‘key1’ = ‘value1’, ‘key2’ = ‘value2’)
Question #19Part 1Developing Code for Data Processing using Python and SQL

Which statement describes the general programming model used by Spark Structured Streaming?

AStructured Streaming leverages the parallel processing of GPUs to achieve highly parallel data throughput.
BStructured Streaming is implemented as a messaging bus and is derived from Apache Kafka.
CStructured Streaming relies on a distributed network of nodes that hold incremental state values for cached stages.
DStructured Streaming models new data arriving in a data stream as new rows appended to an unbounded table.
Question #20Part 1Data Modelling

A junior data engineer is implementing logic for a Lakehouse table named silver_device_recordings. The source data has 100 unique fields within a highly nested JSON structure. The silver_device_recordings table will be used downstream to support several production monitoring dashboards and a production model. Currently, 45 of the 100 fields are used by at least one of these applications. The data engineer is determining the best approach to schema declaration given the data’s highly nested structure and numerous fields. Which of the following correctly states information about Delta Lake and Databricks that could affect their decision-making process?

AThe Tungsten encoding used by Databricks is optimized for storing string data; newly-added native support for querying JSON strings means that string types are always most efficient.
BBecause Delta Lake uses Parquet for data storage, data types can be easily evolved by just modifying file footer information in place.
CHuman labor in writing code is the largest cost associated with data engineering workloads; as such, automating table declaration logic should be a priority in all migration workloads.
DBecause Databricks will infer schema using types that allow all observed data to be processed, setting types manually provides greater assurance of data quality enforcement.
ESchema inference and evolution on Databricks ensure that inferred types will always accurately match the data types used by downstream systems.
Question #21Part 1Ensuring Data Security and Compliance

The data engineering team has configured a job to handle customer requests to be forgotten (to have their data deleted). All user data requiring deletion is stored in Delta Lake tables with the default table settings. The team has chosen to process all deletions from the prior week as a batch job at 1am every Sunday. This job runs for less than one hour in total. Each Monday at 3am, another batch job runs a series of VACUUM commands on all Delta Lake tables across the organization. The compliance officer has recently become aware of Delta Lake's time-travel functionality and is concerned it could permit ongoing access to deleted data. Assuming that all deletion logic is implemented correctly, which statement correctly addresses this concern?

ABecause the VACUUM command permanently deletes all files containing deleted records, deleted records may be accessible with time travel for around 24 hours.
BBecause 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.
CBecause 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.
DBecause 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.
EBecause 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.
Question #22Part 1Monitoring and Alerting

A platform-team lead is responsible for automating attribution of SQL Warehouse usage to individual teams. The requirement is to identify SQL warehouse usage at the individual-user level and produce a daily report to share with an executive team that includes leaders from every business unit. How should the platform lead create an automated report that can be shared daily?

AUse the system tables to capture the audit and billing usage data and share the queries with the executive team. This enables the executives to execute the query and see the latest results any time.
BUse the system tables to capture the audit and billing usage data and create a dashboard with daily refresh schedules and shared with the executive team.
CRestrict users from running any SQL query unless they provide all the query details so that the attribution can be calculated and shared with the executive team.
DLet the users run the SQL query and then directly report the usage to the executives. The ownership of the SQL warehouse usage will be with the individual teams.
Question #23Part 1Data Transformation, Cleansing, and Quality

A Delta Lake table named customer_churn_params in the Lakehouse is used by the machine learning team for churn prediction. The table holds customer information derived from several upstream sources. At present, the data engineering team populates this table nightly by overwriting it with the currently valid values derived from upstream data sources. Immediately after every successful update, the data engineering team wants to determine the difference between the new table version and its preceding version. Given the current implementation, which method can be used?

AExecute a query to calculate the difference between the new version and the previous version using Delta Lake’s built-in versioning and lime travel functionality.
BParse the Delta Lake transaction log to identify all newly written data files.
CParse the Spark event logs to identify those rows that were updated, inserted, or deleted.
DExecute DESCRIBE HISTORY customer_churn_params to obtain the full operation metrics for the update, including a log of all records that have been added or modified.
EUse Delta Lake’s change data feed to identify those records that have been updated, inserted, or deleted.
Question #24Part 1Ensuring Data Security and Compliance

The data engineering team has been assigned to configure connections to an external database for which Databricks has no supported native connector. The external database already has data security configured through group membership. These groups directly map to user groups already created in Databricks that represent different teams within the company. A new login credential has been created for every group in the external database. The Databricks Utilities Secrets module will be used to make these credentials available to Databricks users. Assuming all credentials are configured correctly on the external database and group membership is properly configured in Databricks, which statement describes how teams can be granted the minimum necessary access to use these credentials?

ANo additional configuration is necessary as long as all users are configured as administrators in the workspace where secrets have been added.
B"Read" permissions should be set on a secret key mapped to those credentials that will be used by a given team.
C"Read" permissions should be set on a secret scope containing only those credentials that will be used by a given team.
D"Manage" permissions should be set on a secret scope containing only those credentials that will be used by a given team.
Question #25Part 1Cost & Performance Optimisation

Given the following PySpark code in a Databricks notebook: ``python filtered_df=spark.read.format(“delta”).load(“/mnt/daya/large_table”) \ .filter (“event_date> ‘2024-01-01’”) filtered_df.count () ` The data engineer sees in the Query Profile that the scan operator for filtered_df` reads nearly all files despite the filter being applied. What is the likely reason for ineffective data skipping? filtered_df=spark.read.format(“delta”).load(“/mnt/daya/large_table”) \ .filter (“event_date> ‘2024-01-01’”) filtered_df.count ()

AThe Delta table lacks optimization that enables dynamic file pruning.
BThe filter condition involves a data type that is excluded from data skipping support.
CThe filter is executed only after the full data scan, which prevents data skipping from taking place.
DThe event_date column is outside the table’s partitioning and Z-ordering scheme.
Question #26Part 1Cost & Performance Optimisation

Which statement characterizes Delta Lake Auto Compaction?

AAn asynchronous job runs after the write completes to detect if files could be further compacted; if yes, an OPTIMIZE job is executed toward a default of 1 GB.
BBefore a Jobs cluster terminates, OPTIMIZE is executed on all tables modified during the most recent job.
COptimized writes use logical partitions instead of directory partitions; because partition boundaries are only represented in metadata, fewer small files are written.
DData is queued in a messaging bus instead of committing data directly to memory; all data is committed from the messaging bus in one batch once the job is complete.
EAn asynchronous job runs after the write completes to detect if files could be further compacted; if yes, an OPTIMIZE job is executed toward a default of 128 MB.
Question #27Part 1Debugging and Deploying

Adding unit tests to a PySpark application requires early consideration of job design, or potentially substantial refactoring of existing code. Which benefit compensates for this extra effort?

AImproves the quality of your data
BValidates a complete use case of your application
CTroubleshooting is easier since all steps are isolated and tested individually
DEnsures that all steps interact correctly to achieve the desired end result
Question #28Part 1Ensuring Data Security and Compliance

Although the Databricks Utilities Secrets module provides tools to store sensitive credentials and helps avoid accidentally displaying them in plain text, users should still be careful about which credentials are stored here and which users have access to these secrets. Which statement describes a limitation of Databricks Secrets?

ABecause the SHA256 hash is used to obfuscate stored secrets, reversing this hash will display the value in plain text.
BAccount administrators can see all secrets in plain text by logging on to the Databricks Accounts console.
CSecrets are stored in an administrators-only table within the Hive Metastore; database administrators have permission to query this table by default.
DIterating through a stored secret and printing each character will display secret contents in plain text.
EThe Databricks REST API can be used to list secrets in plain text if the personal access token has proper credentials.
Question #29Part 1Data Modelling

To lower storage and compute costs, the data engineering team has been assigned to curate a series of aggregate tables used by business intelligence dashboards, customer-facing applications, production machine learning models, and ad hoc analytical queries. The data engineering team has learned of new requirements from a customer-facing application, the only downstream workload that it manages entirely. Consequently, an aggregate table used by many teams throughout the organization must have several fields renamed and additional fields added. Which solution addresses this situation while causing minimal interruption to other teams in the organization and without increasing the number of tables that must be managed?

ASend all users notice that the schema for the table will be changing; include in the communication the logic necessary to revert the new table schema to match historic queries.
BConfigure a new table with all the requisite fields and new names and use this as the source for the customer-facing application; create a view that maintains the original data schema and table name by aliasing select fields from the new table.
CCreate a new table with the required schema and new fields and use Delta Lake's deep clone functionality to sync up changes committed to one table to the corresponding table.
DReplace the current table definition with a logical view defined with the query logic currently writing the aggregate table; create a new table to power the customer-facing application.
EAdd a table comment warning all users that the table schema and field names will be changing on a given date; overwrite the table in place to the specifications of the customer-facing application.
Question #30Part 1Data Transformation, Cleansing, and Quality

A data engineer is setting up a pipeline that may receive late-arriving duplicate records. Besides de-duplicating records within a batch, which approach enables the data engineer to deduplicate incoming data against records that were processed previously while inserting it into a Delta table?

ASet the configuration delta.deduplicate = true.
BVACUUM the Delta table after each batch completes.
CPerform an insert-only merge with a matching condition on a unique key.
DPerform a full outer join on a unique key and overwrite existing data.
ERely on Delta Lake schema enforcement to prevent duplicate records.
Question #31Part 1Ensuring Data Security and Compliance

A data engineer is implementing Unity Catalog governance in a multi-team environment. Data scientists require interactive clusters for basic data-exploration tasks, while automated ETL jobs need dedicated processing. How should the data engineer configure cluster-isolation policies to enforce least privilege and ensure Unity Catalog compliance?

AConfigure all dusters with NO_ISOLATION_SHARED access modes since Unity Catalog works with any cluster configuration
BAllow all users to create any duster type and rely on manual configuration to enable Unity Catalog access modes.
CCreate compute policies with STANDARD access mode for interactive 'workloads and dedicated access mode for automated jobs.
DUse only DEDICATED access mode for both interactive workloads and automated jobs to maximize security isolation.
Question #32Part 1Data Governance

The data governance team requires every table that contains Personally Identifiable Information (PII) to be clearly annotated. This includes column comments, a table comment, and the custom table property "contains_pii" = true. The following SQL DDL statement creates a new table: ![Question Image](https://cdn.examcademy.com/images/questions/1784034548949-8wgluyfe.png) Which command permits manual verification that all three requirements have been satisfied?

ADESCRIBE EXTENDED dev.pii_test
BDESCRIBE DETAIL dev.pii_test
CSHOW TBLPROPERTIES dev.pii_test
DDESCRIBE HISTORY dev.pii_test
Question #33Part 1Developing Code for Data Processing using Python and SQL

A junior data engineer on your team has implemented the following code block. Thenew_eventsview contains a batch of records with the same schema as theeventsDelta table. Theevent_idfield serves as this table’s unique key. When this query runs, what happens to new records whoseevent_idmatches an existing record?

AThey are merged.
BThey are ignored.
CThey are updated.
DThey are inserted.
EThey are deleted.
Question #34Part 1Ensuring Data Security and Compliance

A data engineering workspace was automatically enabled for Unity Catalog, resulting in creation of a workspace catalog. New team members report that they can create tables in the default schema but cannot access tables in other schemas in the same workspace catalog. Why can the new team members not access tables in other schemas?

AWorkspace catalog permissions are not subject to inheritance rules.
BWorkspace users receive USE CATALOG and specific privileges on default schema only.
CTables in other schemas require additional BROWSE privileges that new users don’t receive automatically
DNew users only receive CREATE TABLE privileges on the default schema.
Question #35Part 1Debugging and Deploying

Which method installs a Python package at the notebook scope on every node in the currently active cluster?

ARun source env/bin/activate in a notebook setup script
BInstall libraries from PyPI using the cluster UI
CUse %pip install in a notebook cell
DUse %sh pip install in a notebook cell
Question #36Part 1Debugging and Deploying

The Databricks CLI triggers a run of an existing job by passing thejob_idparameter. A successful job-run submission response includes arun_idfield. What does the number next to this field represent?

AThe job_id and number of times the job has been run are concatenated and returned.
BThe globally unique ID of the newly triggered run.
CThe number of times the job definition has been run in this workspace.
DThe job_id is returned in this field.
Question #37Part 1Ensuring Data Security and Compliance

A Delta Lake table was created using the following query: ![Question Image](https://cdn.examcademy.com/images/questions/1783775426959-10kx021t.png) Consider this query: DROP TABLE prod.sales_by_store If a workspace admin executes this statement, what will occur?

AData will be marked as deleted but still recoverable with Time Travel.
BThe table will be removed from the catalog but the data will remain in storage.
CThe table will be removed from the catalog and the data will be deleted.
DAn error will occur because Delta Lake prevents the deletion of production data.
Question #38Part 1Ensuring Data Security and Compliance

A junior data engineer has manually configured a sequence of jobs in the Databricks Jobs UI. After reviewing the work, the engineer notices they are listed as the "Owner" of every job. They try to transfer "Owner" privileges to the "DevOps" group, but are unable to complete the transfer. Which statement explains what prevents this privilege transfer?

ADatabricks jobs must have exactly one owner; "Owner" privileges cannot be assigned to a group.
BThe creator of a Databricks job will always have "Owner" privileges; this configuration cannot be changed.
COther than the default "admins" group, only individual users can be granted privileges on jobs.
DA user can only transfer job ownership to a group if they are also a member of that group.
EOnly workspace administrators can grant "Owner" privileges to a group.
Question #39Part 1Cost & Performance OptimisationSelect 2

A data engineer is tuning a MERGE operation on an 800 GB Unity Catalog-managed table that has frequent updates and deletions. Which two actions should the engineer prioritize to improve MERGE performance? (Choose two.)

AApply liquid clustering using the merge join keys.
BEnable deletion vectors on the table if not already enabled.
CPartition the table by date.
DUse ZORDER on high-cardinality columns.
EOverwrite the table instead of Merge.
Question #40Part 1Cost & Performance Optimisation

The data science team has created and logged a production model with MLflow. The following code correctly imports and applies the production model, producing predictions in a new DataFrame named preds with the schema "customer_id LONG, predictions DOUBLE, date DATE". ![Question Image](https://cdn.examcademy.com/images/questions/1783772492595-4pphz9ap.png) The data science team wants the predictions stored in a Delta Lake table so that all predictions can be compared over time. Churn predictions will be generated no more than once each day. Which code block achieves this while minimizing potential compute costs?

Apreds.write.mode("append").saveAsTable("churn_preds")
Bpreds.write.format("delta").save("/preds/churn_preds")
C![](https://cdn.examcademy.com/images/questions/1783772495318-yooeliss.png)
D![](https://cdn.examcademy.com/images/questions/1783772498772-d63y5pxi.png)
E![](https://cdn.examcademy.com/images/questions/1783772502251-oyaz3jaw.png)
Question #41Part 1Data Governance

To lower storage and compute costs, the data engineering team has been assigned to curate a set of aggregate tables used by business intelligence dashboards, customer-facing applications, production machine learning models, and ad hoc analytical queries. The team has learned of new requirements from a customer-facing application, the only downstream workload they fully manage. Consequently, an aggregate table used by many teams throughout the organization must have several fields renamed, and more fields must be added. Which solution addresses this situation with minimal interruption to other organizational teams, without increasing the number of tables that must be managed?

ASend all users notice that the schema for the table will be changing; include in the communication the logic necessary to revert the new table schema to match historic queries.
BConfigure a new table with all the requisite fields and new names and use this as the source for the customer-facing application; create a view that maintains the original data schema and table name by aliasing select fields from the new table.
CCreate a new table with the required schema and new fields and use Delta Lake's deep clone functionality to sync up changes committed to one table to the corresponding table.
DReplace the current table definition with a logical view defined with the query logic currently writing the aggregate table; create a new table to power the customer-facing application.
Question #42Part 1Debugging and Deploying

A data engineer has configured a Databricks Asset Bundle with multiple targets in databricks.yml and deployed it to the production workspace. To validate the deployment, they must invoke a job named my_project_job specifically in the prod target context. Assuming the job is already deployed, they need to trigger its execution while ensuring that target-specific configuration is honored. Which command triggers the job execution?

Adatabricks job run my_project_job --env prod
Bdatabricks execute my_project_job -e prod
Cdatabricks run my_project_job -t prod
Ddatabricks bundle run my_project_job -t prod
Question #43Part 1Cost & Performance Optimisation

A company keeps account transactions in a Delta Lake table. The company must perform frequent account-level correlations (for example,UPDATEstatements) but wants to avoid rewriting entire Parquet files for every change to reduce file churn and improve write performance. Which Delta Lake feature should the company enable?

AEnable automatic file compaction on writes
BEnable change data feed on the Delta table
CPartition the Delta table by account_id
DEnable deletion vectors on the Delta table
Question #44Part 1Data Transformation, Cleansing, and Quality

A team of data engineers is adding tables to a DLT pipeline that contain repeated expectations for many of the same data-quality checks. A team member proposes reusing these data-quality rules across every table defined in the pipeline. Which approach would enable this?

AAdd data quality constraints to tables in this pipeline using an external job with access to pipeline configuration files.
BUse global Python variables to make expectations visible across DLT notebooks included in the same pipeline.
CMaintain data quality rules in a separate Databricks notebook that each DLT notebook or file can import as a library.
DMaintain data quality rules in a Delta table outside of this pipeline's target schema, providing the schema name as a pipeline parameter.
Question #45Part 1Cost & Performance Optimisation

A data engineer is working in an interactive notebook with many transformations before displaying the result of display(df.collect()). The notebook contains wide transformations and a cross join. The data engineer receives this error: “The spark driver has stopped unexpectedly and is restarting. Your notebook will be automatically reattached.” Which action should the data engineer take?

ARun the notebook on a single node cluster to keep driver from falling.
BRewrite their code to avoid putting memory pressure on the driver node.
CCheck into the Spark UI to see how many jobs are assigned to each stage as they are employing fewer executors.
DLook at the compute metrics UI to see if the executors have higher than 90% memory utilization.
Question #46Part 1Data Transformation, Cleansing, and Quality

Downstream consumers of a Delta Lake table have reported data-quality issues that affect performance in their applications. In particular, invalid latitude and longitude values in the activity_details table have prevented them from using other geolocation processes. A junior engineer wrote the following code to add CHECK constraints to the Delta Lake table: ![Question Image](https://cdn.examcademy.com/images/questions/1783771915536-ot608s88.png) A senior engineer has confirmed that this logic is correct and that the valid latitude and longitude ranges are provided, but the code fails when it is run. Which statement explains the cause of this failure?

ABecause another team uses this table to support a frequently running application, two-phase locking is preventing the operation from committing.
BThe activity_details table already exists; CHECK constraints can only be added during initial table creation.
CThe activity_details table already contains records that violate the constraints; all existing data must pass CHECK constraints in order to add them to an existing table.
DThe activity_details table already contains records; CHECK constraints can only be added prior to inserting values into a table.
EThe current table schema does not contain the field valid_coordinates; schema evolution will need to be enabled before altering the table to add a constraint.
Question #47Part 1Ensuring Data Security and Compliance

A data engineer, User A, promoted a new pipeline to production by using the REST API to programmatically create several jobs. A DevOps engineer, User B, configured an external orchestration tool to trigger job runs by using the REST API. Both users authorized their REST API calls with their personal access tokens. Which statement describes what the workspace audit logs contain for these events?

ABecause the REST API was used for job creation and triggering runs, a Service Principal will be automatically used to identify these events.
BBecause User A created the jobs, their identity will be associated with both the job creation events and the job run events.
CBecause these events are managed separately, User A will have their identity associated with the job creation events and User B will have their identity associated with the job run events.
DBecause the REST API was used for job creation and triggering runs, user identity will not be captured in the audit logs.
Question #48Part 1Data Ingestion & AcquisitionSelect 2

A data engineer needs to ingest a large set of image files (JPEG and PNG) from cloud object storage into a Unity Catalog-managed table for subsequent analysis and visualization. Which two configurations and practices are recommended for incrementally ingesting these images into the table? (Choose two.)

AUse Auto loader and set cloudFiles.format to "TEXT"
BUse Auto loader and set cloudFiles.format to "BINARYFILE"
CUse Auto loader and set cloudFiles.format to "IMAGE"
DUse the pathGlobFilter option to select only image files (e.g.. "*.jpg, *.png")
EMove files to a volume and read with SQL editor
Question #49Part 1Data Modelling

A Delta Lake table that stores metadata about users’ content posts has this schema: user_id LONG, post_text STRING, post_id STRING, longitude FLOAT, latitude FLOAT, post_time TIMESTAMP, date DATE Based on this schema, which column would be a suitable candidate for partitioning the Delta table?

Apost_time
Bdate
Cpost_id
Duser_id
Question #50Part 1Debugging and Deploying

Which REST API request can be used to inspect the notebooks configured to run as tasks in a multi-task job?

A/jobs/runs/list
B/jobs/runs/get-output
C/jobs/runs/get
D/jobs/get
E/jobs/list
Question #51Part 1Developing Code for Data Processing using Python and SQL

Which Python variable holds the list of directories searched when locating required modules?

Aimportlib.resource_path
Bsys.path
Cos.path
Dpypi.path
Epylib.source
Question #52Part 1Debugging and Deploying

A Data Engineer wants to use common Python testing frameworks to run unit tests on Python functions defined across several Databricks notebooks that are currently used in production. How can the data engineer run unit tests for functions that work with production data?

ADefine and import unit test functions from a separate Databricks notebook
BDefine and unit test functions using Files in Repos
CRun unit tests against non-production data that closely mirrors production
DDefine unit tests and functions within the same notebook
Question #53Part 1Data Transformation, Cleansing, and Quality

A data engineer has a Delta table namedorderwith deletion vectors enabled. The engineer attempts to run the following code: What is the expected behavior of deletion vectors when this command executes? DELETE FROM orders WHERE status = 'cancelled'

AFiles are physically rewritten without the deleted row.
BRows are marked as deleted both in metadata and in files.
CRows are marked as deleted in metadata, not in files
DDelta automatically removes all cancelled orders permanently.
Question #54Part 1Debugging and Deploying

A data-engineering team member has submitted a short notebook that they want to schedule as part of a broader data pipeline. Assume the commands below produce logically correct results when they are run as shown. Which command must be removed from the notebook before it is scheduled as a job?

ACmd 2
BCmd 3
CCmd 4
DCmd 5
Question #55Part 1Cost & Performance Optimisation

The data engineer is using Spark’sMEMORY_ONLYstorage level. Which indicators should the data engineer look for in the Spark UI’s Storage tab to indicate that a cached table is not performing optimally?

AOn Heap Memory Usage is within 75% of Off Heap Memory Usage
BThe RDD Block Name includes the “*” annotation signaling a failure to cache
CSize on Disk is > 0
DThe number of Cached Partitions > the number of Spark Partitions
Question #56Part 1Data Ingestion & Acquisition

A data engineer is configuring a pipeline to ingest data from a message bus system that occasionally sends duplicate messages. Duplicate messages can arrive a week apart. The destination is a Databricks Delta Lake table in which every record must appear exactly once. Which Databricks ingestion pattern should be used to handle possible duplicates when events may arrive outside the configured watermark?

AUse Delta Lake’s change data feed to filter duplicate records
BUse Delta Lake time travel to identify and remove duplicates
CConfigure Structured Streaming with dropDuplicates transformation
DImplement a write operation using MERGE INTO with a unique key
Question #57Part 1Monitoring and Alerting

A data engineer operates a production Lakeflow Spark Declarative Pipeline that processes customer transaction data. The pipeline contains several data-quality expectations, including transaction_amount > 0 and customer_id IS NOT NULL. These expectations are specified with the SQL EXPECT clause. The engineer wants to monitor pipeline data quality by analyzing the numbers of records that passed or failed each expectation in the latest pipeline update. The Lakeflow Spark Declarative Pipelines event logs are stored in a Delta table called event_log_table. For the latest pipeline update, identify a programmatic way to extract details such as each expectation’s name, associated dataset, number of records that passed the expectation, and number of records that failed it. Which method retrieves the required data-quality metrics from the Lakeflow Spark Declarative Pipelines event log?

AAccess the event_log_table, filter for events where event_type = ‘flow progress’, and parse the details.flow_progress.data_quality.expectations field to extract the required metrics.
BUse the Lakeflow Spark Declarative Pipelines UI to navigate to the specific pipeline, select the dataset, and view the Data Quality tab to manually retrieve the expectation metrics.
CQuery the event_log_table for events with event_type = ‘data_quality’ and directly select the passed_records and failed_records fields.
DAccess the event_log_table, filter for events where event_type = ‘expectatation_result’, and extract the expectation metrics from the details field.
Question #58Part 1Cost & Performance Optimisation

A data architect is designing a Databricks solution to efficiently process data for varying business requirements. For which scenario should a data engineer use a materialized view rather than a streaming table?

APrecomputing complex aggregations and joins from multiple large tables to accelerate BI dashboard performance.
BProcessing high-volume, continuous clickstream data from a website to monitor user behavior in real-time.
CIngesting data from Apache Kafka topics with sub second processing requirements for immediate alerting,
DImplementing a CDC (Change Data Capture) pipeline that needs to detect and respond to database changes within seconds.
Question #59Part 1Data Transformation, Cleansing, and Quality

A defective IoT sensor in a factory reports a temperature of -500, which causes the LDP pipeline to fail its expectation that permits only values from -100 to 200 degrees Celsius. The data engineer wants to further analyze the faulty data to better understand its cause. How should the data engineer address the faulty data while maintaining data-quality standards?

ARemove all expectations form the pipeline to prevent any future failures, regardless of data quality.
BIgnore the error and simply re-run the pipeline, as Databricks will automatically skip the problematic record on the next run.
CFix the pipeline code and implement a quarantine logic to isolate the faulty data before re-running the pipeline.
DChange the expectation action from fail to warn so that invalid records are included in the output and the pipeline does not fail.
Question #60Part 1Data Modelling

A data engineer is designing a system that uses Lakeflow Declarative Pipeline technology to process real-time truck telemetry data ingested from JSON files in S3 through Auto Loader. The data contains truck_id, timestamp, location, speed, and fuel_level. The system must support two use cases: 1. Near-real-time monitoring for the operations team of the most recent location, speed, and fuel_level for each truck_id. 2. Daily aggregated reports for the management team of total distance traveled and average fuel efficiency for each truck_id. Which approach should the data engineer use for streaming tables and materialized views in the Lakeflow Declarative Pipeline to satisfy these requirements?

ADefine a streaming table to ingest and store the raw telemetry data, and create a streaming table to compute the daily aggregated distance and fuel efficiency per truck_id reporting. Create a materialized view to compute the latest location, speed, and fuel_level per truck_id for real-time monitoring.
BDefine a streaming table to ingest and store the raw telemetry data, and create a materialized view to compute the latest location, speed, and fuel_level per truck_id for real-time monitoring. Create another materialized view to compute the daily aggregated distance and fuel efficiency per truck_id for reporting.
CDefine a streaming table to ingest and store the raw telemetry data, and create a streaming table to incrementally compute the latest location, speed, and fuel_level per truck_id for real-time monitoring. Create a materialized view to compute the daily aggregated distance and fuel efficiency per truck_id for reporting.
DDefine a materialized view to ingest and store the raw telemetry data, and create a streaming table to compute the latest location, speed, and fuel_level per truck_id for real-time monitoring. Create another materialized view to compute the daily aggregated distance and fuel efficiency per truck_id for reporting.
Question #61Part 2Data Modelling

A junior data engineer is moving a workload from a relational database system to the Databricks Lakehouse. The source system uses a star schema and relies on foreign key constraints and multi-table inserts to validate records during writes. Which consideration will affect the engineer’s migration decisions for this workload?

ADatabricks only allows foreign key constraints on hashed identifiers, which avoid collisions in highly-parallel writes.
BForeign keys must reference a primary key field; multi-table inserts must leverage Delta Lake’s upsert functionality.
CCommitting to multiple tables simultaneously requires taking out multiple table locks and can lead to a state of deadlock.
DAll Delta Lake transactions are ACID compliant against a single table, and Databricks does not enforce foreign key constraints.
Question #62Part 2Data Modelling

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

AFilter 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.
BUse Auto Loader to subscribe to new files in the account_history directory; configure a Structured Streaming trigger available job to batch update newly detected files into the account_current table.
COverwrite 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.
DFilter records in account_history using the last_updated field and the most recent hour processed, as well as the max last_login by user_id write a merge statement to update or insert the most recent value for each user_id.
Question #63Part 2Data Governance

For how long is job run history retained?

AIt is retained until you export or delete job run logs
BIt is retained for 30 days, during which time you can deliver job run logs to DBFS or S3
CIt is retained for 60 days, during which you can export notebook run results to HTML
DIt is retained for 60 days, after which logs are archived
Question #64Part 2Cost & Performance Optimisation

A user who is new to Databricks is attempting to troubleshoot long execution times for some pipeline logic they are developing. Currently, the user executes code one cell at a time, using display() calls to verify that code produces logically correct results as new transformations are added to an operation. To measure average execution time, the user runs every cell interactively multiple times. Which of the following changes will provide a more accurate measure of how the code is likely to perform in production?

AThe Jobs UI should be leveraged to occasionally run the notebook as a job and track execution time during incremental code development because Photon can only be enabled on clusters launched for scheduled jobs.
BThe only way to meaningfully troubleshoot code execution times in development notebooks is to use production-sized data and production-sized clusters with Run All execution.
CProduction code development should only be done using an IDE; executing code against a local build of open source Spark and Delta Lake will provide the most accurate benchmarks for how code will perform in production.
DCalling display() forces a job to trigger, while many transformations will only add to the logical query plan; because of caching, repeated execution of the same logic does not provide meaningful results.
Question #65Part 2Cost & Performance Optimisation

Atransactionstable is liquid clustered on the columnsproduct_id,user_id, andevent_date. Which operation does not support clustering on write?

ACTAS and RTAS statements
Bspark.writeStream.format(’delta').mode(’append’)
Cspark.write.format('delta’).mode('append')
DINSERT INTO operations
Question #66Part 2Data Transformation, Cleansing, and Quality

A company uses Auto Loader in a classic Databricks job to process semi-structured JSON files from an external source. At times, records arrive with null critical fields, invalid types, or unanticipated nested-schema variations. The engineer must ensure malformed or nonconforming records are not silently dropped and instead are captured in a separate quarantine table. The pipeline must continue loading valid records into the Bronze layer without failing the job, and the approach must support both batch and streaming ingestion. The data engineer must create a resilient ingestion pattern that automatically sends bad records to a quarantine Delta table while continuing to ingest good records into the Bronze layer for additional processing. Which approach meets the quarantine mechanism requirement in this ingestion architecture?

ACreate a notebook job with inferSchema= True, write a streaming query with .foreachBatch() and catch exceptions using try/except to redirect failed batches to quarantine.
BUse Auto Loader with failFast mode to set to false, and enable schema evolution; invalid records will be silently ignored during ingestion.
CUse Lakeflow Spark Declarative Pipelines with a SQL pipeline; configure it to drop rows with nulls using where critical_fields is not null, and rely on audit logs for malformed data.
DUse Auto Loader with LDP and implement an EXPECT () constraint with a record audit logic to route bad records.
Question #67Part 2Developing Code for Data Processing using Python and SQL

A table is registered using the following code: ![Question Image](https://cdn.examcademy.com/images/questions/1783771890343-0isw4hfe.png) Both users and orders are Delta Lake tables. Which statement characterizes the results of querying recent_orders?

AAll 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.
BAll 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.
CResults will be computed and cached when the table is defined; these cached results will incrementally update as new records are inserted into source tables.
DAll 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.
EThe versions of each source table will be stored in the table transaction log; query results will be saved to DBFS with each query.
Question #68Part 2Data Ingestion & Acquisition

A data engineer must build an efficient pipeline that automatically processes new CSV files as they arrive in S3 storage. Which Databricks feature should the data engineer use to satisfy these requirements?

AStreaming from cloud storage using standard Spark readStream with format (“csv”) and format (“json”)
BCOPY INTO SQL command with parameters to track processed files
CTraditional batch processing with scheduled Databricks Jobs
DAuto Loader with schema inference and evolution enabled
Question #69Part 2Cost & Performance Optimisation

Which approach can be used to determine the total wall-clock time required to execute a query?

AIn the Spark UI, take the job duration of the longest-running job associated with that query.
BIn the Spark UI, take the sum of all task durations that ran across all stages (or all jobs associated with that query.
COpen the Query Profiler associated with that query and use the Total wall-clock duration metric.
DOpen the Query Profiler associated with that query and use the Aggregated task time metric.
Question #70Part 2Data Modelling

An upstream system produces change data capture (CDC) logs that are written to a cloud object-storage directory. Each log record specifies the change type (insert, update, or delete) and the post-change values for every field. The source table has a primary key in the pk_id field. For auditing, the data governance team wants to retain a complete history of every value that has ever been valid in the source system. For analytics, only the latest value for each record must be retained. The Databricks job ingests these records hourly, although an individual record can change multiple times during an hour. Which solution satisfies these requirements?

ACreate 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.
BUse 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.
CIterate 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.
DUse 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.
EIngest 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.
Question #71Part 2Cost & Performance Optimisation

Which statement explains Delta Lake optimized writes?

ABefore a Jobs cluster terminates, OPTIMIZE is executed on all tables modified during the most recent job.
BAn asynchronous job runs after the write completes to detect if files could be further compacted; if yes, an OPTIMIZE job is executed toward a default of 1 GB.
CData is queued in a messaging bus instead of committing data directly to memory; all data is committed from the messaging bus in one batch once the job is complete.
DOptimized writes use logical partitions instead of directory partitions; because partition boundaries are only represented in metadata, fewer small files are written.
EA shuffle occurs prior to writing to try to group similar data together resulting in fewer files instead of each executor writing multiple files based on directory partitions.
Question #72Part 2Data Governance

A data engineering team is building an append-only data pipeline with Delta Lake and wants to ensure data is never changed or deleted after it has been written. Which Delta Lake feature should the data engineer enable to prevent changes to existing data?

ADelta APPEND_ONLY
BDelta VACUUM
CDelta OPTIMIZE
DDelta Time Travel
Question #73Part 2Data Modelling

A junior data engineer is implementing logic for a Lakehouse table named silver_device_recordings. The source data contains 100 unique fields in a deeply nested JSON structure. The silver_device_recordings table will be used downstream for highly selective joins on several fields, and the machine learning team will also use it to filter on a small set of relevant fields. In total, 15 fields have been identified for frequent filter and join logic. The data engineer is determining the best way to handle these nested fields before declaring the table schema. Which of the following correctly states information about Delta Lake and Databricks that could affect this decision?

ABecause Delta Lake uses Parquet for data storage, Dremel encoding information for nesting can be directly referenced by the Delta transaction log.
BSchema inference and evolution on Databricks ensure that inferred types will always accurately match the data types used by downstream systems.
CThe Tungsten encoding used by Databricks is optimized for storing string data; newly-added native support for querying JSON strings means that string types are always most efficient.
DBy default, Delta Lake collects statistics on the first 32 columns in a table; these statistics are leveraged for data skipping when executing selective queries.
Question #74Part 2Developing Code for Data Processing using Python and SQL

A nightly task loads data into a Delta Lake table with the following code: ![Question Image](https://cdn.examcademy.com/images/questions/1783772628460-2tz5zyte.png) The pipeline’s next step needs a function that returns an object for manipulating new records that have not yet been processed into the next pipeline table. Which code snippet finishes this function definition? ``python def new_records(): `` def new_records():

Areturn spark.readStream.table("bronze")
Breturn spark.readStream.load("bronze")
C![](https://cdn.examcademy.com/images/questions/1783772631731-2lir8ipw.png)
Dreturn spark.read.option("readChangeFeed", "true").table ("bronze")
E![](https://cdn.examcademy.com/images/questions/1783772634521-vuz5xtbg.png)
Question #75Part 2Monitoring and Alerting

Which statement is true about retaining job run history?

AIt is retained until you export or delete job run logs
BIt is retained for 30 days, during which time you can deliver job run logs to DBFS or S3
CIt is retained for 60 days, during which you can export notebook run results to HTML
DIt is retained for 60 days, after which logs are archived
EIt is retained for 90 days or until the run-id is re-used through custom run configuration
Question #76Part 2Data Transformation, Cleansing, and Quality

A data engineer uses Lakeflow Declarative Pipeline to propagate row deletions from a source bronze table (user_bronze) to a target silver table (user_silver). The developer wants deletions in user_bronze to automatically delete matching rows in user_silver during pipeline execution. Which configuration ensures that deletions in the bronze table are propagated to the silver table?

AUse apply_changes without CDF and filter rows where _soft_deleted is true.
BEnable CDF on user_silver, read its transaction log, and use MERGE to sync deletions.
CEnable CDF on user_bronze, read its CDF stream, and use apply_changes with apply_as_deletes for user_silver.
DConfigure VACUUM on user_bronze to delete files, then rebuild user_silver from scratch.
Question #77Part 2Debugging and Deploying

Which statement best describes integration testing?

AValidates interactions between subsystems of your application
BRequires an automated testing framework
CRequires manual intervention
DValidates an application use case
EValidates behavior of individual elements of your application
Question #78Part 2Developing Code for Data Processing using Python and SQL

An external object-storage container is mounted at /mnt/finance_eda_bucket. The following code was run to create a database for the finance team: ![Question Image](https://cdn.examcademy.com/images/questions/1783775422670-4rz5c87l.png) After the database was created successfully and its permissions were configured, a finance-team member runs the following code: ![Question Image](https://cdn.examcademy.com/images/questions/1783775425206-zbrlv2rr.png) If every finance-team user belongs to the finance group, which statement describes how the tx_sales table will be created?

AA logical table will persist the query plan to the Hive Metastore in the Databricks control plane.
BAn external table will be created in the storage container mounted to /mnt/finance_eda_bucket.
CA managed table will be created in the DBFS root storage container.
DAn managed table will be created in the storage container mounted to /mnt/finance_eda_bucket.
Question #79Part 2Cost & Performance Optimisation

A Delta Lake table that stores metadata about users’ content posts has the following schema: user_id LONG, post_text STRING, post_id STRING, longitude FLOAT, latitude FLOAT, post_time TIMESTAMP, date DATE The table is partitioned on the date column. A query runs with this filter: longitude < 20 & longitude > -20 Which statement explains how the data will be filtered?

AStatistics in the Delta Log will be used to identify partitions that might Include files in the filtered range.
BNo file skipping will occur because the optimizer does not know the relationship between the partition column and the longitude.
CThe Delta Engine will scan the parquet file footers to identify each row that meets the filter criteria.
DStatistics in the Delta Log will be used to identify data files that might include records in the filtered range.
Question #80Part 2Monitoring and Alerting

To identify the top users consuming compute resources, a data engineering team needs to monitor usage in its Databricks workspace to improve resource utilization and cost control. The team chose to use Databricks system tables, available under the System catalog in Unity Catalog, to obtain detailed visibility into workspace activity. Which SQL query should the team run from the System catalog to accomplish this?

A![](https://cdn.examcademy.com/images/questions/1785604162387-omgn3hr1.png)
B![](https://cdn.examcademy.com/images/questions/1785604168877-kvdaqybs.png)
C![](https://cdn.examcademy.com/images/questions/1785604174186-5kimguiv.png)
D![](https://cdn.examcademy.com/images/questions/1785604178250-wf3ne3ei.png)
Question #81Part 2Data Sharing and Federation

A developer has successfully set up their credentials for Databricks Repos and cloned a remote Git repository. They lack privileges to modify the main branch, which is the only branch presently visible in their workspace. Which approach lets this user share code updates without risking an overwrite of their teammates’ work?

AUse Repos to checkout all changes and send the git diff log to the team.
BUse Repos to create a fork of the remote repository, commit all changes, and make a pull request on the source repository.
CUse Repos to pull changes from the remote Git repository; commit and push changes to a branch that appeared as changes were pulled.
DUse Repos to merge all differences and make a pull request back to the remote repository.
EUse Repos to create a new branch, commit all changes, and push changes to the remote Git repository.
Question #82Part 2Cost & Performance Optimisation

Predictive Optimization is an automated Databricks service that is enabled by default for Unity Catalog Managed tables. It helps maintain Delta tables by continually optimizing them for optimal performance and cost efficiency. Which two operations does Predictive Optimization perform to maintain the Delta tables?

APARTITION BY
BCOMPACT
CANALYZE
DOPTIMIZE
EBUCKETING
Question #83Part 2Data Modelling

A junior data engineer is moving a workload from a relational database system to the Databricks Lakehouse. The source system uses a star schema and relies on foreign key constraints and multi-table inserts to validate records at write time. Which consideration will affect the engineer’s migration decisions?

ADatabricks only allows foreign key constraints on hashed identifiers, which avoid collisions in highly-parallel writes.
BDatabricks supports Spark SQL and JDBC; all logic can be directly migrated from the source system without refactoring.
CCommitting to multiple tables simultaneously requires taking out multiple table locks and can lead to a state of deadlock.
DAll Delta Lake transactions are ACID compliant against a single table, and Databricks does not enforce foreign key constraints.
EForeign keys must reference a primary key field; multi-table inserts must leverage Delta Lake’s upsert functionality.
Question #84Part 2Debugging and Deploying

The Databricks CLI is used to start a run of an existing job by passing the job_id parameter. A successful job-run request response includes a run_id field. Which statement explains what the number next to this field represents?

AThe job_id and number of times the job has been run are concatenated and returned.
BThe total number of jobs that have been run in the workspace.
CThe number of times the job definition has been run in this workspace.
DThe job_id is returned in this field.
EThe globally unique ID of the newly triggered run.
Question #85Part 2Monitoring and Alerting

When monitoring a complex workload, the ability to view the query plan is critical for understanding what the workload is doing. Where is the query-plan visualization located?

AIn the Spart UI, under the Jobs tab
BIn the Query Profiler, under Query Source
CIn the Spark UI, under the SQL/DataFrame tab
DIn the Query Profiler, under the Stages tab
Question #86Part 2Cost & Performance OptimisationSelect 2

A query is taking too long to complete. After examining the Spark UI, the data engineer found a substantial amount of disk spill. The compute instance type used by the data engineer provides only a 1:2 core-to-memory ratio. Which two actions should the data engineer take to minimize spillage? (Choose two.)

AIncrease spark.sql.files.maxPartitionBytes.
BChoose a compute instance with more disk space.
CChoose a compute instance with a higher core-to-memory ratio
DReduce spark.sql.files.maxPartitionBytes.
EChoose a compute instance with more network bandwidth.
Question #87Part 2Monitoring and Alerting

A Databricks SQL dashboard is configured to monitor the total number of records in a collection of Delta Lake tables by using the following query pattern: Which option describes how the results are produced whenever the dashboard is updated? SELECT COUNT (*) FROM table -

AThe total count of rows is calculated by scanning all data files
BThe total count of rows will be returned from cached results unless REFRESH is run
CThe total count of records is calculated from the Delta transaction logs
DThe total count of records is calculated from the parquet file metadata
Question #88Part 2Debugging and Deploying

A junior data engineer configured a workload that sends the following JSON to the Databricks REST API endpoint 2.0/jobs/create. ![Question Image](https://cdn.examcademy.com/images/questions/1783776220559-gibrf8g4.png) Assuming that all configurations and referenced resources are available, which statement describes the result when this workload is executed three times?

AThe logic defined in the referenced notebook will be executed three times on the referenced existing all purpose cluster.
BThe logic defined in the referenced notebook will be executed three times on new clusters with the configurations of the provided cluster ID.
CThree new jobs named "Ingest new data" will be defined in the workspace, but no jobs will be executed.
DOne new job named "Ingest new data" will be defined in the workspace, but it will not be executed.
Question #89Part 2Data Ingestion & Acquisition

Which configuration parameter directly influences the size of a Spark partition when data is ingested into Spark?

Aspark.sql.files.maxPartitionBytes
Bspark.sql.autoBroadcastJoinThreshold
Cspark.sql.adaptive.advisoryPartitionSizeInBytes
Dspark.sql.adaptive.coalescePartitions.minPartitionNum
Question #90Part 2Cost & Performance Optimisation

A data engineer is designing a system to process batch patient-encounter data stored in an S3 bucket, creating a Delta table (patient_encounters) with the columns encounter_id, patient_id, encounter_date, diagnosic_code, and treatment_cost. The table is queried frequently by patient_id and encounter_date, so fast performance is required. Fine-grained access controls must be enforced. The engineer wants to reduce maintenance and improve performance. How should the data engineer create the patient_encounters table?

ACreate an external table in Unity Catalog, specifying an S3 location for the data files. Enable predictive optimization through table properties, and configure Unity Catalog permissions for access controls.
BCreate a managed table in Unity Catalog. Configure Unity Catalog permissions for access controls, schedule jobs to run OPTIMIZE and vacuum command daily to achieve best performance.
CCreate a managed table in Hive metastore. Configure Hive metastore permissions for access controls, and rely on predictive optimization to enhance query performance and simplify maintenance.
DCreate a managed table in Unity Catalog. Configure Unity Catalog permissions for access controls, and rely on predictive optimization to enhance query performance and simplify maintenance.
Question #91Part 2Ensuring Data Security and Compliance

The data-governance team requires that the "user" table containing Personally Identifiable Information (PII) apply the appropriate masking to the SSN column. Therefore, anyone outside HRAdminGroup must see Social Security numbers masked as ***-**-****. The team created this masking function: ![Question Image](https://cdn.examcademy.com/images/questions/1784034557634-2rzl5ft7.png) What must the data-governance team do next to meet this goal?

ACREATE TABLE users -(name STRING);ALTER TABLE users CREATE COLUMN ssn CREATE MASK ssn_mask;
BCREATE TABLE users -(name STRING, int STRING);ALTER TABLE users ALTER COLUMN ssn CREATE MASK if is_member('HRAdminGroup');
CCREATE TABLE users -(name STRING, ssn INT MASKED ssn_mask);
DCREATE TABLE users -(name STRING, ssn STRING);ALTER TABLE users ALTER COLUMN ssn SET MASK ssn_mask;
Question #92Part 2Data Sharing and Federation

A data company uses Databricks Unity Catalog and has several enterprise data sources, including PostgreSQL, Snowflake, and SQL Server. The central data platform team needs to configure Lakehouse Federation so analysts can query external tables directly in Databricks with Databricks SQL, without duplicating the data. Which steps are required to configure Lakehouse Federation securely and with governance?

AMirror the external datasets into Delta Lake using Auto Loader, and govern them using Data Lineage and System Tables.
BConfigure connections and foreign catalog in Unity Catalog, then grant access to foreign catalogs, schemas, and tables using Unity Catalog permissions.
CUse Partner Connect to create linked datasets, and apply table ACLs at the source system to govern access through Databricks.
DCreate external locations and storage credentials to connect to each database, then register foreign tables in Unity Catalog.
Question #93Part 2Data Ingestion & Acquisition

A data engineer is building a job to download multiple PDF files from a third-party REST API endpoint by specifying different report types. The REST API is slow and has intermittent errors, so the engineer wants to track every download activity to identify failures and retry partially, while delivering scalable throughput. The engineer must download ten report types, and the list may change over time. How should the data engineer accomplish this?

AUse a foreach task with a list of report types as its inputs.
BDefine ten Notebook tasks to clearly track which report download failed.
CUse a Delta Lake table to track each report download status as 10 rows, and use it as a source table to execute the download function as a Pandas UDF.
DDefine a list variable within a Notebook to loop through the report types to download them, and print the download results. Execute it as a Notebook tasks.
Question #94Part 2Debugging and Deploying

A data engineering team is configuring a Git project to automate integration tests with Databricks Asset Bundles and the Git provider’s CI/CD capabilities. When a pull containing changes to their pipeline is submitted, they must run a Job to test the data pipeline. Which Databricks bundle command sequence should be executed by the Git provider’s CI/CD automation for this task?

Ainit, deploy, run, validate
Bvalidate, deploy, run
Cinit, validate, deploy, run
Ddeploy, run, validate
Question #95Part 2Ensuring Data Security and Compliance

A data engineering team is setting up access controls in Databricks Unity Catalog. They grant the SELECT privilege on the sales catalog to analyst_group, expecting group members to automatically receive SELECT access to all existing and future schemas, tables, and views in the sales catalog. What characterizes privilege inheritance behavior in Unity Catalog?

APrivileges in Unity Catalog do not cascade; SELECT most be explicitly granted on each schema and table, even if granted at the catalog level.
BGranting SELECT on a catalog automatically applies SELECT to all current and future schemas, tables, and views within that catalog.
CGranting SELECT at the catalog level applies to existing schemas and tables but not to those created in the future.
DPrivileges granted at the schema level override any catalog-level privileges and prevent access unless explicitly revoked.
Question #96Part 2Data Modelling

A junior data engineer is implementing logic for a Lakehouse table called silver_device_recordings. The source data contains 100 distinct fields in a deeply nested JSON structure. The silver_device_recordings table will be used downstream to support several production monitoring dashboards and a production model. Currently, 45 of the 100 fields are used by at least one of these applications. The data engineer is determining the best schema-declaration approach given the highly nested data structure and the large number of fields. Which of the following correctly describes Delta Lake and Databricks information that could affect their decision-making process?

AThe Tungsten encoding used by Databricks is optimized for storing string data; newly-added native support for querying JSON strings means that string types are always most efficient.
BBecause Delta Lake uses Parquet for data storage, data types can be easily evolved by just modifying file footer information in place.
CSchema inference and evolution on Databricks ensure that inferred types will always accurately match the data types used by downstream systems.
DBecause Databricks will infer schema using types that allow all observed data to be processed, setting types manually provides greater assurance of data quality enforcement.
Question #97Part 2Cost & Performance Optimisation

A Structured Streaming job deployed to production has produced higher-than-expected cloud storage costs. Currently, during normal operation, each data microbatch is processed in under 3 seconds; at least 12 times per minute, a microbatch containing 0 records is processed. The streaming write uses the default trigger settings. The production job is scheduled alongside many other Databricks jobs in a workspace where instance pools are provisioned to reduce startup time for batch-execution jobs. Holding all other variables constant and assuming records must be processed in less than 10 minutes, which adjustment will satisfy the requirement?

ASet the trigger interval to 3 seconds; the default trigger interval is consuming too many records per batch, resulting in spill to disk that can increase volume costs.
BIncrease the number of shuffle partitions to maximize parallelism, since the trigger interval cannot be modified without modifying the checkpoint directory.
CSet the trigger interval to 10 minutes; each batch calls APIs in the source storage account, so decreasing trigger frequency to maximum allowable threshold should minimize this cost.
DSet the trigger interval to 500 milliseconds; setting a small but non-zero trigger interval ensures that the source is not queried too frequently.
EUse the trigger once option and configure a Databricks job to execute the query every 10 minutes; this approach minimizes costs for both compute and storage.
Question #98Part 2Ensuring Data Security and Compliance

The data-governance team is reviewing code used to delete records for GDPR compliance. The following logic has been implemented to propagate deletion requests from the user_lookup table to the user_aggregates table. ![Question Image](https://cdn.examcademy.com/images/questions/1783773788274-dxp83xvi.png) Assuming that user_id is a unique identifying key and that every user who requested deletion has been removed from the user_lookup table, which statement explains whether successfully running this logic guarantees that the records to delete from the user_aggregates table are no longer accessible, and why?

ANo; the Delta Lake DELETE command only provides ACID guarantees when combined with the MERGE INTO command.
BNo; files containing deleted records may still be accessible with time travel until a VACUUM command is used to remove invalidated data files.
CYes; the change data feed uses foreign keys to ensure delete consistency throughout the Lakehouse.
DYes; Delta Lake ACID guarantees provide assurance that the DELETE command succeeded fully and permanently purged these records.
ENo; the change data feed only tracks inserts and updates, not deleted records.
Question #99Part 2Debugging and Deploying

A junior developer says that the code in their notebook is not returning the correct results in the development environment. A shared screenshot shows that, although they are using a notebook versioned with Databricks Repos, they are on a personal branch containing old logic. The required branch, named dev-2.3.9, is unavailable in the branch-selection dropdown. Which approach enables this developer to review the current logic for this notebook?

AUse Repos to make a pull request use the Databricks REST API to update the current branch to dev-2.3.9
BUse Repos to pull changes from the remote Git repository and select the dev-2.3.9 branch.
CUse Repos to checkout the dev-2.3.9 branch and auto-resolve conflicts with the current branch
DUse Repos to merge the current branch and the dev-2.3.9 branch, then make a pull request to sync with the remote repository
Question #100Part 2Cost & Performance Optimisation

Which indicators should you look for in the Spark UI’s **Storage** tab that signal a cached table is not performing optimally? Assume that Spark’s MEMORY_ONLY storage level is in use.

ASize on Disk is < Size in Memory
BThe RDD Block Name includes the “*” annotation signaling a failure to cache
CSize on Disk is > 0
DThe number of Cached Partitions > the number of Spark Partitions
EOn Heap Memory Usage is within 75% of Off Heap Memory Usage
Question #101Part 2Cost & Performance Optimisation

Each configuration below is identical in that every cluster has **400 GB** of total RAM, **160 total cores**, and only **one Executor per VM**. For an extremely long-running job whose completion must be guaranteed, which cluster configuration can guarantee completion despite one or more VM failures?

A• Total VMs: 8• 50 GB per Executor• 20 Cores / Executor
B• Total VMs: 16• 25 GB per Executor• 10 Cores / Executor
C• Total VMs: 1• 400 GB per Executor• 160 Cores/Executor
D• Total VMs: 4• 100 GB per Executor• 40 Cores / Executor
E• Total VMs: 2• 200 GB per Executor• 80 Cores / Executor
Question #102Part 2Debugging and Deploying

Which statement identifies a key advantage of an end-to-end test?

AMakes it easier to automate your test suite
BPinpoints errors in the building blocks of your application
CProvides testing coverage for all code paths and branches
DClosely simulates real world usage of your application
EEnsures code is optimized for a real-life workflow
Question #103Part 2Data Sharing and Federation

The marketing team wants to share data in an aggregate table with the sales organization, but the field names used by the teams differ, and several marketing-specific fields have not been approved for the sales organization. Which of the following solutions addresses this situation while emphasizing simplicity?

ACreate a view on the marketing table selecting only those fields approved for the sales team; alias the names of any fields that should be standardized to the sales naming conventions.
BCreate a new table with the required schema and use Delta Lake's DEEP CLONE functionality to sync up changes committed to one table to the corresponding table.
CUse a CTAS statement to create a derivative table from the marketing table; configure a production job to propagate changes.
DAdd a parallel table write to the current production pipeline, updating a new sales table that varies as required from the marketing table.
EInstruct the marketing team to download results as a CSV and email them to the sales organization.
Question #104Part 2Debugging and Deploying

A data architect has designed a system where two Structured Streaming jobs will write concurrently to one bronze Delta table. Each job subscribes to a different Apache Kafka source topic, but both write data using the same schema. To keep the directory layout simple, a data engineer has chosen to nest one checkpoint directory that both streams will share. The proposed directory structure is shown below: ![Question Image](https://cdn.examcademy.com/images/questions/1783772497344-06fkz9qc.png) Which statement explains whether this checkpoint directory structure is valid for this scenario and why?

ANo; Delta Lake manages streaming checkpoints in the transaction log.
BYes; both of the streams can share a single checkpoint directory.
CNo; only one stream can write to a Delta Lake table.
DYes; Delta Lake supports infinite concurrent writers.
ENo; each of the streams needs to have its own checkpoint directory.
Question #105Part 2Cost & Performance Optimisation

Which statement about Spark configuration on the Databricks platform is correct?

AThe Databricks REST API can be used to modify the Spark configuration properties for an interactive cluster without interrupting jobs currently running on the cluster.
BSpark configurations set within a notebook will affect all SparkSessions attached to the same interactive cluster.
CWhen the same Spark configuration property is set for an interactive cluster and a notebook attached to that cluster, the notebook setting will always be ignored.
DSpark configuration properties set for an interactive cluster with the Clusters UI will impact all notebooks attached to that cluster.
Question #106Part 2Debugging and Deploying

What appears on the first line of a Databricks Python notebook when it is viewed in a text editor?

A%python
B// Databricks notebook source
CDatabricks notebook source
D-- Databricks notebook source
EMAGIC %python
Question #107Part 2Monitoring and Alerting

A Databricks SQL dashboard is configured to monitor the total number of records in a collection of Delta Lake tables by using the following query pattern: ``sql SELECT COUNT (*) FROM table - `` Which statement describes how the results are generated whenever the dashboard is updated? SELECT COUNT (*) FROM table -

AThe total count of rows is calculated by scanning all data files
BThe total count of rows will be returned from cached results unless REFRESH is run
CThe total count of records is calculated from the Delta transaction logs
DThe total count of records is calculated from the parquet file metadata
EThe total count of records is calculated from the Hive metastore
Question #108Part 2Cost & Performance Optimisation

The business intelligence team has configured a dashboard to monitor several summary metrics for retail stores. This includes total sales from the prior day, along with totals and averages for various time periods. The fields needed to populate this dashboard have the following schema: ![Question Image](https://cdn.examcademy.com/images/questions/1783774126049-654f00ji.png) For demand forecasting, the Lakehouse has a validated table containing all itemized sales, updated incrementally in near real time. This table, named products_per_order, contains the following fields: ![Question Image](https://cdn.examcademy.com/images/questions/1783774129477-whwmjhf8.png) Because reporting on long-term sales trends is less volatile, analysts using the new dashboard need the data refreshed only once per day. Because many users will query the dashboard interactively throughout a normal business day, it must return results quickly and reduce the total compute used for each materialization. Which solution meets end-user expectations while controlling and limiting potential costs?

APopulate the dashboard by configuring a nightly batch job to save the required values as a table overwritten with each update.
BUse Structured Streaming to configure a live dashboard against the products_per_order table within a Databricks notebook.
CConfigure a webhook to execute an incremental read against products_per_order each time the dashboard is refreshed.
DUse the Delta Cache to persist the products_per_order table in memory to quickly update the dashboard with each query.
EDefine a view against the products_per_order table and define the dashboard against this view.
Question #109Part 2Debugging and Deploying

A data engineering team has a time-consuming data-ingestion job with three data sources, and each data-ingestion notebook takes about one hour to load new data. The job had been working correctly, loading data every midnight. However, one day, the team received an alert stating that the job had failed. After investigating, they determined that the failed notebook code had been updated and that a new required configuration had been introduced, without notice, to parameterize a hardcoded value. The team now must fix the issue as quickly as possible to load the latest data from the failing data source. Which action should the team take in this scenario?

AUpdate the task by adding the missing task parameter, and manually run the job.
BShare the analysis with the failing notebook owner so that they can fix it quickly.
CRepair the run with the new parameter.
DRepair the run with the new parameter, and update the task by adding the missing task parameter.
Question #110Part 2Monitoring and Alerting

A data engineer needs to automate job monitoring and recovery in Databricks with the Jobs API. They must list every job, identify a failed job, and run it again. Which sequence of API actions should the data engineer use?

AUse the jobs list endpoint to list jobs, check job run statuses with jobs runs list, and rerun a failed job using jobs run-now.
BUse the jobs get endpoint to retrieve job details, then use jobs update to rerun failed jobs.
CUse the jobs list endpoint to list jobs, then use the jobs create endpoint to create a new job, and run the new job using jobs run-now.
DUse the jobs cancel endpoint to remove failed jobs, then recreate them with jobs create endpoint and run the new ones.
Question #111Part 2Data Transformation, Cleansing, and Quality

A data engineer uses Structured Streaming to ingest transaction data from a bronze Delta table. Data-quality issues have been identified: transaction values can sometimes be negative, and those rows must be routed to a separate quarantine table. Good data has low-latency requirements because downstream systems use it, whereas bad data will be analyzed only periodically and has no production dependencies. The quarantine job must be implemented so it cannot affect the production processes that rely on good data, while minimizing the job's cost. How should the quarantine process be implemented to meet these requirements?

AThe streaming job for the good data needs to be modified to filter out records with a transaction value less than 0 before writing. The streaming job for the quarantine data needs to filter out records with a transaction value greater than or equal to 0 before writing. Both should run as separate streams on the same cluster to minimize cost.
BThe existing streaming job for the good data should be updated to incorporate the quarantining of the bad data. A new boolean column called “quarantine” should be added to the dataframe, and its value should be set to true if the transaction value is less than 0 and false if the transaction value is greater than or equal to 0. Processing and storing all the data together will save costs.
CThe existing streaming job for the good data should be updated to incorporate the quarantining of the bad data. Inside a foreachBatch function, the dataframe should be filtered so that records with a transaction value greater than or equal to 0 are written to the good data table and records with a transaction value less than 0 are written to a quarantine table. Try/Catch can be added around the writes in the foreachBatch function so that the stream can’t fail.
DThe streaming job for the good data needs to be modified to filter out records with a transaction value less than 0 before writing, and should not share compute with other processes. The streaming job for the quarantine data needs to filter out records with a transaction value greater than or equal to 0 before writing, and should be implemented on a separate small cluster and only run once a day to minimize cost.
Question #112Part 2Data Transformation, Cleansing, and Quality

A data engineer is assessing tools to create a production-grade data pipeline. The team must process change data from cloud object storage, filter out or isolate invalid records, and ensure clean data is delivered promptly to downstream consumers. The team is small, facing tight deadlines, and wants to reduce operational overhead while keeping pipelines auditable and maintainable. Which approach should the data engineer implement?

AIngest data directly into Delta tables via Spark jobs, apply data quality filters using UDFs, and use LDP for creating Materialized Views.
BUse a hybrid approach: Ingest with Auto Loader into Bronze tables, then process using SQL queries in Databricks Workflows to generate cleaned Silver and Gold tables on a schedule.
CImplement ingestion using Auto Loader with Structured Streaming, and manage invalid data handling and table updates using checkpointing and merge logic.
DUse LDP to build declarative pipelines with Streaming Tables and Materialized Views, leveraging built-in support for data expectations and incremental processing.
Question #113Part 2Data Governance

A Delta Lake table named customer_churn_params in the Lakehouse is used by the machine learning team for churn prediction. The table holds customer information derived from several upstream sources. At present, the data engineering team populates the table nightly by overwriting it with the current valid values derived from upstream data sources. Immediately after every successful update, the data engineering team wants to determine the difference between the table’s new version and its prior version. Given the current implementation, which method can be used?

AExecute a query to calculate the difference between the new version and the previous version using Delta Lake’s built-in versioning and lime travel functionality.
BParse the Delta Lake transaction log to identify all newly written data files.
CParse the Spark event logs to identify those rows that were updated, inserted, or deleted.
DExecute DESCRIBE HISTORY customer_churn_params to obtain the full operation metrics for the update, including a log of all records that have been added or modified.
Question #114Part 2Data Transformation, Cleansing, and Quality

Which statement about stream-static joins and static Delta tables is accurate?

AThe checkpoint directory will be used to track updates to the static Delta table.
BEach microbatch of a stream-static join will use the most recent version of the static Delta table as of the job's initialization.
CThe checkpoint directory will be used to track state information for the unique keys present in the join.
DStream-static joins cannot use static Delta tables because of consistency issues.
Question #115Part 2Debugging and Deploying

Assuming that the Databricks CLI has been installed and configured properly, which Databricks CLI command can be used to upload a custom Python Wheel to object storage mounted with DBFS for use by a production job?

Aconfigure
Bfs
Cjobs
Dlibraries
Eworkspace
Question #116Part 2Monitoring and Alerting

When reviewing Ganglia Metrics for a given cluster with 3 executor nodes, which indicator would indicate appropriate utilization of the VM's resources?

AThe five Minute Load Average remains consistent/flat
BBytes Received never exceeds 80 million bytes per second
CNetwork I/O never spikes
DTotal Disk Space remains constant
ECPU Utilization is around 75%
Question #117Part 2Data Transformation, Cleansing, and Quality

A user wants to use DLT expectations to validate that a derived report table includes all records from the source, which are contained in the validation_copy table. The user tries unsuccessfully to achieve this by adding an expectation to the report table definition. ![Question Image](https://cdn.examcademy.com/images/questions/1783776227409-1ng0rww5.png) Which approach would enable DLT expectations to validate that all expected records are present in this table?

ADefine a temporary table that performs a left outer join on validation_copy and report, and define an expectation that no report key values are null
BDefine a SQL UDF that performs a left outer join on two tables, and check if this returns null values for report key values in a DLT expectation for the report table
CDefine a view that performs a left outer join on validation_copy and report, and reference this view in DLT expectations for the report table
DDefine a function that performs a left outer join on validation_copy and report, and check against the result in a DLT expectation for the report table
Question #118Part 2Monitoring and Alerting

Which of the following technologies can be used to identify important areas of text while parsing Spark Driver log4j output?

ARegex
BJulia
Cpyspsark.ml.feature
DScala Datasets
EC++
Question #119Part 2Data Modelling

A healthcare analytics team is building a dimensional model in Delta Lake for patient-care analysis. They have a date dimension table and are assessing design options to ensure that it supports a broad range of time-based analyses. Which date-dimension design approach supports efficient time-based querying and aggregation?

AStore the date as string in ISO format (YYYY-MM-DD) for readability.
BPre-calculate attributes like fiscal_period, quarter, month_name, day_of_week, and holiday.
CStore only the date value and calculate all time attributes in queries.
DCreate separate dimension tables for different calendar systems (fiscal, academic, etc.)
Question #120Part 2Debugging and Deploying

A data engineer is building a daily reporting Job. Two reporting notebooks exist: one for weekdays and one for weekends. An "If/else condition" task is configured as \{\{job.start_time.is_weekday\}\} == true to direct the job to either the weekday or weekend notebook task. The same job will be used across multiple time zones. What action should a senior data engineer take when reviewing the job to merge or reject the pull request?

AReject. As they should use {{job.trigger_time.is_weekday}} instead.
BReject. As the {{job.start_time.is_weekday}} is not a valid value reference.
CReject. As the {{job.start_time.is_weekday}} is for the UTC timezone.
DMerge. As the job configuration looks good.
Question #121Part 3Data Transformation, Cleansing, and Quality

A CHECK constraint was successfully added to the Delta table named activity_details with the following logic: ![Question Image](https://cdn.examcademy.com/images/questions/1783775676064-2u2i3m5g.png) A batch job attempts to insert new records into the table, including one record where latitude = 45.50 and longitude = 212.67. Which statement describes the result of this batch insert?

AThe write will insert all records except those that violate the table constraints; the violating records will be reported in a warning log.
BThe write will fail completely because of the constraint violation and no records will be inserted into the target table.
CThe write will insert all records except those that violate the table constraints; the violating records will be recorded to a quarantine table.
DThe write will include all records in the target table; any violations will be indicated in the boolean column named valid_coordinates.
Question #122Part 3Cost & Performance Optimisation

A Structured Streaming job running in production has experienced delays during the day’s peak hours. Currently, in normal operation, each data micro-batch is processed in under 3 seconds. During peak hours, the execution time of each micro-batch becomes highly variable and sometimes exceeds 30 seconds. The streaming write currently uses a 10-second trigger interval. Keeping all other variables constant and assuming records must be processed in under 10 seconds, which adjustment will satisfy the requirement?

ADecrease the trigger interval to 5 seconds; triggering batches more frequently allows idle executors to begin processing the next batch while longer running tasks from previous batches finish.
BDecrease the trigger interval to 5 seconds; triggering batches more frequently may prevent records from backing up and large batches from causing spill.
CThe trigger interval cannot be modified without modifying the checkpoint directory; to maintain the current stream state, increase the number of shuffle partitions to maximize parallelism.
DUse the trigger once option and configure a Databricks job to execute the query every 10 seconds; this ensures all backlogged records are processed with each batch.
Question #123Part 3Debugging and Deploying

A data-engineering team member submitted a brief notebook that they want to schedule as part of a larger data pipeline. Assume that the commands below produce logically correct results when run as shown. Which command should be removed from the notebook before it is scheduled as a job?

ACmd 2
BCmd 3
CCmd 4
DCmd 5
ECmd 6
Question #124Part 3Data Ingestion & Acquisition

A data engineer uses the AUTO CDC API in Lakeflow Spark Declarative Pipeline to propagate deletions from a source table (orders_source) to a target table (orders_target). The source has Change Data Feed (CDF) enabled, but upstream delays cause some delete events to arrive out of order. How does the AUTO CDC API internally ensure that deletions are applied correctly despite out-of-order events?

AIt ignores deletions if they arrive after updates for the same key.
BIt manually sorts incoming events by timestamp before applying changes.
CIt runs VACUUM on the target table to purge conflicting records.
DIt uses sequence_by to order events and retains tombstones for deleted rows until older sequences are processed.
Question #125Part 3Cost & Performance Optimisation

Spill can result from executing various wide transformations. Diagnosing spill, however, requires proactively checking for key indicators. Where in the Spark UI can two primary indicators show that a partition is spilling to disk?

AQuery’s detail screen and Job’s detail screen
BStage’s detail screen and Executor’s log files
CDriver’s and Executor’s log files
DExecutor’s detail screen and Executor’s log files
EStage’s detail screen and Query’s detail screen
Question #126Part 3Ensuring Data Security and Compliance

A security team needs to enforce data protection for a customer table that contains customer PII data. To meet local policies, sales team members must see only customers in their own region, while non-admin users must have email addresses masked. Which implementation approach should be used with Unity Catalog row filters and column masks?

ACreate SQL UDFs for row filtering based on user region and column masking based on group membership, then apply them using ALTER TABLE SET ROW FILTER and ALTER COLUMN SET MASK commands.
BUse table ACLs to restrict access using tags with GRANT SELECT ON table_name WITH TAG command, and rely on application-level filtering for sensitive data based on user region.
CCreate a view with dynamic WHERE clauses for region filtering and use string replacement functions for email masking using ALTER COLUMN SET MASK command.
DImplement row filters with SQL UDFs based on user region only since column masks cannot be combined with row filters on the same table, then apply them be recreating the table with DROP TABLE and CREATE TABLE SET ROW FILTER commands.
Question #127Part 3Cost & Performance Optimisation

The data science team has asked for help speeding up queries over free-form text in user reviews. The data is currently stored in Parquet with the following schema: item_id INT, user_id INT, review_id INT, rating FLOAT, review STRING The review column holds the complete text of each user-submitted review. In particular, the data science team wants to determine whether any of 30 keywords are present in this field. A junior data engineer proposes converting this data to Delta Lake to improve query performance. Which reply to the junior data engineer's suggestion is correct?

ADelta Lake statistics are not optimized for free text fields with high cardinality.
BText data cannot be stored with Delta Lake.
CZORDER ON review will need to be run to see performance gains.
DThe Delta log creates a term matrix for free text fields to support selective filtering.
EDelta Lake statistics are only collected on the first 4 columns in a table.
Question #128Part 3Monitoring and Alerting

The data engineering team has set up a Databricks SQL query and alert to monitor values in a Delta Lake table. The recent_sensor_recordings table contains an identifying sensor_id, along with the timestamp and temperature for the most recent 5 minutes of recordings. The following query creates the alert: ![Question Image](https://cdn.examcademy.com/images/questions/1783776224265-wsc5r6ee.png) The query refreshes every minute and always finishes in under 10 seconds. The alert triggers when mean(temperature) &gt; 120. Notifications are configured to be sent no more than once every 1 minute. If the alert sends notifications for 3 consecutive minutes and then stops, which statement must be true?

AThe total average temperature across all sensors exceeded 120 on three consecutive executions of the query
BThe average temperature recordings for at least one sensor exceeded 120 on three consecutive executions of the query
CThe source query failed to update properly for three consecutive minutes and then restarted
DThe maximum temperature recording for at least one sensor exceeded 120 on three consecutive executions of the query
Question #129Part 3Data Modelling

A senior data engineer is planning large-scale data workflows. The current task is to identify the considerations that establish a foundation for creating scalable data models essential to effectively managing large datasets. The data engineering team has identified core capabilities of a scalable data model for building a modern data platform and has provided its reasoning for reviewing Delta Lake. The senior data engineer is responsible for identifying the recommendations that are not valid. Which key features may be ignored when evaluating Delta Lake?

ADelta Lake works with various data formats (e.g., Parquet, JSON, CSV) and integrates well with Spark and Databricks tools:
BDelta Lake optimizes metadata handling, efficiently managing billions of files and facilitating scalability to petabyte-scale datasets.
CDelta Lake’s capability to process data in both batch and streaming modes seamlessly, providing flexibility in data ingestion and processing.
DDelta Lake provides limited support for monitoring and troubleshooting data pipelines, so relevant partner tools have to be identified and set up for enhanced operational efficiency.
Question #130Part 3Ensuring Data Security and Compliance

A data engineer is creating a secure data-sharing strategy for their organization. The company must share sensitive customer analytics data with two separate partners. Partner A uses Databricks with Unity Catalog enabled, whereas Partner B uses Apache Spark on AWS without Databricks. How should the company implement secure data sharing in these scenarios?

AFor Partner A, implement Databricks-to-Databricks sharing (D2D) with Unit Catalog integration and no-token exchange system. For Partner B, use open sharing protocol (D2O) with either bearer tokens or OIDC federation for authentication, ensuring both approaches maintain robust security and governance.
BBoth partners should use the same Delta Sharing approach since security requirements are identical. You should create bearer tokens for both partners and use the open sharing protocol (D2O) for maximum compatibility.
COpen sharing protocol (D2O) should be used for both partners because it provides better security than D2D sharing. The bearer token approach is always more secure than Unity Catalog’s native authentication.
DDatabricks-to-Databricks sharing (D2D) can only be used within the same cloud provider, so you must use open sharing (D2O) for any cross-cloud scenarios. Unit Catalog governance is not available when sharing with external platforms.
Question #131Part 3Data Modelling

An upstream system emits change data capture (CDC) logs that are written to a cloud object-storage directory. Each log record identifies the change type (insert, update, or delete) and contains the values of every field after the change. The source table has a primary key in the pk_id field. For audit purposes, the data governance team wants to retain a complete history of every value ever valid in the source system. For analytics, only the latest value for each record must be stored. The Databricks job that ingests these records runs once each hour, although an individual record can change multiple times during an hour. Which solution satisfies these requirements?

AIterate through an ordered set of changes to the table, applying each in turn to create the current state of the table, (insert, update, delete), timestamp of change, and the values.
BUse merge into to insert, update, or delete the most recent entry for each pk_id into a table, then propagate all changes throughout the system.
CDeduplicate records in each batch by pk_id and overwrite the target table.
DUse 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.
Question #132Part 3Data Governance

The data architect has required that every table in the Lakehouse be configured as an external Delta Lake table. Which approach will ensure this requirement is satisfied?

AWhenever a database is being created, make sure that the LOCATION keyword is used
BWhen configuring an external data warehouse for all table storage, leverage Databricks for all ELT.
CWhenever a table is being created, make sure that the LOCATION keyword is used.
DWhen tables are created, make sure that the EXTERNAL keyword is used in the CREATE TABLE statement.
EWhen the workspace is being configured, make sure that external cloud object storage has been mounted.
Question #133Part 3Cost & Performance Optimisation

A production workload uses an always-on Structured Streaming job to incrementally apply updates from an external Change Data Capture feed to a Delta Lake table. When the data for this table was initially migrated, OPTIMIZE was run and most data files were resized to 1 GB. Auto Optimize and Auto Compaction were both enabled for the streaming production job. A recent data-file review shows that most files are smaller than 64 MB, even though every table partition contains at least 1 GB of data and the total table size exceeds 10 TB. Which of the following most likely explains these smaller file sizes?

ADatabricks has autotuned to a smaller target file size to reduce duration of MERGE operations
BZ-order indices calculated on the table are preventing file compaction
CBloom filter indices calculated on the table are preventing file compaction
DDatabricks has autotuned to a smaller target file size based on the overall size of data in the table
EDatabricks has autotuned to a smaller target file size based on the amount of data in each partition
Question #134Part 3Data Transformation, Cleansing, and Quality

A new data engineer discovers that a critical field was omitted by an application that writes its Kafka source into Delta Lake, despite that field being present in the Kafka source. The field is also absent from data written to dependent long-term storage. The Kafka service has a retention threshold of seven days, and the pipeline has been in production for three months. Which option describes how Delta Lake can help prevent this type of data loss in the future?

AThe Delta log and Structured Streaming checkpoints record the full history of the Kafka producer.
BDelta Lake schema evolution can retroactively calculate the correct value for newly added fields, as long as the data was in the original source.
CDelta Lake automatically checks that all fields present in the source data are included in the ingestion layer.
DIngesting all raw data and metadata from Kafka to a bronze Delta table creates a permanent, replayable history of the data state.
Question #135Part 3Debugging and Deploying

To prevent accidental commits to production data, a senior data engineer has established a policy requiring all development work to reference clones of Delta Lake tables. After testing both DEEP CLONE and SHALLOW CLONE, development tables are created with SHALLOW CLONE. A few weeks after the initial table creation, cloned versions of several tables implemented as Type 1 Slowly Changing Dimensions (SCDs) stop functioning. The source-table transaction logs show that VACUUM ran the previous day. Which statement explains why the cloned tables no longer work?

ABecause Type 1 changes overwrite existing records, Delta Lake cannot guarantee data consistency for cloned tables.
BRunning VACUUM automatically invalidates any shallow clones of a table; DEEP CLONE should always be used when a cloned table will be repeatedly queried.
CTables created with SHALLOW CLONE are automatically deleted after their default retention threshold of 7 days.
DThe metadata created by the CLONE operation is referencing data files that were purged as invalid by the VACUUM command.
EThe data files compacted by VACUUM are not tracked by the cloned metadata; running REFRESH on the cloned table will pull in recent changes.
Question #136Part 3Debugging and Deploying

When viewed in a text editor, what is the first line of a Databricks Python notebook?

A%python
B// Databricks notebook source
CDatabricks notebook source
D-- Databricks notebook source
Question #137Part 3Ensuring Data Security and Compliance

The data architect has determined that, after data is ingested from external sources into the Databricks Lakehouse, table access controls will be used to manage permissions for all production tables and views. The following logic was run to grant privileges for interactive queries on a production database to the core engineering group. ``sql GRANT USAGE ON DATABASE prod TO eng; GRANT SELECT ON DATABASE prod TO eng; ` Assuming these are the only privileges granted to the eng` group and that its users are not workspace administrators, which statement describes their privileges? GRANT USAGE ON DATABASE prod TO eng; GRANT SELECT ON DATABASE prod TO eng;

AGroup members have full permissions on the prod database and can also assign permissions to other users or groups.
BGroup members are able to list all tables in the prod database but are not able to see the results of any queries on those tables.
CGroup members are able to query and modify all tables and views in the prod database, but cannot create new tables or views.
DGroup members are able to query all tables and views in the prod database, but cannot create or edit anything in the database.
EGroup members are able to create, query, and modify all tables and views in the prod database, but cannot define custom functions.
Question #138Part 3Debugging and Deploying

What is one key advantage of an end-to-end test?

AIt makes it easier to automate your test suite
BIt pinpoints errors in the building blocks of your application
CIt provides testing coverage for all code paths and branches
DIt closely simulates real world usage of your application
Question #139Part 3Debugging and Deploying

Which distribution does Databricks support for installing custom Python code packages?

Asbt
BCRANC. npm
DWheels
Ejars
Question #140Part 3Data Modelling

An hourly batch job is set up to ingest data files from a cloud object-storage container, where every batch represents all records generated by the source system during a given hour. The job that processes these records into the Lakehouse is delayed sufficiently so that no late-arriving data is missed. The user_id field is a unique key for the data, with the following schema: user_id BIGINT, username STRING, user_utc STRING, user_region STRING, last_login BIGINT, auto_pay BOOLEAN, last_updated BIGINT All new records are ingested into a table named account_history, which retains a complete record of all data using the same schema as the source. The next table in the system is named account_current and is implemented as a Type 1 table that represents the latest value for every unique user_id. Assuming there are millions of user accounts and tens of thousands of records processed each hour, which implementation can efficiently update the described account_current table as part of every hourly batch job?

AUse 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.
BOverwrite 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.
CFilter 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.
DUse 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.
EFilter 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.
Question #141Part 3Cost & Performance Optimisation

A nightly batch job is set up to ingest every data file from a cloud object-storage container, where records are organized in the nested directory structure YYYY/MM/DD. The data for each date contains all records processed by the source system on that date, although some records can be delayed while awaiting moderator approval. Each entry is a product review by a user and has this schema: user_id STRING, review_id BIGINT, product_id BIGINT, review_timestamp TIMESTAMP, review_text STRING The ingestion job appends all data for the preceding date to a target table, reviews_raw, whose schema is identical to the source system. The next pipeline step is a batch write that propagates all newly inserted records in reviews_raw to a table in which data is fully deduplicated, validated, and enriched. Which solution minimizes compute costs for propagating this batch of data?

APerform a batch read on the reviews_raw table and perform an insert-only merge using the natural composite key user_id, review_id, product_id, review_timestamp.
BConfigure a Structured Streaming read against the reviews_raw table using the trigger once execution mode to process new records as a batch job.
CUse Delta Lake version history to get the difference between the latest version of reviews_raw and one version prior, then write these records to the next table.
DFilter all records in the reviews_raw table based on the review_timestamp; batch append those records produced in the last 48 hours.
EReprocess all records in reviews_raw and overwrite the next table in the pipeline.
Question #142Part 3Cost & Performance Optimisation

Which statement characterizes Delta Lake optimized writes?

ABefore a Jobs cluster terminates, OPTIMIZE is executed on all tables modified during the most recent job.
BAn asynchronous job runs after the write completes to detect if files could be further compacted; if yes, an OPTIMIZE job is executed toward a default of 1 GB.
CA shuffle occurs prior to writing to try to group similar data together resulting in fewer files instead of each executor writing multiple files based on directory partitions.
DOptimized writes use logical partitions instead of directory partitions; because partition boundaries are only represented in metadata, fewer small files are written.
Question #143Part 3Cost & Performance Optimisation

Which statement correctly describes the use of pyspark.sql.functions.broadcast?

AIt marks a column as having low enough cardinality to properly map distinct values to available partitions, allowing a broadcast join.
BIt marks a column as small enough to store in memory on all executors, allowing a broadcast join.
CIt caches a copy of the indicated table on attached storage volumes for all active clusters within a Databricks workspace.
DIt marks a DataFrame as small enough to store in memory on all executors, allowing a broadcast join.
EIt caches a copy of the indicated table on all nodes in the cluster for use in all future queries during the cluster lifetime.
Question #144Part 3Ensuring Data Security and Compliance

Data engineer User A promoted a pipeline to production by using the REST API to programmatically create several jobs. DevOps engineer User B configured an external orchestration tool to trigger job runs through the REST API. Both users authorized their REST API calls with personal access tokens. Workspace admin User C inherits responsibility for managing this pipeline. User C uses the Databricks Jobs UI to assume "Owner" privileges for each job. Jobs continue to be triggered by using the credentials and tooling configured by User B. An application is configured to collect and parse run information returned by the REST API. Which statement describes the value returned in the creator_user_name field?

AOnce User C takes "Owner" privileges, their email address will appear in this field; prior to this, User A’s email address will appear in this field.
BUser B’s email address will always appear in this field, as their credentials are always used to trigger the run.
CUser A’s email address will always appear in this field, as they still own the underlying notebooks.
DOnce User C takes "Owner" privileges, their email address will appear in this field; prior to this, User B’s email address will appear in this field.
EUser C will only ever appear in this field if they manually trigger the job, otherwise it will indicate User B.
Question #145Part 3Monitoring and Alerting

A data pipeline uses Structured Streaming to ingest data from Apache Kafka into Delta Lake. Data is stored in a bronze table and includes the Kafka-generated timestamp, key, and value. Three months after the pipeline was deployed, the data engineering team notices latency issues at certain times of day. A senior data engineer updates the Delta table schema and ingestion logic to include the current timestamp, as recorded by Apache Spark, together with the Kafka topic and partition. The team plans to use these additional metadata fields to diagnose the transient processing delays. Which limitation will the team encounter while diagnosing this problem?

ANew fields will not be computed for historic records.
BSpark cannot capture the topic and partition fields from a Kafka source.
CUpdating the table schema requires a default value provided for each field added.
DUpdating the table schema will invalidate the Delta transaction log metadata.
Question #146Part 3Ensuring Data Security and Compliance

At the start of a new Databricks project, the central IP team provisions the required infrastructure through Terraform and a Service Principal. This includes creating a Databricks workspace, a Unity Catalog linked to an External Location, and a Databricks group that includes every project team member. Project teams must store all assets—for example, tables and volumes—as Managed assets in Unity Catalog. This approach hides infrastructure complexity while providing teams autonomy within their catalog. They can create and manage schemas, tables, volumes, and related objects, but they cannot rename or delete the catalog or change its permissions; those remain under IT control. Which rights should be granted to the project group to support this model?

AThe group needs to have USE CATALOG and USE SCHEMA on the catalog.
BThe group needs to have ALL PRIVILEGES and the MANAGE on the catalog.
CThe group needs to have ALL PRIVILEGES on the catalog.
DThe group should be made OWNER of the catalog.
Question #147Part 3Monitoring and Alerting

A data engineer must build an application that collects information about the most recent job run, including its repair history. How should the data engineer format the request?

ACall/api/2.1/jobs/runs/list with the run_id and include_history parameters
BCall/api/2.1/jobs/runs/get with the run_id and include_history parameters
CCall/api/2.1/jobs/runs/get with the job_id and include_history parameters
DCall/api/2.1/jobs/runs/list with the job_id and include_history parameters
Question #148Part 3Debugging and Deploying

A data engineer is working in a Databricks notebook that needs several third-party Python libraries. Some are available on PyPI, while others are custom-developed and stored as local.wheel (.whl) and source (.tar.gz) files in an S3 bucket. The objective is to ensure that every dependency is installed and available correctly across multiple jobs running on any automated cluster in a Unity Catalog-enabled workspace. The engineer must install the dependencies in a way that provides a consistent environment across interactive notebooks and jobs while complying with workspace security policies (no internet access). Which approach should the engineer use to install and manage these dependencies while ensuring reproducibility and compliance?

AUse an init script on the cluster to install all dependencies using pip, referencing the local file system.
BInstall all dependencies manually in the driver node of an interactive cluster, then export the environment and reimport on job clusters using %conda.
CCreate a Python wheel file for the entire project, upload it to the Databricks Workspace Files or Volumes, and install it using a Cluster Library or pip install in a requirements.txt declared within a Databricks Asset Bundle.
DUse %pip install in every notebook and job to install packages directly from PyPl and custom S3 paths.
Question #149Part 3Developing Code for Data Processing using Python and SQL

A junior data engineer on your team has implemented the following code block. Thenew_eventsview contains a batch of records with the same schema as theeventsDelta table. Theevent_idfield is a unique key for this table. When this query runs, what happens to new records that have the sameevent_idas an existing record?

AThey are merged.
BThey are ignored.
CThey are updated.
DThey are inserted.
Question #150Part 3Developing Code for Data Processing using Python and SQL

The updates view represents an incremental batch of all newly ingested data that must be inserted into or used to update the customers table. The following logic processes these records. ![Question Image](https://cdn.examcademy.com/images/questions/1783773363166-j4plu7wt.png) Which statement characterizes this implementation?

AThe customers table is implemented as a Type 3 table; old values are maintained as a new column alongside the current value.
BThe customers table is implemented as a Type 2 table; old values are maintained but marked as no longer current and new values are inserted.
CThe customers table is implemented as a Type 0 table; all writes are append only with no changes to existing values.
DThe customers table is implemented as a Type 1 table; old values are overwritten by new values and no history is maintained.
EThe customers table is implemented as a Type 2 table; old values are overwritten and new customers are appended.
Question #151Part 3Cost & Performance Optimisation

Spill can result from executing various wide transformations. However, diagnosing spill requires proactively looking for key indicators. Where in the Spark UI can two of the primary indicators that a partition is spilling to disk be found?

AStage’s detail screen and Query’s detail screen
BStage’s detail screen and Executor’s log files
CDriver’s and Executor’s log files
DExecutor’s detail screen and Executor’s log files
Question #152Part 3Developing Code for Data Processing using Python and SQL

A view is created with the following code: ![Question Image](https://cdn.examcademy.com/images/questions/1783776221882-3rjq74g3.png) The users and orders tables are both Delta Lake tables. Which statement characterizes the results of querying recent_orders?

AThe versions of each source table will be stored in the table transaction log; query results will be saved to DBFS with each query.
BAll 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.
CAll 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.
DAll 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.
Question #153Part 3Developing Code for Data Processing using Python and SQL

A view is created using the following code: ![Question Image](https://cdn.examcademy.com/images/questions/1783775428010-9u5tk3h8.png) Both users and orders are Delta Lake tables. Which statement describes the result of querying recent_orders?

AAll logic will execute when the view is defined and store the result of joining tables to the DBFS; this stored data will be returned when the view is queried.
BResults will be computed and cached when the view is defined; these cached results will incrementally update as new records are inserted into source tables.
CAll 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.
DAll 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.
Question #154Part 3Cost & Performance Optimisation

The business intelligence team has configured a dashboard to monitor several retail-store summary metrics. These include total sales for the previous day, as well as totals and averages across various time periods. The fields needed to populate this dashboard use the following schema: ![Question Image](https://cdn.examcademy.com/images/questions/1783775417200-k2hbg111.png) For demand forecasting, the Lakehouse contains a validated table of all itemized sales that is updated incrementally in near real time. This table, named products_per_order, has the following fields: ![Question Image](https://cdn.examcademy.com/images/questions/1783775421626-gp2ff3d0.png) Because reporting on long-term sales trends is less volatile, analysts using the new dashboard need the data refreshed only once per day. Because many users will query the dashboard interactively throughout a normal business day, it must return results quickly while reducing the total compute associated with each materialization. Which solution satisfies end-user expectations while controlling and limiting potential costs?

APopulate the dashboard by configuring a nightly batch job to save the required values as a table overwritten with each update.
BUse Structured Streaming to configure a live dashboard against the products_per_order table within a Databricks notebook.
CDefine a view against the products_per_order table and define the dashboard against this view.
DUse the Delta Cache to persist the products_per_order table in memory to quickly update the dashboard with each query.
Question #155Part 3Developing Code for Data Processing using Python and SQL

An upstream system is configured to pass the date for a particular data batch to the Databricks Jobs API as a parameter. The scheduled notebook will use that parameter to load data with the following code: ``python df = spark.read.format("parquet").load(f"/mnt/source/(date)") ` Which code block should create the date` Python variable used in the code above? df = spark.read.format("parquet").load(f"/mnt/source/(date)")

Adate = spark.conf.get("date")
Binput_dict = input()date= input_dict["date"]
Cimport sysdate = sys.argv[1]
Ddate = dbutils.notebooks.getParam("date")
Edbutils.widgets.text("date", "null")date = dbutils.widgets.get("date")
Question #156Part 3Data Ingestion & Acquisition

A large enterprise wants to implement a near-real-time solution with hundreds of pipelines that update many tables in parallel, using extremely high-volume, high-velocity data. Which of the following solutions would you implement to meet this requirement?

AUse Databricks High Concurrency clusters, which leverage optimized cloud storage connections to maximize data throughput.
BPartition ingestion tables by a small time duration to allow for many data files to be written in parallel.
CConfigure Databricks to save all data to attached SSD volumes instead of object storage, increasing file I/O significantly.
DIsolate Delta Lake tables in their own storage containers to avoid API limits imposed by cloud vendors.
EStore all tables in a single database to ensure that the Databricks Catalyst Metastore can load balance overall throughput.
Question #157Part 3Data Transformation, Cleansing, and Quality

A DLT pipeline contains these streaming tables: - raw_iot ingests raw device-measurement data from a heart-rate tracking device. - bpm_stats incrementally calculates user statistics from BPM measurements in raw_iot. How should the data engineer configure the pipeline to retain manually deleted or updated records in the raw_iot table while recomputing the downstream bpm_stats table when a pipeline update runs?

ASet the pipelines.reset.allowed property to false on raw_iot
BSet the skipChangeCommits flag to true on raw_iot
CSet the pipelines.reset.allowed property to false on bpm_stats
DSet the skipChangeCommits flag to true on bpm_stats
Question #158Part 3Debugging and Deploying

Which option describes how to install a Python package with notebook-level scope on every node in the currently active cluster?

ARun source env/bin/activate in a notebook setup script
BUse b in a notebook cell
CUse %pip install in a notebook cell
DUse %sh pip install in a notebook cell
EInstall libraries from PyPI using the cluster UI
Question #159Part 3Data Ingestion & Acquisition

A Delta Lake table with CDF enabled, named customer_churn_params in the Lakehouse, is used by the machine learning team for churn prediction. The table contains customer information derived from several upstream sources. Currently, the data engineering team populates the table nightly by overwriting it with the current valid values derived from the upstream data sources. The churn-prediction model used by the ML team is fairly stable in production. The team is interested only in making predictions for records that changed during the past 24 hours. Which approach would make identifying these changed records simpler?

AApply 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.
BConvert 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.
CReplace 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.
DModify 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.
Question #160Part 3Ensuring Data Security and Compliance

The data engineering team has set up a job to handle customer requests to be forgotten (to have their data deleted). All user data requiring deletion is stored in Delta Lake tables with the default table settings. The team has chosen to process, as a batch job at 1am each Sunday, all deletions from the prior week. This job runs for less than one hour. Each Monday at 3am, a batch job runs a series of VACUUM commands on all Delta Lake tables across the organization. The compliance officer has recently become aware of Delta Lake’s time travel functionality. They are concerned it could permit ongoing access to deleted data. Assuming that all delete logic is correctly implemented, which statement correctly addresses this concern?

ABecause the VACUUM command permanently deletes all files containing deleted records, deleted records may be accessible with time travel for around 24 hours.
BBecause 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.
CBecause 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.
DBecause 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.
Question #161Part 3Developing Code for Data Processing using Python and SQL

A platform engineer must report resource consumption by SKU tier across every workspace. The engineer chooses the system.billing.usage system table to build a query. Which SQL query correctly returns daily usage by product?

A![](https://cdn.examcademy.com/images/questions/1785603945925-n0cgxcyu.png)
B![](https://cdn.examcademy.com/images/questions/1785603948582-if7syui8.png)
C![](https://cdn.examcademy.com/images/questions/1785603951242-mzbhiabz.png)
D![](https://cdn.examcademy.com/images/questions/1785603953899-2qiffywa.png)
Question #162Part 3Debugging and Deploying

A junior developer reports that their notebook code is not producing the correct results in the development environment. A shared screenshot shows that, although the notebook is versioned with Databricks Repos, the developer is using a personal branch containing outdated logic. The required branch, named dev-2.3.9, does not appear in the branch-selection dropdown. Which approach will enable this developer to review the current logic for this notebook?

AUse Repos to make a pull request use the Databricks REST API to update the current branch to dev-2.3.9
BUse Repos to pull changes from the remote Git repository and select the dev-2.3.9 branch.
CUse Repos to checkout the dev-2.3.9 branch and auto-resolve conflicts with the current branch
DMerge all changes back to the main branch in the remote Git repository and clone the repo again
EUse Repos to merge the current branch and the dev-2.3.9 branch, then make a pull request to sync with the remote repository
Question #163Part 3Developing Code for Data Processing using Python and SQL

The following table contains items found in users’ carts on an e-commerce website. ![Question Image](https://cdn.examcademy.com/images/questions/1783775414891-zg9s42xh.png) The following MERGE statement updates this table using an updates view, with schema evolution enabled for the table. ![Question Image](https://cdn.examcademy.com/images/questions/1783775418152-zlbtcws5.png) How is the following update handled? ![Question Image](https://cdn.examcademy.com/images/questions/1783775421039-quawu3ub.png)

AThe update throws an error because changes to existing columns in the target schema are not supported.
BThe new nested Field is added to the target schema, and dynamically read as NULL for existing unmatched records.
CThe update is moved to a separate "rescued" column because it is missing a column expected in the target schema.
DThe new nested field is added to the target schema, and files underlying existing records are updated to include NULL values for the new field.
Question #164Part 3Cost & Performance Optimisation

The following code was migrated from a legacy workload into a Databricks notebook: ![Question Image](https://cdn.examcademy.com/images/questions/1784034535834-ns395dgz.png) The code runs successfully and produces logically correct results; however, extracting and loading approximately 1 GB of data takes more than 20 minutes. Which statement could explain this behavior?

A%sh triggers a cluster restart to collect and install Git. Most of the latency is related to cluster startup time.
BInstead of cloning, the code should use %sh pip install so that the Python code can get executed in parallel across all nodes in a cluster.
C%sh does not distribute file moving operations; the final line of code should be updated to use %fs instead.
D%sh executes shell code on the driver node. The code does not take advantage of the worker nodes or Databricks optimized Spark.
Question #165Part 3Data Ingestion & Acquisition

Which configuration parameter directly controls the size of a Spark partition when data is ingested into Spark?

Aspark.sql.files.maxPartitionBytes
Bspark.sql.autoBroadcastJoinThreshold
Cspark.sql.files.openCostInBytes
Dspark.sql.adaptive.coalescePartitions.minPartitionNum
Espark.sql.adaptive.advisoryPartitionSizeInBytes
Question #166Part 3Data Sharing and Federation

The marketing team wants to share data from an aggregate table with the sales organization, but the field names used by the two teams differ, and several marketing-specific fields have not been approved for the sales organization. Which of the following solutions addresses this situation while emphasizing simplicity?

ACreate a view on the marketing table selecting only those fields approved for the sales team; alias the names of any fields that should be standardized to the sales naming conventions.
BCreate a new table with the required schema and use Delta Lake's DEEP CLONE functionality to sync up changes committed to one table to the corresponding table.
CUse a CTAS statement to create a derivative table from the marketing table; configure a production job to propagate changes.
DAdd a parallel table write to the current production pipeline, updating a new sales table that varies as required from the marketing table.
Question #167Part 3Ensuring Data Security and Compliance

The data engineering team is setting up development, testing, and production environments before starting migration of a new data pipeline. The team needs extensive testing of both the code and the data produced by code execution, and it wants to develop and test using data that is as similar to production data as possible. A junior data engineer proposes mounting production data in the development and testing environments so that pre-production code can run against production data. Since every user has admin privileges in the development environment, the junior data engineer has offered to set up the permissions and mount the data for the team. Which statement best describes best practices for this situation?

AAll development, testing, and production code and data should exist in a single, unified workspace; creating separate environments for testing and development complicates administrative overhead.
BIn environments where interactive code will be executed, production data should only be accessible with read permissions; creating isolated databases for each environment further reduces risks.
CBecause access to production data will always be verified using passthrough credentials, it is safe to mount data to any Databricks development environment.
DBecause Delta Lake versions all data and supports time travel, it is not possible for user error or malicious actors to permanently delete production data; as such, it is generally safe to mount production data anywhere.
Question #168Part 3Ensuring Data Security and Compliance

A table named user_ltv is used to create a view for data analysts across various teams. Workspace users are configured into groups, which are used to configure data access through ACLs. The user_ltv table has this schema: email STRING, age INT, ltv INT The following view definition is executed: ![Question Image](https://cdn.examcademy.com/images/questions/1784034551498-i2qhs8xx.png) An analyst who is not a member of the marketing group runs this query: ``sql SELECT * FROM email_ltv - `` Which statement describes the results returned by this query? SELECT * FROM email_ltv -

AThree columns will be returned, but one column will be named "REDACTED" and contain only null values.
BOnly the email and ltv columns will be returned; the email column will contain all null values.
CThe email and ltv columns will be returned with the values in user_ltv.
DOnly the email and ltv columns will be returned; the email column will contain the string "REDACTED" in each row.
Question #169Part 3Monitoring and Alerting

A data pipeline uses Structured Streaming to ingest data from Apache Kafka into Delta Lake. Data is stored in a bronze table and includes the Kafka-generated timestamp, key, and value. Three months after the pipeline is deployed, the data engineering team notices latency issues at certain times of day. A senior data engineer updates the Delta table schema and ingestion logic to include the current timestamp, as recorded by Apache Spark, along with the Kafka topic and partition. The team intends to use these added metadata fields to diagnose the transient processing delays. Which limitation will the team encounter while diagnosing this problem?

ANew fields will not be computed for historic records.
BSpark cannot capture the topic and partition fields from a Kafka source.
CNew fields cannot be added to a production Delta table.
DUpdating the table schema will invalidate the Delta transaction log metadata.
EUpdating the table schema requires a default value provided for each field added.
Question #170Part 3Developing Code for Data Processing using Python and SQL

You are carrying out a join operation that combines values from a static userLookup table with a streaming DataFrame, streamingDF. Which code block tries to perform an unsupported stream-static join?

AuserLookup.join(streamingDF, ["userid"], how="inner")
BstreamingDF.join(userLookup, ["user_id"], how="outer")
CstreamingDF.join(userLookup, ["user_id”], how="left")
DstreamingDF.join(userLookup, ["userid"], how="inner")
EuserLookup.join(streamingDF, ["user_id"], how="right")

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!