- A
Create a single public subnet and use security groups to restrict traffic between instances.
Why wrong: Single subnet does not provide network segmentation.
- B
Place all instances in public subnets but assign private IP addresses only.
Why wrong: Public subnets still have route to internet gateway; not recommended for database.
- C
Create public subnets for web tier and private subnets for app and database tiers. Use security groups to allow traffic from web to app and app to database.
Best practices for tiered architecture.
- D
Use network ACLs on subnets to restrict traffic instead of security groups.
Why wrong: NACLs are stateless and more difficult to manage for this use case.
Three-Tier Web App with Security Group Isolation
This ANS-C01 practice question tests your understanding of network design. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company is designing a network for a three-tier web application. The web tier must be accessible from the internet, the application tier must only be accessible from the web tier, and the database tier must only be accessible from the application tier. Which VPC design meets these requirements with the highest security?
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
Create public subnets for web tier and private subnets for app and database tiers. Use security groups to allow traffic from web to app and app to database.
Option C is correct because it uses separate public subnets for the web tier (with an Internet Gateway for inbound traffic) and private subnets for the application and database tiers, which have no direct route to the internet. Security groups act as stateful virtual firewalls at the instance level, allowing you to precisely control traffic flows: the web tier security group allows inbound HTTP/HTTPS from the internet, the application tier security group allows inbound traffic only from the web tier security group, and the database tier security group allows inbound traffic only from the application tier security group. This layered approach enforces least-privilege access and minimizes the attack surface.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a single public subnet and use security groups to restrict traffic between instances.
Why it's wrong here
Single subnet does not provide network segmentation.
- ✗
Place all instances in public subnets but assign private IP addresses only.
Why it's wrong here
Public subnets still have route to internet gateway; not recommended for database.
- ✓
Create public subnets for web tier and private subnets for app and database tiers. Use security groups to allow traffic from web to app and app to database.
Why this is correct
Best practices for tiered architecture.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Use network ACLs on subnets to restrict traffic instead of security groups.
Why it's wrong here
NACLs are stateless and more difficult to manage for this use case.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often assume network ACLs are more secure than security groups because they operate at the subnet level, but they overlook the fact that security groups provide stateful, instance-level control that is inherently more secure and easier to manage for isolating application tiers.
Detailed technical explanation
How to think about this question
Under the hood, security groups are stateful, meaning that if you allow inbound traffic on port 443, the return traffic is automatically allowed regardless of outbound rules, which simplifies rule design for multi-tier architectures. In contrast, network ACLs require you to explicitly allow both inbound and outbound traffic, including ephemeral ports (1024-65535), which is error-prone and can lead to misconfigurations. In a real-world scenario, using security groups with private subnets also prevents instances from having direct internet access, forcing all outbound traffic through a NAT Gateway or proxy, which adds an additional layer of security and auditability.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
Visual reference
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Network Design — study guide chapter
Learn the concepts, then practise the questions
- →
Network Design practice questions
Targeted practice on this topic area only
- →
All ANS-C01 questions
1,705 questions across all exam domains
- →
AWS Certified Advanced Networking Specialty ANS-C01 study guide
Full concept coverage aligned to exam objectives
- →
ANS-C01 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related ANS-C01 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Network Management and Operations practice questions
Practise ANS-C01 questions linked to Network Management and Operations.
Network Security, Compliance and Governance practice questions
Practise ANS-C01 questions linked to Network Security, Compliance and Governance.
Network Design practice questions
Practise ANS-C01 questions linked to Network Design.
Network Implementation practice questions
Practise ANS-C01 questions linked to Network Implementation.
ANS-C01 fundamentals practice questions
Practise ANS-C01 questions linked to ANS-C01 fundamentals.
ANS-C01 scenario practice questions
Practise ANS-C01 questions linked to ANS-C01 scenario.
ANS-C01 troubleshooting practice questions
Practise ANS-C01 questions linked to ANS-C01 troubleshooting.
Practice this exam
Start a free ANS-C01 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this ANS-C01 question test?
Network Design — This question tests Network Design — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create public subnets for web tier and private subnets for app and database tiers. Use security groups to allow traffic from web to app and app to database. — Option C is correct because it uses separate public subnets for the web tier (with an Internet Gateway for inbound traffic) and private subnets for the application and database tiers, which have no direct route to the internet. Security groups act as stateful virtual firewalls at the instance level, allowing you to precisely control traffic flows: the web tier security group allows inbound HTTP/HTTPS from the internet, the application tier security group allows inbound traffic only from the web tier security group, and the database tier security group allows inbound traffic only from the application tier security group. This layered approach enforces least-privilege access and minimizes the attack surface.
What should I do if I get this ANS-C01 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
Same concept, more angles
3 more ways this is tested on ANS-C01
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company is designing a network for a multi-tier application. The web tier must be accessible from the internet, the application tier must be accessible only from the web tier, and the database tier must be accessible only from the application tier. Which architecture meets these requirements?
medium- A.Place each tier in a separate subnet and use network ACLs to allow traffic between tiers
- ✓ B.Place each tier in a separate subnet and use security groups to allow traffic between tiers
- C.Place all tiers in the same subnet and use security groups to control traffic
- D.Place all tiers in a public subnet and use a NAT gateway for the application and database tiers
Why B: Security groups act as a stateful virtual firewall at the instance level, allowing you to specify inbound and outbound rules based on source/destination security group IDs. By placing each tier in a separate subnet and referencing the web tier's security group as the source for the application tier's inbound rule, and the application tier's security group as the source for the database tier's inbound rule, you achieve the required least-privilege access without exposing the application or database tiers to the internet.
Variation 2. A company is designing a network for a multi-tier application. The web tier must be accessible from the internet, and the application tier must only be accessible from the web tier. Which architecture should they use?
medium- A.Web servers in private subnets with a NAT Gateway for outbound traffic, and application servers in public subnets
- ✓ B.Web servers in public subnets with an Internet Gateway, and application servers in private subnets with security groups allowing traffic only from the web tier
- C.All servers in a single VPC with VPC Peering to another VPC
- D.Web servers and application servers in public subnets, each with their own security group
Why B: Option B is correct because it places the web servers in public subnets with an Internet Gateway (IGW) to allow direct inbound traffic from the internet, while the application servers reside in private subnets with security groups that explicitly permit traffic only from the web tier's security group. This ensures the application tier is not directly reachable from the internet, adhering to the principle of least privilege and defense in depth.
Variation 3. A company is designing a network for a three-tier application that must be PCI DSS compliant. The web tier must be accessible from the internet, the application tier must only be accessible from the web tier, and the database tier must only be accessible from the application tier. All tiers are in the same VPC. What is the MOST secure way to implement this?
easy- A.Use a VPN between the web and application tiers and between application and database tiers.
- B.Place all tiers in the same private subnet and use security groups for isolation.
- ✓ C.Place web tier in public subnets, application and database tiers in private subnets. Use security groups to allow only necessary traffic between tiers.
- D.Place all tiers in public subnets and use network ACLs to restrict traffic.
Why C: Option C is the most secure because it places the web tier in public subnets (for internet access) and the application and database tiers in private subnets (no direct internet access). Security groups are used to allow only the necessary traffic between tiers: from web to app on specific ports, and from app to db on specific ports. Security groups are stateful, which simplifies rule management and reduces attack surface. Option A is wrong because a VPN is unnecessary for intra-VPC traffic and adds complexity without improving security. Option B is wrong because placing all tiers in the same private subnet does not provide network isolation between tiers; security groups alone cannot prevent all lateral movement. Option D is wrong because placing all tiers in public subnets exposes the application and database tiers to the internet, and network ACLs are stateless, requiring symmetric rules and increasing management overhead.
Keep practising
More ANS-C01 practice questions
- A financial services company has a VPC with a public subnet and a private subnet. EC2 instances in the private subnet ne…
- A company is designing a network security architecture for a multi-account environment using AWS Transit Gateway. The se…
- A company is using AWS Direct Connect to connect its on-premises network to AWS. The company wants to encrypt all traffi…
- A company uses AWS Transit Gateway to connect multiple VPCs and on-premises networks via AWS Site-to-Site VPN. The secur…
- A company runs a web application on EC2 instances behind an Application Load Balancer (ALB). The application must be acc…
- A global e-commerce company uses a hub-and-spoke network topology with a transit VPC in us-east-1. Each spoke VPC has an…
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.