nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #336

You want to set up a secure, internal network within Google Cloud for database servers. The servers must not have any direct communication with the public internet. What should you do?

The correct answer is C. Create a VPC with a private subnet. Assign a private IP address to each database server. To establish a secure, internal network for database servers with no direct public internet communication, create a VPC with a private subnet and assign private IP addresses to the servers.

Submitted by thandi_sa· Apr 18, 2026Configuring network security

Question

You want to set up a secure, internal network within Google Cloud for database servers. The servers must not have any direct communication with the public internet. What should you do?

Options

  • AAssign a private IP address to each database server. Use a NAT gateway to provide internet
  • BAssign a static public IP address to each database server. Use firewall rules to restrict external
  • CCreate a VPC with a private subnet. Assign a private IP address to each database server.
  • DAssign both a private IP address and a public IP address to each database server.

How the community answered

(18 responses)
  • A
    6% (1)
  • B
    11% (2)
  • C
    83% (15)

Why each option

To establish a secure, internal network for database servers with no direct public internet communication, create a VPC with a private subnet and assign private IP addresses to the servers.

AAssign a private IP address to each database server. Use a NAT gateway to provide internet

Using a NAT gateway provides outbound internet access, which contradicts the requirement that database servers must not have any direct communication with the public internet (this implies both inbound and outbound).

BAssign a static public IP address to each database server. Use firewall rules to restrict external

Assigning static public IP addresses directly exposes the database servers to the public internet, even with firewall rules, thereby violating the requirement for no direct public internet communication.

CCreate a VPC with a private subnet. Assign a private IP address to each database server.Correct

Creating a Virtual Private Cloud (VPC) with a private subnet ensures that instances within it are assigned only internal private IP addresses by default. This configuration inherently prevents direct communication with the public internet, establishing a secure and isolated network suitable for sensitive database servers.

DAssign both a private IP address and a public IP address to each database server.

Assigning both a private and a public IP address would allow public internet communication, which is explicitly prohibited by the requirement for a secure, internal network without direct public internet access.

Concept tested: Private networking for secure resources

Source: https://cloud.google.com/vpc/docs/overview#private_networks

Topics

#Network Security#VPC Networking#NAT Gateway#Private IP Addresses

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice