Hard1 markMultiple Choice
AWS SAA-C03 · Question 34 · Domain 2.1: Scalable Architectures
An Auto Scaling group is scaling in. Before an EC2 instance is terminated, the application needs 5 minutes to upload local log files to Amazon S3. How can a solutions architect ensure the instance is not terminated before the upload completes?
An Auto Scaling group is scaling in. Before an EC2 instance is terminated, the application needs 5 minutes to upload local log files to Amazon S3. How can a solutions architect ensure the instance is not terminated before the upload completes?
Answer options:
A.
Increase the Auto Scaling cooldown period.
B.
Use an Auto Scaling lifecycle hook.
C.
Enable termination protection on the EC2 instance.
D.
Modify the instance's shutdown behavior to 'Stop'.
How to approach this question
Identify the need to pause an ASG termination. Lifecycle hooks are designed for this.
Full Answer
B.Use an Auto Scaling lifecycle hook.✓ Correct
Use an Auto Scaling lifecycle hook.
Auto Scaling lifecycle hooks enable you to perform custom actions by pausing instances as an Auto Scaling group launches or terminates them. You can use a terminating lifecycle hook to pause the instance, upload logs, and then complete the termination.
Common mistakes
Thinking the cooldown period affects the termination process of a single instance.
Practice the full AWS SAA-C03 Practice Exam 3
65 questions · hints · full answers · grading
More questions from this exam
Q01A company stores sensitive documents in an Amazon S3 bucket. The security team requires that only...EasyQ02A large enterprise uses AWS Organizations to manage multiple accounts. The security team wants to...MediumQ03A company hosts a web application on Amazon EC2 instances behind an Application Load Balancer (AL...EasyQ04A company wants to continuously monitor its AWS accounts for malicious activity and unauthorized ...MediumQ05A company needs to encrypt data at rest in Amazon RDS and manage database credentials securely. T...Medium
Expert