Free Certified Data Engineer Associate Exam Braindumps
Certified Data Engineer Associate Questions 97–104 (page: 14)

Updated On: 7-Apr-2026

A data engineer wants to create a new table containing the names of customers that live in France.

They have written the following command:



A senior data engineer mentions that it is organization policy to include a table property indicating that the new table includes personally identifiable information (PII).

Which line of code fills in the above blank to successfully complete the task?

  1. PII
  2. "COMMENT PII"
  3. TBLPROPERTIES PII
  4. COMMENT "Contains PII"

Answer(s): D



A data engineer is attempting to drop a Spark SQL table my_table. The data engineer wants to delete all table metadata and data.

They run the following command:

DROP TABLE IF EXISTS my_table

While the object no longer appears when they run SHOW TABLES, the data files still exist.

Which of the following describes why the data files still exist and the metadata files were deleted?

  1. The table's data was larger than 10 GB
  2. The table's data was smaller than 10 GB
  3. The table was external
  4. The table did not have a location
  5. The table was managed

Answer(s): C



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?

  1. Database
  2. Function
  3. View
  4. Temporary view
  5. Table

Answer(s): E



A data engineer needs to compute metrics such as:

rolling 7-day sales

percent of total revenue

top-N most profitable categories

Which two approaches are appropriate for implementing these metrics with PySpark DataFrames? (Choose two.)

  1. Using RDD aggregations for better performance.
  2. Using mapPartitions to manually implement rolling windows.
  3. Using window functions for rolling and ranking calculations.
  4. Collecting the DataFrame to the driver for faster iterative processing.
  5. Using joins and groupBy to compute percent-of-total metrics.

Answer(s): C,E

Explanation:

Window functions are the correct approach for rolling calculations and ranking tasks such as rolling 7-day sales and top-N categories. Joins and groupBy are appropriate for percent-of-total calculations by first computing total revenue at the needed level and then comparing each subgroup against that total.



A data engineering team is analyzing customer transactions using a PySpark DataFrame named transactions with columns customer_id, amount, and category.

The team needs to compute, for each customer, the total transaction amount, the average transaction amount, and the maximum amount - all in a single operation for efficiency.

Which code fragment should be used to achieve this in PySpark?





Answer(s): A

Explanation:

Grouping by customer_id and applying multiple aggregate functions inside a single agg() call is the correct PySpark pattern for computing total, average, and maximum values per customer in one operation.



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

  1. DROP
  2. IGNORE
  3. MERGE
  4. APPEND
  5. INSERT

Answer(s): C



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.

Which of the following describes why the statement might not have copied any new records into the table?

  1. The format of the files to be copied were not included with the FORMAT_OPTIONS keyword.
  2. The names of the files to be copied were not included with the FILES keyword.
  3. The previous day's file has already been copied into the table.
  4. The PARQUET file format does not support COPY INTO.
  5. The COPY INTO statement requires the table to be refreshed to view the copied rows.

Answer(s): C



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:



If the data engineer only wants the query to execute a micro-batch to process data every 5 seconds, which of the following lines of code should the data engineer use to fill in the blank?

  1. trigger("5 seconds")
  2. trigger()
  3. trigger(once="5 seconds")
  4. trigger(processingTime="5 seconds")
  5. trigger(continuous="5 seconds")

Answer(s): D



Viewing page 14 of 30
Viewing questions 105 - 112 out of 280 questions


Post your Comments and Discuss Databricks Certified Data Engineer Associate exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!