You want to allow instances in a public subnet to access the internet and also allow inbound HTTP traffic from the internet. Which combination of configurations is required?
hard📝 Application Q8 of 15
AWS - VPC Fundamentals
You want to allow instances in a public subnet to access the internet and also allow inbound HTTP traffic from the internet. Which combination of configurations is required?
AAttach an Internet Gateway, update route table with default route to IGW, and disable security groups.
BAttach an Internet Gateway, update route table with default route to IGW, assign public IPs, and allow inbound HTTP in security group.
CCreate a NAT Gateway, update route table to NAT, and assign private IPs to instances.
DAttach an Internet Gateway, assign Elastic IPs to instances, and block all inbound traffic.
Step-by-Step Solution
Solution:
Step 1: Enable internet access
Attach IGW and update route table with default route to IGW.
Step 2: Ensure instances have public IPs and allow inbound HTTP
Assign public IPs and configure security groups to allow inbound HTTP (port 80).
Final Answer:
Attach an Internet Gateway, update route table with default route to IGW, assign public IPs, and allow inbound HTTP in security group. -> Option B
Quick Check:
IGW + route + public IP + security group HTTP = public web access [OK]
Quick Trick:Public subnet needs IGW, route, public IP, and security group rules [OK]
Common Mistakes:
Using NAT Gateway for public subnet internet access
Disabling security groups instead of configuring them
Master "VPC Fundamentals" in AWS
9 interactive learning modes - each teaches the same concept differently