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

A company hosts an application that uses several Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). During the initial startup of the EC2 instances, the EC2 instances run user data scripts to download critical content for the application from an Amazon S3 bucket.

The EC2 instances are launching correctly. However, after a period of time, the EC2 instances are terminated with the following error message: "An instance was taken out of service in response to an ELB system health check failure." EC2 instances continue to launch and be terminated because of Auto Scaling events in an endless loop.

The only recent change to the deployment is that the company added a large amount of critical content to the S3 bucket. The company does not want to alter the user data scripts in production.

What should a solutions architect do so that the production environment can deploy successfully?

  • A. Increase the size of the EC2 instances.
  • B. Increase the health check timeout for the ALB.
  • C. Change the health check path for the ALB.
  • D. Increase the health check grace period for the Auto Scaling group.
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
ggrodskiy
Highly Voted 2 years, 5 months ago
D - correct https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html
upvoted 8 times
...
AzureDP900
Most Recent 5 months ago
Selected Answer: D
D is right
upvoted 1 times
...
Pr44
1 year, 6 months ago
Selected Answer: C
health check grace period is the choice by loking at the error message we need to give more time to EC2
upvoted 1 times
...
loustitech
1 year, 10 months ago
Selected Answer: C
"The EC2 instances are launching correctly" which means the user data script was executed correctly as well. Though, the new instances failed to check their health so the ELB considers they're not healthy to worth be terminated and the ASG be triggered. Therefore, have to seek the ELB.
upvoted 2 times
...
hobokabobo
2 years ago
Selected Answer: C
I would change the path. Reason from the description there seems to be some changing content on the page( that comes from S3 ) Problem seems to occur whenever such content changes. From architectual point of view I don't want a health to depend on particalar content so the health check should point to something independend of it. (Of course: one could argue that it is bad user experience as sometimes they will also see content not delivered in such situations. Then again: none of the answers addresses the root cause. If the root cause is acceptable behavior we should nod have a check that depends on it. Increasing timeout may not help if content vanishes or ...)
upvoted 1 times
hobokabobo
2 years ago
on second thought: what does "after a period of time" mean? As there is the hint to to the userdata it may mean that the userdata takes a long time. In that case the state of the machine stays in initializing state until userdata is done so do not "launch correctly" as they never change state to "running". If that is the scenario(or similar): D would be the solution. (But if they never reach running its really bad wording: no they do not launch correctly, they never finish initializing ).
upvoted 2 times
MikelH93
1 year, 11 months ago
agree with that
upvoted 1 times
MikelH93
1 year, 11 months ago
after reading carefully, i change to D because what hobokabobo say is good but I think that according to the statement , the only thing that has changed is the number of files to download into the s3 bucket, so it takes longer. SO Anwser D but if it wasn't that then it would be C
upvoted 1 times
...
...
...
...
TajSidKazi
2 years, 1 month ago
D Increasing the health check grace period for the Auto Scaling group would give the instances more time to run the user data scripts and download critical content from the S3 bucket, which would prevent them from being terminated due to health check failures B Incorrect Increasing the health check timeout would only give the instances more time to respond to the health checks, but it would not solve the underlying issue. In fact, it could potentially increase the response time of the ALB and cause longer load times for users.
upvoted 2 times
...
davidy2020
2 years, 2 months ago
B. Increase the health check timeout for the ALB. Increasing the health check timeout for the ALB can help resolve the issue of the EC2 instances being terminated prematurely in this scenario. If the EC2 instances are taking a long time to download the content from the S3 bucket, this may cause the ALB health check to time out and mark the instances as unhealthy. By increasing the health check timeout, you give the EC2 instances more time to complete the download of the content from S3 and become fully operational before being checked by the ALB health check. This can prevent the instances from being marked as unhealthy and terminated prematurely.
upvoted 1 times
...
zozza2023
2 years, 2 months ago
Selected Answer: D
I agree with D
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