AWS Certified Data Engineer – Associate (DEA-C01) — Question 79

A data engineer creates an AWS Glue Data Catalog table by using an AWS Glue crawler that is named Orders. The data engineer wants to add the following new partitions:

s3://transactions/orders/order_date=2023-01-01
s3://transactions/orders/order_date=2023-01-02

The data engineer must edit the metadata to include the new partitions in the table without scanning all the folders and files in the location of the table.

Which data definition language (DDL) statement should the data engineer use in Amazon Athena?

Answer options

Correct answer: A

Explanation

The correct answer is A because it directly adds the specified partitions with their respective locations without scanning all the data. Option B (MSCK REPAIR TABLE) is used for adding partitions from the file system but requires scanning, and Options C and D do not correctly add new partitions as required for the table metadata.