Easy1 markMultiple Choice
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?
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
Q01A company wants to ensure that no AWS resources can be created in the ap-northeast-1 region acros...EasyQ02A web application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The com...EasyQ03A company is storing highly sensitive data in an Amazon S3 bucket. The security team requires tha...MediumQ04An application running on an EC2 instance needs to access an Amazon DynamoDB table in a different...HardQ05A company needs to store database credentials securely. The credentials must be automatically rot...Medium
Expert