Google Cloud Professional Cloud Network Engineer — Question 145

You suspect that one of the virtual machines (VMs) in your default Virtual Private Cloud (VPC) is under a denial-of-service attack. You need to analyze the incoming traffic for the VM to understand where the traffic is coming from. What should you do?

Answer options

Correct answer: B

Explanation

The correct approach is to enable VPC Flow Logs for the subnet, as this will provide detailed information about the traffic, including source IP addresses in the connection field. The other options either refer to incorrect log types or fields that do not provide the necessary traffic details needed to analyze a denial-of-service attack.