A developer is troubleshooting connectivity issues between an AWS Lambda function and an Amazon EC2 instance that runs Amazon Linux 2. The Lambda function and the EC2 instance cannot communicate with each other even though the Lambda function is configured to access resources in the EC2 instance's subnet.
How can the developer inspect the network traffic between the Lambda function and the EC2 instance?
A. Inspect the VPC flow logs for network activity.
B. Use the traceroute command on the EC2 instance to check connectivity.
C. Analyze the Amazon CloudWatch metrics for network traffic.
D. Use the telnet command on the EC2 instance to check connectivity.
How can the developer inspect the network traffic between the Lambda function and the EC2 instance?
A. Inspect the VPC flow logs for network activity.
B. Use the traceroute command on the EC2 instance to check connectivity.
C. Analyze the Amazon CloudWatch metrics for network traffic.
D. Use the telnet command on the EC2 instance to check connectivity.