SDLC Automation
An Auto Scaling group launches Amazon Linux instances from a custom AMI for CodeDeploy EC2 deployments. The instances have the required IAM permissions and network access, but the AMI contains no CodeDeploy agent. What should the engineer add to instance bootstrapping?
Show the answer
Correct answerB. Install and start the CodeDeploy agent, and enable it to start at boot.
AWhy not this: The CloudWatch agent collects telemetry; it does not execute CodeDeploy lifecycle events.
BWhy this is right: The CodeDeploy agent receives deployment work and executes lifecycle events on EC2 targets.
CWhy not this: The ECS agent manages container tasks on ECS container instances, not CodeDeploy EC2 lifecycle events.
DWhy not this: SSM Agent supports Systems Manager operations but does not replace the CodeDeploy agent.
CodeDeploy EC2 deployments require a running CodeDeploy agent on each target instance. SSM Agent can help install or manage that agent, but it does not replace it.