How to Securely Host Databases Without Direct Internet Access?
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?
Community Votes
56% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Tests understanding of VPC subnetting and network isolation; the common trap is overcomplicating the design with NAT when the requirement only mandates preventing direct internet access.
Setting up isolated database servers in Google Cloud requires a private VPC subnet with private IP addresses to ensure zero direct internet exposure. While some candidates debate NAT egress, the exam prioritizes strict network isolation and least-privilege architecture for sensitive workloads.
Candidates frequently select the NAT option by fixating on the word “direct,” incorrectly assuming indirect internet access is required or preferred for databases.
Community Discussion (5 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Creating a VPC with a private subnet and assigning private IP addresses (Option C) establishes a fully isolated environment that inherently prevents any direct communication with the public internet. This aligns with Google Cloud security best practices and the principle of least privilege, ensuring database servers remain inaccessible from external networks without unnecessary egress configurations.Why the Other Options Are Wrong
Option A introduces a NAT gateway, which grants indirect internet access that the question never requests and contradicts database security standards. Option B assigns public IPs, violating the core isolation requirement despite firewall restrictions. Option D exposes servers to the internet entirely, eliminating network-level security controls.Community Comment Notes
The discussion heavily centers on the word “direct,” with several users arguing for NAT while others correctly emphasize that private subnets naturally block direct traffic. Comment [4] highlights the poor wording but reinforces that real-world security demands zero internet exposure, validating Option C as the architecturally sound choice. Comments [1] and [2] show how test-takers get distracted by semantic traps rather than focusing on baseline networking principles.Official Reference
Exam Strategy
Always prioritize the simplest configuration that satisfies the explicit requirement; avoid adding services like NAT unless the scenario explicitly asks for controlled internet egress. Focus on baseline isolation first before layering on connectivity features.
Frequently Asked Questions
Why isn't a NAT gateway required here?
The question only requires preventing direct internet access, which a private subnet handles natively without granting unnecessary egress.
Does 'no direct communication' imply indirect access is allowed?
Exam wording can be tricky, but security best practices dictate databases should have zero internet exposure unless explicitly mandated.