Hard1 markMultiple Choice
Domain 2.1: Scalable ArchitecturesDomain 2Auto ScalingLifecycle Hooks

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?

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