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.
Question
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)- A6% (1)
- B11% (2)
- C83% (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.
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).
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.
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.
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
Community Discussion
No community discussion yet for this question.