ANS-C01 Network Security, Compliance and Governance Practice Question
Which TWO actions should be taken to secure a VPC that hosts a web application? (Choose TWO.)
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
✓
Use a VPC Gateway Endpoint for S3 to allow private access.
To secure a VPC hosting a web application, you should use Security Groups to allow only required inbound traffic (Option D) and use a VPC Gateway Endpoint for S3 to allow private access to S3 without traversing the internet (Option C). Option A is incorrect because allowing all ICMP from the internet increases attack surface. Option B is incorrect because the default route should point to an Internet Gateway for internet access, not a virtual private gateway unless for VPN. Option E is incorrect because allowing all outbound traffic may permit unauthorized data exfiltration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Allow all ICMP traffic from the internet to the VPC.
Why it's wrong here
ICMP can be used for reconnaissance.
- ✗
Set the default route (0.0.0.0/0) to a virtual private gateway.
Why it's wrong here
Only if VPN is required; otherwise use internet gateway or NAT.
- ✓
Use a VPC Gateway Endpoint for S3 to allow private access.
Why this is correct
Provides secure access to S3 without internet.
- ✓
Configure Security Groups to allow only required inbound traffic.
Why this is correct
Security Groups act as a virtual firewall.
- ✗
Allow all outbound traffic from the application instances.
Why it's wrong here
Outbound traffic should be restricted to necessary destinations.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
One of 1,621 original ANS-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.