
Answer-first summary for fast verification
Answer: Create the environment as code using Deployment manager or Terraform templates. Assign variables to values that are unique across environments.
The correct approach is to use Deployment Manager or Terraform templates for creating the environment as code. This method aligns with Google's best practices for infrastructure as code, allowing for version control and minimal overhead. Other options either do not automate the infrastructure creation process, leading to potential inconsistencies and higher overhead, or introduce unnecessary complexity by managing resources individually or through a Cloud Function.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is transitioning from on-premises to Google Cloud, starting with the development and testing environments. These environments are well-documented and include a network with 3 subnets, various firewall rules, routes, VMs, storage, databases, and DNS. The goal is to ensure these environments are consistent, immutable, and easily reproducible with minimal overhead. According to Google's best practices, how should you deploy these environments?
A
Divide the environment amongst experienced engineers, who will deploy them and be responsible for the environment’s reproduction.
B
Create the resources individually in the console following the documentation provided.
C
Create the environment as code using Deployment manager or Terraform templates. Assign variables to values that are unique across environments.
D
Create the resources individually in CLI following the documentation provided.
E
Create the environment as code using python in a Cloud Function. Assign variables to values that are unique across environments.
No comments yet.