GCP Professional Cloud Architect Practice Question
Your organization manages all Google Cloud resources through Terraform with remote state stored in an encrypted Cloud Storage bucket and changes applied only by a Cloud Build pipeline. During a demand spike, you ask Gemini Cloud Assist to "add a regional node pool with autoscaling (3-15 nodes) to the existing prod-gke cluster." Gemini returns both a gcloud CLI update command and a Terraform code snippet that meets the requirement. To follow established governance and avoid configuration drift, what should you do next?
Use the Google Cloud console to add the node pool; Terraform will detect and adopt the change during its next run.
Commit the generated Terraform to a new branch, submit a pull request, and let the Cloud Build pipeline run terraform plan and, after approval, terraform apply.
Paste the Terraform snippet into Cloud Shell and run terraform apply -auto-approve from your laptop using the local backend.
Execute the gcloud command in Cloud Shell immediately, then reconcile Terraform later with terraform import to avoid state mismatch.
Because the cluster is managed by Terraform, the authoritative configuration is the Terraform state. The safest path is to copy the code that Gemini generated into the appropriate module, commit it to a feature branch, and open a pull request. The Cloud Build pipeline will run terraform plan against the remote state so reviewers can verify the intended changes before terraform apply executes. Running the gcloud command directly, clicking through the console, or applying from a local workstation would bypass the centralized pipeline, introduce state drift, and violate audit requirements.
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 Terraform and how does it manage infrastructure?
Open an interactive chat with Bash
What is configuration drift and why is it problematic?
Open an interactive chat with Bash
How does a Cloud Build pipeline interact with Terraform for infrastructure changes?
Open an interactive chat with Bash
What is configuration drift in Terraform?
Open an interactive chat with Bash
Why is using a Cloud Build pipeline important in this Terraform-based setup?
Open an interactive chat with Bash
What are the advantages of storing the Terraform state in an encrypted Cloud Storage bucket?
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 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .