Question 1,120 of 1,621
ANS-C01 Network Implementation Practice Question
Exhibit
Refer to the exhibit.
```
# CloudFormation snippet
Resources:
MyVPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
PublicSubnet:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref MyVPC
CidrBlock: 10.0.1.0/24
MapPublicIpOnLaunch: true
```A network engineer created the CloudFormation stack shown. After creation, an EC2 instance launched in PublicSubnet does not have a public IP address. What is the most likely reason?
⚠ Common exam trap
The ANS-C01 exam often tests the misconception that a NAT Gateway is required for public IP assignment, but the correct requirement is an Internet Gateway attached to the VPC with a route in the subnet's route table.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The VPC does not have an Internet Gateway attached
An EC2 instance in a public subnet requires an Internet Gateway (IGW) attached to the VPC to receive a public IP address. Without an IGW, the instance cannot be assigned a public IP or communicate with the internet, even if the subnet is configured to auto-assign public IPs. The CloudFormation stack likely omitted the IGW resource or its attachment to the VPC, leaving the VPC isolated.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The VPC does not have an Internet Gateway attached
Why this is correct
Without an Internet Gateway, instances cannot be assigned public IPs or reach the internet.
- ✗
The subnet does not have an Internet Gateway attached
Why it's wrong here
Internet Gateway is attached to the VPC, not the subnet.
- ✗
The subnet's route table does not have a route to a NAT Gateway
Why it's wrong here
NAT Gateway is for private subnets; public subnets use Internet Gateway.
- ✗
The instance type does not support public IP addresses
Why it's wrong here
All EC2 instance types support public IP assignment.
Visual reference
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jul 4, 2026
This ANS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ANS-C01 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.