AWS Private Subnets Flashcards
What is a common use case for AWS private subnets?
A) Hosting public-facing websites
B) Running application servers
C) Storing backup data
D) Running DNS servers
Answer: B) Running application servers
Explanation: Private subnets are typically used for resources that should not have direct access to the internet, such as application servers.
How do instances in private subnets access the internet when needed in AWS?
A) They use the VPC’s main route table to route traffic.
B) Instances in private subnets cannot access the internet.
C) They use a Network Address Translation (NAT) gateway or NAT instance.
D) Instances in private subnets have direct internet access.
Answer: C) They use a Network Address Translation (NAT) gateway or NAT instance.
Explanation: Instances in private subnets can access the internet through a NAT gateway or NAT instance, which translates their private IP addresses to a public IP address for outbound traffic.