0
0
AWScloud~20 mins

Public vs private subnets in AWS - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Subnet Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding subnet accessibility

Which statement correctly describes the main difference between a public subnet and a private subnet in AWS?

AA public subnet has a route to an internet gateway, allowing direct internet access; a private subnet does not have this route.
BA private subnet has a route to an internet gateway, allowing direct internet access; a public subnet does not have this route.
CBoth public and private subnets have direct internet access but differ in security group settings.
DPublic subnets are only used for databases, while private subnets are used for web servers.
Attempts:
2 left
💡 Hint

Think about which subnet can send traffic directly to the internet.

Architecture
intermediate
2:00remaining
Subnet design for a web application

You are designing a web application architecture in AWS. Which subnet setup is best practice for hosting web servers and databases?

APlace web servers in a private subnet and databases in a public subnet.
BPlace both web servers and databases in a public subnet.
CPlace web servers in a public subnet and databases in a private subnet.
DPlace both web servers and databases in a private subnet.
Attempts:
2 left
💡 Hint

Consider which resources need internet access and which should be protected.

security
advanced
2:00remaining
Security implications of subnet routing

What is the security risk if a private subnet mistakenly has a route to an internet gateway?

AThere is no risk; routing to an internet gateway does not affect security.
BResources in the private subnet become directly accessible from the internet, increasing exposure to attacks.
CThe subnet automatically becomes public and AWS charges extra fees.
DResources in the private subnet lose all internet access, causing application failures.
Attempts:
2 left
💡 Hint

Think about what happens when private resources can be reached from outside.

service_behavior
advanced
2:00remaining
NAT Gateway role in private subnet internet access

How does a NAT Gateway enable instances in a private subnet to access the internet?

AIt converts private IP addresses to IPv6 addresses for internet access.
BIt assigns public IP addresses directly to instances in the private subnet.
CIt blocks all internet traffic to maintain subnet privacy.
DIt allows outbound internet traffic from private subnet instances by routing through a public subnet with an internet gateway.
Attempts:
2 left
💡 Hint

Consider how private subnet instances send requests to the internet without direct access.

Best Practice
expert
3:00remaining
Subnet IP addressing and CIDR block planning

You have a VPC with CIDR block 10.0.0.0/16. You want to create two public subnets and two private subnets with equal size and no overlap. Which CIDR blocks correctly divide the VPC into these four subnets?

A10.0.0.0/18, 10.0.64.0/18 for public subnets; 10.0.128.0/18, 10.0.192.0/18 for private subnets.
B10.0.0.0/17, 10.0.128.0/17 for public subnets; 10.0.64.0/17, 10.0.192.0/17 for private subnets.
C10.0.0.0/19, 10.0.32.0/19 for public subnets; 10.0.64.0/19, 10.0.96.0/19 for private subnets.
D10.0.0.0/16 for public subnets; 10.0.0.0/16 for private subnets.
Attempts:
2 left
💡 Hint

Remember that /16 means 65536 IPs. Dividing into four equal subnets means each subnet has /18 (16384 IPs).