Google Professional Cloud DevOps Engineer Question 19
Single answerGoogle Cloud PlatformYour team is managing the infrastructure for a critical application hosted on Google Cloud. You need to implement a process for infrastructure changes that minimizes risk, ensures consistency, and adheres to Google-recommended practices. Which of the following approaches should you use?
- A
Manually apply infrastructure changes in the Google Cloud Console to quickly test and implement updates.
- B
Use Deployment Manager or Terraform with infrastructure-as-code to define and manage infrastructure blueprints.
- C
Apply changes directly to running virtual machines using SSH and custom scripts.
- D
Rely on ad-hoc changes by the operations team based on immediate business needs.
Show answer and explanation
Correct answer: B
Explanation
Google recommends using infrastructure-as-code tools such as Deployment Manager or Terraform to manage infrastructure changes. This approach minimizes the risk of human error, ensures consistency across environments, and supports version control and automation. These tools enable you to define infrastructure blueprints declaratively, making infrastructure easier to manage and adhere to best practices.
- A. Incorrect.
Manually applying changes in the Google Cloud Console introduces a high risk of human error, lacks version control, and does not follow Google-recommended practices for infrastructure management.
- B. Correct.
Using Deployment Manager or Terraform with infrastructure-as-code ensures that infrastructure changes are consistent, repeatable, and version-controlled. This approach aligns with Google-recommended practices and enables the use of blueprints to define infrastructure declaratively.
- C. Incorrect.
Making changes directly to running virtual machines is not a recommended practice as it bypasses version control, introduces inconsistencies, and makes it difficult to track changes.
- D. Incorrect.
Ad-hoc changes by the operations team do not follow structured processes, increase the risk of errors, and reduce the ability to audit or replicate changes.