Bird
0
0

Given the following AWS setup, what will happen if the Internet Gateway is not attached to the VPC?

medium📝 service behavior Q13 of 15
AWS - VPC Fundamentals
Given the following AWS setup, what will happen if the Internet Gateway is not attached to the VPC?
VPC: vpc-1234
Internet Gateway: igw-5678 (created but not attached)
EC2 Instance: in public subnet with route to igw-5678
AThe EC2 instance will not have internet access
BThe EC2 instance will be terminated automatically
CThe EC2 instance will have internet access
DThe EC2 instance will have internet access only for outbound traffic
Step-by-Step Solution
Solution:
  1. Step 1: Understand Internet Gateway attachment requirement

    An Internet Gateway must be attached to the VPC to enable internet traffic flow. Without attachment, the gateway is inactive for that VPC.
  2. Step 2: Analyze the effect on EC2 instance

    Even if the route table points to the Internet Gateway, since it is not attached, the EC2 instance cannot send or receive internet traffic.
  3. Final Answer:

    The EC2 instance will not have internet access -> Option A
  4. Quick Check:

    Internet Gateway unattached = no internet access [OK]
Quick Trick: Internet Gateway must be attached to VPC for internet access [OK]
Common Mistakes:
  • Assuming route table alone enables internet
  • Thinking instance auto-terminates without internet
  • Believing outbound-only access works without attachment

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes