AWS Certified Solutions Architect – Professional — Question 733

A company has migrated a legacy application to the AWS Cloud. The application runs on three Amazon EC2 instances that are spread across three Availability Zones. One EC2 instance is in each Availability Zone. The EC2 instances are running in three private subnets of the VPC and are set up as targets for an Application Load Balancer (ALB) that is associated with three public subnets.

The application needs to communicate with on-premises systems. Only traffic from IP addresses in the company's IP address range are allowed to access the on-premises systems. The company's security team is bringing only one IP address from its internal IP address range to the cloud. The company has added this IP address to the allow list for the company firewall. The company also has created an Elastic IP address for this IP address.

A solutions architect needs to create a solution that gives the application the ability to communicate with the on-premises systems. The solution also must be able to mitigate failures automatically.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

Because the company only has a single whitelisted Elastic IP address, it can only be associated with one NAT gateway at a time, making a multi-NAT gateway architecture impossible. Option C solves this limitation by deploying a single NAT gateway and using Amazon CloudWatch and AWS Lambda to automatically recreate the NAT gateway and reassign the Elastic IP in another subnet upon failure. Options B and D are incorrect because load balancers are designed for inbound traffic, whereas outbound traffic from private EC2 instances to on-premises systems requires a NAT gateway.