AWS Certified Advanced Networking – Specialty (ANS-C01) — Question 268

A company wants to analyze TCP traffic to the internet. The traffic originates from Amazon EC2 instances in the company's VPC. The EC2 instances initiate connections through a NAT gateway. The required information includes source and destination IP addresses, ports, and the first 8 bytes of payload of TCP segments. The company needs to collect, store, and analyze all the required data points.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

VPC Traffic Mirroring is required because the scenario demands capturing the actual packet payload (the first 8 bytes of the TCP segment), which VPC Flow Logs cannot capture regardless of whether default or custom formats are used. Additionally, NAT gateways do not support being configured directly as VPC traffic mirror sources, meaning the EC2 instances themselves must be defined as the mirror sources. Therefore, setting up the EC2 instances as traffic mirror sources and analyzing the forwarded payload data in Amazon CloudWatch Logs is the only viable solution.