Design an event-driven order pipeline that is resilient to downstream outage.
AdvancedScenarioRoute 53, CloudFront and Messaging
Answer
Situation read → Durable buffering between each stage.
What I'd do →
- API Gateway to Lambda writes the order to DynamoDB and emits an event to EventBridge
- EventBridge rules route to SQS queues per consumer (billing, inventory, email)
- Consumers read with batch size and partial batch failure response
- DLQs and alarms on age of oldest message
- Use outbox pattern with DynamoDB Streams for exactly-recorded publishing
Why → Queues absorb outages, so a billing downtime delays but never loses orders.
Interview tip → Mention ApproximateAgeOfOldestMessage as the best queue health alarm.
More on Route 53, CloudFront and Messaging
You want users routed to the nearest healthy region. Which Route 53 policy do you use?BeginnerPrimary region fails; how do you fail over DNS in a controlled way?IntermediateWhat is the difference between a CNAME and an alias record in Route 53?BeginnerRoll out a new version to 5 percent of users using DNS. How?IntermediateCloudFront serves stale content after you deployed a new JS bundle. How do you handle cache correctly?IntermediateCloudFront returns 403 from an S3 origin. List the checks.Intermediate