AWS Networking Advanced: Peering u0026 Transit Gateway Quiz Quiz

Explore and assess your understanding of advanced AWS networking concepts focusing on VPC peering and transit gateways. This quiz covers core principles and typical scenarios encountered with these networking services, helping cloud professionals reinforce their knowledge for secure and scalable cloud architectures.

  1. VPC Peering: Purpose

    Which of the following best describes the primary purpose of VPC peering in a cloud environment?

    1. To replicate data automatically across regions
    2. To provide domain name resolution within a single VPC
    3. To encrypt all data within a single subnet
    4. To enable direct private network traffic between two virtual private clouds

    Explanation: VPC peering allows direct private connectivity between two virtual private clouds, making it possible for resources in each VPC to communicate. It does not encrypt all data within a subnet, which is handled by other security services. Replicating data across regions and providing domain name resolution are not primary functions of VPC peering, making those options less accurate.

  2. Peering Limitations

    A company needs transitive routing between three VPCs for application connectivity. Why is VPC peering not a suitable solution for this requirement?

    1. VPC peering cannot connect to private subnets
    2. VPC peering limits the number of CIDR blocks in a VPC
    3. VPC peering does not support transitive routing between VPCs
    4. VPC peering requires public IP addresses

    Explanation: VPC peering establishes a direct link between two VPCs and does not allow traffic to route transitively between more than two VPCs. Connections to private subnets are supported if permitted by routing and security settings. The number of CIDR blocks and the requirement for public IP addresses are unrelated to the transitive routing limitation, making them incorrect.

  3. Transit Gateway Basics

    What is the main function of a transit gateway in a cloud network architecture?

    1. To provide internet access to public subnets only
    2. To restrict inbound traffic to only one VPC
    3. To automatically assign DNS names to all resources
    4. To act as a central hub for connecting multiple VPCs and on-premises networks

    Explanation: A transit gateway facilitates scalable connectivity by serving as a central hub that links multiple VPCs and on-premises networks. Providing internet access and managing DNS names are not its primary functions, and it does not restrict traffic to only one VPC, making the other options incorrect.

  4. Peering Cross-Region

    A cloud architect needs to establish a secure connection between VPCs in different geographic regions. Which feature should be used?

    1. Elastic Load Balancer
    2. Cross-region VPC peering
    3. Classic networking
    4. Subnet broadcast

    Explanation: Cross-region VPC peering is specifically designed to connect VPCs residing in different geographic locations. Subnet broadcast is not used for VPC communication, Elastic Load Balancers handle application traffic balancing, and classic networking is a legacy term and not relevant to inter-region connectivity.

  5. Routing with Transit Gateway

    When integrating multiple VPCs using a transit gateway, what should be updated to ensure proper flow of traffic among them?

    1. The object storage bucket policies
    2. The security group of the NAT gateway
    3. The public key infrastructure configuration
    4. The route tables associated with the VPC attachments

    Explanation: For proper traffic flow between VPCs attached to a transit gateway, you must update the route tables associated with those attachments. While security groups and bucket policies are important, they do not control the routing of network traffic. Public key infrastructure also does not manage route propagation in this context.

  6. DNS Resolution Across Peers

    Which feature allows domain name resolution across VPCs connected via peering, enabling resources in one VPC to look up private DNS names in another VPC?

    1. DNS Resolution Support
    2. Pop3 mail relay
    3. Instance Metadata Service
    4. Network Time Protocol (NTP) service

    Explanation: DNS Resolution Support enables private DNS resolution between peered VPCs, facilitating hostname lookups across VPC boundaries. The instance metadata service is used for VM details, Pop3 is an email protocol irrelevant to DNS, and NTP synchronizes clocks but does not handle DNS resolution.

  7. Bandwidth Considerations

    What is a key bandwidth-related advantage of using a transit gateway over traditional VPC peering for connecting many VPCs?

    1. Transit gateways provide higher aggregate bandwidth for cross-VPC communication
    2. Transit gateways only allow communication on port 80
    3. Transit gateways throttle all traffic to a fixed bandwidth
    4. Transit gateways require all traffic to use public IP addresses

    Explanation: Transit gateways are designed to handle traffic between multiple VPCs with higher overall bandwidth, resolving scalability concerns of VPC peering links. They do not throttle all traffic or mandate public IP addresses, and they permit traffic on all allowed ports, not just port 80.

  8. Overlap in IP Address Ranges

    Which statement is true regarding IP address ranges when configuring VPC peering connections?

    1. VPC peering only works with IPv6 addresses
    2. Static NAT is mandatory for every VPC peer
    3. Overlapping IP address ranges are not supported for VPC peering
    4. Overlapping IP address ranges are required

    Explanation: VPC peering does not support connecting VPCs with overlapping IP address ranges, as this would create routing conflicts. Overlaps are not required; IPv6 support is available, but IPv4 is supported as well. Static NAT is not mandatory for peering, making the other options incorrect.

  9. Inter-Region Transit Gateway Usage

    In which situation would using an inter-region transit gateway attachment be preferable to setting up multiple VPC peerings?

    1. When encrypting data within a compute instance
    2. When only two VPCs in the same region need to communicate
    3. When connecting a VPC to an object storage bucket
    4. When connecting multiple VPCs across different regions for centralized management

    Explanation: An inter-region transit gateway attachment streamlines complex connectivity among many VPCs spread across regions, offering centralized control. Connecting just two VPCs in one region does not require a transit gateway. Communication with storage buckets and encrypting data within instances are unrelated to transit gateways.

  10. Cost Implications

    How does using a transit gateway typically impact network cost compared to numerous individual VPC peering connections?

    1. It eliminates all network charges between VPCs
    2. It only charges for creation but not for ongoing data transfer
    3. It may reduce overall management overhead while centralizing cost allocation
    4. It always guarantees lower data transfer costs without exception

    Explanation: A transit gateway centralizes connections, potentially lowering management complexity and improving cost tracking, though data transfer costs still apply. It does not always guarantee the lowest data transfer costs, nor does it eliminate all network charges. Ongoing data charges exist, not just creation costs.