AWS VPC Essentials: Subnets, CIDR, and Routing Fundamentals Quiz Quiz

Explore key concepts of AWS Virtual Private Cloud networking, including subnets, CIDR blocks, and routing table basics. Assess your understanding of network segmentation, IP addressing, and secure routing best practices within a cloud environment.

  1. Subnet Scope in a VPC

    Which statement correctly describes the role of a subnet within a VPC?

    1. A subnet divides a VPC’s IP address range into smaller, isolated networks.
    2. A subnet replaces the need for routing tables in a VPC.
    3. A subnet instantly encrypts all traffic crossing its border.
    4. A subnet is used only for connecting on-premises data centers.

    Explanation: The correct answer describes the fundamental purpose of a subnet: breaking a VPC’s overall IP range into smaller, distinct networks for segmentation and organization. Subnets do not automatically encrypt traffic (Option B), do not replace routing tables (Option C), and are not exclusive to on-premises connectivity (Option D). The distractors either misrepresent or overstate the function of a subnet.

  2. CIDR Block Notation Example

    Which of the following is a valid example of a CIDR block assigned to a subnet?

    1. 10.0.1.0.24
    2. 255.255.255.0/10
    3. 10.0.1.0/24
    4. 10-0-1-0/24

    Explanation: The answer shows correct CIDR notation, with an IP address followed by a forward slash and a prefix length. The second option mistakenly uses a subnet mask in the wrong format, the third does not follow CIDR syntax, and the fourth contains dashes instead of dots as separators. Only the correct option accurately represents a CIDR block.

  3. Public vs. Private Subnets

    What distinguishes a public subnet from a private subnet in a cloud environment?

    1. A public subnet uses a larger CIDR block than a private subnet.
    2. A public subnet’s route table includes a route to an internet gateway.
    3. A public subnet is always encrypted by default.
    4. A public subnet does not require a route table.

    Explanation: A public subnet is defined by its route table containing a route that directs traffic to an internet gateway, allowing public internet access. Subnet size (Option B) and encryption (Option D) are not defining features, and all subnets require route tables (Option C). These misconceptions are addressed by the alternatives.

  4. Purpose of a Routing Table

    What is the main purpose of a routing table in a VPC?

    1. To create and manage security groups.
    2. To assign IP addresses to instances automatically.
    3. To encrypt all data sent within the subnet.
    4. To determine where network traffic should be directed within the VPC.

    Explanation: Routing tables decide how packets are forwarded between subnets or to other networks. Encrypting data (Option B) is handled separately, assigning IPs (Option C) is usually done by DHCP, and security groups (Option D) are for access control, not routing. The distractors either mix up functions or confuse networking concepts.

  5. Smallest Possible VPC IPv4 CIDR

    What is the smallest IPv4 CIDR block size you can assign to a VPC?

    1. /30
    2. /16
    3. /8
    4. /28

    Explanation: A /28 CIDR block provides 16 IP addresses, and is the smallest allowed for a VPC. A /30 would provide too few addresses and is not permitted, while /16 and /8 represent much larger subnets. The distractor options represent valid CIDR notations but not all are allowed sizes for a VPC.

  6. Default Main Route Table Behavior

    In a new VPC, what does the main route table do by default?

    1. Routes traffic between all subnets within the VPC.
    2. Assigns IP addresses to subnet resources.
    3. Blocks all outgoing traffic by default.
    4. Provides direct internet access for every subnet.

    Explanation: By default, the main routing table allows network communication between all subnets in the VPC. It does not block all traffic (Option B), nor does it automatically provide internet access to subnets (Option C). Assigning IP addresses (Option D) is performed by a different component. The incorrect options confuse routing with other functionalities.

  7. Subnet Mask Length and IP Addresses

    How does increasing the subnet mask length in a CIDR block (such as from /24 to /26) affect the number of available IP addresses in the subnet?

    1. The CIDR block becomes invalid.
    2. The number of available IP addresses decreases.
    3. The number of available IP addresses increases.
    4. The subnet becomes eligible for public access.

    Explanation: A longer subnet mask results in smaller subnets, and thus, fewer available IP addresses. Public access (Option B) depends on routing, not mask length. Option C is the opposite of reality, and Option D is incorrect since /26 is a valid CIDR block. The distractors reflect common misunderstandings of CIDR behavior.

  8. Setting Up a VPC

    Which action must you perform when creating a new VPC to allow future subnet creation?

    1. Assign elastic IP addresses to all future instances.
    2. Create security groups for every subnet.
    3. Choose a CIDR block for the VPC.
    4. Immediately attach an internet gateway.

    Explanation: A VPC must be assigned a CIDR block upon creation, as this defines the range available for subnets. Attaching an internet gateway (Option B) is optional based on needs. Assigning elastic IPs (Option C) and creating all security groups upfront (Option D) are not mandatory steps for VPC creation. The incorrect answers confuse other setup tasks with the foundational requirement.

  9. Subnet Placement and Availability Zones

    Why should subnets in a VPC be created in different availability zones?

    1. To make routing tables unnecessary.
    2. To increase fault tolerance and availability.
    3. To reduce the total number of IP addresses.
    4. To increase the size of each subnet.

    Explanation: Distributing subnets across multiple zones protects applications from zone-specific failures and improves overall availability. Subnetting does not reduce IPs (Option B), routing tables remain necessary (Option C), and subnet size is determined by CIDR blocks, not zone placement (Option D). The distractors misunderstand subnet and zone relationships.

  10. Overlapping CIDR Blocks

    What happens if you try to create two subnets in a VPC with overlapping CIDR blocks, such as 10.0.1.0/24 and 10.0.1.128/25?

    1. The VPC will automatically correct the overlaps.
    2. Both subnets will combine into one larger subnet.
    3. The subnets will become public by default.
    4. The operation fails because subnet CIDR blocks must not overlap.

    Explanation: Subnets within a VPC cannot have overlapping IP ranges; attempting to create them will result in an error. Subnets cannot be merged automatically (Option B), and automated correction (Option C) does not occur. Public status (Option D) depends on routes, not IP overlap. The alternatives reflect misconceptions about subnet configuration.