Google Cloud Professional Cloud Network Engineer — Question 132

In your project my-project, you have two subnets in a Virtual Private Cloud (VPC): subnet-a with IP range 10.128.0.0/20 and subnet-b with IP range 172.16.0.0/24. You need to deploy database servers in subnet-a. You will also deploy the application servers and web servers in subnet-b. You want to configure firewall rules that only allow database traffic from the application servers to the database servers. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because it specifies the use of service accounts to control access between application servers and database servers, which is necessary for secure communication. Option A incorrectly uses network tags instead of service accounts. Option C includes a source range that does not directly relate to the application servers. Option D also uses network tags instead of service accounts and incorrectly specifies source ranges.