Amazon DOP-C02: Networking and Content Delivery — Study Guide

Part of the AWS DevOps Engineer Professional DOP-C02 — Study Guide. Practice with verified answers in the Amazon exam hub, or take timed practice tests on ExamRoll.io.

Overview

Networking and content delivery on AWS span foundational VPC constructs, interconnect choices for multi-account and hybrid topologies, and edge services that front, protect, and accelerate applications globally. Mastery requires understanding of how packets move in a VPC (subnets, route tables, gateways, and filtering), how to interconnect VPCs and on-premises networks (peering, Transit Gateway, PrivateLink, Direct Connect, VPN), and how to distribute and protect traffic at the edge (CloudFront, AWS WAF, AWS Global Accelerator). Application entry points such as Amazon API Gateway then integrate with these primitives through custom domains, certificates, and endpoint types.

VPC Architecture and Security Controls

A VPC is a regional, logically isolated network with one or more subnets in each Availability Zone. Design subnets along fault domains and functions: public subnets for internet-facing load balancers and NAT gateways; private application subnets for EC2/ECS/EKS nodes; and private data subnets for databases. Assign distinct route tables per subnet type to keep intent explicit and to support zonal egress design.

Internet connectivity is provided by an internet gateway (IGW) attached at the VPC level. A subnet becomes “public” when its route table has a default route to the IGW and resources have public IPs or Elastic IPs. For outbound-only internet access from private subnets, use NAT gateways. Place one NAT gateway per Availability Zone, route each private subnet to the NAT gateway in the same AZ, and disable cross-AZ NAT to avoid single points of failure and to reduce cross-AZ data processing charges. For IPv6, egress-only internet gateways provide outbound-only connectivity without NAT.

Route tables determine next hops for destination prefixes. Common targets include IGW, NAT gateway, VPC peering attachments, Transit Gateway attachments, and local. Keep route tables simple: a default route for egress and explicit routes for private interconnects. Prefer prefix lists to reference shared destinations across accounts and to reduce human error.

Security groups and network ACLs provide network filtering, but with different mechanics:

Stateful vs stateless filtering matters for troubleshooting. If both are used, both must permit the flow. Enable VPC Flow Logs to CloudWatch Logs or S3 to analyze accepted/denied traffic and to validate security posture.

Inter-VPC and Hybrid Connectivity

VPC peering connects two VPCs privately with no single point of failure and no bandwidth bottleneck, but it is non-transitive and requires non-overlapping CIDRs. Each VPC must add static routes for the peer via the peering attachment. Security group references across peered VPCs are not supported; filter with CIDRs. Cross-Region peering is available and encrypted by default.

AWS Transit Gateway (TGW) simplifies network scale and segmentation. It acts as a regional hub for VPCs and hybrid attachments, supports transitive routing, and scales to tens of Gbps per attachment. Use TGW route tables to implement segmentation (e.g., dev vs prod vs shared services) and to control propagation and association. Attachments include VPCs, Site-to-Site VPNs, and Direct Connect via a Transit VIF and Direct Connect Gateway. For centralized egress, attach an egress VPC and propagate/selectively share routes. Plan for multi-Region by connecting TGWs with inter-Region peering.

AWS PrivateLink provides consumer-initiated, private, L4 access to services across VPC/account/Region boundaries without exposing provider subnets or requiring routing. The service provider places an NLB in front of endpoints; consumers create interface VPC endpoints in their VPCs with assigned private IPs and DNS names. PrivateLink is not transitive and supports only TCP. Use PrivateLink to publish internal services or to consume AWS services privately. Prefer PrivateLink over peering/TGW when you need service-level exposure, DNS-based consumption, or tighter producer isolation.

Hybrid connectivity often blends Direct Connect (DX) and Site-to-Site VPN. Direct Connect provides dedicated, private, consistent bandwidth with 1/10 Gbps ports (and hosted capacities). Use BGP for dynamic routing and failover. Virtual interface (VIF) types:

Edge Networking, Security, and Acceleration

Amazon CloudFront is a global CDN that accelerates static and dynamic content with edge caching and optimized network paths. A distribution defines:

AWS WAF protects applications at L7. A web ACL contains rules and rule groups evaluated in order, with a default action. Use AWS Managed Rules for baseline protections (e.g., CommonRuleSet, WordPress, SQLi/XSS), and curated partner rule groups when needed. Add custom rules using match statements (IP set, header, URI, body JSON, label matching), and combine with logical operators. Rate-based rules throttle clients that exceed a configured request rate in a window, optionally with scope-down statements to target specific paths or headers. Associate web ACLs with CloudFront distributions, Application Load Balancers, API Gateway (REST/HTTP), and AppSync. Monitor capacity (WCU), enable sampled logs to CloudWatch Logs or Kinesis Data Firehose, and use CAPTCHA/Challenge actions to mitigate bots without blocking legitimate traffic.

AWS Global Accelerator provides static anycast IPs that front regional endpoints and accelerates TCP/UDP traffic over the AWS global network. It operates at L4/7 with health-based routing and rapid failover. Configure:

API Front Doors: Domains, Certificates, and Endpoint Strategy

Amazon API Gateway provides REST and HTTP APIs with three endpoint types:

Custom domains unify routing and TLS across stages and APIs. Use base path mappings to map paths to stages. Store certificates in ACM; choose RSA/ECDSA per client support. For edge-optimized, request/import the certificate in us-east-1. For Regional, request/import in the Region. Enforce TLS policies that match your compliance posture. Integrate with WAF by associating a web ACL directly to Regional APIs or by protecting the CloudFront distribution that fronts the API. For lowest latency global APIs with advanced caching and header normalization, place a CloudFront distribution in front of a Regional API, use origin access control and signed requests if needed, and tune cache and origin request policies to avoid cache bloat. Combine with Lambda authorizers or Amazon Cognito for auth and leverage throttling and usage plans to protect backends in addition to WAF rate-based rules.

Practical Problem Scenario

Shopify is rolling out a new global checkout microservice to serve merchants worldwide. Requirements: private east–west traffic between microservices across 20+ accounts, zero public exposure for internal APIs, deterministic low latency for end users on checkout, strong L7 protections with adaptive rate limiting, and resilient hybrid connectivity to on-premises risk engines.

Step-by-step approach:

  1. Segment the network with a hub-and-spoke Transit Gateway design
  1. Publish internal microservices with AWS PrivateLink
  1. Establish redundant hybrid connectivity with Direct Connect and VPN
  1. Front the public checkout with AWS Global Accelerator
  1. Protect at the edge with CloudFront and AWS WAF
  1. Expose APIs with custom domains and robust TLS
  1. Lock down VPCs with layered controls

This design delivers private, segmented east–west connectivity (Transit Gateway + PrivateLink), resilient north–south hybrid paths (DX + VPN with BGP), globally accelerated and protected public entry (Global Accelerator + CloudFront + WAF), and operational controls aligned with AWS best practices for VPC routing, gateways, and filtering.


Storage · All domains · Systems Manager

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Amazon →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product