exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 914 discussion

Exam question from Amazon's AWS-SysOps
Question #: 914
Topic #: 1
[All AWS-SysOps Questions]

A streaming services company has a three-tier web application hosted on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer
(ALB). When the Auto Scaling group scales in, a deregistration delay occurs and the delay is sometimes longer than the time required to terminate the EC2 instance. A SysOps administrator must ensure that the latest logs are delivered to an external system before the EC2 instance is terminated.
Which solution will solve this problem?

  • A. Add a lifecycle hook to the Auto Scaling group to put the EC2 instance in a wait state until the log files have been delivered.
  • B. Configure a fixed response for the ALB to use custom error messages to respond to incoming requests with HTTP error response codes.
  • C. Create an Amazon CloudWatch alarm based on the RequestCountPerTarget metric for the Auto Scaling group. Modify the cooldown period to wait until the EC2 instance is terminated.
  • D. Update the launch configuration to enable scale-in protection for the Auto Scaling group and detach the EC2 instance protected for termination.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
albert_kuo
9 months, 1 week ago
Selected Answer: A
Option A: Adding a lifecycle hook to the Auto Scaling group to put the EC2 instance in a wait state until the log files have been delivered is the correct solution to ensure that the latest logs are delivered before the EC2 instance is terminated. Lifecycle hooks allow you to perform custom actions as instances launch or terminate in an Auto Scaling group. By adding a "Terminating" lifecycle hook, the EC2 instance will be put into a wait state before termination, giving you the opportunity to perform any necessary actions, such as delivering the latest logs, before the instance is finally terminated.
upvoted 2 times
...
gulu73
1 year, 2 months ago
Selected Answer: A
Answer is A
upvoted 1 times
...
szl0144
2 years, 3 months ago
answer is A
upvoted 1 times
...
BearNear
2 years, 6 months ago
A: https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html
upvoted 3 times
...
qurren
2 years, 7 months ago
Answer is A
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