0
0
AWScloud~20 mins

CIDR blocks and IP addressing in AWS - Practice Problems & Coding Challenges

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

Which CIDR block provides the largest number of usable IP addresses?

A10.0.0.0/24
B10.0.0.0/22
C10.0.0.0/26
D10.0.0.0/30
Attempts:
2 left
💡 Hint

Smaller CIDR suffix means more IP addresses.

Architecture
intermediate
2:00remaining
Subnetting a VPC

You have a VPC with CIDR block 192.168.0.0/16. You want to create subnets that each have 256 IP addresses. Which subnet CIDR block should you use?

A192.168.1.0/24
B192.168.1.0/25
C192.168.1.0/23
D192.168.1.0/26
Attempts:
2 left
💡 Hint

Recall that a /24 subnet has 256 IP addresses.

security
advanced
2:00remaining
Avoiding IP Overlaps in Peered VPCs

You have two VPCs peered together. VPC A uses 10.0.0.0/16 and VPC B uses 10.0.128.0/17. What issue will arise from this configuration?

AThe CIDR blocks overlap, causing routing conflicts.
BPeering is not allowed between these CIDR blocks.
CNo issue; the CIDR blocks do not overlap.
DVPC B's CIDR block is invalid for peering.
Attempts:
2 left
💡 Hint

Check if the IP ranges in the two CIDR blocks share any addresses.

service_behavior
advanced
2:00remaining
AWS Reserved IP Addresses in a Subnet

In an AWS subnet with CIDR block 10.0.1.0/24, how many IP addresses are available for your instances?

A253 IP addresses
B256 IP addresses
C251 IP addresses
D250 IP addresses
Attempts:
2 left
💡 Hint

AWS reserves 5 IP addresses per subnet.

Best Practice
expert
3:00remaining
Designing a Multi-AZ VPC with Non-Overlapping Subnets

You need to design a VPC with CIDR block 172.31.0.0/16 across three Availability Zones (AZs). Each AZ requires two subnets: one public and one private, each with 4096 IP addresses. Which set of subnet CIDR blocks correctly meets these requirements without overlap?

AAZ1: 172.31.0.0/21 (public), 172.31.8.0/21 (private); AZ2: 172.31.16.0/21 (public), 172.31.24.0/21 (private); AZ3: 172.31.32.0/21 (public), 172.31.40.0/21 (private)
BAZ1: 172.31.0.0/19 (public), 172.31.8.0/20 (private); AZ2: 172.31.16.0/20 (public), 172.31.24.0/20 (private); AZ3: 172.31.32.0/20 (public), 172.31.40.0/20 (private)
CAZ1: 172.31.0.0/20 (public), 172.31.12.0/20 (private); AZ2: 172.31.24.0/20 (public), 172.31.36.0/20 (private); AZ3: 172.31.48.0/20 (public), 172.31.60.0/20 (private)
DAZ1: 172.31.0.0/20 (public), 172.31.16.0/20 (private); AZ2: 172.31.32.0/20 (public), 172.31.48.0/20 (private); AZ3: 172.31.64.0/20 (public), 172.31.80.0/20 (private)
Attempts:
2 left
💡 Hint

A /20 subnet has 4096 IP addresses. Ensure subnets do not overlap and fit within /16.