Google Cloud Associate Cloud Engineer — Question 148
Your company wants to standardize the creation and management of multiple Google Cloud resources using Infrastructure as Code. You want to minimize the amount of repetitive code needed to manage the environment. What should you do?
Answer options
- A. Develop templates for the environment using Cloud Deployment Manager.
- B. Use curl in a terminal to send a REST request to the relevant Google API for each individual resource.
- C. Use the Cloud Console interface to provision and manage all related resources.
- D. Create a bash script that contains all requirement steps as gcloud commands.
Correct answer: A
Explanation
The correct answer is A because using Cloud Deployment Manager allows you to create reusable templates, significantly reducing repetitive code. The other options, such as using curl or the Cloud Console, either require more manual effort or don't provide the same level of standardization and automation that templates offer.