Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Cloud Network Engineer practice bank has an additional 2,437 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
You are designing the IPv4 subnet topology in a Shared VPC host project (custom subnet mode) to support three VPC-native GKE Standard clusters deployed across three separate service projects in the same region. The VPC connects to on-premises networks over Cloud Interconnect and operates under strict RFC 1918 IPv4 conservation constraints.
The clusters must meet the following requirements:
ClusterIP Services.LoadBalancer Services, and all clusters will use VPC-scope Cloud DNS for GKE.Which subnet and IP address architecture should you implement in the Shared VPC host project?
--max-pods-per-node=64, and deploy internal LoadBalancer Services directly into each cluster's node subnet.This design correctly isolates each service project into its own manually created Shared VPC subnet with dedicated primary, Pod, and Service ranges, and correctly tunes --max-pods-per-node to 64 to reduce per-node IP reservations. However, it miscalculates the resulting Pod secondary CIDR block size and omits a dedicated load balancer subnet.
--max-pods-per-node is set to 64, GKE reserves a /25 alias IP block (128 IP addresses) per node to avoid IP reuse churn as Pods start and terminate. A /20 secondary range contains 4,096 IP addresses, which yields only 4,096 / 128 = 32 node blocks—falling well short of the 60-node requirement.LoadBalancer Services directly into the /25 node subnet consumes primary IP addresses needed for GKE nodes, risking premature node IP exhaustion during scaling or upgrades and preventing separate firewall policies between nodes and load balancer VIPs.max-pods-per-node value in alias IPs per node; assuming 60 nodes × 50 Pods = 3,000 IPs ignores the mandatory /25 (128-IP) block reservation per node./19 upfront prevents operational complexity.A /20 Pod secondary range with --max-pods-per-node=64 would only suffice if each cluster required 32 or fewer nodes (or if max-pods-per-node were lowered to 32 with a /26 per node, which fails the 50 Pods per node requirement).
--max-pods-per-node=64.In a Shared VPC architecture, a Network Admin in the host project manually provisions custom subnets and user-managed secondary IP ranges before service project administrators deploy VPC-native GKE clusters. Because GKE cannot automatically create or manage secondary ranges in a Shared VPC network, pre-allocating isolated, right-sized CIDR blocks per cluster ensures strict IP governance while preventing conflicts with on-premises networks.
/25 primary subnet provides 128 IP addresses (124 usable after subtracting Google Cloud's 4 reserved addresses), comfortably supporting 60 nodes plus extra capacity for surge upgrades and node auto-repair.--max-pods-per-node=64 instructs GKE to reserve a /25 alias IP range (128 Pod IPs) per node instead of the default /24 (256 Pod IPs for up to 110 Pods). A /19 secondary range provides 8,192 addresses, yielding 64 /25 node blocks—supporting all 60 nodes while cutting Pod IP usage in half compared to a /18 range./23 user-managed secondary range per cluster provides 512 ClusterIP addresses and avoids sharing Service ranges across clusters, which is required because VPC-scope Cloud DNS for GKE does not support shared Service secondary ranges.LoadBalancer VIPs in a dedicated load balancer subnet prevents load balancers from consuming primary node IPs and enables tighter firewall boundaries./23 Service range upfront avoids cluster recreation, since Service secondary ranges cannot be expanded after creation./25 primary ranges can be expanded later if node counts exceed expectations, and additional Pod ranges can be appended using discontiguous multi-Pod CIDRs.This topology satisfies every scaling, DNS, and Shared VPC governance constraint while conserving scarce RFC 1918 space through tuned Pod density and isolated right-sized CIDR allocations.
110 Pods per node, a separate /22 user-managed Service secondary range per cluster, and a dedicated subnet for internal TCP/UDP load balancers.Sharing a single subnet's primary node range and a single large secondary Pod IP range across multiple GKE clusters consolidates subnet administration in a Shared VPC host project. Using a dedicated load balancer subnet and separate Service ranges also avoids internal LB contention and VPC-scope Cloud DNS conflicts.
/24 primary range and the /17 Pod secondary range across all three clusters violates independent scaling. If one service project scales rapidly, it can consume a disproportionate share of node or Pod IPs and starve the other two service projects.--max-pods-per-node at the default 110 causes GKE to reserve a /24 alias IP range (256 IP addresses) per node. A /17 secondary range (32,768 addresses) only supports 32,768 / 256 = 128 total nodes across all three clusters combined—failing the requirement for 180 total nodes (3 × 60 nodes)./24 per node for only 50 required Pods wastes over half of the Pod IP space, and allocating /22 (1,024 IPs) Service ranges instead of /23 (512 IPs) doubles Service IP consumption.--max-pods-per-node, 180 nodes would require at least 46,080 Pod IPs (a /16 range), consuming excessive RFC 1918 space./24 primary range has only 252 usable IPs, leaving tight margins for 180 nodes plus surge upgrade nodes across three clusters.Sharing primary and Pod ranges in a single subnet would only be appropriate when a single centralized platform team controls all clusters, total combined nodes fit well within the shared ranges (e.g., under 128 nodes for a /17 at 110 Pods/node), and cross-project resource isolation is not required.
--max-pods-per-node=64.In a single-project VPC, GKE-managed secondary ranges let GKE automatically allocate Pod and Service CIDR blocks without manual pre-creation, while shared secondary Service ranges allow multiple clusters in the same subnet to reuse a common ClusterIP range to conserve IP space.
/23 secondary range for ClusterIP Services across multiple clusters is explicitly unsupported when VPC-scope Cloud DNS for GKE is enabled./24 primary range (252 usable IPs) across three clusters means one cluster's autoscaling or internal LoadBalancer VIPs can consume the primary range and block the other service projects from adding nodes. Across three 60-node clusters (180 nodes minimum plus upgrade nodes and internal LB VIPs), a single /24 also provides insufficient headroom.--cluster-secondary-range) and cannot be configured through the Google Cloud console UI.LoadBalancer Services draw directly from the shared /24 primary range.Allowing GKE to manage secondary ranges would only work if the clusters resided in the same project as the VPC network rather than a Shared VPC, and sharing a /23 Service range would only be valid if the clusters used kube-dns or cluster-scope Cloud DNS instead of VPC-scope Cloud DNS for GKE.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated