Databricks Certified Data Engineer Associate Exam Practice Questions (P. 2)
- Full Access (322 questions)
- One Year of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
A data engineer has left the organization. The data team needs to transfer ownership of the data engineer’s Delta tables to a new data engineer. The new data engineer is the lead engineer on the data team.
Assuming the original data engineer no longer has access, which of the following individuals must be the one to transfer ownership of the Delta tables in Data Explorer?
Assuming the original data engineer no longer has access, which of the following individuals must be the one to transfer ownership of the Delta tables in Data Explorer?
- ADatabricks account representative
- BThis transfer is not possible
- CWorkspace administratorMost Voted
- DNew lead data engineer
- EOriginal data engineer
Correct Answer:
C
C
GPT
The correct response seems to be C, the Workspace Administrator rather than D, the New Lead Data Engineer. Workspace administrators customarily hold the authority necessary for changing ownership of resources like Delta tables in Data Explorer. This task normally falls under administrative privileges because they manage broader access controls and data governance frameworks, especially when the original owner is no longer available to make such changes. Always be sure to consult specific workspace permissions and configurations to verify the appropriate procedures.
send
light_mode
delete
Question #12
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 of the following commands could the data engineering team use to access sales in PySpark?
Which of the following commands could the data engineering team use to access sales in PySpark?
- ASELECT * FROM sales
- BThere is no way to share data between PySpark and SQL.
- Cspark.sql("sales")D. spark.delta.table("sales")
- Dspark.table("sales")
Correct Answer:
E
GPT
The correct function for the data engineering team to use in accessing the "sales" Delta table within a PySpark environment would indeed be spark.table("sales"). This function allows them to access any table that's registered in the Spark Session catalog, facilitating the execution of Python-based operations on the Delta table. It’s a straightforward and common method in PySpark to engage with tables without needing to specify the data format, making it an apt choice for seamlessly transitioning between SQL and PySpark contexts.
send
light_mode
delete
Question #13
Which of the following commands will return the location of database customer360?
- ADESCRIBE LOCATION customer360;
- BDROP DATABASE customer360;
- CDESCRIBE DATABASE customer360;Most Voted
- DALTER DATABASE customer360 SET DBPROPERTIES ('location' = '/user'};
- EUSE DATABASE customer360;
Correct Answer:
C
C
GPT
For the retrieval of the location of the database "customer360" especially in environments like Hive or Databricks, the command "DESCRIBE DATABASE customer360" is indeed the correct choice. It succinctly gives you comprehensive details about the database, of which the location is a key part. Utilizing this precise command effectively fetches all necessary metadata, ensuring clarity and ease in database management.
send
light_mode
delete
Question #14
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 of the following lines of code fills in the above blank to successfully complete the task?
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 of the following lines of code fills in the above blank to successfully complete the task?
- AThere is no way to indicate whether a table contains PII.
- B"COMMENT PII"
- CTBLPROPERTIES PII
- DCOMMENT "Contains PII"Most Voted
- EPII
Correct Answer:
D
D
send
light_mode
delete
Question #15
Which of the following benefits is provided by the array functions from Spark SQL?
- AAn ability to work with data in a variety of types at once
- BAn ability to work with data within certain partitions and windows
- CAn ability to work with time-related data in specified intervals
- DAn ability to work with complex, nested data ingested from JSON filesMost Voted
- EAn ability to work with an array of tables for procedural automation
Correct Answer:
D
D
GPT
Array functions in Spark SQL are particularly valuable for handling complex, nested data structures, frequently found in JSON files. These functions streamline the processing of nested arrays and structures, enabling easier manipulation, querying, and extraction of specific elements. This empowers data engineers to efficiently handle and analyze data that comes in layered or hierarchical formats. If you're dealing with such complex data types, leveraging these array functions can significantly simplify your workflows.
send
light_mode
delete
Question #16
Which of the following commands can be used to write data into a Delta table while avoiding the writing of duplicate records?
- ADROP
- BIGNORE
- CMERGEMost Voted
- DAPPEND
- EINSERT
Correct Answer:
C
C
GPT
The MERGE command in Delta Lake indeed shines for its ability to perform upserts—that is, update existing records and insert new ones based on defined conditions. Beyond simply writing data, it checks against what's already present, seamlessly syncing incoming data with the current state of the table, ensuring no duplicates emerge. It's the go-to for maintaining cleanliness and accuracy in your Delta tables, making it the perfect fit for the task described.
send
light_mode
delete
Question #17
A data engineer needs to apply custom logic to string column city in table stores for a specific use case. In order to apply this custom logic at scale, the data engineer wants to create a SQL user-defined function (UDF).
Which of the following code blocks creates this SQL UDF?
Which of the following code blocks creates this SQL UDF?
send
light_mode
delete
Question #18
A data analyst has a series of queries in a SQL program. The data analyst wants this program to run every day. They only want the final query in the program to run on Sundays. They ask for help from the data engineering team to complete this task.
Which of the following approaches could be used by the data engineering team to complete this task?
Which of the following approaches could be used by the data engineering team to complete this task?
- AThey could submit a feature request with Databricks to add this functionality.
- BThey could wrap the queries using PySpark and use Python’s control flow system to determine when to run the final query.Most Voted
- CThey could only run the entire program on Sundays.
- DThey could automatically restrict access to the source table in the final query so that it is only accessible on Sundays.
- EThey could redesign the data model to separate the data used in the final query into a new table.
Correct Answer:
B
B
send
light_mode
delete
Question #19
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?
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?
- AThe format of the files to be copied were not included with the FORMAT_OPTIONS keyword.
- BThe names of the files to be copied were not included with the FILES keyword.
- CThe previous day’s file has already been copied into the table.Most Voted
- DThe PARQUET file format does not support COPY INTO.
- EThe COPY INTO statement requires the table to be refreshed to view the copied rows.
Correct Answer:
C
C
send
light_mode
delete
Question #20
A data engineer needs to create a table in Databricks using data from their organization’s existing SQLite database.
They run the following command:

Which of the following lines of code fills in the above blank to successfully complete the task?
They run the following command:

Which of the following lines of code fills in the above blank to successfully complete the task?
- Aorg.apache.spark.sql.jdbcMost Voted
- Bautoloader
- CDELTA
- Dsqlite
- Eorg.apache.spark.sql.sqlite
Correct Answer:
A
A
send
light_mode
delete
All Pages





