AWS Certified Developer Associate DVA-C02 Practice Question
A developer is building a serverless application that must process new user registrations in real time. The user data is stored in an Amazon DynamoDB table. The requirement is to automatically trigger a piece of code whenever a new user item is created in the table. Which of the following is the most direct and event-driven approach to meet this requirement?
Enable DynamoDB Streams on the table and configure it as a trigger for a Lambda function.
Configure an Amazon SQS queue to poll the DynamoDB table and then trigger a Lambda function.
Use an Amazon EventBridge (CloudWatch Events) rule with a schedule to invoke a Lambda function that queries the table.
Write a cron job on an Amazon EC2 instance to scan the DynamoDB table for new items every minute.
The correct approach is to use AWS Lambda with Amazon DynamoDB Streams. When DynamoDB Streams is enabled on the table, it captures a time-ordered sequence of item-level modifications (create, update, delete). An AWS Lambda function can then be configured to subscribe to this stream as an event source. Lambda will automatically poll the stream and invoke the function with the new records, allowing for real-time, event-driven processing without needing to manually poll the table.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Amazon DynamoDB Streams?
Open an interactive chat with Bash
How can AWS Lambda be triggered by DynamoDB events?
Open an interactive chat with Bash
What is event-driven architecture?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access