
Explanation:
Correct Answer: C
Storing infrastructure code in a single repository and utilizing Terraform modules alongside Git branches for versioning strikes the perfect balance between collaboration, modularity, and traceability. This method efficiently manages changes across environments and enhances maintainability.
Why not the others?
Ultimate access to all questions.
No comments yet.
As a Cloud DevOps Engineer, managing infrastructure as code efficiently in a GCP project is crucial. Which approach best supports versioning, collaboration, modularity, and traceability?
A
Store infrastructure code in a single monolithic repository, with each environment in a separate branch.
B
Use separate repositories for each environment, maintaining versioned infrastructure code with Git branches.
C
Store infrastructure code in a single repository, using Terraform modules and Git branches for versioning and managing changes across environments.
D
Store infrastructure code in a centralized repository and use Git tags to version the code for each environment.