exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

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

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 109 discussion

A large company is running a popular web application. The application runs on several Amazon EC2 Linux instances in an Auto Scaling group in a private subnet. An Application Load Balancer is targeting the instances in the Auto Scaling group in the private subnet. AWS Systems Manager Session Manager is configured, and AWS Systems Manager Agent is running on all the EC2 instances.

The company recently released a new version of the application. Some EC2 instances are now being marked as unhealthy and are being terminated. As a result, the application is running at reduced capacity. A solutions architect tries to determine the root cause by analyzing Amazon CloudWatch logs that are collected from the application, but the logs are inconclusive.

How should the solutions architect gain access to an EC2 instance to troubleshoot the issue?

  • A. Suspend the Auto Scaling group’s HealthCheck scaling process. Use Session Manager to log in to an instance that is marked as unhealthy.
  • B. Enable EC2 instance termination protection. Use Session Manager to log in to an instance that is marked as unhealthy.
  • C. Set the termination policy to OldestInstance on the Auto Scaling group. Use Session Manager to log in to an instance that is marked an unhealthy.
  • D. Suspend the Auto Scaling group’s Terminate process. Use Session Manager to log in to an instance that is marked as unhealthy.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
zozza2023
Highly Voted 2 years, 3 months ago
Selected Answer: D
The correct answer is D.
upvoted 10 times
...
God_Is_Love
Highly Voted 2 years, 2 months ago
Selected Answer: D
Disabling health check wont let SA know which instance is un healthy. So A is certainly wrong. D is correct.
upvoted 9 times
...
amministrazione
Most Recent 8 months, 2 weeks ago
D. Suspend the Auto Scaling group’s Terminate process. Use Session Manager to log in to an instance that is marked as unhealthy.
upvoted 1 times
...
gofavad926
1 year, 1 month ago
Selected Answer: D
D, stop the autoscaling process
upvoted 1 times
...
AWSLord32
1 year, 3 months ago
Why not B? Can the ASG override the Ec2 termination protection?
upvoted 3 times
...
career360guru
1 year, 4 months ago
Selected Answer: D
Option D
upvoted 1 times
...
severlight
1 year, 6 months ago
Selected Answer: D
you can stop auto-scaling processes, here you need to stop termination, you need health checks to know which instance to check
upvoted 2 times
...
venvig
1 year, 8 months ago
Selected Answer: D
If ASG terminates the instances because they are unhealthy there is no way we can login to the instance using session manager or otherwise to investigate the problem. So, suspend the termination.
upvoted 4 times
...
NikkyDicky
1 year, 10 months ago
Selected Answer: D
d of course
upvoted 1 times
...
SkyZeroZx
1 year, 11 months ago
Selected Answer: D
keyword == Auto Scaling group’s Terminate process.
upvoted 1 times
Alando
1 year, 8 months ago
Have you cleared the exam?
upvoted 1 times
...
...
mfsec
2 years, 1 month ago
Selected Answer: D
Suspend the Auto Scaling group’s Terminate process.
upvoted 2 times
...
zejou1
2 years, 1 month ago
Selected Answer: D
Amazon EC2 Auto Scaling stops marking instances unhealthy as a result of EC2 and Elastic Load Balancing health checks. Your custom health checks continue to function properly. After you suspend HealthCheck, if you need to, you can manually set the health state of instances in your group and have ReplaceUnhealthy replace them. Suspending the Terminate process doesn't prevent the successful termination of instances using the force delete option with the delete-auto-scaling-group command. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html https://docs.aws.amazon.com/systems-manager/latest/userguide/incident-manager.html We want the health checks to continue failing, just stop terminating to identify root cause
upvoted 4 times
...
testingaws123
2 years, 2 months ago
Selected Answer: A
Answer is A If you do not want instances to be replaced, we recommend that you suspend the ReplaceUnhealthy and HealthCheck process for individual Auto Scaling groups. For more information, see Suspend and resume a process for an Auto Scaling group. https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html
upvoted 3 times
zejou1
2 years, 1 month ago
That does not solve, it removes the healthcheck process, but also removes the ones that are being marked as unhealthy. The issue now is that one it is tagged as unhealthy they are being terminated. So, any that are already marked get terminated and you just removed the health checks to find remaining. you can't troubleshoot what you don't know.
upvoted 5 times
...
...
masetromain
2 years, 4 months ago
Selected Answer: D
https://www.examtopics.com/discussions/amazon/view/51249-exam-aws-certified-solutions-architect-professional-topic-1/ The correct answer is D. In this solution, the architect can suspend the Auto Scaling group's Terminate process, which will prevent the instances marked as unhealthy from being terminated. This will allow the architect to log in to the instance using Session Manager and troubleshoot the issue without losing access to the instance.
upvoted 7 times
masetromain
2 years, 4 months ago
Option A is incorrect because suspending the HealthCheck scaling process will not prevent instances from being terminated. Option B is incorrect because enabling EC2 instance termination protection will not prevent instances from being terminated by Auto Scaling group. Option C is incorrect because setting the termination policy to OldestInstance on the Auto Scaling group will not prevent instances marked as unhealthy from being terminated.
upvoted 4 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