All exams← All AWS Certified Advanced Networking - Specialty notes

VPC Design and Architecture: AWS Certified Advanced Networking - Specialty revision notes

Revision notes

## VPC Design and Architecture

Effective VPC design is crucial for scalable, secure, and highly available cloud networks. It involves careful planning of IP addressing, connectivity, and security controls.

IP Addressing and Subnetting

  • Each VPC is defined by a CIDR block (e.g., 10.0.0.0/16). For multi-VPC or hybrid environments, ensure non-overlapping CIDRs to enable connectivity via VPC Peering or Transit Gateway.
  • Subnets divide a VPC's CIDR block. They are tied to a single Availability Zone (AZ) and categorized as public (with route to Internet Gateway), private (no direct internet route), or isolated.
  • NAT Gateway provides outbound internet access for instances in private subnets. Egress-only Internet Gateway serves the same purpose for IPv6 traffic.

Multi-VPC Connectivity

  • VPC Peering connects two VPCs directly, allowing instances to communicate as if they are in the same network. It is non-transitive, meaning a peered VPC cannot route traffic to other VPCs peered with its peer.
  • AWS Transit Gateway (TGW) acts as a central hub for connecting multiple VPCs and on-premises networks. It enables transitive routing, simplifying complex network topologies and allowing any attached VPC or VPN to communicate with any other. TGW supports routing domains and multicast.

Hybrid Connectivity

  • AWS Direct Connect (DX) provides a dedicated, private network connection from your premises to AWS, bypassing the public internet. It offers consistent network performance and reduced bandwidth costs.
  • AWS Site-to-Site VPN creates an encrypted connection over the public internet between your on-premises network and your VPC or Transit Gateway. Often used as a backup for DX or for less critical connections.

Network Security

  • Security Groups (SGs) act as stateful firewalls at the instance level, controlling inbound and outbound traffic. They allow rules based on IP addresses or other SGs.
  • Network Access Control Lists (NACLs) are stateless firewalls at the subnet level. They evaluate both inbound and outbound traffic separately and process rules in order (lowest number first).

Routing and DNS

  • Route Tables define rules for traffic leaving subnets. They include local routes, explicit routes, and propagated routes (from TGW or DX Gateway).
  • VPC Endpoints allow private access to AWS services without traversing the internet.
  • Gateway Endpoints for Amazon S3 and DynamoDB, using prefix lists in route tables.
  • Interface Endpoints (powered by AWS PrivateLink) for a wide range of AWS services and custom services, using Elastic Network Interfaces (ENIs) in your subnets.
  • Route 53 Resolver Endpoints enable hybrid DNS resolution, allowing on-premises resources to resolve AWS private hosted zones and vice-versa.

Key facts

Flashcards

What is the primary limitation of VPC Peering?
VPC Peering is non-transitive, preventing routing through a peered VPC to other networks.
tap to reveal
Which AWS service enables transitive routing between multiple VPCs and on-premises networks?
AWS Transit Gateway (TGW).
tap to reveal
Differentiate between Security Groups and Network ACLs (NACLs).
Security Groups are stateful, instance-level firewalls; NACLs are stateless, subnet-level firewalls.
tap to reveal
Which type of VPC Endpoint uses Elastic Network Interfaces (ENIs) for private service access?
Interface Endpoints (powered by AWS PrivateLink).
tap to reveal
Which two AWS services are accessible via a Gateway Endpoint?
Amazon S3 and Amazon DynamoDB.
tap to reveal
How do you enable outbound internet access for IPv6 instances in a private subnet?
By using an Egress-only Internet Gateway.
tap to reveal
What AWS service facilitates hybrid DNS resolution between on-premises and AWS private hosted zones?
Route 53 Resolver Endpoints (inbound and outbound).
tap to reveal
What is a critical IP addressing requirement for connecting VPCs via Peering or Transit Gateway?
All connected VPCs must have non-overlapping CIDR blocks.
tap to reveal
Practice questions

VPC Design and Architecture: 5 practice questions

