
Explanation:
A is correct because Cloud Deployment Manager allows for the creation of templates that can be applied across multiple environments. These templates are reusable, version-controlled, and significantly reduce repetitive code, aligning with the principles of Infrastructure as Code. B is incorrect as manually sending REST requests for each resource is inefficient and not scalable. C is incorrect because using the Google Cloud Console involves manual processes, contrary to IaC practices. D is incorrect since bash scripts, while automated, do not offer the reusability and scalability of IaC tools like Cloud Deployment Manager. Templates in Cloud Deployment Manager abstract common configurations, promoting portability and efficiency across deployments.
Ultimate access to all questions.
Your rapidly growing social media startup is facing challenges with manual infrastructure management, leading to errors. You've decided to adopt Infrastructure as Code (IaC) for managing your GCP infrastructure. What is the most efficient way to reduce repetitive code in managing your environment?
A
Develop environment templates using Cloud Deployment Manager.
B
Manually send REST requests to Google APIs for each resource using curl in a terminal.
C
Use the Google Cloud Console to provision and manage all resources.
D
Create a bash script that includes all necessary steps using gcloud commands.
No comments yet.