Courseiva
Implementing a Virtual Private CloudmediumMultiple ChoiceObjective-mapped

PCNE Implementing a Virtual Private Cloud Practice Question

Exhibit

$ gcloud compute networks subnets describe my-subnet --region=us-central1
creationTimestamp: '2023-01-01'
enableFlowLogs: false
fingerprint: ...
gatewayAddress: 10.0.0.1
id: ...
ipCidrRange: 10.0.0.0/24
kind: compute#subnetwork
name: my-subnet
network: https://www.googleapis.com/compute/v1/projects/my-project/global/networks/my-vpc
privateIpGoogleAccess: false
region: https://www.googleapis.com/compute/v1/projects/my-project/regions/us-central1
stackType: IPV4_ONLY

Refer to the exhibit. A VM in my-subnet without an external IP address cannot access Google APIs. What is the likely missing configuration?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Enable Private Google Access on the subnet.

The subnet has privateIpGoogleAccess set to false, which must be enabled for VMs without external IPs to access Google APIs via Private Google Access. Option C (Enable Private Google Access on the subnet) is the correct configuration. Option A (Cloud NAT) is for outbound internet to non-Google destinations, not for Google APIs. Option B is not needed because egress to 0.0.0.0/0 is allowed by default. Option D is not missing; a default route exists as indicated by gatewayAddress.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create a Cloud NAT.

    Why it's wrong here

    Cloud NAT is for internet access to non-Google destinations, not for Google APIs via Private Google Access.

  • Add a firewall rule to allow egress to 0.0.0.0/0.

    Why it's wrong here

    Default egress rules already allow outbound traffic.

  • Enable Private Google Access on the subnet.

    Why this is correct

    The setting privateIpGoogleAccess is currently false; enabling it allows access to Google APIs.

  • Add a default route to the internet gateway.

    Why it's wrong here

    The subnet already has a gatewayAddress, implying a default route exists.

Visual reference

Inside (Private) PC-A 10.0.0.1 PC-B 10.0.0.2 NAT Router Outside (Public) 203.0.113.1 Inside Global Server PAT: many private IPs share one public IP via unique port numbers

About these practice questions

This PCNE question is part of Courseiva's 961-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCNE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCNE exam.