DVA-C02 practice question 24 of 35
A developer maintains a critical business application that uses Amazon DynamoDB as the primary data store The DynamoDB table contains millions of…
Full set: 598 questionsDomain Security
The most efficient and least intrusive way to process DynamoDB item changes in near-real time is by using DynamoDB Streams. Enabling a stream on the table captures a time-ordered sequence of all item-level modifications (creations, updates, deletions). This stream can then be configured as an event source for an AWS Lambda function. This approach is ideal because it requires no changes to the existing application code that writes to the table. The entire change detection and processing mechanism is decoupled from the primary application logic, fulfilling the core requirements of near-real-time processing with minimal application impact.
A. A cron job running hourly is a batch process, not near-real time. It would also be inefficient, requiring scans of a large table to find changes.
C. This requires modifying the application code to explicitly send an event to EventBridge after every write, violating the "least amount of change" requirement.
D. Processing documents synchronously within the application would require significant code changes and would increase the latency of the write operations, impacting application performance.
1. AWS DynamoDB Developer Guide
"Capturing table activity with DynamoDB Streams": "DynamoDB Streams captures a time-ordered sequence of item-level modifications in any DynamoDB table and stores this information in a log for up to 24 hours. Applications can access this log and view the data items as they appeared before and after they were modified
in near-real time." This document establishes Streams as the native
near-real-time change data capture mechanism for DynamoDB.
2. AWS Lambda Developer Guide
"Using AWS Lambda with Amazon DynamoDB": "You can use an AWS Lambda function to process records in an Amazon DynamoDB stream... Lambda reads records from the stream and invokes your function synchronously with an event that contains stream records." This confirms the direct integration pattern between DynamoDB Streams and Lambda for processing changes without modifying the client application.
3. AWS Whitepaper
"Streaming Data Solutions on AWS with Amazon Kinesis"
Page 11: While focused on Kinesis
this paper discusses change data capture (CDC) patterns. It mentions DynamoDB Streams as a prime example: "Amazon DynamoDB Streams provides a time-ordered sequence of item-level changes in any DynamoDB table... This is a powerful feature for implementing the database change data capture pattern." This reinforces the pattern's validity for the scenario.
Keep practicing
Take the free DVA-C02 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DVA-C02 practice questions
- Question 1A company has a multi-node Windows legacy application that runs on premises. The applicat…
- Question 2A developer migrated a legacy application to an AWS Lambda function. The function uses a …
- Question 3A development learn has an Amazon API Gateway REST API that is backed by an AWS Lambda fu…
- Question 4A company is expanding the compatibility of its photo-snaring mobile app to hundreds of a…
- Question 5A company has an ecommerce application. To track product reviews, the company's developme…
- Question 6A social media company is designing a platform that allows users to upload data, which is…
