Practice free →
HomeAWS SysOps Associatecloudcomputingsysopssecuritynetwork › An EC2 instance in a private subnet needs outbou…

An EC2 instance in a private subnet needs outbound HTTPS to api.example.com but no inbound internet exposure. Which two networking primitives, combined, enable this?

AAn Internet Gateway directly attached to the private subnet
BA CloudFront distribution as the proxy
CA NAT Gateway in a public subnet plus a route from the private subnet to the NAT Gateway
DA VPN to an on-prem datacentre as the only egress path
Answer & Solution
Correct answer: C. A NAT Gateway in a public subnet plus a route from the private subnet to the NAT Gateway
NAT Gateway + private-subnet default route = outbound-only internet. IGW on a private subnet would expose it inbound; VPN to on-prem isn't the same path; CloudFront isn't a forward proxy.
Solve this in the app — AWS SysOps Associate practice & 24k+ MCQs →
Related questions