GCP Professional Cloud Architect Practice Question

Your development teams use VS Code with Cloud Code to work on a microservice that is deployed to a shared development GKE cluster in the same Google Cloud project. Security policy forbids storing long-lived service-account keys on laptops, but developers still need an "inner-loop" workflow where every time they save a file the IDE automatically rebuilds the image, pushes it to Artifact Registry, redeploys the Pod on the remote cluster, and streams logs back into the editor so they can set breakpoints. Which Cloud Code capability best satisfies all of these requirements while respecting the security policy?

  • Use Cloud Code's Cloud Run local emulator to run the service on the developer's laptop and manually apply manifests to the remote cluster when ready.

  • Open Cloud Shell Editor and deploy from there with kubectl using a downloaded service-account key that has Kubernetes Engine Developer permissions.

  • Configure a Cloud Build trigger so that each Git commit builds and deploys the service to the cluster; developers must commit after every save.

  • Enable Cloud Code's Develop on Kubernetes (continuous development) mode, which runs Skaffold dev against the remote GKE context using the developer's gcloud credentials.

GCP Professional Cloud Architect
Managing implementation
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot