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 a micro-segmentation architecture for a three-tier application (web frontend, application backend, and PostgreSQL database) deployed within a single subnet (10.20.0.0/20) in prod-vpc. Your architecture must meet these requirements:
8080, backend VMs to reach database VMs only on TCP 5432, and analytics VMs in a peered reporting-vpc to reach database VMs on TCP 5432.roles/compute.instanceAdmin.v1 from modifying VM firewall identifiers.Which configuration should you implement?
web-sa, app-sa, db-sa, analytics-sa) to each tier's VMs and configure VPC firewall rules using sourceServiceAccounts and targetServiceAccounts for TCP 8080 and 5432.Service account-based VPC firewall rules filter ingress and egress traffic using the IAM service account identity attached to Compute Engine VMs (sourceServiceAccounts and targetServiceAccounts), providing stronger identity governance than legacy network tags.
sourceServiceAccounts are scoped to a single VPC network and do not extend identity-based filtering across VPC Network Peering boundaries to reporting-vpc.roles/iam.serviceAccountUser) to attach a service account, preventing unauthorized reassignment by instanceAdmin users.All application tiers and analytics workloads resided within the same VPC network, none of the VMs used multiple vNICs requiring distinct interface-level policies, and each VM needed only a single tier identity.
web, app, db, analytics) in sourceTags and targetTags to allow TCP 8080 from web to app and TCP 5432 from app and analytics to db, relying on the implied ingress deny rule.Network tags are arbitrary text strings attached to Compute Engine VM instances that allow legacy VPC firewall rules and custom static routes to target specific groups of VMs within a single VPC network.
roles/compute.instanceAdmin.v1 can modify, add, or remove network tags on running VMs to bypass tier isolation and gain unauthorized access to the db tier.sourceTags cannot evaluate network tags across VPC Network Peering boundaries, meaning analytics VMs in reporting-vpc cannot be matched by tag in prod-vpc.The entire application resided in a single VPC network with single-NIC VMs, no cross-peered VPC access was needed, and strict IAM protection against instanceAdmin tag tampering was not required.
tier/frontend, tier/backend, tier/database, tier/analytics), restrict roles/resourcemanager.tagUser to CI/CD pipelines, bind tags to specific VM vNICs, and configure Global Network Firewall Policy rules using sourceSecureTags and targetSecureTags with a low-priority default-deny rule.Secure tags in Cloud Next Generation Firewall (Cloud NGFW) are Resource Manager resources (purpose=GCE_FIREWALL) that bind firewall rule evaluation to workload identity rather than IP addresses. When created with organization scope (purpose-data=organization=auto) and referenced in a Global Network Firewall Policy, they provide centrally governed, identity-aware micro-segmentation across VPC networks.
sourceSecureTags and targetSecureTags allows TCP 8080 exclusively from tier/frontend to tier/backend and TCP 5432 exclusively from tier/backend and tier/analytics to tier/database. Because no rule permits tier/frontend to tier/database, direct web-to-database traffic is blocked even though all VMs share 10.20.0.0/20.tier/analytics in reporting-vpc to be evaluated natively without static CIDR maintenance.instanceAdmin bypass: Restricting roles/resourcemanager.tagAdmin to security teams and roles/resourcemanager.tagUser to audited CI/CD pipelines prevents developers with roles/compute.instanceAdmin.v1 from altering or self-attaching tags.targetSecureTags causes Cloud NGFW to apply rules statically only to VMs carrying those target tags, reducing per-connection overhead.This design uniquely satisfies intra-subnet micro-segmentation, multi-NIC per-interface isolation, cross-peered VPC enforcement, and strict IAM separation of duties in a single unified policy architecture.
purpose-data=network) for analytics traffic in an organization-level hierarchical firewall policy.This approach tries to combine service account-based VPC firewall rules for internal tier segmentation with network-scoped secure tags (purpose-data=network) referenced inside an organization-level hierarchical firewall policy for cross-VPC analytics access.
organization=auto). Attempting to reference network-scoped tags (purpose-data=network) in a hierarchical firewall policy is unsupported.analytics workloads across the peering connection between reporting-vpc and prod-vpc.purpose=GCE_FIREWALL and purpose-data=network, its parent resource and scope cannot be modified later without recreating the tag schema.No such hybrid incompatibility existed—specifically, if backend VMs had single NICs and all cross-VPC rules used organization-scoped secure tags (organization=auto) rather than network-scoped tags.
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