Google Associate Cloud Engineer Question 166
Single answerGoogle Cloud PlatformYou are a Google Cloud Engineer tasked with setting up a production environment for a web application. The setup requires creating multiple virtual machine instances, storage buckets, and networking components. You want to automate this process using infrastructure as code (IaC) to ensure consistency across environments. Which Google Cloud tool should you use to define, deploy, and manage your infrastructure as code?
- A
Google Cloud Deployment Manager
- B
Google Cloud Console
- C
Google Cloud Shell
- D
Google Cloud Build
Show answer and explanation
Correct answer: A
Explanation
Google Cloud Deployment Manager is the appropriate tool for defining and managing infrastructure as code on Google Cloud. It allows engineers to define infrastructure in configuration files using a declarative syntax, making it easy to automate and replicate resources across different environments.
- A. Correct.
Google Cloud Deployment Manager is a service for automating the creation and management of Google Cloud resources using a declarative approach. It is specifically designed for infrastructure as code.
- B. Incorrect.
Google Cloud Console is a web-based interface for managing Google Cloud resources, but it is not an infrastructure as code tool.
- C. Incorrect.
Google Cloud Shell provides command-line access to your Google Cloud environment, but it is not specifically an IaC tool.
- D. Incorrect.
Google Cloud Build is a CI/CD service that automates building, testing, and deploying code, but it is not used for defining infrastructure as code.