QuestionQ85
VerifiedSDLC AutomationA company uses AWS CodeDeploy to automate software deployments. The deployment must satisfy these requirements:
- Several instances must remain available to serve traffic during deployment. Traffic must be balanced across those instances, and the instances must automatically recover if a failure occurs.
- A new fleet of instances must be automatically launched to deploy a new revision, without manual provisioning.
- Traffic must be rerouted to the new environment for half of the new instances at a time. The deployment must succeed if traffic is rerouted to at least half of the instances; otherwise, it must fail.
- Before traffic is routed to the new fleet of instances, temporary files created during the deployment process must be deleted.
- At the completion of a successful deployment, the original instances in the deployment group must be deleted immediately to reduce costs.
How can a DevOps engineer fulfill these requirements?
Community Discussion