exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 146 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 146
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A company is using AWS CodeDeploy to automate software deployment. The deployment must meet these requirements:

• A number of instances must be available to serve traffic during the deployment. Traffic must be balanced across those instances, and the instances must automatically heal in the event of failure.
• A new fleet of instances must be launched for deploying a new revision automatically, with no manual provisioning.
• Traffic must be rerouted to the new environment to half of the new instances at a time. The deployment should succeed if traffic is rerouted to at least half of the instances; otherwise, it should fail.
• Before routing traffic to the new fleet of instances, the temporary files generated during the deployment process must be deleted.
• At the end of a successful deployment, the original instances in the deployment group must be deleted immediately to reduce costs.

How can a DevOps engineer meet these requirements?

  • A. Use an Application Load Balancer and an in-place deployment. Associate the Auto Scaling group with the deployment group. Use the Automatically copy Auto Scaling group option, and use CodeDeployDefault.OneAtAtime as the deployment configuration. Instruct AWS CodeDeploy to terminate the original instances in the deployment group, and use the AllowTraffic hook within appspec.yml to delete the temporary files.
  • B. Use an Application Load Balancer and a blue/green deployment. Associate the Auto Scaling group and Application Load Balancer target group with the deployment group. Use the Automatically copy Auto scaling group option, create a custom deployment configuration with minimum healthy hosts defined as 50%, and assign the configuration to the deployment group. Instruct AWS CodeDeploy to terminate the original instances in the deployment group, and use the BeforeBlockTraffic hook within appspec.yml to delete the temporary files.
  • C. Use an Application Load Balancer and a blue/green deployment. Associate the Auto Scaling group and the Application Load Balancer target group with the deployment group. Use the Automatically copy Auto Scaling group option, and use CodeDeployDefault.HalfAtAtime as the deployment configuration. Instruct AWS CodeDeploy to terminate the original instances in the deployment group, and use the BeforeAllowTraffic hook within appspec.yml to delete the temporary files.
  • D. Use an Application Load Balancer and an in-place deployment. Associate the Auto Scaling group and Application Load Balancer target group with the deployment group. Use the Automatically copy Auto Scaling group option, and use CodeDeployDefault AllatOnce as a deployment configuration. Instruct AWS CodeDeploy to terminate the original instances in the deployment group, and use the BlockTraffic hook within appspec.yml to delete the temporary files.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dgix
1 year, 6 months ago
B, as BeforeBlockTraffic happens before traffic is shifted, and BeforeAllowTraffic afterwards.
upvoted 1 times
...
Dgix
1 year, 6 months ago
B, not C. B. This option uses blue/green deployment, which meets the requirement for automatic launching of a new fleet of instances. It also uses a custom deployment configuration with minimum healthy hosts defined as 50%, which meets the requirement for rerouting traffic to half of the new instances at a time. The BeforeBlockTraffic hook will delete temporary files before routing traffic, and the original instances will be terminated post deployment, meeting all the requirements. C. This option uses blue/green deployment and CodeDeployDefault.HalfAtAtime. However, the BeforeAllowTraffic hook is used to delete temporary files. The requirement states that temporary files must be deleted before routing traffic. In a blue/green deployment, the BeforeAllowTraffic hook is invoked after the traffic has been rerouted. Therefore, this option does not meet the requirement.
upvoted 1 times
vn_thanhtung
12 months ago
Before routing traffic to the new fleet of instances, the temporary files generated during the deployment process must be deleted => BeforeAllowTraffic
upvoted 1 times
vn_thanhtung
12 months ago
BeforeBlockTraffic using when delete original
upvoted 1 times
...
...
...
tycho
2 years ago
C -> correct; A and D eliminated because of 'in-place' deployment; B eliminated because of 'before block traffic'
upvoted 1 times
...
Piccaso
2 years, 2 months ago
Selected Answer: C
A and D are eliminated because "in-place" deployment does not match the scenario. B is a manual version of C, should be avoided.
upvoted 1 times
Piccaso
2 years, 2 months ago
"B is a manual version of C" is not a correct description.
upvoted 1 times
...
...
Bulti
2 years, 3 months ago
Selected Answer: C
C is correct. CodeDeployDefault.HalfAtAtime and BeforeAllowTraffic which is associated with the green instance where the cleanup is required just before the traffic is directed to these instances.
upvoted 3 times
...
Oleg_gol
2 years, 3 months ago
Selected Answer: C
https://www.examtopics.com/discussions/amazon/view/5505-exam-aws-devops-engineer-professional-topic-1-question-70/
upvoted 1 times
...
romidan
2 years, 3 months ago
C seems correct.
upvoted 1 times
...
devops7
2 years, 3 months ago
C because of HaltAtATime
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago