
Answer-first summary for fast verification
Answer: Use the Amazon Redshift Data API to publish an event to Amazon EventBridge. Configure an EventBridge rule to invoke the Lambda function.
Option B is CORRECT because it uses the Amazon Redshift Data API to publish events to Amazon EventBridge, which is a serverless event bus service that facilitates event-driven architectures across AWS services. By setting up an EventBridge rule to trigger the Lambda function when events are published by the Redshift Data API, the data engineer can automatically invoke the Lambda function each time new transaction data is loaded into Amazon Redshift. This solution provides a seamless and scalable method for tracking table load statuses, minimizing operational overhead by avoiding the need for additional Lambda functions or complex setups.
Author: Ritesh Yadav
Ultimate access to all questions.
Question 6/60
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.
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.
No comments yet.