Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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