Interview Prep/AWS/Observability, Secrets, KMS and CloudFormation

Auto-remediate any security group opened to 0.0.0.0/0 on port 22.

AdvancedScenarioObservability, Secrets, KMS and CloudFormation
Answer

Situation read → Config rule plus SSM Automation remediation.

What I'd do →

  1. Enable managed rule restricted-ssh
  2. Attach remediation AWS-DisableIncomingSSHOnPort22 or custom runbook
  3. Set automatic remediation with 3 retries
  4. Notify through EventBridge to Slack
  5. Exempt tagged bastion exceptions

Why → Closing the hole in minutes beats ticket queues.

Interview tip → Include exception handling.

aws All AWS questions

More on Observability, Secrets, KMS and CloudFormation