Databricks Certified Data Engineer Associate Exam Practice Questions (P. 5)
- Full Access (173 questions)
- Six months 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 #21
A data engineering team has two tables. The first table march_transactions is a collection of all retail transactions in the month of March. The second table april_transactions is a collection of all retail transactions in the month of April. There are no duplicate records between the tables.
Which of the following commands should be run to create a new table all_transactions that contains all records from march_transactions and april_transactions without duplicate records?
Which of the following commands should be run to create a new table all_transactions that contains all records from march_transactions and april_transactions without duplicate records?
- ACREATE TABLE all_transactions AS
SELECT * FROM march_transactions
INNER JOIN SELECT * FROM april_transactions; - BCREATE TABLE all_transactions AS
SELECT * FROM march_transactions
UNION SELECT * FROM april_transactions;Most Voted - CCREATE TABLE all_transactions AS
SELECT * FROM march_transactions
OUTER JOIN SELECT * FROM april_transactions; - DCREATE TABLE all_transactions AS
SELECT * FROM march_transactions
INTERSECT SELECT * from april_transactions; - ECREATE TABLE all_transactions AS
SELECT * FROM march_transactions
MERGE SELECT * FROM april_transactions;
Correct Answer:
B
B
send
light_mode
delete
Question #22
A data engineer only wants to execute the final block of a Python program if the Python variable day_of_week is equal to 1 and the Python variable review_period is True.
Which of the following control flow statements should the data engineer use to begin this conditionally executed code block?
Which of the following control flow statements should the data engineer use to begin this conditionally executed code block?
- Aif day_of_week = 1 and review_period:
- Bif day_of_week = 1 and review_period = "True":
- Cif day_of_week == 1 and review_period == "True":
- Dif day_of_week == 1 and review_period:Most Voted
- Eif day_of_week = 1 & review_period: = "True":
Correct Answer:
C
C
send
light_mode
delete
Question #23
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?
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?
- AThe table’s data was larger than 10 GB
- BThe table’s data was smaller than 10 GB
- CThe table was externalMost Voted
- DThe table did not have a location
- EThe table was managed
Correct Answer:
C
C
send
light_mode
delete
Question #24
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?
Which of the following data entities should the data engineer create?
send
light_mode
delete
Question #25
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?
Which of the following tools can the data engineer use to solve this problem?
- AUnity Catalog
- BData Explorer
- CDelta Lake
- DDelta Live TablesMost Voted
- EAuto Loader
Correct Answer:
C
C
send
light_mode
delete
All Pages