D1: Deployments to EC2 & On-Premises
AWS Certified DevOps Engineer – Professional exam practice questions · 10 flashcards
Question
CodeDeploy EC2 deployment types?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Deployments to EC2 & On-Premises practice questions and answers
- CodeDeploy EC2 deployment types?In-place (rolling across instances) and blue/green (new instances/ASG).
- CodeDeploy deployment configurations?AllAtOnce, HalfAtATime, OneAtATime or custom minimum healthy hosts.
- CodeDeploy agent?Must be installed and running on EC2/on-prem; can be installed via Systems Manager.
- appspec.yml hooks order (in-place)?ApplicationStop → DownloadBundle → BeforeInstall → Install → AfterInstall → ApplicationStart → ValidateService.
- Blue/green with ASG in CodeDeploy?Copies ASG, deploys to new instances, reroutes load balancer, terminates old.
- Mutable vs immutable deployment?Mutable updates existing servers in place; immutable replaces servers with new ones.
- Immutable benefit?No configuration drift, easy rollback, consistent environments.
- CodeDeploy rollback?Automatic on failure or CloudWatch alarm; redeploys last known good revision.
- Deployment fails: 'agent not running'. Fix?Install/start agent, check IAM instance profile and network to CodeDeploy/S3 endpoints.
- Storage patterns for deployments?Keep state off instances: EFS for shared files, S3 for objects, EBS snapshots for data.