Google Cloud Professional Cloud DevOps Engineer — Question 148
Your company recently migrated to Google Cloud. You need to design a fast, reliable, and repeatable solution for your company to provision new projects and basic resources in Google Cloud. What should you do?
Answer options
- A. Use the Google Cloud console to create projects.
- B. Write a script by using the gcloud CLI that passes the appropriate parameters from the request. Save the script in a Git repository.
- C. Write a Terraform module and save it in your source control repository. Copy and run the terraform apply command to create the new project.
- D. Use the Terraform repositories from the Cloud Foundation Toolkit. Apply the code with appropriate parameters to create the Google Cloud project and related resources.
Correct answer: D
Explanation
The correct answer is D because using the Terraform repositories from the Cloud Foundation Toolkit provides a proven, efficient way to provision projects and resources in a consistent manner. Options A and B lack the repeatability and structure needed for multiple projects, while option C, although useful, does not utilize the pre-built resources and best practices of the Cloud Foundation Toolkit.