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 2 out of 7 pages
Viewing questions 11-20 out of questions
Questions # 11:

Which of the following commands will return the number of null values in the member_id column?

Options:

A.

SELECT count(member_id) FROM my_table;


B.

SELECT count(member_id) - count_null(member_id) FROM my_table;


C.

SELECT count_if(member_id IS NULL) FROM my_table;


D.

SELECT null(member_id) FROM my_table;


E.

SELECT count_null(member_id) FROM my_table;


Expert Solution
Questions # 12:

A data engineer has been given a new record of data:

id STRING = ' a1 '

rank INTEGER = 6

rating FLOAT = 9.4

Which of the following SQL commands can be used to append the new record to an existing Delta table my_table?

Options:

A.

INSERT INTO my_table VALUES ( ' a1 ' , 6, 9.4)


B.

my_table UNION VALUES ( ' a1 ' , 6, 9.4)


C.

INSERT VALUES ( ' a1 ' , 6, 9.4) INTO my_table


D.

UPDATE my_table VALUES ( ' a1 ' , 6, 9.4)


E.

UPDATE VALUES ( ' a1 ' , 6, 9.4) my_table


Expert Solution
Questions # 13:

A data engineer and data analyst are working together on a data pipeline. The data engineer is working on the raw, bronze, and silver layers of the pipeline using Python, and the data analyst is working on the gold layer of the pipeline using SQL. The raw source of the pipeline is a streaming input. They now want to migrate their pipeline to use Delta Live Tables.

Which of the following changes will need to be made to the pipeline when migrating to Delta Live Tables?

Options:

A.

None of these changes will need to be made


B.

The pipeline will need to stop using the medallion-based multi-hop architecture


C.

The pipeline will need to be written entirely in SQL


D.

The pipeline will need to use a batch source in place of a streaming source


E.

The pipeline will need to be written entirely in Python


Expert Solution
Questions # 14:

A Delta Live Table pipeline includes two datasets defined using streaming live table. Three datasets are defined against Delta Lake table sources using live table.

The table is configured to run in Production mode using the Continuous Pipeline Mode.

What is the expected outcome after clicking Start to update the pipeline assuming previously unprocessed data exists and all definitions are valid?

Options:

A.

All datasets will be updated once and the pipeline will shut down. The compute resources will be terminated.


B.

All datasets will be updated at set intervals until the pipeline is shut down. The compute resources will persist to allow for additional testing.


C.

All datasets will be updated once and the pipeline will shut down. The compute resources will persist to allow for additional testing.


D.

All datasets will be updated at set intervals until the pipeline is shut down. The compute resources will be deployed for the update and terminated when the pipeline is stopped.


Expert Solution
Questions # 15:

Identify the impact of ON VIOLATION DROP ROW and ON VIOLATION FAIL UPDATE for a constraint violation.

A data engineer has created an ETL pipeline using Delta Live table to manage their company travel reimbursement detail, they want to ensure that the if the location details has not been provided by the employee, the pipeline needs to be terminated.

How can the scenario be implemented?

Options:

A.

CONSTRAINT valid_location EXPECT (location = NULL)


B.

CONSTRAINT valid_location EXPECT (location != NULL) ON VIOLATION FAIL UPDATE


C.

CONSTRAINT valid_location EXPECT (location != NULL) ON DROP ROW


D.

CONSTRAINT valid_location EXPECT (location != NULL) ON VIOLATION FAIL


Expert Solution
Questions # 16:

A data engineer is joining a very large events_df DataFrame containing billions of rows with a small country_lookup_df DataFrame containing fewer than 10,000 rows. The DataFrames are joined on the country_code column. The join is slow because of data shuffling.

How should the data engineer improve performance?

Options:

A.

Broadcast events_df when performing the join.


B.

Cache both DataFrames, and then run the same join.


C.

Persist both DataFrames, and then run the same join.


D.

Broadcast country_lookup_df when performing the join.


Expert Solution
Questions # 17:

A data engineer is deploying a dashboard through a Declarative Automation Bundle. The dashboard resource references ${var.dataset_catalog}, and the bundle contains the following configuration:

bundle:

name: workspace_assets

variables:

dataset_catalog:

default: catalog_dev

targets:

dev:

variables:

dataset_catalog: catalog_dev

prod:

variables:

dataset_catalog: catalog_prod

Which action deploys the dashboard to the production target using catalog_prod without changing the resource definition?

Options:

A.

Run databricks bundle deploy --var dataset_catalog=catalog_prod so that the CLI automatically selects targets.prod.


B.

Run databricks bundle deploy --profile prod so that the CLI selects targets.prod and applies catalog_prod.


C.

Run databricks bundle execute --profile prod so that the CLI selects targets.prod and applies catalog_prod.


D.

Run databricks bundle deploy --target prod so that the deployment uses targets.prod and its dataset_catalog override.


Expert Solution
Questions # 18:

Which file format is used for storing Delta Lake Table?

Options:

A.

Parquet


B.

Delta


C.

SV


D.

JSON


Expert Solution
Questions # 19:

Which compute option should be chosen in a scenario where small-scale ad hoc Python scripts need to be run at high frequency and should wind down quickly after these queries have finished running?

Options:

A.

All-purpose cluster


B.

Job cluster


C.

Serverless compute


D.

SQL Warehouse


Expert Solution
Questions # 20:

A data engineer has configured a Structured Streaming job to read from a table, manipulate the data, and then perform a streaming write into a new table.

The code block used by the data engineer is below:

Question # 20

If the data engineer only wants the query to process all of the available data in as many batches as required, which of the following lines of code should the data engineer use to fill in the blank?

Options:

A.

processingTime(1)


B.

trigger(availableNow=True)


C.

trigger(parallelBatch=True)


D.

trigger(processingTime= " once " )


E.

trigger(continuous= " once " )


Expert Solution
Viewing page 2 out of 7 pages
Viewing questions 11-20 out of questions