Interview Prep/DevSecOps/Cloud Security Posture

How do you manage vulnerabilities on EC2 fleets?

BeginnerProductionCloud Security Posture
Answer
  • Amazon Inspector for continuous scanning of EC2 (agent via SSM or agentless), with findings in Security Hub.
  • Systems Manager Patch Manager with patch baselines and maintenance windows per environment.
  • Prefer immutable infrastructure: rebuild golden AMIs weekly with EC2 Image Builder or Packer and roll Auto Scaling groups, instead of patching in place.
  • Track AMI age as a metric; alert on instances using AMIs older than 30 days.
aws ssm send-command --document-name "AWS-RunPatchBaseline" \
  --targets Key=tag:PatchGroup,Values=prod-web --parameters Operation=Install
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Cloud Security Posture