Interview Prep/AWS/Route 53, CloudFront and Messaging

How do you stop a public SNS topic or SQS queue from accepting messages from anyone?

BeginnerScenarioRoute 53, CloudFront and Messaging
Answer

Situation read → Resource policies must restrict principals.

What I'd do →

  1. Review queue policy Principal and add aws:SourceArn conditions
  2. Remove "Principal":"*" unless conditioned
  3. Use IAM Access Analyzer to find external access
  4. Enable encryption with KMS

Why → Open resource policies are a common data leak vector.

Interview tip → Mention Access Analyzer for external findings.

aws All AWS questions Roadmap: AWS core services

More on Route 53, CloudFront and Messaging