nerdexam
Google

PROFESSIONAL-CLOUD-NETWORK-ENGINEER · Question #136

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…

The correct answer is B. Create service accounts [email protected] and sa-db@my-. Using service accounts as firewall rule identifiers is the most secure and recommended approach. Service accounts are cryptographic identities assigned to VMs; only VMs explicitly running as sa-app can send traffic to VMs running as sa-db. This prevents privilege escalation…

Submitted by andres_qro· Apr 18, 2026Implementing network security

Question

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?

Options

How the community answered

(35 responses)
  • A
    17% (6)
  • B
    71% (25)
  • C
    3% (1)
  • D
    9% (3)

Explanation

Using service accounts as firewall rule identifiers is the most secure and recommended approach. Service accounts are cryptographic identities assigned to VMs; only VMs explicitly running as sa-app can send traffic to VMs running as sa-db. This prevents privilege escalation because a user cannot simply add a tag to a VM to gain access - they would need the IAM permission to assign the service account. Option A is weaker because it uses a network tag for the source (application servers), and network tags can be added by anyone with compute.instances.setTags permission, making the rule less secure. Option D uses only network tags for both sides, which is the least secure option. The consistent use of service accounts on both ends in option B provides the strongest identity-based access control.

Topics

#Firewall Rules#Network Security#Service Accounts#VPC Networking

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-NETWORK-ENGINEER Practice