HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #250
You are tasked with making a change to an infrastructure stack running in a public cloud using HCP Terraform/Terraform Cloud. Which pattern follows IaC best practices?
The correct answer is B. Submit a pull request and wait for an approved merge of the proposed changes. IaC best practice is to manage infrastructure through version-controlled code. Changes should be reviewed and approved (via PRs), ensuring collaboration, traceability, and automation.
Understand Infrastructure as Code (IaC) Concepts
Question
You are tasked with making a change to an infrastructure stack running in a public cloud using HCP Terraform/Terraform Cloud. Which pattern follows IaC best practices?
Options
- AMake the change via the public cloud API endpoint.
- BSubmit a pull request and wait for an approved merge of the proposed changes.
- CClone the repository containing your infrastructure code and then run the code.
- DUse the public cloud console to make the change after approval.
- EMake the change programmatically via the cloud CLI.
How the community answered
(34 responses)- A3% (1)
- B76% (26)
- C6% (2)
- E15% (5)
Explanation
IaC best practice is to manage infrastructure through version-controlled code. Changes should be reviewed and approved (via PRs), ensuring collaboration, traceability, and automation.
Topics
#IaC best practices#HCP Terraform#pull request workflow#version control
Community Discussion
No community discussion yet for this question.