nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #99

Your team needs to make sure that their backend database can only be accessed by the frontend application and no other instances on the network. How should your team design this network?

The correct answer is A. Create an ingress firewall rule to allow access only from the application to the database using. To ensure a backend database can only be accessed by a frontend application, create an ingress firewall rule that specifically allows traffic from the application instances to the database.

Submitted by haruto_sh· Apr 18, 2026Configuring network security

Question

Your team needs to make sure that their backend database can only be accessed by the frontend application and no other instances on the network. How should your team design this network?

Options

  • ACreate an ingress firewall rule to allow access only from the application to the database using
  • BCreate a different subnet for the frontend application and database to ensure network isolation.
  • CCreate two VPC networks, and connect the two networks using Cloud VPN gateways to ensure
  • DCreate two VPC networks, and connect the two networks using VPC peering to ensure network

How the community answered

(25 responses)
  • A
    72% (18)
  • B
    8% (2)
  • C
    16% (4)
  • D
    4% (1)

Why each option

To ensure a backend database can only be accessed by a frontend application, create an ingress firewall rule that specifically allows traffic from the application instances to the database.

ACreate an ingress firewall rule to allow access only from the application to the database usingCorrect

Creating an ingress firewall rule allows precise control over network traffic, enabling the configuration to permit access to the database only from specific sources, such as the frontend application instances (e.g., via IP addresses, network tags, or service accounts), and block all other traffic.

BCreate a different subnet for the frontend application and database to ensure network isolation.

Creating different subnets provides network segmentation but does not, by itself, restrict traffic between instances in those subnets within the same VPC; explicit firewall rules are still required for granular access control.

CCreate two VPC networks, and connect the two networks using Cloud VPN gateways to ensure

Using two separate VPC networks connected by Cloud VPN is an overly complex and expensive solution for securing communication between a frontend and backend application that are logically part of the same environment and would still require internal firewall rules for specific access control.

DCreate two VPC networks, and connect the two networks using VPC peering to ensure network

Connecting two VPC networks via VPC peering makes them appear as one for routing purposes, but it does not inherently provide the granular access control needed to restrict database access solely to the frontend application without additional firewall rules.

Concept tested: VPC Firewall Rules for granular network access control

Source: https://cloud.google.com/vpc/docs/firewalls

Topics

#Firewall Rules#Network Security#Ingress Control#VPC Networking

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice