πŸ”

DATA-ENGINEER-ASSOCIATE β€” questions

Page 6 of 9 Β· 169 total questions.

Topic 1 Β· Question 101

A data engineer has realized that the data files associated with a Delta table are incredibly small. They want to compact the small files to form larger files to improve performance. Which keyword can be used to compact the small files?

  • AOPTIMIZE (correct answer)
  • BVACUUM
  • CCOMPACTION
  • DREPARTITION
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: OPTIMIZE

Explanation

OPTIMIZE compacts small Delta files to improve data-skipping and query performance.

Topic 1 Β· Question 102

A data engineer wants to create a data entity from a couple of tables. The data entity must be used by other data engineers in other sessions. It also must be saved to a physical location. Which of the following data entities should the data engineer create?

  • ATable (correct answer)
  • BFunction
  • CView
  • DTemporary view
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Table

Topic 1 Β· Question 103

A data engineer runs a statement every day to copy the previous day’s sales into the table transactions. Each day’s sales are in their own file in the location "/transactions/raw". Today, the data engineer runs the following command to complete this task: After running the command today, the data engineer notices that the number of records in table transactions has not changed. What explains why the statement might not have copied any new records into the table?

Exhibit 1 for question 103
  • AThe format of the files to be copied were not included with the FORMAT_OPTIONS keyword.
  • BThe COPY INTO statement requires the table to be refreshed to view the copied rows.
  • CThe previous day’s file has already been copied into the table. (correct answer)
  • DThe PARQUET file format does not support COPY INTO.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The previous day’s file has already been copied into the table.

Topic 1 Β· Question 104

Which command can be used to write data into a Delta table while avoiding the writing of duplicate records?

  • ADROP
  • BINSERT
  • CMERGE (correct answer)
  • DAPPEND
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: MERGE

Topic 1 Β· Question 105

A data analyst has created a Delta table sales that is used by the entire data analysis team. They want help from the data engineering team to implement a series of tests to ensure the data is clean. However, the data engineering team uses Python for its tests rather than SQL. Which command could the data engineering team use to access sales in PySpark?

  • ASELECT * FROM sales
  • Bspark.table("sales") (correct answer)
  • Cspark.sql("sales")
  • Dspark.delta.table("sales")
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: spark.table("sales")

Topic 1 Β· Question 106

A data engineer has created a new database using the following command: CREATE DATABASE IF NOT EXISTS customer360; In which location will the customer360 database be located?

  • Adbfs:/user/hive/database/customer360
  • Bdbfs:/user/hive/warehouse (correct answer)
  • Cdbfs:/user/hive/customer360
  • Ddbfs:/user/hive/database
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: dbfs:/user/hive/warehouse

Topic 1 Β· Question 107

A data engineer is attempting to drop a Spark SQL table my_table and runs the following command: DROP TABLE IF EXISTS my_table; After running this command, the engineer notices that the data files and metadata files have been deleted from the file system. What is the reason behind the deletion of all these files?

  • AThe table was managed (correct answer)
  • BThe table's data was smaller than 10 GB
  • CThe table did not have a location
  • DThe table was external
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: The table was managed

Topic 1 Β· Question 108

A data engineer needs to create a table in Databricks using data from a CSV file at location /path/to/csv. They run the following command: Which of the following lines of code fills in the above blank to successfully complete the task?

Exhibit 1 for question 108
  • AFROM "path/to/csv"
  • BUSING CSV (correct answer)
  • CFROM CSV
  • DUSING DELTA
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: USING CSV

Topic 1 Β· Question 109

What is a benefit of creating an external table from Parquet rather than CSV when using a CREATE TABLE AS SELECT statement?

  • AParquet files can be partitioned
  • BParquet files will become Delta tables
  • CParquet files have a well-defined schema (correct answer)
  • DParquet files have the ability to be optimized
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Parquet files have a well-defined schema

Topic 1 Β· Question 110

Which SQL keyword can be used to convert a table from a long format to a wide format?

  • ATRANSFORM
  • BPIVOT (correct answer)
  • CSUM
  • DCONVERT
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: PIVOT

Topic 1 Β· Question 111

A data engineer has a Python variable table_name that they would like to use in a SQL query. They want to construct a Python code block that will run the query using table_name. They have the following incomplete code block: ____(f"SELECT customer_id, spend FROM {table_name}") What can be used to fill in the blank to successfully complete the task?

  • Aspark.delta.sql
  • Bspark.sql (correct answer)
  • Cspark.table
  • Ddbutils.sql
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: spark.sql

Topic 1 Β· Question 112

A data engineer is working with two tables. Each of these tables is displayed below in its entirety. The data engineer runs the following query to join these tables together:

Exhibit 1 for question 112Exhibit 2 for question 112
  • A
  • B
  • C (correct answer)
  • D
Reveal answer & explanation
Correct answer: C

The correct answer is C.

Topic 1 Β· Question 113

A data engineer needs to apply custom logic to identify employees with more than 5 years of experience in array column employees in table stores. The custom logic should create a new column exp_employees that is an array of all of the employees with more than 5 years of experience for each row. In order to apply this custom logic at scale, the data engineer wants to use the FILTER higher-order function. Which code block successfully completes this task?

  • A (correct answer)
  • B
  • C
  • D
Reveal answer & explanation
Correct answer: A

The correct answer is A. This option scales automatically to match demand.

Topic 1 Β· Question 114

A data engineer that is new to using Python needs to create a Python function to add two integers together and return the sum? Which code block can the data engineer use to complete this task?

  • A
  • B
  • C
  • D (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D.

Topic 1 Β· Question 115

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: Which line of code should the data engineer use to fill in the blank if the data engineer only wants the query to execute a micro-batch to process data every 5 seconds?

Exhibit 1 for question 115
  • Atrigger("5 seconds")
  • Btrigger(continuous="5 seconds")
  • Ctrigger(once="5 seconds")
  • Dtrigger(processingTime="5 seconds") (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: trigger(processingTime="5 seconds") This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 116

A data engineer is maintaining a data pipeline. Upon data ingestion, the data engineer notices that the source data is starting to have a lower level of quality. The data engineer would like to automate the process of monitoring the quality level. Which of the following tools can the data engineer use to solve this problem?

  • AAuto Loader
  • BUnity Catalog
  • CDelta Lake
  • DDelta Live Tables (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Delta Live Tables

Explanation

Delta Live Tables declaratively builds reliable data pipelines with managed dependency ordering, data-quality expectations, and monitoring.

Topic 1 Β· Question 117

A data engineer has three tables in a Delta Live Tables (DLT) pipeline. They have configured the pipeline to drop invalid records at each table. They notice that some data is being dropped due to quality concerns at some point in the DLT pipeline. They would like to determine at which table in their pipeline the data is being dropped. Which approach can the data engineer take to identify the table that is dropping the records?

  • AThey can set up separate expectations for each table when developing their DLT pipeline.
  • BThey can navigate to the DLT pipeline page, click on the β€œError” button, and review the present errors.
  • CThey can set up DLT to notify them via email when records are dropped.
  • DThey can navigate to the DLT pipeline page, click on each table, and view the data quality statistics. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: They can navigate to the DLT pipeline page, click on each table, and view the data quality statistics.

Topic 1 Β· Question 118

What is used by Spark to record the offset range of the data being processed in each trigger in order for Structured Streaming to reliably track the exact progress of the processing so that it can handle any kind of failure by restarting and/or reprocessing?

  • ACheckpointing and Write-ahead Logs
  • BReplayable Sources and Idempotent Sinks
  • CWrite-ahead Logs and Idempotent Sinks
  • DCheckpointing and Idempotent Sinks (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Checkpointing and Idempotent Sinks

Explanation

A streaming checkpoint stores progress and state so a query can recover without reprocessing committed data. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 119

What describes the relationship between Gold tables and Silver tables?

  • AGold tables are more likely to contain aggregations than Silver tables. (correct answer)
  • BGold tables are more likely to contain valuable data than Silver tables.
  • CGold tables are more likely to contain a less refined view of data than Silver tables.
  • DGold tables are more likely to contain truthful data than Silver tables.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Gold tables are more likely to contain aggregations than Silver tables.

Explanation

The silver layer contains validated, deduplicated, and conformed data suitable for downstream analysis. The gold layer contains business-level aggregates and curated datasets optimized for analytics and reporting.

Topic 1 Β· Question 120

What describes when to use the CREATE STREAMING LIVE TABLE (formerly CREATE INCREMENTAL LIVE TABLE) syntax over the CREATE LIVE TABLE syntax when creating Delta Live Tables (DLT) tables using SQL?

  • ACREATE STREAMING LIVE TABLE should be used when the subsequent step in the DLT pipeline is static.
  • BCREATE STREAMING LIVE TABLE should be used when data needs to be processed incrementally. (correct answer)
  • CCREATE STREAMING LIVE TABLE should be used when data needs to be processed through complicated aggregations.
  • DCREATE STREAMING LIVE TABLE should be used when the previous step in the DLT pipeline is static.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: CREATE STREAMING LIVE TABLE should be used when data needs to be processed incrementally. This option meets the real-time / low-latency performance requirement.

Showing questions 101–120 of 169 Β· Page 6 of 9