Study guide
Segmentation, Traffic Monitoring, and Service Endpoints
AWS Certified Solutions Architect - Professional SAP-C02
Track your progress as you read
Finished sections get a check mark.
1 Introduction and SAP-C02 Exam Facts
Current SAP-C02 Exam Facts Exam Format, Scoring, and Retakes Candidate Profile and Four Exam Domains
2 Multi-Account Governance
Multi-Account Strategy, Account Topologies, and OU Hierarchies Service Control Policies, Inheritance, and Permission Guardrails Control Tower, Landing Zones, Central Logging, and Resource Sharing
3 Hybrid and Inter-VPC Connectivity
Transit Gateway, VPC Connectivity, and PrivateLink Direct Connect, VPN, and Hybrid Redundancy Hybrid DNS with Route 53 Resolver Segmentation, Traffic Monitoring, and Service Endpoints
4 Identity Federation and Cross-Account Access
IAM Identity Center, External IdPs, and Workforce Federation Cross-Account Roles, STS, and Resource Policies Permissions Boundaries, Delegated Administration, and Least Privilege at Scale
5 Data Protection, Encryption, and Compliance
KMS, Multi-Region Keys, Envelope Encryption, and Certificates Encryption in Transit, Security Groups, NACLs, and VPC Endpoints Centralized Audit, Security Hub, GuardDuty, Inspector, and Access Analyzer
6 Deployment, Compute, Containers, and Serverless
Infrastructure as Code, CI/CD, Change Management, and Rollback EC2 Families, Auto Scaling, and Managed Compute ECS, EKS, Fargate, and ECR at Enterprise Scale Lambda, Step Functions, API Gateway, and Configuration Management
7 Storage, Caching, and Edge Performance
S3 Storage Classes, Object Lock, Replication, and Access Paths EBS, EFS, FSx Family, and Storage Gateway CloudFront Behaviors, Origin Access, Edge Compute, and Global Accelerator ElastiCache, MemoryDB, DAX, and Buffering versus Cache versus Replicas
8 Purpose-Built and Global Databases
Aurora Storage, Replicas, and Global Database DynamoDB Keys, Global Tables, and DAX Purpose-Built Database Selection
9 Integration, Messaging, and Streaming
API Gateway Architectures Decoupled Messaging with Amazon SQS and Amazon SNS Event-Driven Design with Amazon EventBridge Streaming Analytics with Amazon Kinesis and Amazon MSK
10 Resilience and Disaster Recovery
Disaster Recovery Patterns Route 53 Routing and Application Recovery Controller Backup, Replication, and Service Quotas High Availability, Failover, Chaos, and Self-Healing
11 Operational Excellence and Automation
CloudWatch Centralized Telemetry Distributed Tracing with AWS X-Ray Systems Manager Automation Deployment Strategies and Auto-Remediation
12 Cost Optimization and Visibility
Cost Explorer, Budgets, CUR, and Allocation Tags Savings Plans, Reserved Instances, Coverage, and Sharing Spot, Mixed Auto Scaling, Compute Optimizer, and Storage Lens Data Transfer Modeling: NAT, Endpoints, CloudFront, and Hybrid
13 Improve Security and Performance
Secrets, Least Privilege Audits, and Traceability Config Rules, Patching, Backup, and Regulatory Controls Performance Tuning for Existing Workloads
14 Migration Assessment and Wave Planning
Seven Migration Strategies (7 Rs) and Workload Selection Application Discovery, Migration Hub, and Migration Evaluator Wave Planning, Prioritization, and Assessment Governance
15 Migration Tools and Data Transfer
AWS Application Migration Service (MGN) AWS DMS, SCT, and Change Data Capture Large-Scale Data Transfer and Landing-Zone Prerequisites
16 Target Architecture, Modernization, and Cutover
Selecting Compute, Storage, and Database Platforms for Migrated Workloads Container Modernization: ECS, EKS, Fargate, ECR, and Strangler Fig Serverless, Decoupling, Purpose-Built Databases, and Integration Services Cutover, Rollback, and Unscored Emerging AI Topics
Segmentation, Traffic Monitoring, and Service Endpoints
Key Takeaways Explain This Topic AI
Plan non-overlapping CIDRs with Amazon VPC IPAM across accounts, Regions, on-premises, and container ENI density before you attach anything to a Transit Gateway
Centralized east-west and north-south inspection uses an inspection VPC or a Transit Gateway network function attachment, with appliance mode for stateful devices
VPC flow logs show ACCEPT or REJECT metadata; Traffic Mirroring copies packets to an inspection target when you need payload visibility
Gateway VPC endpoints serve Amazon S3 and Amazon DynamoDB from route tables without NAT; interface endpoints use PrivateLink for most other AWS and partner APIs
Troubleshoot hybrid and inter-VPC drops by walking VPC routes, Transit Gateway associations and propagations, attachment AZs, security groups, NACLs, and endpoint policies—not by adding overlapping CIDRs
Last updated: September 2026
Segmentation starts with addresses you will never overlap
Every later choice—Transit Gateway attachments, Direct Connect allowed prefixes, EKS prefix delegation—assumes unique IPv4 (and IPv6) space in the routed domain. Amazon VPC IP Address Manager (IPAM) is how a professional organization allocates RFC1918 and public pools across OUs instead of letting each account pick 10.0.0.0/16 . Reserve summaries for on-premises, for future Regions, for shared-services VPCs, and for an inspection VPC. Leave headroom inside each VPC for interface endpoints , Transit Gateway attachment /28 s, firewall endpoint subnets, and container ENIs. Amazon ECS and Amazon EKS in awsvpc mode consume IPs per task or pod; prefix assignment on the VPC CNI multiplies addresses per node. If IPAM is an afterthought, the first overlapping acquisition CIDR forces an emergency PrivateLink exception instead of a planned re-IP.
Subnetting is a security control as well as an addressing exercise. Separate workload , endpoint , Transit Gateway attachment , and firewall/GWLB subnets. Do not colocate firewall endpoints in the same subnet as application ENIs: AWS Network Firewall cannot inspect traffic that originates or terminates in the firewall subnet itself. Keep Transit Gateway attachment NACLs open; put deny-lists on workload NACLs if you still use NACLs at all. Most segmentation at this exam level lives in transit gateway route tables and security groups , with NACLs as coarse stateless backup.
IPv6 dual-stack does not remove the need for uniqueness. Transit Gateway and Direct Connect support IPv6, but overlapping unique-local ranges recreate the same attachment failures. If a stem requires on-premises that is IPv4-only, plan NAT or proxy at an egress hub rather than assuming Cloud WAN will translate silently.
Centralized inspection: Network Firewall versus Gateway Load Balancer
East-west (VPC-to-VPC) and north-south (VPC-to-on-premises or VPC-to-internet) inspection at organization scale uses a hub , not a firewall in every spoke.
AWS Network Firewall is a managed, stateful firewall and IPS that uses Suricata-compatible rules. In the classic pattern you create an inspection VPC with, per AZ: a Transit Gateway attachment subnet and a dedicated firewall endpoint subnet. Spoke transit gateway route tables send traffic that must be inspected to the inspection attachment. Inside the inspection VPC, the attachment subnet route table sends traffic to the firewall endpoint; after inspection, routes return traffic to the Transit Gateway. Enable appliance mode on the inspection attachment so stateful rules see both directions. AWS documents source-preservation behavior in the default operating mode: original IPs remain visible, which is what you want for 5-tuple and IDS policy. Firewall Manager can deploy Network Firewall policy across AWS Organizations. AWS also documents a network function attachment that connects Network Firewall directly to a Transit Gateway with AWS-managed buffer infrastructure and automatic appliance mode; that path uses static routing and is not a third-party appliance farm.
Gateway Load Balancer (GWLB) is the pattern when the stem names third-party next-generation firewalls or IDS appliances. Appliances register as GWLB targets. Gateway Load Balancer endpoints (a PrivateLink-powered routable target) sit in the inspection VPC (or in edge VPCs for ingress). Transit Gateway appliance mode again keeps flow symmetry. You own scaling and patching of the virtual appliances; AWS owns the load balancer. GWLB is also how many vendors publish an AWS Marketplace appliance service.
Choose Network Firewall when you want AWS-managed Suricata policy, Firewall Manager, and fewer moving parts. Choose GWLB when a compliance program names a specific vendor engine or when you already operate that fleet. Do not put both in series “for extra safety” unless you have an explicit layered-inspection requirement; double hairpins add MTU, timeout, and cost failure modes.
Internet egress often combines inspection with NAT gateway . A common hub is: spoke → Transit Gateway → inspection (Network Firewall or GWLB) → NAT gateway → internet gateway. Ingress inspection can use Gateway Load Balancer endpoints in an edge VPC with VPC ingress routing so packets from an internet gateway go to appliances before application targets. Those patterns are still Task 1.1 segmentation: the question is where the choke point lives.
Traffic monitoring: flow logs versus Traffic Mirroring
VPC flow logs capture metadata about accepted and rejected traffic at the ENI, subnet, or VPC level: 5-tuple, bytes, action, and related fields depending on format version. They do not capture payloads. Use them to answer “did the security group or NACL drop this?” and “did packets leave this ENI toward the Transit Gateway?” Send logs to CloudWatch Logs or S3; in organizations, centralize in a logging account. Flow logs will not explain a TLS handshake failure inside an allowed flow.
Amazon VPC Traffic Mirroring copies network packets from a source ENI (or NLB/GWLB constructs in supported setups) to a target such as another ENI, a Network Load Balancer, or a Gateway Load Balancer endpoint. That is how you feed a packet-level IDS or forensic appliance. Mirroring has source filters and VXLAN encapsulation to the target; it is not a substitute for a routing-based inspection hub, and it is not free of bandwidth cost. Use mirroring when the stem requires payload inspection or packet capture, and flow logs when the stem requires allow/deny attribution .
For hybrid paths, also use Transit Gateway flow logs (where enabled in your account) and Direct Connect/VPN CloudWatch metrics. BGP session down, prefix count, and tunnel state explain “on-premises cannot reach VPC” faster than guessing at security groups.
Interface endpoints, gateway endpoints, and PrivateLink integrations
Workloads in private subnets should reach AWS APIs without a NAT gateway whenever an endpoint exists.
Endpoint type Typical services How traffic is steered When to choose it
Gateway VPC endpoint Amazon S3, Amazon DynamoDB Prefix-list route in the subnet route table High-volume data plane to S3 or DynamoDB from the VPC; no PrivateLink per-hour ENI model
Interface VPC endpoint Most AWS APIs, partner and your own PrivateLink services ENI in a subnet; private DNS often replaces the public hostname Control-plane APIs, KMS, ECR, STS, Secrets Manager, third-party SaaS
Gateway Load Balancer endpoint Virtual appliances Route table target Inspection insertion
Gateway endpoints do not use security groups; you constrain them with endpoint policies and route-table placement. Interface endpoints do use security groups; a locked-down endpoint security group is a common reason “the VPC endpoint is available” but applications still time out. Enable private DNS on interface endpoints so AWS SDK default hostnames resolve to the endpoint. For Amazon S3, gateway endpoints remain the usual data-path answer from EC2 in the same Region; interface endpoints for S3 appear when you need PrivateLink features such as access from on-premises over Direct Connect without a gateway route, or specific S3 endpoint capabilities AWS documents for interface mode. Do not send S3 data plane out a NAT gateway in every spoke when a gateway endpoint in the spoke (or a centralized egress design you have actually modeled) would remove that charge and that failure domain.
PrivateLink is also how you publish your service: NLB plus endpoint service plus consumer endpoints. Combine that with inspection carefully: consumers connect to an endpoint ENI in their VPC; the provider NLB is in the provider VPC. If policy requires inspecting that traffic, inspect on the provider side or use a proxy architecture—you cannot magically hairpin PrivateLink through a Transit Gateway the way you hairpin RFC1918.
Troubleshooting traffic flows
Walk the packet in order. Inventing a second CIDR is not a troubleshooting step.
Source AZ and attachment. Does the source subnet’s AZ have a Transit Gateway attachment ENI? If not, the instance cannot send to the gateway.
VPC subnet route table. Is there a route for the destination CIDR (or default) whose target is the transit gateway, virtual private gateway, VPC endpoint, or GWLB endpoint you intend?
Transit gateway route table association. The source attachment’s associated table must contain the destination prefix pointing at the correct next attachment—not a blackhole, not the wrong environment table.
Propagation versus static. If you expected BGP from Direct Connect and the prefix is missing, check Direct Connect gateway allowed prefixes, VIF state, and whether a static overlapping route is hiding the propagated path.
Return path. Appliance mode, stateful security groups (they are stateful), and stateless NACLs on both directions. Asymmetric inspection without appliance mode looks like “random” drops.
Security groups and endpoint policies. Interface endpoints, inbound Resolver ENIs, and NLB security groups fail closed.
MTU. Jumbo frames across a VPN (1500) or a middlebox that clamps MSS will drop silently if applications send 9001-byte packets that worked on peering.
DNS. If TCP 443 never starts, check Resolver rules and private DNS on endpoints before you rebuild the Transit Gateway.
VPC flow logs at the source ENI with REJECT point to SG/NACL. ACCEPT at the source with no packets at the destination points to routing, including transit gateway tables. Traffic Mirroring or a packet capture on the firewall confirms whether inspection is dropping after routing succeeded.
Scenario: inspection insert that blackholes east-west
A platform team attached an inspection VPC and changed every spoke transit gateway route table so 0.0.0.0/0 and all spoke summaries point at the inspection attachment. After cutover, spoke-to-spoke API calls fail. Flow logs show ACCEPT on the source ENI. The inspection VPC attachment was created in two AZs but appliance mode was off; return traffic landed on a firewall that had no state. A second issue hid behind the first: the inspection VPC’s Transit Gateway subnet route table sent 0.0.0.0/0 back to the transit gateway before the firewall endpoint, so packets never reached Suricata. The fix is dedicated firewall subnets, routes from the attachment subnet to the firewall endpoint, return routes from firewall subnets to the transit gateway, appliance mode on, and spoke tables that send only the prefixes that must be inspected (or an explicit default) without blackholing shared-services CIDRs that were supposed to bypass inspection. Add gateway endpoints for S3 in the spokes so backup traffic does not hairpin the firewall farm unless policy requires it.