Study ANS-C01 traffic analysis using CloudWatch, VPC Flow Logs, Transit Gateway Flow Logs, Traffic Mirroring, Reachability Analyzer, Network Manager, packet size, and topology tools.
Traffic analysis questions on ANS-C01 are about choosing the fastest evidence path. The exam expects you to decide whether the failure is likely route configuration, security policy, DNS, packet size, packet loss, appliance behavior, topology, or application behavior before selecting a tool.
The current AWS task statement is to monitor and analyze network traffic to troubleshoot and optimize connectivity patterns. The official scope names CloudWatch, VPC Flow Logs, VPC Traffic Mirroring, Reachability Analyzer, Transit Gateway Network Manager, packet size, packet loss, topology mapping, and automated verification of connectivity intent.
| Troubleshooting question | Strong evidence |
|---|---|
| Is the configured path reachable? | Reachability Analyzer and route-table inspection. |
| Did IP traffic reach a network interface, subnet, VPC, or Transit Gateway? | VPC Flow Logs or Transit Gateway Flow Logs. |
| Is traffic being accepted or rejected? | Flow log action fields, security groups, NACLs, firewall logs, and route decisions. |
| Is the packet itself malformed, fragmented, too large, or altered? | Traffic Mirroring and packet analysis. |
| Is a hybrid or TGW topology behaving as expected? | Transit Gateway Network Manager, route tables, BGP state, and CloudWatch metrics. |
| Is the issue performance rather than reachability? | CloudWatch metrics, packet loss indicators, latency, throughput, and baseline comparison. |
| Did the managed service receive the request? | Load balancer, CloudFront, API Gateway, firewall, or application logs. |
The common wrong answer is using the deepest tool first. Packet capture is powerful, but it is often slower and less appropriate than checking reachability, routes, flow logs, or service logs.
| Need in the scenario | Strongest first fit | Why |
|---|---|---|
| Prove route and security configuration allows or blocks a path | Reachability Analyzer | Static configuration analysis identifies blocking components without sending packets. |
| Analyze accepted/rejected flows for VPC resources | VPC Flow Logs | Flow-level evidence is enough for many network path questions. |
| Analyze traffic through Transit Gateway | Transit Gateway Flow Logs | TGW-specific flow records show centralized routing traffic. |
| Inspect packet contents, headers, or shaping behavior | VPC Traffic Mirroring | Packet-level analysis is needed only when flow and route evidence are insufficient. |
| Understand hybrid or multi-TGW topology | Transit Gateway Network Manager | Topology and health visibility across transit networks. |
| Alert on throughput, errors, tunnel state, or resource health | CloudWatch metrics and alarms | Operational signals and threshold-based detection. |
| Correlate an HTTP error with the managed service boundary | ALB, NLB, CloudFront, WAF, or application logs | Access logs show service-level request handling, not just IP flows. |
Use this sequence before jumping into packet capture.
flowchart LR
S["Symptom"] --> P["Define source, destination, protocol, port"]
P --> R["Analyze configured reachability"]
R --> F["Check flow and service logs"]
F --> M["Check metrics, topology, and baselines"]
M --> K["Mirror packets only if packet detail is needed"]
K --> V["Validate fix and automate the check"]
This is the operational version of the design model. The right tool depends on the layer of doubt.
Reachability Analyzer builds a model of the network configuration and checks whether the specified path is reachable. It does not send live packets or measure live data-plane performance.
Use it when:
Do not use Reachability Analyzer as the first answer for packet loss, congestion, application latency, payload inspection, or intermittent runtime behavior.
VPC Flow Logs and Transit Gateway Flow Logs are strong for understanding which IP flows were observed and whether they were accepted or rejected at the logging point.
| Flow-log clue | What to infer carefully |
|---|---|
ACCEPT |
The logged control allowed the flow; later hops can still fail. |
REJECT |
A logged control rejected the flow; determine whether SG, NACL, route, firewall, or endpoint policy is responsible. |
| Source and destination addresses | Confirm the real endpoint, NAT behavior, and direction. |
| Packets and bytes | Useful for volume, but not enough for payload-level diagnosis. |
| Missing expected flow | Could mean traffic never reached that logging point, the wrong resource was logged, or the query path differs. |
| Transit Gateway flow records | Useful for hub traffic, but VPC-level logs may still be needed near the workload. |
Flow logs are not real-time packet captures and do not show packet payload. They are often the best first tool, but they are not the final answer for every problem.
Traffic Mirroring copies selected network traffic from supported elastic network interfaces to monitoring or security appliances. It is strong when the question needs packet-level evidence.
Use Traffic Mirroring when:
Avoid choosing Traffic Mirroring just because the prompt says “monitoring.” If the prompt asks whether a security group or route table blocks a path, Reachability Analyzer and flow logs are usually stronger first.
ANS-C01 explicitly includes packet size mismatches. These questions often describe a path that is correct for small packets but unreliable for larger payloads.
| Symptom | Likely check |
|---|---|
| Small pings or small requests work, larger transfers fail | MTU, fragmentation, Path MTU Discovery, and blocked ICMP behavior. |
| Direct Connect or TGW path behaves differently from VPN path | MTU support, jumbo frame settings, tunnel overhead, and route choice. |
| Application stalls during large responses | Packet capture, retransmissions, fragmentation, and security devices. |
| Only one path fails after a route change | Compare path MTU and appliance behavior across old and new paths. |
Do not assume every intermittent failure is security-group related. Packet size, tunnel overhead, and fragmentation can explain scenarios where routing appears correct.
Transit Gateway Network Manager and CloudWatch are strong when the problem spans multiple attachments, Regions, or on-premises networks.
| Scenario | Strong evidence |
|---|---|
| Hybrid tunnel or Direct Connect path is unstable | CloudWatch metrics, BGP state, customer router logs, and Network Manager. |
| TGW hub has many spokes and one path fails | TGW route tables, associations, propagations, Route Analyzer, and TGW Flow Logs. |
| Multi-Region topology is unclear | Network Manager topology and route/attachment inventory. |
| SD-WAN integration is involved | Appliance telemetry, TGW Connect peer state, GRE/BGP evidence, and AWS-side metrics. |
| Operators need trend evidence | Baselines for throughput, latency, packet loss, tunnel state, and route stability. |
Hybrid troubleshooting is not AWS-only. If the problem crosses Direct Connect, VPN, or customer routers, include on-premises telemetry and BGP evidence.
Sometimes the network delivered the packet and the managed service rejected or mishandled the request.
| Symptom | Check |
|---|---|
| ALB returns a 5xx or target status issue | ALB access logs, target health, target response, and CloudWatch metrics. |
| CloudFront returns an edge or origin error | CloudFront logs, origin logs, WAF logs, and origin reachability. |
| WAF blocks a request | WAF logs and rule match details. |
| NLB connection succeeds but app protocol fails | NLB metrics, target logs, packet capture if protocol behavior matters. |
| DNS resolves but application fails | Route/security path to returned IP, service logs, and TLS/application checks. |
Flow logs can prove that packets moved. They cannot explain every HTTP status code, TLS negotiation problem, or application response.
| Scenario | Strong first move |
|---|---|
| New security group change may have blocked access | Reachability Analyzer, then flow logs if live evidence is needed. |
| TGW route table change broke one spoke | TGW association/propagation and Route Analyzer, then TGW Flow Logs. |
| Packet loss is suspected across a VPN | CloudWatch VPN metrics, customer gateway logs, flow logs, and packet capture if needed. |
| Large transfers fail but small checks pass | MTU and fragmentation investigation with packet-level evidence. |
| Compliance team asks what internal names workloads query | Resolver query logs, not VPC Flow Logs alone. |
| Web request reaches ALB but gets the wrong response | ALB access logs and target health, not only route tables. |
| Stem clue | Eliminate first | Keep in play |
|---|---|---|
| “which component blocks the configured path” | packet capture first | Reachability Analyzer |
| “accepted or rejected IP flows” | access logs only | VPC Flow Logs or TGW Flow Logs |
| “packet shaping or packet size” | flow logs only | Traffic Mirroring and MTU analysis |
| “multi-segment TGW topology” | one ENI packet capture only | Network Manager, TGW route tables, TGW Flow Logs |
| “HTTP status or WAF rule match” | route table analysis only | ALB/CloudFront/WAF logs |
| “connectivity intent must be checked after every change” | manual ping | automated Reachability Analyzer or validation workflow |
| “hybrid outage” | AWS-only evidence | AWS metrics plus customer gateway/router/BGP evidence |
When the scenario describes traffic loss or degraded connectivity, use this order:
A company deployed a new route table and security group change for an internal service. After the change, clients in one VPC cannot reach the service in another VPC through Transit Gateway. The operations team wants to identify whether the AWS configuration still permits the expected TCP path and which component blocks it if it does not. Which tool should be used first?
Answer: Use Reachability Analyzer.
Why: The question asks whether the configured path permits reachability and which component blocks it. Reachability Analyzer is the right static configuration analysis tool. Traffic Mirroring is deeper than needed and does not identify route/security configuration blockers directly. CloudFront and Route 53 solve different layers.
Choose Reachability Analyzer for configured-path proof, VPC or Transit Gateway Flow Logs for flow evidence, Traffic Mirroring for packet-level analysis, Network Manager and CloudWatch for topology and operational metrics, and service logs when a managed service received the request. Always match the tool to the suspected failure layer before collecting more data.
Continue with 3.3 Network Performance, Reliability, and Cost Optimization to turn troubleshooting evidence into performance and cost decisions.