Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free Databricks Databricks-Certified-Data-Engineer-Associate Practice Exam with Questions & Answers | Set: 2

Questions 11

Identify how the count_if function and the count where x is null can be used

Consider a table random_values with below data.

What would be the output of below query?

select count_if(col > 1) as count_a. count(*) as count_b.count(col1) as count_c from random_values col1

0

1

2

NULL -

2

3

Options:
A.

3 6 5

B.

4 6 5

C.

3 6 6

D.

4 6 6

Questions 12

A data engineer has developed a data pipeline to ingest data from a JSON source using Auto Loader, but the engineer has not provided any type inference or schema hints in their pipeline. Upon reviewing the data, the data engineer has noticed that all of the columns in the target table are of the string type despite some of the fields only including float or boolean values.

Which of the following describes why Auto Loader inferred all of the columns to be of the string type?

Options:
A.

There was a type mismatch between the specific schema and the inferred schema

B.

JSON data is a text-based format

C.

Auto Loader only works with string data

D.

All of the fields had at least one null value

E.

Auto Loader cannot infer the schema of ingested data

Questions 13

A data engineer converts an external Delta table to a Unity Catalog managed table. A Structured Streaming job that reads from the table continues running during the conversion. After the conversion completes, the streaming job stops processing new records.

How should the data engineer resolve the issue?

Options:
A.

Restart the streaming job so that it uses the new managed-table location.

B.

Run REFRESH TABLE on the converted table to update the streaming checkpoint.

C.

Grant the streaming job additional permissions on the new managed-storage location.

D.

Delete the streaming checkpoint directory and reprocess the complete source from the beginning.

Questions 14

A data engineer is processing ingested streaming tables and needs to filter out NULL values in the order_datetime column from the raw streaming table orders_raw and store the results in a new table orders_valid using DLT.

Which code snippet should the data engineer use?

A)

Databricks-Certified-Data-Engineer-Associate Question 14

B)

Databricks-Certified-Data-Engineer-Associate Question 14

C)

Databricks-Certified-Data-Engineer-Associate Question 14

D)

Databricks-Certified-Data-Engineer-Associate Question 14

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 15

A company uses Delta Sharing to collaborate with partners across different cloud providers and geographic regions. What will result in additional costs due to cross-region or egress fees?

Options:
A.

Transferring data via Delta Sharing across clouds and across different geographic regions

B.

Sharing data within the same cloud provider and region

C.

Utilizing Delta Sharing for internal data analytics within a single cloud environment

D.

Accessing Delta Sharing data using a VPN within the same data center

Questions 16

A governance team is evaluating whether to use Unity Catalog attribute-based access control policies or manually applied row filters and column masks to protect sensitive data across its catalog.

Why should the team use attribute-based access control policies instead of manually applied row filters and column masks?

Options:
A.

Attribute-based access control policies use governed tags to dynamically match tables and columns, so one catalog-level policy can apply to matching current and future objects without per-table configuration.

B.

Attribute-based access control policies can be applied to views and materialized views, whereas manually applied row filters and column masks can only be applied to tables.

C.

Attribute-based access control policies support applying multiple distinct row filters to the same table for one user at query time, whereas manually applied row filters are limited to one filter per table.

D.

Attribute-based access control policies allow row filters and column masks to be written directly in Python and Scala, whereas manually applied filters and masks can use only SQL user-defined functions.

Questions 17

A data engineer needs to migrate the Unity Catalog external Delta table catalog.schema.sales while meeting the following requirements:

    Databricks must manage file cleanup after the table is dropped.

    The migration must minimize downtime while retaining the same table name, permissions, and history.

    Access must be enforced through the registered Unity Catalog table name.

Which action should the engineer take?

Options:
A.

Run ALTER TABLE catalog.schema.sales SET MANAGED.

B.

Run DROP TABLE catalog.schema.sales PURGE.

C.

Run ALTER TABLE catalog.schema.sales SET LOCATION.

D.

Create a new managed table using CREATE TABLE AS SELECT and manually migrate all workloads.

Questions 18

A data engineer needs to use a Delta table as part of a data pipeline, but they do not know if they have the appropriate permissions.

In which of the following locations can the data engineer review their permissions on the table?

Options:
A.

Databricks Filesystem

B.

Jobs

C.

Dashboards

D.

Repos

E.

Data Explorer

Questions 19

An organization has data stored across multiple external systems, including MySQL, Amazon Redshift, and Google BigQuery. The data engineer wants to perform analytics without ingesting data directly into Databricks, while ensuring unified governance and minimizing data duplication.

Which feature of Databricks enables querying these external data sources while maintaining centralized governance?

Options:
A.

Lakehouse Federation

B.

Databricks Connect

C.

MLflow

D.

Delta Lake

Questions 20

A data engineer wants to create an external table in Databricks that references data stored in an Azure Data Lake Storage (ADLS) location. The goal is to enable Databricks to access and query this external data without moving it into Databricks-managed storage.

Which step should the data engineer take to successfully create the external table?

Options:
A.

Use the CREATE TABLE statement and specify the LOCATION clause with the path to the external data.

B.

Use the CREATE UNMANAGED TABLE statement without specifying a LOCATION clause.

C.

Use the CREATE EXTERNAL TABLE statement without specifying a LOCATION clause.

D.

Use the CREATE MANAGED TABLE statement and specify the LOCATION clause with the path to the external data.