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
More on Cloud Security Posture
Sketch how AWS security services fit together in a multi-account organisation.BeginnerWhich security services do you enable in every AWS account by default?BeginnerNative tools (Security Hub, Prowler) or a commercial CNAPP: how do you choose?IntermediateHow do you design network security for production workloads in a VPC?IntermediateHow do you structure KMS keys for production?IntermediateWhat is your S3 security baseline?Beginner