Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise DevOps team manages a Cloud Build CI/CD pipeline that builds container images, executes vulnerability scans using the On-Demand Scanning API, and publishes validated artifacts to Artifact Registry.
To meet compliance mandates, all cloud development environments and build pipelines are enclosed within a VPC Service Controls (VPC-SC) service perimeter. During pipeline execution, the build step running gcloud artifacts docker images scan fails with a VPC Service Controls security perimeter violation, halting the CI/CD pipeline.
Which combination of actions should the DevOps engineer implement to resolve the perimeter violation and allow the vulnerability scanning gate to succeed?
This solution properly integrates Artifact Analysis and Artifact Registry within a VPC Service Controls (VPC-SC) security perimeter by securing the underlying APIs and establishing private network routing.
containeranalysis.googleapis.com) and Artifact Registry API (artifactregistry.googleapis.com) are added as protected services inside the VPC-SC perimeter, authorizing authenticated API requests originated within the perimeter boundaries.pkg.dev domain. Configuring DNS resolution for *.pkg.dev to point to restricted.googleapis.com (or private.googleapis.com) routes container pull, push, and scan traffic over private Google Cloud networks rather than public IP routes, preventing perimeter ingress and egress blocks.containerscanning.googleapis.com) is a surfaceless API that deposits results into Artifact Analysis, meaning it does not require standalone perimeter definition once containeranalysis.googleapis.com is protected.gcloud artifacts docker images scan) inside automated Cloud Build runners.This approach directly targets the root causes of VPC-SC violations for container tooling: missing protected API definitions and unroutable pkg.dev domain requests that otherwise attempt to exit via public internet paths.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.