Secure Web App with VPN and Internet Access
Short answer
B Deploy web app on EC2 in private subnets behind internal ALB with NAT gateways for outbound internet access.
Question
Key Takeaways
The common trap is assuming a public subnet or ALB is needed for internet access; private subnets with NAT are the secure standard.
This question tests securing an internal web application accessible via Site-to-Site VPN while allowing outbound patch downloads using NAT gateways.
Common mistake: Learners often choose A because it seems simpler, ignoring that public subnets expose instances directly to the internet.
Expert Analysis
Why the Answer Is Correct
Option B correctly places EC2 instances in private subnets behind an internal ALB, ensuring they are not directly reachable from the internet. The inbound security group rule restricts access to the company's office CIDR block, satisfying the requirement for office-only access via the VPN. NAT gateways in public subnets allow the private instances to initiate outbound connections to the internet for patches without exposing them inbound.
Why the Other Options Are Wrong
Option A uses a public ALB and open inbound rules (0.0.0.0/0), violating the office-only access requirement. Option C incorrectly places NAT gateways in private subnets (NATs must be in public subnets) and uses an internal ALB with outbound rules, which is not how ALB security works. Option D uses a public ALB, which would expose the application to the internet regardless of outbound rules, failing the security constraint.
Community Comment Notes
As osmk noted, there is confusion about IGW vs NATGW roles, but B correctly utilizes both: IGW for the NAT GW to reach the internet, and NAT GW for private instance egress. Scheldon confirmed that keeping servers in private subnets hides them from the world, which is the core security principle here.
Exam Strategy
Always prioritize private subnets for backend resources. Use NAT Gateways in public subnets for outbound internet access, never direct routing from private subnets.
Frequently Asked Questions
Why can't I use a Public ALB for an internal app?
Do I need an Internet Gateway if I have a NAT Gateway?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 6
-
osmk 👍 6 Answered Bnone sense why IGW on top of NATGW.
-
ogerber 👍 3To my opinion, with only having inbound of the companys CIDR block, it will not include access for the patches available online. i would go for D
-
striker89 👍 1 Answered BI Would go for B even if NAT GW allow outbound traffic ONLY. Still wondering how the Company newtwork will access Private Subnet in the VPC.
-
Scheldon 👍 1AnswerB Server and LB in Private will hide WEB application from the word. NAT will allow for server's access to the internet in case of need
-
Andy_09 👍 7Option B
Show 1 more comment
-
NayeraB 👍 3 Answered BB is well structured
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →