Development with AWS Services
32% of the examWhat this topic covers
Build AWS-hosted application features with Lambda, API Gateway, DynamoDB, and SQS. Use transactions, request validation, and queue redrive policies to handle data safely and process work reliably.
What does a DynamoDB transaction give you when saving an order and an outbox record?
A DynamoDB transaction writes both items atomically, so either both the order and the outbox record are saved or neither is. A separate process can then read the outbox record and publish the event, avoiding lost messages when the order write succeeds but a publish fails.