Easy1 markMultiple Choice
Domain 2.1: Scalable ArchitecturesDomain 2ResilienceEC2Auto Scaling

AWS SAA-C03 · Question 37 · Domain 2.1: Scalable Architectures

A company has a single EC2 instance hosting a legacy application that cannot be load balanced. If the instance fails, a new one must be launched automatically, but the application requires a static IP address that clients have whitelisted. How can this be achieved?

Answer options:

A.

Use an Application Load Balancer with a static IP.

B.

Assign an Elastic IP. Use an ASG of size 1 and a user data script to attach the EIP.

C.

Use Route 53 to update the DNS record to the new instance's public IP.

D.

Use AWS Global Accelerator.

How to approach this question

Combine ASG self-healing with Elastic IP reassignment.

Full Answer

B.Assign an Elastic IP. Use an ASG of size 1 and a user data script to attach the EIP.✓ Correct
Assign an Elastic IP to the instance. Use an EC2 Auto Scaling group with a min/max size of 1, and a user data script to attach the Elastic IP on boot.
An Auto Scaling group of size 1 ensures the instance is replaced if it fails. A user data script can use the AWS CLI to associate the existing Elastic IP to the newly launched instance.

Common mistakes

Assuming ALBs provide static IPs.

Practice the full AWS SAA-C03 Practice Exam 2

65 questions · hints · full answers · grading

More questions from this exam