TERRAFORM-ASSOCIATE-004 · Question #9
TERRAFORM-ASSOCIATE-004 Question #9: Real Exam Question with Answer & Explanation
The correct answer is E: Submit a pull request and wait for an approved merge of the proposed changes. IaC best practices require that all infrastructure changes flow through version control with peer review and approval - this is the core of a GitOps workflow. Making changes directly via the cloud API (A), CLI (D), or console (C) bypasses the IaC codebase entirely, creating confi
Question
As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?
Options
- AMake the change via the public cloud API endpoint
- BClone the repository containing your infrastructure code and then run the code
- CUse the public cloud console to make the change after a database record has been approved
- DMake the change programmatically via the public cloud CLI
- ESubmit a pull request and wait for an approved merge of the proposed changes
Explanation
IaC best practices require that all infrastructure changes flow through version control with peer review and approval - this is the core of a GitOps workflow. Making changes directly via the cloud API (A), CLI (D), or console (C) bypasses the IaC codebase entirely, creating configuration drift and breaking auditability. Cloning and running code directly (B) skips the review and approval gate. Option E - submitting a pull request and waiting for an approved merge - ensures the change is peer-reviewed, tracked in git history, and applied consistently through the established pipeline, which is the definitive IaC best practice.
Topics
Community Discussion
No community discussion yet for this question.