A company will deploy an internal web application on AWS that must be accessible only from the company office. The application must download security patches from the internet. The company has a VPC and an AWS Site-to-Site VPN to the office. Which design meets these requirements securely?
Choose an answer
Tap an option to check your answer.
Correct answer: Deploy the web application on Amazon EC2 instances in private subnets behind an internal Application Load Balancer (ALB). Deploy NAT gateways in public subnets. Attach an internet gateway to the VPC. Set the inbound source of the ALB's security group to the company's office network CIDR block..
Why this is the answer
This option correctly isolates the web application while allowing necessary outbound internet access. Deploying EC2 instances in private subnets behind an internal ALB ensures the application is not directly exposed to the public internet. Setting the ALB's security group inbound source to the company's office network CIDR block restricts access exclusively to the office via the Site-to-Site VPN. NAT gateways in public subnets, coupled with an internet gateway, provide the private EC2 instances with outbound internet connectivity for downloading security patches without allowing unsolicited inbound connections. Incorrect options: Deploying the ALB in public subnets with a 0.0.0.0/0 inbound rule makes the application publicly accessible, violating the requirement for internal access only. Deploying EC2 instances in public subnets exposes them directly to the internet, and setting the outbound destination of the ALB's security group for inbound access is incorrect. NAT gateways in private subnets are also not a standard or effective design for providing outbound internet access to private instances. A public ALB with an outbound destination rule for inbound access is misconfigured and would expose the application publicly.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed