DVA-C02 · Question #384
A developer needs to modify an application architecture to meet new functional requirements. Application data is stored in Amazon DynamoDB and processed for analysis in a nightly batch. The system…
The correct answer is A. Event driven. An event-driven architecture processes data immediately as it arrives by triggering functions or services in response to state changes, eliminating the wait for a scheduled batch job. DynamoDB Streams with Lambda is a canonical AWS implementation of this pattern.
Question
A developer needs to modify an application architecture to meet new functional requirements. Application data is stored in Amazon DynamoDB and processed for analysis in a nightly batch. The system analysts do not want to wait until the next day to view the processed data and have asked to have it available in near-real time. Which application architecture pattern would enable the data to be processed as it is received?
Options
- AEvent driven
- BClient-server driven
- CFan-out driven
- DSchedule driven
How the community answered
(49 responses)- A92% (45)
- B2% (1)
- C2% (1)
- D4% (2)
Why each option
An event-driven architecture processes data immediately as it arrives by triggering functions or services in response to state changes, eliminating the wait for a scheduled batch job. DynamoDB Streams with Lambda is a canonical AWS implementation of this pattern.
In an event-driven architecture, a change to a DynamoDB item triggers a stream event, which invokes a Lambda function to process the data in near-real time, making results available within seconds rather than waiting for the next nightly batch run.
A client-server model involves direct request-response calls and does not inherently provide continuous, near-real-time processing of data as it is written to the database.
A fan-out pattern distributes a single message to multiple consumers simultaneously and is a messaging topology, not a solution for triggering processing upon data arrival.
A schedule-driven architecture is exactly the nightly batch pattern the analysts want to move away from; it does not process data as it is received.
Concept tested: Event-driven architecture with DynamoDB Streams
Source: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html
Community Discussion
No community discussion yet for this question.