Google Cloud Professional Cloud Security Engineer — Question 182

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?

Answer options

Correct answer: C

Explanation

The correct answer is C because creating a VPC with a private subnet allows the database servers to communicate internally without exposure to the public internet. Option A is incorrect as using a NAT gateway would still allow the servers to access the internet, which is not desired. Option B is flawed since assigning a public IP address contradicts the requirement for no direct communication with the public internet. Option D also fails to meet the requirement because it involves assigning public IPs.