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

Pass the Databricks Databricks Certification Databricks-Certified-Data-Engineer-Associate Questions and answers with CertsForce

Viewing page 1 out of 7 pages
Viewing questions 1-10 out of questions
Questions # 1:

A data engineer is working on a Databricks project that utilizes cloud storage. The data engineer wants to load several json files from containers on a storage account as soon as the file arrives within the storage account.

Which syntax should the data engineer follow to first load the files into a dataframe and check that it is working as expected using Python?

Options:

A.

df = spark.readStream.format( " json " ).load( " input/path " )


B.

df = spark.readStream.format( " cloud " ),option( " json " ).load( " /input/path " )


C.

df = spark.readStream.format( " cloudFiles " ) .option( " cloudFiles.format " , " json " ) .load( " /input/path " )


D.

df = spark.read.json( " inp i./path " )


Expert Solution
Questions # 2:

What is the primary function of the Silver layer in the Databricks medallion architecture?

Options:

A.

lngest raw data in its original state


B.

Validate, clean, and deduplicate data for further processing


C.

Aggregate and enrich data for business analytics


D.

Store historical data solely for auditing purposes


Expert Solution
Questions # 3:

Question # 3

Calculate the total sales amount for each region and store the results in a new dataframe called region_sales.

Given the expected result:

Question # 3

Which code will generate the expected result?

Options:

A.

region_sales = sales_df.groupBy( " region " ).agg(sum( " sales_amountM).alias( " total_sales_amount " ))


B.

region_sales = sales_df. sum ( " salen_aiTiount " ) . groupBy ( " region " ) .alias ( " total_sale3_amount " )


C.

region_sales= sales_df.groupBy( " category " ).sum(nsales_amount " ).alias( " t_otal_sales_amounl " )


D.

region sales - sales_df.agg(sum( " sales_amount " ).groupBy( " region " ).alias( " total sales amount " ))


Expert Solution
Questions # 4:

Which of the following can be used to simplify and unify siloed data architectures that are specialized for specific use cases?

Options:

A.

None of these


B.

Data lake


C.

Data warehouse


D.

All of these


E.

Data lakehouse


Expert Solution
Questions # 5:

A new data engineering team team. has been assigned to an ELT project. The new data engineering team will need full privileges on the database customers to fully manage the project.

Which of the following commands can be used to grant full permissions on the database to the new data engineering team?

Options:

A.

GRANT USAGE ON DATABASE customers TO team;


B.

GRANT ALL PRIVILEGES ON DATABASE team TO customers;


C.

GRANT SELECT PRIVILEGES ON DATABASE customers TO teams;


D.

GRANT SELECT CREATE MODIFY USAGE PRIVILEGES ON DATABASE customers TO team;


E.

GRANT ALL PRIVILEGES ON DATABASE customers TO team;


Expert Solution
Questions # 6:

A data engineer has a Python notebook in Databricks, but they need to use SQL to accomplish a specific task within a cell. They still want all of the other cells to use Python without making any changes to those cells.

Which of the following describes how the data engineer can use SQL within a cell of their Python notebook?

Options:

A.

It is not possible to use SQL in a Python notebook


B.

They can attach the cell to a SQL endpoint rather than a Databricks cluster


C.

They can simply write SQL syntax in the cell


D.

They can add %sql to the first line of the cell


E.

They can change the default language of the notebook to SQL


Expert Solution
Questions # 7:

A data engineer has a PySpark DataFrame named events_df with the following schema:

event_id STRING,

device STRUCT <

id: STRING,

model: STRING,

location: STRUCT <

latitude: DOUBLE,

longitude: DOUBLE

>

> ,

event_ts TIMESTAMP

The engineer needs to flatten all nested device fields into root-level columns while retaining the event identifier and timestamp.

Which PySpark expression achieves this requirement?

Options:

A.

events_df.withColumn( " device_id " , events_df[ " device.id " ]).withColumn( " device_model " , events_df[ " device.model " ]).withColumn( " location " , events_df[ " device.location " ])


B.

events_df.select( " event_id " , " event_ts " , " device.* " )


C.

events_df.select( " event_id " , " event_ts " , " device.id " , " device.model " , " device.location.latitude " , " device.location.longitude " )


D.

events_df.select( " event_id " , " device[id] " , " device[model] " , " device.location[latitude] " , " device.location[longitude] " , " event_ts " )


Expert Solution
Questions # 8:

A data engineer is using the following code block as part of a batch ingestion pipeline to read from a composable table:

Question # 8

Which of the following changes needs to be made so this code block will work when the transactions table is a stream source?

Options:

A.

Replace predict with a stream-friendly prediction function


B.

Replace schema(schema) with option ( " maxFilesPerTrigger " , 1)


C.

Replace " transactions " with the path to the location of the Delta table


D.

Replace format( " delta " ) with format( " stream " )


E.

Replace spark.read with spark.readStream


Expert Solution
Questions # 9:

A data engineer has a Job with multiple tasks that runs nightly. Each of the tasks runs slowly because the clusters take a long time to start.

Which of the following actions can the data engineer perform to improve the start up time for the clusters used for the Job?

Options:

A.

They can use endpoints available in Databricks SQL


B.

They can use jobs clusters instead of all-purpose clusters


C.

They can configure the clusters to be single-node


D.

They can use clusters that are from a cluster pool


E.

They can configure the clusters to autoscale for larger data sizes


Expert Solution
Questions # 10:

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?

Options:

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.


Expert Solution
Viewing page 1 out of 7 pages
Viewing questions 1-10 out of questions