Google Cloud Professional Cloud DevOps Engineer — Question 57
Your team of Infrastructure DevOps Engineers is growing, and you are starting to use Terraform to manage infrastructure. You need a way to implement code versioning and to share code with other team members. What should you do?
Answer options
- A. Store the Terraform code in a version-control system. Establish procedures for pushing new versions and merging with the master.
- B. Store the Terraform code in a network shared folder with child folders for each version release. Ensure that everyone works on different files.
- C. Store the Terraform code in a Cloud Storage bucket using object versioning. Give access to the bucket to every team member so they can download the files.
- D. Store the Terraform code in a shared Google Drive folder so it syncs automatically to every team member's computer. Organize files with a naming convention that identifies each new version.
Correct answer: A
Explanation
The correct answer is A because using a version-control system allows for effective management of code changes, collaboration, and ensures that all team members can access the latest version easily. Options B and D lack proper version control features, making collaboration and tracking changes more difficult, while option C does not provide a structured approach for versioning and collaboration.