A company has a VPC with public and private subnets. Instances in the private subnet need to access the internet for software updates but should not be directly accessible from the internet. Which configuration should be used?

Answer

Create a NAT Gateway in the public subnet and update the private subnet's route table.

Explanation

A NAT Gateway in a public subnet allows instances in a private subnet to initiate outbound internet traffic while preventing inbound access. Internet Gateway is for public subnets, and Elastic IPs would make instances public.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list