All exams← All AWS Certified Advanced Networking - Specialty notes

Network Monitoring and Troubleshooting: AWS Certified Advanced Networking - Specialty revision notes

Revision notes

## Network Monitoring and Troubleshooting Essentials

Effective network monitoring and troubleshooting are critical for maintaining the health, performance, and security of AWS environments. This involves leveraging various AWS services to gather data, analyze trends, and diagnose issues proactively and reactively.

## Key AWS Monitoring Services

  • VPC Flow Logs: Capture information about the IP traffic going to and from network interfaces in your VPC. They can be published to Amazon CloudWatch Logs or Amazon S3, providing detailed records for security analysis, network forensics, and troubleshooting connectivity issues. Flow logs record accepted and rejected traffic, source/destination IPs, ports, and protocols.
  • Amazon CloudWatch: A monitoring and observability service that provides data and actionable insights for AWS resources and applications. It collects metrics (e.g., CPU utilization, network I/O) and logs (from various services like VPC Flow Logs, EC2, Lambda). CloudWatch Alarms can be configured to notify you of threshold breaches.
  • AWS CloudTrail: Records API calls and related events made in your AWS account. This service is crucial for security auditing, compliance, and troubleshooting operational issues by tracking who did what, when, and from where.
  • Route 53 Resolver Query Logs: Capture details about DNS queries made by resources within your VPCs to Route 53 Resolvers. These logs are invaluable for troubleshooting DNS resolution issues, identifying misconfigurations, or detecting suspicious DNS activity.
  • Traffic Mirroring: Allows you to copy network traffic from an EC2 instance's network interface and send it to a monitoring appliance for deep packet inspection. This is powerful for security analysis, compliance, and advanced troubleshooting without impacting the mirrored instance.
  • Network Access Analyzer: A feature within AWS Network Manager that identifies unintended network access paths in your AWS networks. It uses automated reasoning to analyze network configurations (e.g., security groups, NACLs, route tables) and determine reachability, helping to proactively identify security risks.

## Troubleshooting Methodologies

When troubleshooting network issues, a systematic approach is key:

1. Identify the problem: What is not working as expected?

2. Gather information: Use VPC Flow Logs, CloudWatch metrics, CloudTrail events, and application logs.

3. Analyze data: Look for patterns, errors, or anomalies. Common issues include security group/NACL blocks, routing table misconfigurations, DNS resolution failures, or performance bottlenecks (latency, throughput, packet loss).

4. Formulate and test hypotheses: Based on your analysis, propose a solution and test it.

5. Implement and verify: Apply the fix and confirm the issue is resolved.

## Hybrid Connectivity Monitoring

For AWS Direct Connect and Site-to-Site VPN, monitor key CloudWatch metrics like `ConnectionState`, `BGPStatus`, `DXLagCapacity`, and `VPNTunnelState`. Use VPC Flow Logs to verify traffic flow through these connections.

Key facts

Flashcards

What AWS service captures metadata about IP traffic to and from network interfaces in a VPC?
**VPC Flow Logs**.
tap to reveal
Which AWS service records API calls and related events in your AWS account for auditing?
**AWS CloudTrail**.
tap to reveal
How can you perform deep packet inspection on network traffic from an EC2 instance without impacting its performance?
Using **Traffic Mirroring**.
tap to reveal
What service helps identify unintended network access paths in your AWS network configurations?
**Network Access Analyzer**.
tap to reveal
Where would you look to troubleshoot DNS resolution issues originating from resources within your VPCs?
**Route 53 Resolver Query Logs**.
tap to reveal
What are the primary CloudWatch metrics for monitoring the health of an AWS Direct Connect connection?
`ConnectionState` and `BGPStatus`.
tap to reveal
What is the key difference between Amazon CloudWatch Logs and AWS CloudTrail?
CloudWatch Logs collects and monitors logs from various services and applications, while CloudTrail specifically records API calls and events for auditing AWS account activity.
tap to reveal
What are common network performance metrics to monitor for troubleshooting?
Latency, throughput, and packet loss.
tap to reveal
Practice questions

