Question 360
In a reusable deployment, the primary objective is to recreate equivalent infrastructure patterns from one codebase. Which mechanism most directly meets this particular need?
Explanation
Correct Answer
The task is to recreate equivalent infrastructure patterns from one codebase; Repeatable environment provisioning directly supports that requirement: Parameterizing reusable Terraform modules can provision consistent environment patterns repeatedly. Its relevant boundary is: Differences in inputs and provider versions can still alter actual results.
Incorrect Answers
Self-documenting resource relationships is designed to make infrastructure dependencies understandable from code, whereas this task is to recreate equivalent infrastructure patterns from one codebase: Resource references and explicit dependencies can express how objects relate without relying on tribal knowledge. Against Repeatable environment provisioning, its limitation is: Provider behavior and implicit side effects still need relevant documentation.
Version-controlled configuration history is designed to trace why infrastructure definitions changed, whereas this task is to recreate equivalent infrastructure patterns from one codebase: Git commits and pull requests make configuration edits auditable before the next Terraform run. Against Repeatable environment provisioning, its limitation is: A Git diff tracks source files rather than proving the exact live infrastructure state.
Change impact preview is designed to identify likely creations, updates, and deletions before execution, whereas this task is to recreate equivalent infrastructure patterns from one codebase: Terraform planning exposes proposed operations for examination before they take effect. Against Repeatable environment provisioning, its limitation is: A plan may include unknown attributes that are resolved only during apply.
Consistent development and production patterns is designed to reduce configuration drift across environments using shared modules, whereas this task is to recreate equivalent infrastructure patterns from one codebase: Reusing modules with explicit inputs aligns infrastructure design while allowing intentional environment differences. Against Repeatable environment provisioning, its limitation is: Sharing a module does not force all environments to use identical values.