Q1. A company is designing a new VPC and needs to select a CIDR block that will not overlap with their on-premises network, which uses the 10.0.0.0/8 range. Which of the following CIDR blocks is a valid RFC 1918 private address range that meets this requirement and provides ample address space?
  • A.  10.200.0.0/16
  • B.  172.31.0.0/16
  • C.  192.168.0.0/15
  • D.  203.0.113.0/24
Show answer & explanation
✓ Answer: B. 172.31.0.0/16
The 172.16.0.0/12 range (172.16.0.0 to 172.31.255.255) is a valid RFC 1918 private address space that does not overlap with 10.0.0.0/8. The 10.x.x.x block overlaps, 192.168.0.0/15 is an invalid range, and 203.0.113.0/24 is public test space.
Q2. A fleet of EC2 instances in a private subnet needs to upload large datasets to an Amazon S3 bucket in the same region. To enhance security and reduce data transfer costs, traffic must not traverse the public internet. What is the most cost-effective and secure solution?
  • A.  Configure a NAT Gateway in a public subnet and route traffic from the private subnet to it.
  • B.  Create a Gateway VPC Endpoint for S3 and associate it with the private subnet's route table.
  • C.  Create an Interface VPC Endpoint for S3, which creates an ENI in the private subnet.
  • D.  Assign Elastic IP addresses to the EC2 instances and use an Internet Gateway.
Show answer & explanation
✓ Answer: B. Create a Gateway VPC Endpoint for S3 and associate it with the private subnet's route table.
A Gateway VPC Endpoint for S3 allows traffic to flow between the VPC and S3 over the AWS private network. It is more cost-effective than an Interface Endpoint for S3 as it has no hourly charge or data processing fees.
Q3. An organization wants to centralize network management by allowing multiple business-unit AWS accounts to launch EC2 instances directly into subnets owned by a central networking account. Which combination of services enables this 'Shared VPC' architecture?
  • A.  VPC Peering between all accounts and the central networking account.
  • B.  AWS Transit Gateway with route propagation enabled for all account VPCs.
  • C.  AWS Resource Access Manager (RAM) to share subnets from the central VPC with other accounts in the same AWS Organization.
  • D.  An AWS Direct Connect Gateway to link all VPCs to the central networking account.
Show answer & explanation
✓ Answer: C. AWS Resource Access Manager (RAM) to share subnets from the central VPC with other accounts in the same AWS Organization.
AWS Resource Access Manager (RAM) is the service used to enable VPC Sharing. The owner account shares specific subnets, and participant accounts can then view, create, modify, and delete their own resources (like EC2 instances) in those shared subnets.
Q4. A company is designing a dual-stack (IPv4/IPv6) VPC. They need to allow EC2 instances in a private subnet to initiate outbound connections to IPv6 endpoints on the internet, but prevent any inbound connections from the internet to those instances. Which VPC component is specifically designed for this purpose?
  • A.  A NAT Gateway with an associated Elastic IP address.
  • B.  An Egress-Only Internet Gateway.
  • C.  An Internet Gateway with a security group blocking inbound traffic.
  • D.  A Carrier Gateway.
Show answer & explanation
✓ Answer: B. An Egress-Only Internet Gateway.
An Egress-Only Internet Gateway is a stateful gateway that allows outbound-only traffic over IPv6 from a VPC to the internet. It is the IPv6 equivalent of a NAT Gateway's primary function for IPv4.
Q5. A network administrator needs to implement a security layer that operates at the subnet level to explicitly deny traffic from a known malicious IP address range. This rule should be stateless. Which VPC security feature should be used?
  • A.  Security Group
  • B.  Network Access Control List (NACL)
  • C.  AWS WAF
  • D.  Route Table
Show answer & explanation
✓ Answer: B. Network Access Control List (NACL)
Network Access Control Lists (NACLs) are stateless firewalls that operate at the subnet level. They are ideal for creating broad, stateless allow or deny rules for IP addresses or ranges entering or leaving a subnet.
Test yourself
See the AWS Certified Advanced Networking - Specialty page

More AWS Certified Advanced Networking - Specialty topics