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 32 discussion

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

A DevOps Engineer manages a web application that runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances run in an EC2
Auto Scaling group across multiple Availability Zones. The engineer needs to implement a deployment strategy that:
✑ Launches a second fleet of instances with the same capacity as the original fleet.
✑ Maintains the original fleet unchanged while the second fleet is launched.
✑ Transitions traffic to the second fleet when the second fleet is fully deployed.
✑ Terminates the original fleet automatically 1 hour after transition.
Which solution will satisfy these requirements?

  • A. Use an AWS CloudFormation template with a retention policy for the ALB set to 1 hour. Update the Amazon Route 53 record to reflect the new ALB.
  • B. Use two AWS Elastic Beanstalk environments to perform a blue/green deployment from the original environment to the new one. Create an application version lifecycle policy to terminate the original environment in 1 hour.
  • C. Use AWS CodeDeploy with a deployment group configured with a blue/green deployment configuration. Select the option Terminate the original instances in the deployment group with a waiting period of 1 hour.
  • D. Use AWS Elastic Beanstalk with the configuration set to Immutable. Create an .ebextension using the Resources key that sets the deletion policy of the ALB to 1 hour, and deploy the application.
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
jackdryan
Highly Voted 3 years, 8 months ago
I'll go with C
upvoted 13 times
...
halfway
Highly Voted 3 years, 9 months ago
C. https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_BlueInstanceTerminationOption.html
upvoted 10 times
skipbaylessfor3
3 years, 9 months ago
I'm wondering why the EB ones are false though, do you know?
upvoted 1 times
halfway
3 years, 9 months ago
EB application version lifecycle policy is not for EC2 instance. More details can be found here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-lifecycle.html
upvoted 3 times
kj07
3 years, 8 months ago
This link eliminates EB options and this one https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_BlueInstanceTerminationOption.html validates option B.
upvoted 1 times
...
...
...
apcloud
2 years, 6 months ago
This link shows the answer is indeed C
upvoted 1 times
...
syaldram
2 years, 10 months ago
Thank you for the link - answer is C
upvoted 2 times
...
...
qsergii
Most Recent 2 years, 2 months ago
Is it blue/green deployment configuration present in CodeDeploy deployment configuration?
upvoted 1 times
...
scottytoohotty
2 years, 3 months ago
Selected Answer: C
Blue/green will also work, it will create the same number of healthy instances in the new group and still keep the old instances for an hour if you specify it.
upvoted 2 times
...
adsdadasdad
2 years, 3 months ago
Selected Answer: D
Immutable – A slower deployment method, that ensures your new application version is always deployed to new instances, instead of updating existing instances. It also has the additional advantage of a quick and safe rollback in case the deployment fails. With this method, Elastic Beanstalk performs an immutable update to deploy your application. In an immutable update, a second Auto Scaling group is launched in your environment and the new version serves traffic alongside the old version until the new instances pass health checks. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deploy-existing-version.html
upvoted 1 times
...
Piccaso
2 years, 5 months ago
Selected Answer: C
It must be a blue/green deployment. C looks more managed than B
upvoted 1 times
...
Hamza5
2 years, 5 months ago
I will go with C
upvoted 1 times
...
Bulti
2 years, 6 months ago
Ci s the right answer. Using Deployment configuration of Blue-Green that enables copying of ASG abd creating a new fleet if EC2 instanced is the right solution. As part of the Deployment configuration you can set the duration in hours after which the old deployment environment will be terminated.
upvoted 1 times
...
PepsNick
2 years, 6 months ago
Selected Answer: D
The answer is D. There is a clear ask for an immutable deployment in the question. CodeDeploy in that answer C mentiones does not have an immutable deployment option. Immutable deployments perform an immutable update to launch a full set of new instances running the new version of the application in a separate Auto Scaling group, alongside the instances running the old version. Immutable deployments can prevent issues caused by partially completed rolling deployments. If the new instances don't pass health checks, Elastic Beanstalk terminates them, leaving the original instances untouched.
upvoted 2 times
plpatankar
1 year, 7 months ago
D can't be correct as in immutable updates an instance serves traffic alongside all of the instances in the original Auto Scaling group that are running the previous configuration, however requirement says that transition to second fleet only when it is fully deployed.
upvoted 1 times
...
...
AlbertC
2 years, 7 months ago
Selected Answer: D
D - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environmentmgmt-updates-immutable.html
upvoted 1 times
...
animalrj
2 years, 9 months ago
Selected Answer: C
Original revision termination settings "The original revision termination settings are configured to wait 1 hour after traffic has been rerouted before terminating the blue task set."
upvoted 1 times
...
MikeyJ
2 years, 10 months ago
Original revision termination settings The original revision termination settings are configured to wait 1 hour after traffic has been rerouted before terminating the blue task set. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html
upvoted 2 times
...
SamHan
2 years, 10 months ago
Selected Answer: C
Ans: C
upvoted 2 times
...
xlFireman
3 years, 8 months ago
Answer is C. B is incorrect because the Elastic Beanstalk Application Version lifecycle just deletes old .config files that dictate how your environment is set up. It does NOT dictate how long until an environment is deleted by Elastic Beanstalk.
upvoted 4 times
...
ChauPhan
3 years, 8 months ago
Yes, correct is C. The remain answers is all using CloudFormation. The DeletionPolicy of CF is just Retain/Delete/Snapshot. There is no option to keep the resource in the amount of time before deletion. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html
upvoted 6 times
...
Augustoosouza
3 years, 9 months ago
Answer B. https://docs.aws.amazon.com/en-us/codedeploy/latest/userguide/deployment-groups-create-blue-green.html
upvoted 1 times
Augustoosouza
3 years, 9 months ago
I typed wrong. Answer C.
upvoted 7 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 ...