A retail company is running its service on AWS. The company’s architecture includes…
- User
A retail company is running its service on AWS. The company’s architecture includes Application Load Balancers (ALBs) in public subnets. The ALB target groups are configured to send traffic to backend Amazon EC2 instances in private subnets. These backend EC2 instances can call externally hosted services over the internet by using a NAT gateway. The company has noticed in its billing that NAT gateway usage has increased significantly. A network engineer needs to find out the source of this increased usage. Which options can the network engineer use to investigate the traffic through the NAT gateway? (Choose two.)
A. Enable VPC flow logs on the NAT gateway's elastic network interface. Publish the logs to a log group in Amazon CloudWatch Logs. Use CloudWatch Logs Insights to query and analyze the logs. B. Enable NAT gateway access logs. Publish the logs to a log group in Amazon CloudWatch Logs. Use CloudWatch Logs Insights to query and analyze the logs. C. Configure Traffic Mirroring on the NAT gateway's elastic network interface. Send the traffic to an additional EC2 instance. Use tools such as tcpdump and Wireshark to query and analyze the mirrored traffic. D. Enable VPC flow logs on the NAT gateway's elastic network interface. Publish the logs to an Amazon S3 bucket. Create a custom table for the S3 bucket in Amazon Athena to describe the log structure. Use Athena to query and analyze the logs. E. Enable NAT gateway access logs. Publish the logs to an Amazon S3 bucket. Create a custom table for the S3 bucket in Amazon Athena to describe the log structure. Use Athena to query and analyze the logs.
- Assistant
To investigate the increased usage of a NAT gateway in an AWS environment where Application Load Balancers (ALBs) distribute traffic to backend EC2 instances in private subnets, the network engineer can use the following two options:
A. Enable VPC Flow Logs on the NAT Gateway's Elastic Network Interface. Publish the logs to a log group in Amazon CloudWatch Logs. Use CloudWatch Logs Insights to query and analyze the logs.
- VPC flow logs provide detailed information about the IP traffic going to and from network interfaces in your VPC, including the source and destination IP addresses, ports, protocol, and traffic amount. By enabling flow logs on the NAT gateway's ENI, you can gain insights into the nature and volume of traffic being NATed. CloudWatch Logs Insights allows for powerful querying and analysis of these logs, making it easier to identify unusual patterns or spikes in traffic.