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?
Open Cloud Shell Editor and deploy from there with kubectl using a downloaded service-account key that has Kubernetes Engine Developer permissions.
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.
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.
Configure a Cloud Build trigger so that each Git commit builds and deploys the service to the cluster; developers must commit after every save.
Cloud Code's Kubernetes continuous development mode (invoked from the Develop on Kubernetes command) starts a Skaffold "dev" session. Skaffold watches local source files, performs incremental builds, pushes images to Artifact Registry, redeploys the manifests to the target cluster, and streams logs back into the IDE with live debugging support. Because Cloud Code re-uses the user's gcloud CLI context and Application Default Credentials, no service-account key files are required on the workstation. The other options either rely on manual commits, local clusters, or require storing credentials that violate the stated policy.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the role of Skaffold in the Cloud Code Kubernetes continuous development mode?
Open an interactive chat with Bash
What are Application Default Credentials (ADC) in Google Cloud, and how do they help in this scenario?
Open an interactive chat with Bash
Why is Artifact Registry used instead of other image storage options in this workflow?
Open an interactive chat with Bash
What is Skaffold and how does it work with Cloud Code?
Open an interactive chat with Bash
What is Artifact Registry, and why is it used in this workflow?
Open an interactive chat with Bash
How does gcloud CLI and Application Default Credentials enable secure development workflows?
Open an interactive chat with Bash
GCP Professional Cloud Architect
Managing implementation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .