DEA-C01 exam dumps

DEA-C01 practice question 346 of 550

AWS Certified Data Engineer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DEA-C01 Question 346

Single answer

You are working as a data engineer for an e-commerce platform. The sales data for each transaction is stored in an Amazon S3 bucket in CSV format. You need to calculate the rolling 7-day average of daily sales for each product and generate a pivot table to display the results, with products as columns and dates as rows. Which AWS service and features should you use to accomplish this task efficiently?

  1. A

    Use Amazon Athena with window functions for the rolling average and the PIVOT SQL extension for the pivot table

  2. B

    Use AWS Glue ETL with PySpark to calculate the rolling average and pandas to create the pivot table

  3. C

    Use Amazon Redshift with SQL window functions for the rolling average and a stored procedure to generate the pivot table

  4. D

    Use Amazon QuickSight to calculate the rolling average and create the pivot table using its visualization capabilities

Show answer and explanation

Correct answer: A

Explanation

Amazon Athena is the best choice for this scenario because it supports SQL queries directly on data stored in Amazon S3. It enables the use of window functions to calculate the rolling average and the PIVOT SQL extension to create the pivot table. This minimizes operational overhead and avoids complex custom coding required by other options.

  • A. Correct.

    Correct: Amazon Athena supports SQL queries, including window functions for rolling averages and PIVOT SQL extensions for creating pivot tables. It is serverless and works directly with data stored in S3, making it suitable for this task.

  • B. Incorrect.

    Incorrect: AWS Glue ETL with PySpark can calculate the rolling average, but it would require significant custom coding to create the pivot table, making it less efficient for the task than Athena.

  • C. Incorrect.

    Incorrect: Amazon Redshift can handle SQL window functions for rolling averages, but using a stored procedure to create a pivot table is complex and less optimal when working with data stored in Amazon S3.

  • D. Incorrect.

    Incorrect: Amazon QuickSight is a visualization tool and cannot perform advanced data aggregation like rolling averages or pivot table transformations directly in its pipeline.

Timed practice exam

Take a DEA-C01 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam