HashiCorp Terraform Associate 004 (HashiCorp Certified: Terraform Associate (004)) Practice Test 79

Question 780

A change proposal relies on Machine-readable plan inspection for the task to convert a saved plan into JSON for automated analysis. Which limitation specifically applies to it?

  1. It does not use configuration to correct drift in the remote service.
  2. The JSON can expose secrets and requires secure handling.
  3. Routine targeted planning can overlook intended changes elsewhere.
  4. Plan does not persist the proposed changes to remote infrastructure.
  5. Saved plans can include sensitive data and should not be committed publicly.

Explanation

Correct Answer

B:

For Machine-readable plan inspection in the task to convert a saved plan into JSON for automated analysis, the important caution is: The JSON can expose secrets and requires secure handling. The reason this matters is its actual behavior: terraform show -json change.tfplan exposes plan details for tooling.

Incorrect Answers

A:

The proposed warning belongs to Refresh-only planning, which serves the different goal to inspect externally changed infrastructure without planning configuration reconciliation, rather than to Machine-readable plan inspection: terraform plan -refresh-only proposes updates to state and outputs based on remote observations. The question concerns Machine-readable plan inspection acting to convert a saved plan into JSON for automated analysis, not a limit of Refresh-only planning.

C:

The proposed warning belongs to Targeted planning, which serves the different goal to focus on a small subset for exceptional repair or troubleshooting, rather than to Machine-readable plan inspection: terraform plan -target=ADDRESS limits the planner's focus to the selected graph portion. The question concerns Machine-readable plan inspection acting to convert a saved plan into JSON for automated analysis, not a limit of Targeted planning.

D:

The proposed warning belongs to terraform plan command, which serves the different goal to preview actions required to reach the declared infrastructure state, rather than to Machine-readable plan inspection: terraform plan shows changes Terraform expects, including creates, updates, deletes, and replacements. The question concerns Machine-readable plan inspection acting to convert a saved plan into JSON for automated analysis, not a limit of terraform plan command.

E:

The proposed warning belongs to Plan saved to file, which serves the different goal to capture one execution plan for later approval and application, rather than to Machine-readable plan inspection: terraform plan -out=change.tfplan saves an executable binary plan artifact. The question concerns Machine-readable plan inspection acting to convert a saved plan into JSON for automated analysis, not a limit of Plan saved to file.

Question 781

The rollout owner asks whether terraform state mv is sufficient to change a resource state address to match a configuration refactor. Which limitation specifically concerns that mechanism?

  1. If its configuration remains, a later plan can propose creating another object.
  2. A refresh-only apply instead accepts observed remote values into state.
  3. Ordinary resource removal from HCL can instead lead to destruction.
  4. It does not rename or migrate the remote object through its provider API.

Explanation

Correct Answer

D:

For terraform state mv in the task to change a resource state address to match a configuration refactor, the important caution is: It does not rename or migrate the remote object through its provider API. The reason this matters is its actual behavior: state mv rebinds an existing object under a new compatible address.

Incorrect Answers

A:

The proposed warning belongs to terraform state rm, which serves the different goal to detach a resource address from state while leaving the remote object intact, rather than to terraform state mv: state rm forgets the binding but does not delete the real infrastructure object. The question concerns terraform state mv acting to change a resource state address to match a configuration refactor, not a limit of terraform state rm.

B:

The proposed warning belongs to Drift reconciliation to configuration, which serves the different goal to restore externally modified resource settings to desired code values, rather than to terraform state mv: A regular plan and apply can propose changing a drifted object back to configured settings. The question concerns terraform state mv acting to change a resource state address to match a configuration refactor, not a limit of Drift reconciliation to configuration.

C:

The proposed warning belongs to removed block with destroy=false, which serves the different goal to stop tracking an object in state but deliberately leave it deployed, rather than to terraform state mv: A removed block declares that Terraform should forget a resource without deleting it when destroy=false. The question concerns terraform state mv acting to change a resource state address to match a configuration refactor, not a limit of removed block with destroy=false.

Question 782

The rollout owner asks whether Implicit dependency from expression is sufficient to order resources when one consumes an attribute produced by another. Which limitation specifically concerns that mechanism?

  1. Excessive explicit dependencies can make planning conservative and values unknown.
  2. Removing the entire resource configuration also removes this protective rule.
  3. No extra depends_on is needed for an already represented relationship.
  4. A uniqueness constraint or quota can still prevent parallel old and new objects.

Explanation

Correct Answer

C:

For Implicit dependency from expression in the task to order resources when one consumes an attribute produced by another, the important caution is: No extra depends_on is needed for an already represented relationship. The reason this matters is its actual behavior: Terraform derives an edge from an expression reference and schedules the producer first.

Incorrect Answers

A:

The proposed warning belongs to Explicit depends_on relationship, which serves the different goal to order otherwise unreferenced actions that have a hidden operational dependency, rather than to Implicit dependency from expression: depends_on declares an ordering relationship when there is no suitable value reference. The question concerns Implicit dependency from expression acting to order resources when one consumes an attribute produced by another, not a limit of Explicit depends_on relationship.

B:

The proposed warning belongs to prevent_destroy lifecycle, which serves the different goal to protect a declared resource from plans that destroy its managed object, rather than to Implicit dependency from expression: prevent_destroy causes an error if a plan includes destruction while the rule is present in configuration. The question concerns Implicit dependency from expression acting to order resources when one consumes an attribute produced by another, not a limit of prevent_destroy lifecycle.

D:

The proposed warning belongs to create_before_destroy lifecycle, which serves the different goal to favor replacement resource creation before deletion of its predecessor, rather than to Implicit dependency from expression: The lifecycle rule changes replacement ordering when the provider and external constraints permit it. The question concerns Implicit dependency from expression acting to order resources when one consumes an attribute produced by another, not a limit of create_before_destroy lifecycle.

Question 783

A change proposal relies on Module release compatibility for the task to constrain a module to releases with an expected interface. Which limitation specifically applies to it?

  1. Assuming .terraform.lock.hcl freezes registry modules can surprise a new installation.
  2. An unpinned module version may drift as newer releases appear.
  3. The registry module version argument does not apply to generic Git sources.
  4. Version constraints cannot guarantee every patch release is defect-free.
  5. Pinning a module does not pin its provider dependencies unless constrained separately.

Explanation

Correct Answer

D:

For Module release compatibility in the task to constrain a module to releases with an expected interface, the important caution is: Version constraints cannot guarantee every patch release is defect-free. The reason this matters is its actual behavior: A version range helps avoid inadvertently selecting a module revision with breaking input or output changes.

Incorrect Answers

A:

The proposed warning belongs to Module versus provider version lock, which serves the different goal to track module release selection separately from provider lock file behavior, rather than to Module release compatibility: Module versions are selected by module source and version settings, whereas the lock file records providers. The question concerns Module release compatibility acting to constrain a module to releases with an expected interface, not a limit of Module versus provider version lock.

B:

The proposed warning belongs to Registry module version constraint, which serves the different goal to select module releases meeting a declared compatibility range, rather than to Module release compatibility: A registry module call accepts a version argument that chooses supported release versions. The question concerns Module release compatibility acting to constrain a module to releases with an expected interface, not a limit of Registry module version constraint.

C:

The proposed warning belongs to Version of Git module, which serves the different goal to pin a VCS module using its source ref rather than registry version, rather than to Module release compatibility: A ?ref=tag or commit in a Git module source selects the VCS revision to fetch. The question concerns Module release compatibility acting to constrain a module to releases with an expected interface, not a limit of Version of Git module.

E:

The listed caution belongs specifically to Exact registry module version, used to make a published module dependency deterministic across clean installs: An exact version requirement identifies one registry module release; the feature under review is instead Module release compatibility, so this answer attaches another feature's qualification to the wrong mechanism.

Question 784

Before adopting HCP Terraform workspace version settings to control the Terraform version used for remote runs, which statement sets an accurate boundary?

  1. A migration should be backed up and verified before discarding the local copy.
  2. Selecting the wrong workspace can target a different infrastructure state.
  3. Provider version constraints remain a separate configuration concern.
  4. A CLI token is not a cloud provider's deployment credential.
  5. It should not be combined with a separate backend block in the same root configuration.

Explanation

Correct Answer

C:

For HCP Terraform workspace version settings in the task to control the Terraform version used for remote runs, the important caution is: Provider version constraints remain a separate configuration concern. The reason this matters is its actual behavior: Workspace settings can select the Terraform Core version used in HCP remote execution.

Incorrect Answers

A:

The proposed warning belongs to Local to HCP state migration, which serves the different goal to move a locally managed state history into an HCP Terraform workspace, rather than to HCP Terraform workspace version settings: Changing state integration and reinitializing can migrate state into HCP Terraform when configured correctly. The question concerns HCP Terraform workspace version settings acting to control the Terraform version used for remote runs, not a limit of Local to HCP state migration.

B:

The proposed warning belongs to HCP Terraform workspace selection, which serves the different goal to route CLI-driven operations to the intended HCP workspace, rather than to HCP Terraform workspace version settings: The cloud block workspace settings determine which HCP workspace the configuration uses. The question concerns HCP Terraform workspace version settings acting to control the Terraform version used for remote runs, not a limit of HCP Terraform workspace selection.

D:

The proposed warning belongs to Terraform CLI login to HCP, which serves the different goal to authenticate local Terraform CLI operations against HCP Terraform, rather than to HCP Terraform workspace version settings: terraform login starts an authentication workflow and stores a token for HCP Terraform access. The question concerns HCP Terraform workspace version settings acting to control the Terraform version used for remote runs, not a limit of Terraform CLI login to HCP.

E:

The proposed warning belongs to cloud block HCP integration, which serves the different goal to associate a Terraform root configuration with an HCP Terraform organization and workspace, rather than to HCP Terraform workspace version settings: A cloud block in terraform settings configures the HCP Terraform integration for that root module. The question concerns HCP Terraform workspace version settings acting to control the Terraform version used for remote runs, not a limit of cloud block HCP integration.

Question 785

A Terraform rollout has two separate requirements: first, pass an aliased provider to resources inside a child module; second, refer to a provider configuration by its local name and alias. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Explicit child module provider mapping; then use Provider alias reference address.
  2. First use Multiple regions in one configuration; then use Aliased provider instance.
  3. First use Provider alias reference address; then use Explicit child module provider mapping.
  4. First use Aliased provider instance; then use Provider alias reference address.
  5. First use Explicit child module provider mapping; then use Multiple regions in one configuration.

Explanation

Correct Answer

A:

The first requirement, to pass an aliased provider to resources inside a child module, is handled by Explicit child module provider mapping: The providers map in a module block maps the child's provider name to a parent provider configuration. The second requirement, to refer to a provider configuration by its local name and alias, is handled by Provider alias reference address: An address such as aws.audit identifies a specific configured instance of the aws provider. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

B:

For the requested tasks to pass an aliased provider to resources inside a child module and refer to a provider configuration by its local name and alias, the first candidate Multiple regions in one configuration addresses create similar resources in different regions without duplicating the root module; the second candidate Aliased provider instance addresses configure a second instance of the same provider for another account or region. This mapping fails because the first mechanism primarily supports the task to create similar resources in different regions without duplicating the root module and the second mechanism primarily supports the task to configure a second instance of the same provider for another account or region; the actual requirements are pass an aliased provider to resources inside a child module first and refer to a provider configuration by its local name and alias second.

C:

For the requested tasks to pass an aliased provider to resources inside a child module and refer to a provider configuration by its local name and alias, the first candidate Provider alias reference address addresses refer to a provider configuration by its local name and alias; the second candidate Explicit child module provider mapping addresses pass an aliased provider to resources inside a child module. This mapping fails because the first mechanism primarily supports the task to refer to a provider configuration by its local name and alias and the second mechanism primarily supports the task to pass an aliased provider to resources inside a child module; the actual requirements are pass an aliased provider to resources inside a child module first and refer to a provider configuration by its local name and alias second.

D:

For the requested tasks to pass an aliased provider to resources inside a child module and refer to a provider configuration by its local name and alias, the first candidate Aliased provider instance addresses configure a second instance of the same provider for another account or region; the second candidate Provider alias reference address addresses refer to a provider configuration by its local name and alias. This mapping fails because the first mechanism primarily supports the task to configure a second instance of the same provider for another account or region; the actual requirements are pass an aliased provider to resources inside a child module first and refer to a provider configuration by its local name and alias second.

E:

For the requested tasks to pass an aliased provider to resources inside a child module and refer to a provider configuration by its local name and alias, the first candidate Explicit child module provider mapping addresses pass an aliased provider to resources inside a child module; the second candidate Multiple regions in one configuration addresses create similar resources in different regions without duplicating the root module. This mapping fails because the second mechanism primarily supports the task to create similar resources in different regions without duplicating the root module; the actual requirements are pass an aliased provider to resources inside a child module first and refer to a provider configuration by its local name and alias second.

Question 786

A Terraform rollout has two separate requirements: first, order resources when one consumes an attribute produced by another; second, favor replacement resource creation before deletion of its predecessor. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use prevent_destroy lifecycle; then use ignore_changes lifecycle.
  2. First use ignore_changes lifecycle; then use create_before_destroy lifecycle.
  3. First use Implicit dependency from expression; then use create_before_destroy lifecycle.
  4. First use create_before_destroy lifecycle; then use Implicit dependency from expression.
  5. First use Implicit dependency from expression; then use prevent_destroy lifecycle.

Explanation

Correct Answer

C:

The first requirement, to order resources when one consumes an attribute produced by another, is handled by Implicit dependency from expression: Terraform derives an edge from an expression reference and schedules the producer first. The second requirement, to favor replacement resource creation before deletion of its predecessor, is handled by create_before_destroy lifecycle: The lifecycle rule changes replacement ordering when the provider and external constraints permit it. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to order resources when one consumes an attribute produced by another and favor replacement resource creation before deletion of its predecessor, the first candidate prevent_destroy lifecycle addresses protect a declared resource from plans that destroy its managed object; the second candidate ignore_changes lifecycle addresses suppress planned updates for selected externally managed attributes. This mapping fails because the first mechanism primarily supports the task to protect a declared resource from plans that destroy its managed object and the second mechanism primarily supports the task to suppress planned updates for selected externally managed attributes; the actual requirements are order resources when one consumes an attribute produced by another first and favor replacement resource creation before deletion of its predecessor second.

B:

For the requested tasks to order resources when one consumes an attribute produced by another and favor replacement resource creation before deletion of its predecessor, the first candidate ignore_changes lifecycle addresses suppress planned updates for selected externally managed attributes; the second candidate create_before_destroy lifecycle addresses favor replacement resource creation before deletion of its predecessor. This mapping fails because the first mechanism primarily supports the task to suppress planned updates for selected externally managed attributes; the actual requirements are order resources when one consumes an attribute produced by another first and favor replacement resource creation before deletion of its predecessor second.

D:

For the requested tasks to order resources when one consumes an attribute produced by another and favor replacement resource creation before deletion of its predecessor, the first candidate create_before_destroy lifecycle addresses favor replacement resource creation before deletion of its predecessor; the second candidate Implicit dependency from expression addresses order resources when one consumes an attribute produced by another. This mapping fails because the first mechanism primarily supports the task to favor replacement resource creation before deletion of its predecessor and the second mechanism primarily supports the task to order resources when one consumes an attribute produced by another; the actual requirements are order resources when one consumes an attribute produced by another first and favor replacement resource creation before deletion of its predecessor second.

E:

For the requested tasks to order resources when one consumes an attribute produced by another and favor replacement resource creation before deletion of its predecessor, the first candidate Implicit dependency from expression addresses order resources when one consumes an attribute produced by another; the second candidate prevent_destroy lifecycle addresses protect a declared resource from plans that destroy its managed object. This mapping fails because the second mechanism primarily supports the task to protect a declared resource from plans that destroy its managed object; the actual requirements are order resources when one consumes an attribute produced by another first and favor replacement resource creation before deletion of its predecessor second.

Question 787

A technical review has three distinct objectives: convert a saved plan into JSON for automated analysis; preview actions required to reach the declared infrastructure state; and focus on a small subset for exceptional repair or troubleshooting. Which THREE mechanisms should the team identify for these respective needs? Choose THREE.

  1. Machine-readable plan inspection
  2. terraform plan command
  3. Targeted planning
  4. Plan saved to file
  5. Refresh-only planning

Explanation

Correct Answers

A:

In the workflow combining convert a saved plan into JSON for automated analysis, preview actions required to reach the declared infrastructure state, and focus on a small subset for exceptional repair or troubleshooting, Machine-readable plan inspection correctly addresses the individual goal to convert a saved plan into JSON for automated analysis: terraform show -json change.tfplan exposes plan details for tooling. It is one of three separately required capabilities.

B:

In the workflow combining convert a saved plan into JSON for automated analysis, preview actions required to reach the declared infrastructure state, and focus on a small subset for exceptional repair or troubleshooting, terraform plan command correctly addresses the individual goal to preview actions required to reach the declared infrastructure state: terraform plan shows changes Terraform expects, including creates, updates, deletes, and replacements. It is one of three separately required capabilities.

C:

In the workflow combining convert a saved plan into JSON for automated analysis, preview actions required to reach the declared infrastructure state, and focus on a small subset for exceptional repair or troubleshooting, Targeted planning correctly addresses the individual goal to focus on a small subset for exceptional repair or troubleshooting: terraform plan -target=ADDRESS limits the planner's focus to the selected graph portion. It is one of three separately required capabilities.

Incorrect Answers

D:

Compared with the three tasks to convert a saved plan into JSON for automated analysis, preview actions required to reach the declared infrastructure state, and focus on a small subset for exceptional repair or troubleshooting, Plan saved to file primarily supports an unrelated request to capture one execution plan for later approval and application: terraform plan -out=change.tfplan saves an executable binary plan artifact. Therefore this option is not among the three specified mechanisms.

E:

Compared with the three tasks to convert a saved plan into JSON for automated analysis, preview actions required to reach the declared infrastructure state, and focus on a small subset for exceptional repair or troubleshooting, Refresh-only planning primarily supports an unrelated request to inspect externally changed infrastructure without planning configuration reconciliation: terraform plan -refresh-only proposes updates to state and outputs based on remote observations. Therefore this option is not among the three specified mechanisms.

Question 788

A technical review has three distinct objectives: change a resource state address to match a configuration refactor; recognize that a resource was changed outside Terraform; and rename a managed resource address without destroying its remote object. Which THREE mechanisms should the team identify for these respective needs? Choose THREE.

  1. Refresh-only reconciliation
  2. terraform state mv
  3. Remote drift detection during plan
  4. moved block for refactoring
  5. removed block with destroy=false

Explanation

Correct Answers

B:

In the workflow combining change a resource state address to match a configuration refactor, recognize that a resource was changed outside Terraform, and rename a managed resource address without destroying its remote object, terraform state mv correctly addresses the individual goal to change a resource state address to match a configuration refactor: state mv rebinds an existing object under a new compatible address. It is one of three separately required capabilities.

C:

In the workflow combining change a resource state address to match a configuration refactor, recognize that a resource was changed outside Terraform, and rename a managed resource address without destroying its remote object, Remote drift detection during plan correctly addresses the individual goal to recognize that a resource was changed outside Terraform: Normal plan refresh reads can reveal drift between state and the remote object. It is one of three separately required capabilities.

D:

In the workflow combining change a resource state address to match a configuration refactor, recognize that a resource was changed outside Terraform, and rename a managed resource address without destroying its remote object, moved block for refactoring correctly addresses the individual goal to rename a managed resource address without destroying its remote object: A moved block describes an address migration as part of configuration history. It is one of three separately required capabilities.

Incorrect Answers

A:

Compared with the three tasks to change a resource state address to match a configuration refactor, recognize that a resource was changed outside Terraform, and rename a managed resource address without destroying its remote object, Refresh-only reconciliation primarily supports an unrelated request to accept an external change into Terraform state without modifying remote infrastructure: A refresh-only plan or apply updates state and outputs to observed values. Therefore this option is not among the three specified mechanisms.

E:

Compared with the three tasks to change a resource state address to match a configuration refactor, recognize that a resource was changed outside Terraform, and rename a managed resource address without destroying its remote object, removed block with destroy=false primarily supports an unrelated request to stop tracking an object in state but deliberately leave it deployed: A removed block declares that Terraform should forget a resource without deleting it when destroy=false. Therefore this option is not among the three specified mechanisms.

Question 789

A Terraform rollout has two separate requirements: first, use a common language without pretending providers expose identical capabilities; second, abstract a deployment pattern while keeping provider details explicit. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Provider-specific implementation; then use Common Terraform lifecycle across providers.
  2. First use Multi-cloud provider configuration; then use Vendor portability through modules.
  3. First use Vendor portability through modules; then use Provider-specific implementation.
  4. First use Common Terraform lifecycle across providers; then use Multi-cloud provider configuration.
  5. First use Provider-specific implementation; then use Vendor portability through modules.

Explanation

Correct Answer

E:

The first requirement, to use a common language without pretending providers expose identical capabilities, is handled by Provider-specific implementation: HCL and workflow are common while each provider defines its own resource schema and service-specific behavior. The second requirement, to abstract a deployment pattern while keeping provider details explicit, is handled by Vendor portability through modules: A module can offer common input and output conventions even if its implementation uses provider-specific resources. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to use a common language without pretending providers expose identical capabilities and abstract a deployment pattern while keeping provider details explicit, the first candidate Provider-specific implementation addresses use a common language without pretending providers expose identical capabilities; the second candidate Common Terraform lifecycle across providers addresses plan and apply resources from several providers in one run. This mapping fails because the second mechanism primarily supports the task to plan and apply resources from several providers in one run; the actual requirements are use a common language without pretending providers expose identical capabilities first and abstract a deployment pattern while keeping provider details explicit second.

B:

For the requested tasks to use a common language without pretending providers expose identical capabilities and abstract a deployment pattern while keeping provider details explicit, the first candidate Multi-cloud provider configuration addresses manage different clouds from one Terraform root module; the second candidate Vendor portability through modules addresses abstract a deployment pattern while keeping provider details explicit. This mapping fails because the first mechanism primarily supports the task to manage different clouds from one Terraform root module; the actual requirements are use a common language without pretending providers expose identical capabilities first and abstract a deployment pattern while keeping provider details explicit second.

C:

For the requested tasks to use a common language without pretending providers expose identical capabilities and abstract a deployment pattern while keeping provider details explicit, the first candidate Vendor portability through modules addresses abstract a deployment pattern while keeping provider details explicit; the second candidate Provider-specific implementation addresses use a common language without pretending providers expose identical capabilities. This mapping fails because the first mechanism primarily supports the task to abstract a deployment pattern while keeping provider details explicit and the second mechanism primarily supports the task to use a common language without pretending providers expose identical capabilities; the actual requirements are use a common language without pretending providers expose identical capabilities first and abstract a deployment pattern while keeping provider details explicit second.

D:

For the requested tasks to use a common language without pretending providers expose identical capabilities and abstract a deployment pattern while keeping provider details explicit, the first candidate Common Terraform lifecycle across providers addresses plan and apply resources from several providers in one run; the second candidate Multi-cloud provider configuration addresses manage different clouds from one Terraform root module. This mapping fails because the first mechanism primarily supports the task to plan and apply resources from several providers in one run and the second mechanism primarily supports the task to manage different clouds from one Terraform root module; the actual requirements are use a common language without pretending providers expose identical capabilities first and abstract a deployment pattern while keeping provider details explicit second.

Question 790

A Terraform rollout has two separate requirements: first, constrain a module to releases with an expected interface; second, select module releases meeting a declared compatibility range. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Exact registry module version; then use Module upgrade through init.
  2. First use Registry module version constraint; then use Module release compatibility.
  3. First use Module release compatibility; then use Registry module version constraint.
  4. First use Module release compatibility; then use Exact registry module version.
  5. First use Module upgrade through init; then use Registry module version constraint.

Explanation

Correct Answer

C:

The first requirement, to constrain a module to releases with an expected interface, is handled by Module release compatibility: A version range helps avoid inadvertently selecting a module revision with breaking input or output changes. The second requirement, to select module releases meeting a declared compatibility range, is handled by Registry module version constraint: A registry module call accepts a version argument that chooses supported release versions. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to constrain a module to releases with an expected interface and select module releases meeting a declared compatibility range, the first candidate Exact registry module version addresses make a published module dependency deterministic across clean installs; the second candidate Module upgrade through init addresses fetch a newly allowed version after editing the module version requirement. This mapping fails because the first mechanism primarily supports the task to make a published module dependency deterministic across clean installs and the second mechanism primarily supports the task to fetch a newly allowed version after editing the module version requirement; the actual requirements are constrain a module to releases with an expected interface first and select module releases meeting a declared compatibility range second.

B:

For the requested tasks to constrain a module to releases with an expected interface and select module releases meeting a declared compatibility range, the first candidate Registry module version constraint addresses select module releases meeting a declared compatibility range; the second candidate Module release compatibility addresses constrain a module to releases with an expected interface. This mapping fails because the first mechanism primarily supports the task to select module releases meeting a declared compatibility range and the second mechanism primarily supports the task to constrain a module to releases with an expected interface; the actual requirements are constrain a module to releases with an expected interface first and select module releases meeting a declared compatibility range second.

D:

For the requested tasks to constrain a module to releases with an expected interface and select module releases meeting a declared compatibility range, the first candidate Module release compatibility addresses constrain a module to releases with an expected interface; the second candidate Exact registry module version addresses make a published module dependency deterministic across clean installs. This mapping fails because the second mechanism primarily supports the task to make a published module dependency deterministic across clean installs; the actual requirements are constrain a module to releases with an expected interface first and select module releases meeting a declared compatibility range second.

E:

For the requested tasks to constrain a module to releases with an expected interface and select module releases meeting a declared compatibility range, the first candidate Module upgrade through init addresses fetch a newly allowed version after editing the module version requirement; the second candidate Registry module version constraint addresses select module releases meeting a declared compatibility range. This mapping fails because the first mechanism primarily supports the task to fetch a newly allowed version after editing the module version requirement; the actual requirements are constrain a module to releases with an expected interface first and select module releases meeting a declared compatibility range second.

HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests