Skip to Content

AWS-SysOps: How can the instances in private subnet connect to the Internet

Explore how AWS VPC’s private subnets achieve internet connectivity for updates through NAT gateways and Elastic IPs, ensuring secure and controlled access to external resources.

Table of Contents

Question

A user has created a VPC with two subnets: one public and one private. The user is planning to run the patch update for the instances in the private subnet. How can the instances in the private subnet connect to the Internet?

A. Use the internet gateway with a private IP
B. Allow outbound traffic in the security group for port 80 to allow internet updates
C. The private subnet can never connect to the internet
D. Use NAT with an elastic IP

Answer

D. Use NAT with an elastic IP

Explanation

Instances in a private subnet can connect to the internet for updates by using a Network Address Translation (NAT) gateway or NAT instance associated with an Elastic IP address. The NAT device allows outbound internet traffic from the instances in the private subnet while preventing inbound traffic from the internet.

A Virtual Private Cloud (VPC) is a virtual network dedicated to the user’s AWS account. A user can create a subnet with VPC and launch instances inside that subnet. If the user has created two subnets (one private and one public., he would need a Network Address Translation (NAT) instance with the elastic IP address. This enables the instances in the private subnet to send requests to the Internet (for example, to perform software updates).

Amazon AWS Certified SysOps Administrator AWS-SysOps certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified SysOps Administrator AWS-SysOps exam and earn Amazon AWS Certified SysOps Administrator AWS-SysOps certification.