
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.
Options A, B, and E are incorrect because they do not adhere to the best practice of automating infrastructure creation for reproducibility. Option D is correct as it aligns with Google’s best practice for Infrastructure as Code, allowing templates to be version controlled with minimal overhead. Option C is incorrect due to the additional overhead of managing a Cloud Function. For more information, refer to Google's documentation on Deployment Manager and Terraform.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
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 best practices, what is the recommended approach to deploy these environments?
A
Create the resources individually in the console following the documentation provided.
B
Divide the environment amongst experienced engineers, who will deploy them and be responsible for the environment’s reproduction.
C
Create the environment as code using python in a Cloud Function. Assign variables to values that are unique across environments.
D
Create the environment as code using Deployment manager or Terraform templates. Assign variables to values that are unique across environments.
E
Create the resources individually in CLI following the documentation provided.