Amazon

DEA-C01 practice question 14

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

Question

A company loads transaction data for each day into Amazon Redshift tables at the end of each day. The company wants to have the ability to track which tables have been loaded and which tables still need to be loaded. A data engineer wants to store the load statuses of Redshift tables in an Amazon DynamoDB table. The data engineer creates an AWS Lambda function to publish the details of the load statuses to DynamoDB. How should the data engineer invoke the Lambda function to write load statuses to the DynamoDB table?
  • A. Use a second Lambda function to invoke the first Lambda function based on Amazon CloudWatch events.
  • B. Use the Amazon Redshift Data API to publish an event to Amazon EventBridge. Configure an EventBridge rule to invoke the Lambda function. Correct
  • C. Use the Amazon Redshift Data API to publish a message to an Amazon Simple Queue Service (Amazon SQS) queue. Configure the SQS queue to invoke the Lambda function.
  • D. Use a second Lambda function to invoke the first Lambda function based on AWS CloudTrail events.

Explanation

The correct answer is B because using the Amazon Redshift Data API to publish an event to Amazon EventBridge and configuring an EventBridge rule to invoke the Lambda function allows for automated, reliable, and scalable invocation of the Lambda function based on specific events. This setup ensures that load statuses are written to DynamoDB in a timely manner without requiring manual intervention or additional infrastructure.

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.