exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 78 discussion

You are responsible for a web application that consists of an Elastic Load Balancing (ELB) load balancer in front of an Auto Scaling group of Amazon Elastic
Compute Cloud (EC2) instances. For a recent deployment of a new version of the application, a new Amazon Machine Image (AMI) was created, and the Auto
Scaling group was updated with a new launch configuration that refers to this new AMI. During the deployment, you received complaints from users that the website was responding with errors. All instances passed the ELB health checks.
What should you do in order to avoid errors for future deployments? (Choose two.)

  • A. Add an Elastic Load Balancing health check to the Auto Scaling group. Set a short period for the health checks to operate as soon as possible in order to prevent premature registration of the instance to the load balancer.
  • B. Enable EC2 instance CloudWatch alerts to change the launch configuration's AMI to the previous one. Gradually terminate instances that are using the new AMI.
  • C. Set the Elastic Load Balancing health check configuration to target a part of the application that fully tests application health and returns an error if the tests fail.
  • D. Create a new launch configuration that refers to the new AMI, and associate it with the group. Double the size of the group, wait for the new instances to become healthy, and reduce back to the original size. If new instances do not become healthy, associate the previous launch configuration.
  • E. Increase the Elastic Load Balancing Unhealthy Threshold to a higher value to prevent an unhealthy instance from going into service behind the load balancer.
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

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
AMKazi
Highly Voted 3 years, 3 months ago
Why A is not the right choice?
upvoted 6 times
bobsmith2000
2 years, 11 months ago
"All occurrences were found to be in good health by the ELB." Adding ELB hc to ASG won't solve the issue. ELB hc in ASG doesn't influence instances registration in ELB, it's an instrument of ASG to replace them
upvoted 3 times
...
...
amministrazione
Most Recent 8 months, 3 weeks ago
C. Set the Elastic Load Balancing health check configuration to target a part of the application that fully tests application health and returns an error if the tests fail. D. Create a new launch configuration that refers to the new AMI, and associate it with the group. Double the size of the group, wait for the new instances to become healthy, and reduce back to the original size. If new instances do not become healthy, associate the previous launch configuration.
upvoted 1 times
...
TigerInTheCloud
2 years, 4 months ago
Selected Answer: CD
A and E are wrong, the current health check is unable to detect the issue. C: You cannot modify the launch configuration https://docs.aws.amazon.com/autoscaling/ec2/userguide/change-launch-config.html. Also, even if you switch the launch configuration. it does roll back on errors not avoid the errors. The combination of C and D is a good solution. ASG Instance Refresh introduced in 2020 is a better answer to replace D.
upvoted 1 times
TigerInTheCloud
2 years, 4 months ago
if the auto-scaling group is managed by CloudFormation, a rolling update policy can be used.
upvoted 1 times
...
...
adsdadasdad
2 years, 10 months ago
Selected Answer: CD
This makes me so angry, D has a solution in aws which you specify. Its the rollout strategy and you should use a rolling update. Autoscaling groups have rollout strategys. The other is C as this will be essential for application health monitoring.
upvoted 2 times
hilft
2 years, 9 months ago
That sounds like this question is outdated.
upvoted 1 times
...
...
Anhdd
2 years, 11 months ago
Selected Answer: CD
No doubt, it's CD
upvoted 2 times
...
jyrajan69
3 years ago
As far as i know you can check the health of an EC2 instance so do highlight how is C possible, how do use ELB to target part of the app? So for me C is out. Only A and D make sense.
upvoted 3 times
...
jj22222
3 years, 3 months ago
Selected Answer: CD
C, D look right
upvoted 2 times
...
cldy
3 years, 4 months ago
C. Set the Elastic Load Balancing health check configuration to target a part of the application that fully tests application health and returns an error if the tests fail. D. Create a new launch configuration that refers to the new AMI, and associate it with the group. Double the size of the group, wait for the new instances to become healthy, and reduce back to the original size. If new instances do not become healthy, associate the previous launch configuration.
upvoted 3 times
...
01037
3 years, 6 months ago
Yes CD
upvoted 2 times
...
alfa2
3 years, 6 months ago
CD is correct
upvoted 2 times
...
ExtHo
3 years, 7 months ago
CD Correct
upvoted 3 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