Network Monitoring and Troubleshooting: 5 practice questions

Q1. A company needs to capture metadata for all accepted and rejected IP traffic for a specific EC2 instance's Elastic Network Interface (ENI) for security auditing. The solution must be native to the VPC service. What is the most direct and cost-effective AWS service to achieve this?
  • A.  VPC Traffic Mirroring
  • B.  VPC Flow Logs
  • C.  AWS CloudTrail
  • D.  Amazon Inspector
Show answer & explanation
✓ Answer: B. VPC Flow Logs
VPC Flow Logs are designed specifically to capture IP traffic metadata for network interfaces, subnets, or entire VPCs, making it the ideal and most direct tool for this auditing requirement.
Q2. A network administrator is troubleshooting intermittent connectivity issues between two EC2 instances in different subnets within the same VPC. They suspect a misconfigured Network ACL is blocking traffic. Which tool can provide a static, point-in-time analysis of the network path and identify the specific ACL rule causing the block without sending any actual packets?
  • A.  Querying VPC Flow Logs with Amazon Athena
  • B.  VPC Reachability Analyzer
  • C.  VPC Traffic Mirroring
  • D.  AWS Network Firewall logs
Show answer & explanation
✓ Answer: B. VPC Reachability Analyzer
VPC Reachability Analyzer performs static configuration analysis to check connectivity between a source and destination. It can trace the path and pinpoint blocking components like restrictive NACL or security group rules.
Q3. A financial services company needs to perform deep packet inspection (DPI) on all traffic from an internet gateway for real-time threat detection using a third-party appliance. The solution must not introduce any extra hops or latency in the primary data path. Which combination of services should be used?
  • A.  VPC Flow Logs and Amazon Athena
  • B.  AWS Network Firewall deployed in a centralized inspection VPC
  • C.  VPC Traffic Mirroring with traffic sent to a fleet of security appliances
  • D.  AWS WAF attached to an Application Load Balancer
Show answer & explanation
✓ Answer: C. VPC Traffic Mirroring with traffic sent to a fleet of security appliances
VPC Traffic Mirroring copies network packets from a source ENI and sends them to a target (like a security appliance) for out-of-band analysis, such as DPI, without affecting the production traffic path or latency.
Q4. An organization uses a Transit Gateway to connect multiple VPCs. They notice a significant number of packets are being dropped. To investigate, they need to identify which specific VPC attachment has a routing configuration issue causing traffic to be sent to a 'black hole'. Which CloudWatch metric for the Transit Gateway would be most useful?
  • A.  BytesIn
  • B.  PacketsOut
  • C.  PacketsDroppedCountBlackhole
  • D.  BytesDroppedNoRoute
Show answer & explanation
✓ Answer: C. PacketsDroppedCountBlackhole
The `PacketsDroppedCountBlackhole` metric is aggregated per attachment and specifically indicates packets dropped because no route was found in any route table, helping to isolate routing issues to a specific TGW attachment.
Q5. A company is experiencing DNS resolution failures for internal hostnames from their on-premises network, which is connected via Direct Connect to a VPC containing a Route 53 Resolver Inbound Endpoint. What is the most effective way to log and troubleshoot which specific DNS queries are failing and what the responses are?
  • A.  Enable VPC Flow Logs on the Inbound Endpoint's ENIs
  • B.  Enable Route 53 public query logging
  • C.  Enable Route 53 Resolver query logging
  • D.  Use AWS CloudTrail to monitor Route 53 API calls
Show answer & explanation
✓ Answer: C. Enable Route 53 Resolver query logging
Route 53 Resolver query logging is specifically designed to log DNS queries made through Resolver endpoints, providing detailed information on the queries, the source, and their responses, which is essential for troubleshooting.
Test yourself
See the AWS Certified Advanced Networking - Specialty page

More AWS Certified Advanced Networking - Specialty topics