Google Cloud Associate Cloud Engineer — Question 128

You are working with a user to set up an application in a new VPC behind a firewall. The user is concerned about data egress. You want to configure the fewest open egress ports. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because it employs a low-priority rule to block all egress traffic, ensuring that only specified ports are opened by the high-priority rule. Options B and D do not effectively restrict the number of open egress ports, while option C incorrectly suggests blocking egress in a high-priority rule, which would not allow for the necessary traffic.