Amazon

DEA-C01 practice question 19

AWS Certified Data Engineer - Associate (DEA-C01) · free question 19 of 20

Question

A data engineer must orchestrate a series of Amazon Athena queries that will run every day. Each query can run for more than 15 minutes. Which combination of steps will meet these requirements MOST cost-effectively? (Choose two.)
  • A. Use an AWS Lambda function and the Athena Boto3 client start_query_execution API call to invoke the Athena queries programmatically. Correct
  • B. Create an AWS Step Functions workflow and add two states. Add the first state before the Lambda function. Configure the second state as a Wait state to periodically check whether the Athena query has finished using the Athena Boto3 get_query_execution API call. Configure the workflow to invoke the next query when the current query has finished running. Correct
  • C. Use an AWS Glue Python shell job and the Athena Boto3 client start_query_execution API call to invoke the Athena queries programmatically.
  • D. Use an AWS Glue Python shell script to run a sleep timer that checks every 5 minutes to determine whether the current Athena query has finished running successfully. Configure the Python shell script to invoke the next query when the current query has finished running.
  • E. Use Amazon Managed Workflows for Apache Airflow (Amazon MWAA) to orchestrate the Athena queries in AWS Batch.

Explanation

Option A is correct because using an AWS Lambda function with the Athena Boto3 client start_query_execution API call allows for cost-effective and scalable invocation of Athena queries without managing servers. Option B complements this by using AWS Step Functions to manage the workflow, including waiting for query completion before starting the next one, which ensures proper orchestration and minimizes unnecessary resource usage.

Need the theory? Learn it free in the DEA-C01 course on Godlike Academy

Practice the whole free set

Answer all 20 free DEA-C01 questions with instant feedback, or unlock all 343 questions with Learn and Exam modes.