Question 470
A change proposal relies on Automated provisioning pipeline for the task to replace repetitive click-by-click resource deployment with a pipeline. Which limitation specifically applies to it?
- Provider behavior and implicit side effects still need relevant documentation.
- A plan may include unknown attributes that are resolved only during apply.
- A Git diff tracks source files rather than proving the exact live infrastructure state.
- Automation must still control credentials and state concurrency.
- Sharing a module does not force all environments to use identical values.
Explanation
Correct Answer
D:For Automated provisioning pipeline in the task to replace repetitive click-by-click resource deployment with a pipeline, the important caution is: Automation must still control credentials and state concurrency. The reason this matters is its actual behavior: A CI pipeline can run validation and planning before an authorized apply, reducing procedural inconsistency.
Incorrect Answers
A:The proposed warning belongs to Self-documenting resource relationships, which serves the different goal to make infrastructure dependencies understandable from code, rather than to Automated provisioning pipeline: Resource references and explicit dependencies can express how objects relate without relying on tribal knowledge. The question concerns Automated provisioning pipeline acting to replace repetitive click-by-click resource deployment with a pipeline, not a limit of Self-documenting resource relationships.
B:The proposed warning belongs to Change impact preview, which serves the different goal to identify likely creations, updates, and deletions before execution, rather than to Automated provisioning pipeline: Terraform planning exposes proposed operations for examination before they take effect. The question concerns Automated provisioning pipeline acting to replace repetitive click-by-click resource deployment with a pipeline, not a limit of Change impact preview.
C:The proposed warning belongs to Version-controlled configuration history, which serves the different goal to trace why infrastructure definitions changed, rather than to Automated provisioning pipeline: Git commits and pull requests make configuration edits auditable before the next Terraform run. The question concerns Automated provisioning pipeline acting to replace repetitive click-by-click resource deployment with a pipeline, not a limit of Version-controlled configuration history.
E:The proposed warning belongs to Consistent development and production patterns, which serves the different goal to reduce configuration drift across environments using shared modules, rather than to Automated provisioning pipeline: Reusing modules with explicit inputs aligns infrastructure design while allowing intentional environment differences. The question concerns Automated provisioning pipeline acting to replace repetitive click-by-click resource deployment with a pipeline, not a limit of Consistent development and production patterns.
Question 471
A change proposal relies on terraform show -json for the task to export state or saved plan information in machine-readable form. Which limitation specifically applies to it?
- It does not display arbitrary resource attributes unless exported via outputs.
- An address filter does not delete unwanted resource records.
- Sensitive values can appear in cleartext and output needs access controls.
- Editing and pushing the JSON should not be treated as a routine management workflow.
Explanation
Correct Answer
C:For terraform show -json in the task to export state or saved plan information in machine-readable form, the important caution is: Sensitive values can appear in cleartext and output needs access controls. The reason this matters is its actual behavior: show -json emits detailed JSON for supported state and plan representations.
Incorrect Answers
A:The proposed warning belongs to terraform output, which serves the different goal to display declared root output values from the current state, rather than to terraform show -json: output reads named output values and can provide -json for structured automation. The question concerns terraform show -json acting to export state or saved plan information in machine-readable form, not a limit of terraform output.
B:The proposed warning belongs to Address filter for state list, which serves the different goal to locate a relevant module or resource without reading every tracked address, rather than to terraform show -json: state list accepts optional address patterns to narrow visible resources. The question concerns terraform show -json acting to export state or saved plan information in machine-readable form, not a limit of Address filter for state list.
D:The proposed warning belongs to terraform state pull, which serves the different goal to retrieve the current backend state snapshot as serialized JSON, rather than to terraform show -json: state pull reads state from the configured backend for inspection or backup handling. The question concerns terraform show -json acting to export state or saved plan information in machine-readable form, not a limit of terraform state pull.
Question 472
For a new infrastructure repository, the team wants to catch an unsupported or missing required module argument early. Which mechanism most directly meets this particular need?
- terraform validate command
- Formatting versus validation
- Validate after initializing
- Validation of module inputs
Explanation
Correct Answer
D:The task is to catch an unsupported or missing required module argument early; Validation of module inputs directly supports that requirement: terraform validate can report module call errors that violate input or schema requirements. Its relevant boundary is: Input values can still fail runtime preconditions or provider API constraints later.
Incorrect Answers
A:terraform validate command is designed to check configuration syntax and internal consistency without proposing resource changes, whereas this task is to catch an unsupported or missing required module argument early: terraform validate checks the configuration's structural validity in an initialized directory. Against Validation of module inputs, its limitation is: It does not verify remote credentials or guarantee an apply succeeds.
B:Formatting versus validation is designed to distinguish syntactically valid code from canonical HCL formatting, whereas this task is to catch an unsupported or missing required module argument early: terraform fmt changes layout and spacing; terraform validate checks configuration correctness. Against Validation of module inputs, its limitation is: A configuration may validate even when its style differs from fmt output.
C:Validate after initializing is designed to avoid plugin-schema errors when checking a newly cloned configuration, whereas this task is to catch an unsupported or missing required module argument early: An initialized directory provides modules and provider schemas needed for full configuration validation. Against Validation of module inputs, its limitation is: Validation does not download missing plugins for itself.
Question 473
A configuration review identifies the need to supply backend settings during init rather than hardcoding all values. Which mechanism most directly meets this particular need?
- Data source for remote state outputs
- Backend configuration is root-only
- Backend migration workflow
- Backend partial configuration
Explanation
Correct Answer
D:The task is to supply backend settings during init rather than hardcoding all values; Backend partial configuration directly supports that requirement: terraform init -backend-config can fill supported backend settings supplied outside checked-in files. Its relevant boundary is: Credentials may still leak if stored in a plan or command history; prefer secure credential flows.
Incorrect Answers
A:Data source for remote state outputs is designed to consume published output values from another Terraform state where supported, whereas this task is to supply backend settings during init rather than hardcoding all values: terraform_remote_state exposes root output values from a compatible existing state snapshot. Against Backend partial configuration, its limitation is: Access to state metadata may expose more than the specific outputs, so permissions matter.
B:Backend configuration is root-only is designed to set backend storage for a root execution rather than independently in each child module, whereas this task is to supply backend settings during init rather than hardcoding all values: The active root module configures the backend used by that Terraform working directory. Against Backend partial configuration, its limitation is: Child module blocks do not create independent backend state files.
C:Backend migration workflow is designed to move an existing state history when switching remote storage, whereas this task is to supply backend settings during init rather than hardcoding all values: terraform init -migrate-state supports moving state during an intentional backend change. Against Backend partial configuration, its limitation is: The migration should be confirmed and tested to avoid splitting state histories.
Question 474
A design uses List type to hold ordered values of a single element type. Which qualification applies to the named mechanism?
- Do not rely on numeric indexing into a set like a list.
- A map is not a tuple whose elements have heterogeneous positional types.
- It is not the same as a set, where order is not meaningful.
- It is distinct from a map requiring the same element type for all values.
Explanation
Correct Answer
C:For List type in the task to hold ordered values of a single element type, the important caution is: It is not the same as a set, where order is not meaningful. The reason this matters is its actual behavior: A list(T) preserves sequence and permits duplicates, with elements addressable by numeric index.
Incorrect Answers
A:The proposed warning belongs to Set type, which serves the different goal to represent unique elements where ordering does not matter, rather than to List type: A set(T) deduplicates members and does not guarantee a stable positional order. The question concerns List type acting to hold ordered values of a single element type, not a limit of Set type.
B:The proposed warning belongs to Map type, which serves the different goal to associate string keys with values of one element type, rather than to List type: map(T) supports key-based lookup for values that share a type. The question concerns List type acting to hold ordered values of a single element type, not a limit of Map type.
D:The proposed warning belongs to Object type, which serves the different goal to define a fixed schema of named attributes with declared types, rather than to List type: object({...}) gives each named property a type, allowing heterogeneous fields. The question concerns List type acting to hold ordered values of a single element type, not a limit of Object type.
Question 475
A team is adjusting its declarative infrastructure process to optionally instantiate a module based on a count expression. Which mechanism most directly meets this particular need?
- Module refactor with moved block
- Module provider passing
- Module count meta-argument
- Module encapsulation
Explanation
Correct Answer
C:The task is to optionally instantiate a module based on a count expression; Module count meta-argument directly supports that requirement: count on a module block creates zero or more indexed module instances. Its relevant boundary is: Count-based addressing is positional and differs from for_each keys.
Incorrect Answers
A:Module refactor with moved block is designed to preserve resource identity when a configuration resource is moved into a module, whereas this task is to optionally instantiate a module based on a count expression: A moved block can map an old resource address to a new module resource address for state-aware refactoring. Against Module count meta-argument, its limitation is: Move mappings need compatible resource types and valid source/destination addresses.
B:Module provider passing is designed to attach an explicitly selected provider configuration to child module resources, whereas this task is to optionally instantiate a module based on a count expression: The providers map lets a module receive the provider instance the caller intends. Against Module count meta-argument, its limitation is: Each child must declare compatible provider requirements in its own module code.
D:Module encapsulation is designed to keep implementation resources private while exposing a stable input and output interface, whereas this task is to optionally instantiate a module based on a count expression: Modules promote reuse by letting callers depend on documented variables and outputs rather than every internal block. Against Module count meta-argument, its limitation is: Changing a module's public interface still requires managing compatibility for callers.
Question 476
Before continuing an infrastructure rollout, the operator must give development and production separate credentials and deployment values. Which mechanism most directly meets this particular need?
- HCP Terraform project grouping
- Workspace placement within a project
- HCP Terraform run triggers
- Workspace variable isolation
Explanation
Correct Answer
D:The task is to give development and production separate credentials and deployment values; Workspace variable isolation directly supports that requirement: Distinct workspaces separate their state and input variables even when they use similar configuration. Its relevant boundary is: Shared variable sets need appropriate scoping to avoid accidental cross-environment access.
Incorrect Answers
A:HCP Terraform project grouping is designed to organize related workspaces and manage project-level access controls, whereas this task is to give development and production separate credentials and deployment values: Projects group HCP Terraform workspaces so teams can delegate organization and access by project. Against Workspace variable isolation, its limitation is: Project grouping is broadly available, but assigning project-level permissions requires an Essentials, Standard, or Premium plan; each workspace has its own state.
B:Workspace placement within a project is designed to associate one infrastructure workspace with the correct organizational project, whereas this task is to give development and production separate credentials and deployment values: A workspace can be assigned to a project representing its team or platform boundary. Against Workspace variable isolation, its limitation is: Moving the workspace between projects does not merge its state with neighbors.
C:HCP Terraform run triggers addresses the different requirement to queue a downstream workspace run when an upstream workspace completes a successful apply: Run triggers support a controlled dependency workflow between HCP Terraform workspaces; this does not by itself satisfy the requested task to give development and production separate credentials and deployment values. For the stated need, Workspace variable isolation is the more direct mechanism.
Question 477
A Terraform rollout has two separate requirements: first, read remote information without declaring ownership of its lifecycle; second, associate a resource with the default provider for its type prefix. Which assignment of mechanisms correctly handles both responsibilities?
- First use Plugin dependency installation; then use Provider plugin responsibility.
- First use Provider selection for resource prefix; then use Provider data sources.
- First use Provider data sources; then use Plugin dependency installation.
- First use Provider plugin responsibility; then use Provider selection for resource prefix.
- First use Provider data sources; then use Provider selection for resource prefix.
Explanation
Correct Answer
E:The first requirement, to read remote information without declaring ownership of its lifecycle, is handled by Provider data sources: A provider data source queries external information that configuration can reference. The second requirement, to associate a resource with the default provider for its type prefix, is handled by Provider selection for resource prefix: Without a provider meta-argument Terraform normally selects the matching local provider configuration. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to read remote information without declaring ownership of its lifecycle and associate a resource with the default provider for its type prefix, the first candidate Plugin dependency installation addresses resolve all referenced provider plugins before planning; the second candidate Provider plugin responsibility addresses translate a Terraform resource operation into remote service API calls. This mapping fails because the first mechanism primarily supports the task to resolve all referenced provider plugins before planning and the second mechanism primarily supports the task to translate a Terraform resource operation into remote service API calls; the actual requirements are read remote information without declaring ownership of its lifecycle first and associate a resource with the default provider for its type prefix second.
B:For the requested tasks to read remote information without declaring ownership of its lifecycle and associate a resource with the default provider for its type prefix, the first candidate Provider selection for resource prefix addresses associate a resource with the default provider for its type prefix; the second candidate Provider data sources addresses read remote information without declaring ownership of its lifecycle. This mapping fails because the first mechanism primarily supports the task to associate a resource with the default provider for its type prefix and the second mechanism primarily supports the task to read remote information without declaring ownership of its lifecycle; the actual requirements are read remote information without declaring ownership of its lifecycle first and associate a resource with the default provider for its type prefix second.
C:For the requested tasks to read remote information without declaring ownership of its lifecycle and associate a resource with the default provider for its type prefix, the first candidate Provider data sources addresses read remote information without declaring ownership of its lifecycle; the second candidate Plugin dependency installation addresses resolve all referenced provider plugins before planning. This mapping fails because the second mechanism primarily supports the task to resolve all referenced provider plugins before planning; the actual requirements are read remote information without declaring ownership of its lifecycle first and associate a resource with the default provider for its type prefix second.
D:For the requested tasks to read remote information without declaring ownership of its lifecycle and associate a resource with the default provider for its type prefix, the first candidate Provider plugin responsibility addresses translate a Terraform resource operation into remote service API calls; the second candidate Provider selection for resource prefix addresses associate a resource with the default provider for its type prefix. This mapping fails because the first mechanism primarily supports the task to translate a Terraform resource operation into remote service API calls; the actual requirements are read remote information without declaring ownership of its lifecycle first and associate a resource with the default provider for its type prefix second.
Question 478
The implementation must both hold ordered values of a single element type and associate string keys with values of one element type. Which TWO mechanisms directly address these two separate requirements? Choose TWO.
- Set type
- Map type
- Object type
- List type
- Tuple type
Explanation
Correct Answers
B:Among the paired tasks to hold ordered values of a single element type and associate string keys with values of one element type, Map type serves the requirement to associate string keys with values of one element type: map(T) supports key-based lookup for values that share a type. The other task must be covered by a separate mechanism.
D:Among the paired tasks to hold ordered values of a single element type and associate string keys with values of one element type, List type serves the requirement to hold ordered values of a single element type: A list(T) preserves sequence and permits duplicates, with elements addressable by numeric index. The other task must be covered by a separate mechanism.
Incorrect Answers
A:The requirements are hold ordered values of a single element type and associate string keys with values of one element type, while Set type supports the different task to represent unique elements where ordering does not matter: A set(T) deduplicates members and does not guarantee a stable positional order. That capability is outside the two selected responsibilities.
C:The requirements are hold ordered values of a single element type and associate string keys with values of one element type, while Object type supports the different task to define a fixed schema of named attributes with declared types: object({...}) gives each named property a type, allowing heterogeneous fields. That capability is outside the two selected responsibilities.
E:The requirements are hold ordered values of a single element type and associate string keys with values of one element type, while Tuple type supports the different task to describe a fixed sequence with independently typed positions: tuple([...]) declares the expected type at each list position. That capability is outside the two selected responsibilities.
Question 479
An operator chooses the mechanism "Validation of module inputs" for a Terraform project. Which outcome should this choice support?
- catch an unsupported or missing required module argument early
- avoid plugin-schema errors when checking a newly cloned configuration
- check configuration syntax and internal consistency without proposing resource changes
- add a low-risk validation stage to a pull request workflow
Explanation
Correct Answer
A:The practical result of Validation of module inputs, used to catch an unsupported or missing required module argument early, is: terraform validate can report module call errors that violate input or schema requirements. A qualification for this effect is: Input values can still fail runtime preconditions or provider API constraints later.
Incorrect Answers
B:That outcome applies to Validate after initializing, intended to avoid plugin-schema errors when checking a newly cloned configuration, rather than the question's feature Validation of module inputs: An initialized directory provides modules and provider schemas needed for full configuration validation. Unlike Validate after initializing, Validation of module inputs is intended to catch an unsupported or missing required module argument early, not to avoid plugin-schema errors when checking a newly cloned configuration.
C:That outcome applies to terraform validate command, intended to check configuration syntax and internal consistency without proposing resource changes, rather than the question's feature Validation of module inputs: terraform validate checks the configuration's structural validity in an initialized directory. Unlike terraform validate command, Validation of module inputs is intended to catch an unsupported or missing required module argument early, not to check configuration syntax and internal consistency without proposing resource changes.
D:The outcome in this option belongs to Static checking before a run: Running validate early detects many language and schema problems before planning or applying; by contrast, the feature actually named in the stem, Validation of module inputs, has a distinct purpose: to catch an unsupported or missing required module argument early.
Question 480
A team reviews the use of Backend partial configuration in Terraform 1.12. Which purpose matches its actual behavior?
- consume published output values from another Terraform state where supported
- supply backend settings during init rather than hardcoding all values
- move an existing state history when switching remote storage
- set backend storage for a root execution rather than independently in each child module
Explanation
Correct Answer
B:The practical result of Backend partial configuration, used to supply backend settings during init rather than hardcoding all values, is: terraform init -backend-config can fill supported backend settings supplied outside checked-in files. A qualification for this effect is: Credentials may still leak if stored in a plan or command history; prefer secure credential flows.
Incorrect Answers
A:That outcome applies to Data source for remote state outputs, intended to consume published output values from another Terraform state where supported, rather than the question's feature Backend partial configuration: terraform_remote_state exposes root output values from a compatible existing state snapshot. Unlike Data source for remote state outputs, Backend partial configuration is intended to supply backend settings during init rather than hardcoding all values, not to consume published output values from another Terraform state where supported.
C:That outcome applies to Backend migration workflow, intended to move an existing state history when switching remote storage, rather than the question's feature Backend partial configuration: terraform init -migrate-state supports moving state during an intentional backend change. Unlike Backend migration workflow, Backend partial configuration is intended to supply backend settings during init rather than hardcoding all values, not to move an existing state history when switching remote storage.
D:That outcome applies to Backend configuration is root-only, intended to set backend storage for a root execution rather than independently in each child module, rather than the question's feature Backend partial configuration: The active root module configures the backend used by that Terraform working directory. Unlike Backend configuration is root-only, Backend partial configuration is intended to supply backend settings during init rather than hardcoding all values, not to set backend storage for a root execution rather than independently in each child module.