
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 D do not adhere to the best practice of automating infrastructure creation for reproducibility. Option C is correct as it aligns with Google’s best practice for Infrastructure as Code, allowing templates to be version controlled with minimal overhead. Option E introduces unnecessary overhead by requiring management of 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.
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 and immutable. According to best practices, how should you deploy these environments to ensure they are reproducible with minimal overhead?
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 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.