PROFESSIONAL-CLOUD-DATABASE-ENGINEER · Question #60
You need to provision several hundred Cloud SQL for MySQL instances for multiple project teams over a one-week period. You must ensure that all instances adhere to company standards such as instance…
The correct answer is B. Automate instance creation by setting up Terraform scripts. Terraform is an Infrastructure as Code (IaC) tool that allows you to define Cloud SQL instance configurations - including naming conventions, database flags, labels/tags, and other settings - in reusable, version-controlled scripts. Running these scripts guarantees that every…
Question
You need to provision several hundred Cloud SQL for MySQL instances for multiple project teams over a one-week period. You must ensure that all instances adhere to company standards such as instance naming conventions, database flags, and tags. What should you do?
Options
- AAutomate instance creation by writing a Dataflow job.
- BAutomate instance creation by setting up Terraform scripts.
- CCreate the instances using the Google Cloud Console UI.
- DCreate clones from a template Cloud SQL instance.
How the community answered
(40 responses)- A5% (2)
- B83% (33)
- C3% (1)
- D10% (4)
Explanation
Terraform is an Infrastructure as Code (IaC) tool that allows you to define Cloud SQL instance configurations - including naming conventions, database flags, labels/tags, and other settings - in reusable, version-controlled scripts. Running these scripts guarantees that every instance is created identically according to company standards, is auditable, and can be reproduced or updated consistently at scale. Option A (Dataflow) is a data processing pipeline service and cannot provision infrastructure. Option C (Google Cloud Console UI) is manual, does not scale to hundreds of instances, and is highly error-prone for enforcing consistent standards. Option D (cloning from a template) does not enforce naming conventions and lacks the flexibility and governance that IaC provides.
Topics
Community Discussion
No community discussion yet for this question.