Bird
0
0

How should you configure internet access?

hard📝 Application Q9 of 15
AWS - VPC Fundamentals
You have a VPC with both public and private subnets. You want instances in the private subnet to access the internet for updates but not be reachable from the internet. How should you configure internet access?
AAttach an Internet Gateway to the VPC, use a NAT Gateway in the public subnet, and update private subnet route table to point to NAT Gateway.
BAttach an Internet Gateway and assign public IPs to private subnet instances.
CAttach an Internet Gateway and update private subnet route table to point directly to IGW.
DDo not attach an Internet Gateway and use only private IPs.
Step-by-Step Solution
Solution:
  1. Step 1: Understand private subnet internet access

    Private subnet instances cannot have public IPs but need internet access via NAT Gateway.
  2. Step 2: Configure NAT Gateway and routing

    Attach IGW to VPC, create NAT Gateway in public subnet, and route private subnet traffic to NAT Gateway.
  3. Final Answer:

    Attach an Internet Gateway to the VPC, use a NAT Gateway in the public subnet, and update private subnet route table to point to NAT Gateway. -> Option A
  4. Quick Check:

    Private subnet internet via NAT Gateway and IGW [OK]
Quick Trick: Private subnet uses NAT Gateway with IGW for internet access [OK]
Common Mistakes:
MISTAKES
  • Assigning public IPs to private subnet instances
  • Routing private subnet directly to IGW

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes