A company loads daily transaction data into Amazon Redshift and wants to track which tables have completed loading. A data engineer will record load statuses in DynamoDB via a Lambda function. What is the best way to invoke the Lambda to write the statuses?
Choose an answer
Tap an option to check your answer.
Correct answer: Use the Amazon Redshift Data API to publish an event to Amazon EventBridge. Configure an EventBridge rule to invoke the Lambda function..
Why this is the answer
The best approach is to use the Amazon Redshift Data API to publish an event to Amazon EventBridge. The Redshift Data API allows programmatic interaction with Redshift, including executing SQL statements that can signal the completion of a load. EventBridge can then be configured with a rule to detect this specific event pattern and invoke the Lambda function to update DynamoDB. This creates a robust, event-driven architecture. Using a second Lambda based on CloudWatch events is less direct as CloudWatch primarily monitors metrics and logs, not specific Redshift load completion events. Sending a message to an SQS queue is a viable option for asynchronous processing, but EventBridge offers more sophisticated event filtering and routing capabilities, making it a better fit for reacting to specific Redshift events. CloudTrail events track API calls and account activity, not the internal completion of a Redshift data load.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed