Enforce and share approved Google Cloud product configurations so engineers can deploy and update them consistently. Which approach should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: Create Terraform modules using the Google Cloud Terraform provider and store them in a source repository..
Why this is the answer
Using Terraform modules with the Google Cloud Terraform provider is the most effective approach for enforcing and sharing approved Google Cloud product configurations. Terraform is an Infrastructure as Code (IaC) tool that allows you to define and provision infrastructure using a declarative configuration language. Modules enable reusability and standardization of configurations, ensuring consistency across deployments. Storing these modules in a source repository facilitates version control, collaboration, and automated deployment pipelines. Bash scripts using the gcloud CLI are imperative and less declarative, making them harder to manage for complex configurations and less suitable for enforcing desired states. Java packages with client libraries require writing application code, which is overkill for infrastructure provisioning and less declarative. Using curl against REST APIs is very low-level, error-prone, and lacks the state management and declarative nature of IaC tools.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed