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.
Your organization configures two VPC Service Controls perimeters in dry-run mode: prod-analytics-perimeter (containing prod-bq-project) and prod-ingestion-perimeter (containing prod-gcs-project). During testing, a BigQuery job in prod-bq-project fails to read from a Cloud Storage bucket in prod-gcs-project, logging RESOURCES_NOT_IN_SAME_SERVICE_PERIMETER.
Before enforcing both perimeters, you must meet these requirements:
bq-loader@prod-bq-project.iam.gserviceaccount.com to read storage.googleapis.com in prod-gcs-project.prod-gcs-project completely blocked from invoking APIs in prod-bq-project.What should you do?
cloudaudit.googleapis.com/policy logs for violationReason, add storage.googleapis.com to the VPC-accessible services list (RESTRICTED-SERVICES) on prod-analytics-perimeter, and create an egress rule on prod-analytics-perimeter targeting prod-gcs-project.VPC-accessible services controls which Google Cloud APIs can be reached from VPC networks located inside a perimeter (for example, limiting calls to RESTRICTED-SERVICES). An egress rule on a source perimeter permits identities or resources inside that perimeter to send API requests to external resources outside the perimeter.
prod-analytics-perimeter satisfies the outbound boundary check, but prod-ingestion-perimeter will still reject the incoming request with an ingress rule violation because prod-gcs-project is protected by its own service perimeter.VPC-accessible services determines which APIs are reachable from inside a VPC network within the perimeter; it does not authorize cross-perimeter project access or bypass the destination perimeter's ingress boundary.VPC-accessible services (RESTRICTED-SERVICES) is a defense-in-depth control to block unsupported Google APIs from VPCs inside a perimeter, not a cross-perimeter peering mechanism.violationReason without checking dryRun="true" and inspecting both source and destination service logs can conflate enforced and dry-run events.prod-gcs-project were outside any VPC Service Controls perimeter (meaning no destination ingress rule was needed) and you only needed to permit outbound egress from prod-analytics-perimeter to an unprotected bucket.
cloudaudit.googleapis.com/data_access logs with dryRun="true" to identify the service account, then attach an Access Context Manager access level and ingress rule on prod-ingestion-perimeter permitting prod-bq-project.data_access Logs and Ingress-Only Rules DoCloud Audit Logs Data Access logs (cloudaudit.googleapis.com/data_access) track IAM-authorized read and write operations against resources (or gateway evaluations such as IAP), whereas VPC Service Controls ingress rules with Access Context Manager access levels evaluate whether external requests originating outside a perimeter should be allowed into protected resources.
cloudaudit.googleapis.com/policy), not cloudaudit.googleapis.com/data_access. Querying data_access logs for dryRun="true" will miss VPC Service Controls violationReason entries.prod-bq-project) is itself inside a service perimeter (prod-analytics-perimeter), configuring only an ingress rule on prod-ingestion-perimeter is insufficient. prod-analytics-perimeter will still block the outbound cross-perimeter request unless an explicit egress rule is also configured on the source perimeter.ingressViolations, egressViolations, and violationReason are emitted exclusively under cloudaudit.googleapis.com/policy.The BigQuery client resided in an unprotected project outside any service perimeter (requiring only an ingress rule on prod-ingestion-perimeter) and you queried cloudaudit.googleapis.com/policy rather than data_access logs.
cloudaudit.googleapis.com/policy logs with dryRun="true" across both source and destination services, then configure an egress rule on prod-analytics-perimeter and a matching ingress rule on prod-ingestion-perimeter scoped to the bq-loader service account and storage.googleapis.com.VPC Service Controls policy audit logs (cloudaudit.googleapis.com/policy) record every API call evaluated against a service perimeter, including simulated blocks when dryRun="true". When operations span multiple Google Cloud services—such as a BigQuery job reading from Cloud Storage—examining policy logs for both the source service (bigquery.googleapis.com) and the destination service (storage.googleapis.com) reveals the complete chain of caller identities, target resources, and violationReason codes. Paired egress and ingress rules then act as explicit, directional firewall-like policies at the API boundary between separate perimeters.
cloudaudit.googleapis.com/policy for dryRun="true" and inspecting principalEmail, methodName, violationReason, ingressViolations, and egressViolations across both BigQuery and Cloud Storage logs captures every cross-perimeter failure.prod-analytics-perimeter and a corresponding ingress rule on prod-ingestion-perimeter allows you to restrict access strictly to bq-loader@prod-bq-project.iam.gserviceaccount.com, the storage.googleapis.com API, and prod-gcs-project.prod-bq-project to prod-gcs-project grants zero reverse access from prod-gcs-project back into prod-bq-project.RESOURCES_NOT_IN_SAME_SERVICE_PERIMETER errors before enforcement.Unlike a perimeter bridge—which opens bidirectional, unrestricted service-to-service access across bridged projects—paired egress and ingress rules satisfy strict least privilege and unidirectional data flow requirements while resolving both sides of the cross-perimeter boundary check.
cloudaudit.googleapis.com/policy logs with dryRun="true" to verify the blocked projects, then create a perimeter bridge connecting prod-bq-project and prod-gcs-project.A perimeter bridge is a VPC Service Controls construct that links two or more projects residing in different service perimeters so that resources inside those specific projects can communicate across perimeter boundaries as if they shared a single boundary.
prod-bq-project and prod-gcs-project permits resources in prod-gcs-project to invoke protected APIs in prod-bq-project, directly violating the requirement to keep prod-gcs-project completely blocked from prod-bq-project.bq-loader) or restrict calls to a specific API (storage.googleapis.com). Any authorized IAM principal inside either bridged project can access any protected service in the other project.Both projects belonged to an equally trusted workload tier where bidirectional, all-service communication between prod-bq-project and prod-gcs-project was acceptable without restricting specific caller identities or target APIs.
While querying cloudaudit.googleapis.com/policy with dryRun="true" is the right diagnostic step, choosing a perimeter bridge over directional ingress/egress policies introduces unnecessary lateral movement risk between security tiers.
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