Examtopics

AWS Certified Data Engineer - Associate
  • Topic 1 Question 81

    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?

    • ALTER TABLE Orders ADD PARTITION(order_date=’2023-01-01’) LOCATION ‘s3://transactions/orders/order_date=2023-01-01’; ALTER TABLE Orders ADD PARTITION(order_date=’2023-01-02’) LOCATION ‘s3://transactions/orders/order_date=2023-01-02’;

    • MSCK REPAIR TABLE Orders;

    • REPAIR TABLE Orders;

    • ALTER TABLE Orders MODIFY PARTITION(order_date=’2023-01-01’) LOCATION ‘s3://transactions/orders/2023-01-01’; ALTER TABLE Orders MODIFY PARTITION(order_date=’2023-01-02’) LOCATION ‘s3://transactions/orders/2023-01-02’;


    シャッフルモード