New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon SAP-C02 Exam - Topic 2 Question 47 Discussion

Actual exam question for Amazon's SAP-C02 exam
Question #: 47
Topic #: 2
[All SAP-C02 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Kerrie
3 months ago
Wait, why did they add so much content without testing first?
upvoted 0 times
...
Elvis
3 months ago
Changing the health check path seems unnecessary.
upvoted 0 times
...
Emerson
3 months ago
Not sure if just increasing instance size will fix this.
upvoted 0 times
...
Huey
4 months ago
I think increasing the health check grace period could help!
upvoted 0 times
...
Alysa
4 months ago
Sounds like a timeout issue with the ALB health checks.
upvoted 0 times
...
Kasandra
4 months ago
I recall that increasing instance size might not directly solve the problem if the health checks are failing. It feels like the grace period is the safer bet here.
upvoted 0 times
...
Rodolfo
4 months ago
This seems similar to a practice question I did where adjusting the health check path helped. But in this case, I feel like the grace period is more relevant since the instances need time to download.
upvoted 0 times
...
Lashawna
4 months ago
I'm not entirely sure, but I think the health check timeout might be too short now that there's more content to download. Could that be the issue?
upvoted 0 times
...
Casie
5 months ago
I remember something about health checks and how they can cause instances to be terminated if they fail. Maybe increasing the health check grace period could help?
upvoted 0 times
...
Lon
5 months ago
I think the key here is that the company doesn't want to change the user data scripts in production. That rules out option A, since that would require modifying the scripts. Options B, C, and D all seem like they could work, but I'd lean towards D to give the instances more time to download the content.
upvoted 0 times
...
Tanesha
5 months ago
I'm a bit confused on this one. Is the issue with the instances themselves, or with the health checks? I'm not sure if increasing the instance size or changing the health check path would really solve the problem here.
upvoted 0 times
...
Nobuko
5 months ago
Okay, I think I've got it. The problem is that the instances can't download the content from S3 fast enough, so the health checks are failing. Increasing the health check timeout or grace period should give them more time to complete the download.
upvoted 0 times
...
Marci
5 months ago
Hmm, the issue seems to be with the health checks failing after the instances launch. I'm leaning towards increasing the health check timeout or grace period to give the instances more time to download the content.
upvoted 0 times
...
Reynalda
5 months ago
This seems like a tricky one. I'll need to think through the different options carefully to figure out the best approach.
upvoted 0 times
...
Dominga
1 year ago
Increasing the health check timeout for the ALB seems like a good option too. That way, the instances have more time to download the content before the ALB gives up on them.
upvoted 0 times
Veronika
1 year ago
I agree, it's worth a try to prevent the instances from being terminated in an endless loop.
upvoted 0 times
...
Pearly
1 year ago
Yeah, that could give the instances enough time to download the content before being terminated.
upvoted 0 times
...
Yoko
1 year ago
I think increasing the health check timeout for the ALB could help in this situation.
upvoted 0 times
...
...
Corazon
1 year ago
Haha, what if they just increased the size of the EC2 instances? That would be like trying to fit an elephant in a shoebox!
upvoted 0 times
Verda
1 year ago
C: Increasing the health check grace period for the Auto Scaling group could also prevent the instances from being terminated too quickly.
upvoted 0 times
...
Mary
1 year ago
B: I think changing the health check path for the ALB might be a better solution.
upvoted 0 times
...
Roxane
1 year ago
A: Maybe increasing the size of the EC2 instances could help handle the large amount of content.
upvoted 0 times
...
...
Merlyn
1 year ago
I agree with Miss, changing the health check path for the ALB might be a better solution in this case.
upvoted 0 times
...
Miss
1 year ago
That could work too, but I'm worried it might not solve the issue completely.
upvoted 0 times
...
Teresita
1 year ago
But wouldn't it be better to increase the health check grace period for the Auto Scaling group instead?
upvoted 0 times
...
Diego
1 year ago
I think changing the health check path for the ALB might work too. The instances could be failing the health check because the new content has changed the expected response.
upvoted 0 times
...
Deangelo
1 year ago
The solution is to increase the health check grace period for the Auto Scaling group. This will give the instances more time to download the content and become healthy before the ALB starts checking their health.
upvoted 0 times
Nidia
1 year ago
D) Increase the health check grace period for the Auto Scaling group.
upvoted 0 times
...
Titus
1 year ago
B) Increase the health check timeout for the ALB.
upvoted 0 times
...
...
Miss
1 year ago
I think we should increase the health check timeout for the ALB.
upvoted 0 times
...

Save Cancel