Google Cloud Associate Cloud Engineer — Question 184

You have two subnets (subnet-a and subnet-b) in the default VPC. Your database servers are running in subnet-a. Your application servers and web servers are running in subnet-b. You want to configure a firewall rule that only allows database traffic from the application servers to the database servers. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because it directly addresses the requirement of allowing database traffic specifically from the application servers to the database servers using service accounts. The other options either do not properly restrict access (B and D) or incorrectly use VPC IP addresses instead of service accounts (C), which does not meet the specified criteria.