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

A company runs an application on Amazon EC2 instances. A network engineer implements a NAT gateway in the application's VPC to replace self-managed NAT instances. After the network engineer shifts traffic from the self-managed NAT instances to the NAT gateway, users begin to report issues.

During troubleshooting, the network engineer discovers that the connection to the application is closing after approximately 6 minutes of inactivity.

What should the network engineer do to resolve this issue?

Answer options

Correct answer: A

Explanation

The correct answer is A because configuring TCP keepalive on the EC2 instances helps maintain connections during periods of inactivity, which addresses the issue of connections closing after 6 minutes. The other options suggest monitoring different metrics or configuring timeouts that do not directly resolve the inactivity issue affecting the connection stability.