Google Cloud Associate Cloud Engineer — Question 251
Your company requires that Google Cloud products are created with a specific configuration to comply with your company’s security policies. You need to implement a mechanism that will allow software engineers at your company to deploy and update Google Cloud products in a preconfigured and approved manner. What should you do?
Answer options
- A. Create Java packages that utilize the Google Cloud Client Libraries for Java to configure Google Cloud products. Store and share the packages in a source code repository.
- B. Create bash scripts that utilize the Google Cloud CLI to configure Google Cloud products. Store and share the bash scripts in a source code repository.
- C. Use the Google Cloud APIs by using curl to configure Google Cloud products. Store and share the curl commands in a source code repository.
- D. Create Terraform modules that utilize the Google Cloud Terraform Provider to configure Google Cloud products. Store and share the modules in a source code repository.
Correct answer: D
Explanation
The correct answer is D because Terraform modules allow for consistent and repeatable infrastructure deployment, aligning with security policies. Options A, B, and C involve custom coding or scripting, which can lead to inconsistencies and are less manageable than using Terraform for infrastructure as code.