AWS Certified Solutions Architect – Professional — Question 145

A company has an internal AWS Elastic Beanstalk worker environment inside a VPC that must access an external payment gateway API available on an HTTPS endpoint on the public internet. Because of security policies, the payment gateway's Application team can grant access to only one public IP address.
Which architecture will set up an Elastic Beanstalk environment to access the company's application without making multiple changes on the company's end?

Answer options

Correct answer: A

Explanation

The correct answer, A, involves placing EC2 instances in a private subnet with a NAT gateway in a public subnet, allowing outbound internet access while keeping instances secure. This solution enables the company to use a single Elastic IP address for whitelisting, meeting the payment gateway's requirements. Options B and D expose the instances directly to the internet, which is against the security policy, while option C introduces unnecessary complexity with a proxy solution.