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

Databricks Databricks-Certified-Data-Engineer-Associate - Databricks Certified Data Engineer Associate Exam

A dataset has been defined using Delta Live Tables and includes an expectations clause:

CONSTRAINT valid_timestamp EXPECT (timestamp > ' 2020-01-01 ' ) ON VIOLATION FAIL UPDATE

What is the expected behavior when a batch of data containing data that violates these constraints is processed?

A.

Records that violate the expectation cause the job to fail.

B.

Records that violate the expectation are added to the target dataset and flagged as invalid in a field added to the target dataset.

C.

Records that violate the expectation are dropped from the target dataset and recorded as invalid in the event log.

D.

Records that violate the expectation are added to the target dataset and recorded as invalid in the event log.

Which of the following Structured Streaming queries is performing a hop from a Silver table to a Gold table?

A.

B.

C.

D.

E.

A data engineer is using the OPTIMIZE command on a Delta table. What happens when OPTIMIZE is run twice on the same table with the same data?

A.

It further reduces file sizes by re-clustering the data

B.

Triggers a full liquid clustering process

C.

Changes the number of tuples per file significantly

D.

It has no effect because it is idempotent.

A data engineer uses the Databricks workspace UI with Unity Catalog enabled. In Catalog Explorer, they select catalog corp_marketing, then schema campaigns, and see table email_stats. The engineer must let the growth-analysts group read email_stats from its SQL warehouses, but not create, alter, or delete any objects in corp_marketing or campaigns.

Which action sequence meets the requirement?

A.

On schema campaigns, grant USE SCHEMA and SELECT; then grant SELECT on table email_stats.

B.

On catalog corp_marketing, grant USE CATALOG and CREATE SCHEMA; on schema campaigns, grant USE SCHEMA; then grant SELECT on email_stats.

C.

On catalog corp_marketing, grant USE CATALOG; on schema campaigns, grant USE SCHEMA; then grant SELECT on email_stats.

D.

On schema campaigns, grant USE SCHEMA; then grant SELECT and MODIFY on email_stats.

Which of the following commands will return the location of database customer360?

A.

DESCRIBE LOCATION customer360;

B.

DROP DATABASE customer360;

C.

DESCRIBE DATABASE customer360;

D.

ALTER DATABASE customer360 SET DBPROPERTIES ( ' location ' = ' /user ' };

E.

USE DATABASE customer360;

A data engineer runs df.toPandas() on a wide DataFrame containing 50 million rows. The notebook cell fails with a java.lang.OutOfMemoryError on the driver.

Which memory configuration is directly associated with this failure?

A.

spark.sql.shuffle.partitions is too high.

B.

spark.memory.fraction is too low.

C.

spark.executor.memory is too low.

D.

spark.driver.memory is too low to hold the collected result.

A data engineer has a single-task Job that runs each morning before they begin working. After identifying an upstream data issue, they need to set up another task to run a new notebook prior to the original task.

Which of the following approaches can the data engineer use to set up the new task?

A.

They can clone the existing task in the existing Job and update it to run the new notebook.

B.

They can create a new task in the existing Job and then add it as a dependency of the original task.

C.

They can create a new task in the existing Job and then add the original task as a dependency of the new task.

D.

They can create a new job from scratch and add both tasks to run concurrently.

E.

They can clone the existing task to a new Job and then edit it to run the new notebook.

In which of the following scenarios should a data engineer select a Task in the Depends On field of a new Databricks Job Task?

A.

When another task needs to be replaced by the new task

B.

When another task needs to fail before the new task begins

C.

When another task has the same dependency libraries as the new task

D.

When another task needs to use as little compute resources as possible

E.

When another task needs to successfully complete before the new task begins

A data engineer is configuring Unity Catalog in Databricks and needs to assign a role to a user who should have the ability to grant and revoke privileges on various data objects within a specific schema but should not have read/write access over the schema or its objects.

Which role should the data engineer assign to this user?

A.

USE CATALOG / USE SCHEMA privilege on the schema

B.

Catalog Owner

C.

Table Owner

D.

Schema Owner

A data engineer is cleaning a Bronze table that receives the same customer records from multiple source systems. Duplicate rows have the same customer_id and email values but different ingestion_timestamp values. The Silver table should contain only one record for each unique combination of customer_id and email.

Which PySpark operation correctly deduplicates the records based on the business keys?

A.

df.groupBy( " customer_id " , " email " ).agg(max( " ingestion_timestamp " ).alias( " latest_ts " ))

B.

df.distinct()

C.

df.select( " customer_id " , " email " ).distinct()

D.

df.dropDuplicates([ " customer_id " , " email " ])