One event must fan out to email, an SQS worker and a Lambda. What do you use?
IntermediateScenarioRoute 53, CloudFront and Messaging
Answer
Situation read → SNS topic with multiple subscriptions.
What I'd do →
- Create the topic and subscribe email, SQS queue and Lambda
- Allow SNS to send to the queue via the queue policy
- Add subscription filter policies by message attribute
- Enable raw message delivery to SQS
- Use FIFO topics if ordering matters
Why → Pub/sub decouples publisher from consumers, so adding one needs no publisher change.
Interview tip → Filter policies cut cost by delivering only relevant messages.
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