100% Latest & Updated HashiCorp Terraform Associate 004 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 200
A Terraform platform team is coordinating 3 independent decisions. Workstream A: An engineer sees a data block representing a preexisting DNS zone and wants to delete that DNS zone with terraform destroy. and Workstream B: A child module must receive two non-default provider aliases for cross-region VPN creation. and Workstream C: A team needs one shared network workspace to finish before dependent application workspaces start their own updates. Select exactly 3 actions, one addressing each distinct workstream.
- Use an appropriate moved block to preserve the instance's state address during the refactor.
- Use suitable HCP Terraform workspace run triggers where supported to coordinate dependent runs.
- Run terraform fmt -recursive on the intended directory tree after reviewing the file scope.
- Declare aliases in the child required_providers and explicitly pass both in the parent module.providers mapping.
- Move to an appropriate shared backend with concurrency controls so both plans use the same authoritative state.
- Manage lifecycle through an explicit resource binding only if ownership is intended; a data source alone cannot delete the looked-up zone.
Explanation
Correct Answers
B:For the workstream in which a team needs one shared network workspace to finish before dependent application workspaces start their own updates, use this action: Use suitable HCP Terraform workspace run triggers where supported to coordinate dependent runs. Workspace run triggers support sequencing while keeping workspace state boundaries separate. Verify: A successful upstream application can queue the configured downstream workspace run. Limitation: Run triggers coordinate workspace runs but do not automatically express every cross-workspace data dependency.
D:For the workstream in which a child module must receive two non-default provider aliases for cross-region VPN creation, use this action: Declare aliases in the child required_providers and explicitly pass both in the parent module.providers mapping. Cross-region reusable modules should receive provider configurations from the caller. Verify: The child's plan uses the two exact provider instances rather than silently defaulting to one region. Limitation: An alias without a corresponding provider mapping is not inherited automatically.
F:For the workstream in which an engineer sees a data block representing a preexisting DNS zone and wants to delete that DNS zone with terraform destroy, use this action: Manage lifecycle through an explicit resource binding only if ownership is intended; a data source alone cannot delete the looked-up zone. A data source reads provider information rather than creating a resource state binding for lifecycle ownership. Verify: Destroy plans do not include deleting an object solely because a data block queried it. Limitation: Converting a shared data lookup to a managed resource demands an ownership and import decision.
Incorrect Answers
A:This action is appropriate instead for a different, unlisted requirement: A resource was renamed from aws_instance.app to aws_instance.frontend in HCL, but it is the same underlying VM. It would be checked by: The plan reports an address move instead of unnecessary destruction and recreation. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.
C:This action is appropriate instead for a different, unlisted requirement: A developer needs to format all Terraform files in nested module directories as part of a repository cleanup. It would be checked by: The command rewrites formatting of Terraform configuration files in nested directories. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.
E:This action is appropriate instead for a different, unlisted requirement: Two engineers share one project but each stores a different local state file and independently sees new resources in their plans. It would be checked by: Both operators observe the same resource addresses and coordinated state updates. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.
Question 201
An infrastructure team faces this specific situation: A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. Which Terraform action most directly satisfies the requirement?
- Index the resource collection by its actual for_each key rather than assuming numeric list positions.
- Add an explicit depends_on referencing the policy attachment resource for the hidden operational dependency.
- Pass values through appropriate .tfvars files or documented TF_VAR_name environment variables.
- Reference the selected data source attribute in the managed resource's image argument.
Explanation
Correct Answer
D:Reference the selected data source attribute in the managed resource's image argument. Data sources provide read-only values that can feed managed resource configuration. Verify: The plan resolves the image lookup and uses its ID in the VM resource configuration. Limitation: An automatically changing latest-image lookup may propose later VM replacements depending on resource schema.
Incorrect Answers
A:This is linked to a different situation: A module uses for_each on a map of regions and must output one subnet ID for the us-east-1 instance. There the relevant decision is: Index the resource collection by its actual for_each key rather than assuming numeric list positions. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant decision is: Reference the selected data source attribute in the managed resource's image argument. It would therefore not resolve or assess the case as stated.
B:This is linked to a different situation: A firewall rule should be provisioned only after a policy attachment exists, but the rule's arguments do not reference that attachment. There the relevant decision is: Add an explicit depends_on referencing the policy attachment resource for the hidden operational dependency. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant decision is: Reference the selected data source attribute in the managed resource's image argument. It would therefore not resolve or assess the case as stated.
C:This is linked to a different situation: A deployment job must supply different nonsecret inputs for each pipeline run without editing source-controlled HCL. There the relevant decision is: Pass values through appropriate .tfvars files or documented TF_VAR_name environment variables. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant decision is: Reference the selected data source attribute in the managed resource's image argument. It would therefore not resolve or assess the case as stated.
Question 202
A reviewer is confirming a change for the following use case: A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. The implementation follows this approach: Reference the selected data source attribute in the managed resource's image argument. Which observation or acceptance test most directly verifies the intended result?
- The ephemeral value is supplied for the operation but omitted from saved state and plan data.
- The selected environment returns the class value under the requested map key.
- The plan resolves the image lookup and uses its ID in the VM resource configuration.
- Invalid records with wrong attribute types fail validation rather than causing obscure downstream errors.
Explanation
Correct Answer
C:Acceptance evidence: The plan resolves the image lookup and uses its ID in the VM resource configuration. It validates the proposed action, reference the selected data source attribute in the managed resource's image argument, because data sources provide read-only values that can feed managed resource configuration. Remaining limitation: An automatically changing latest-image lookup may propose later VM replacements depending on resource schema.
Incorrect Answers
A:This is linked to a different situation: A short-lived token must be used during an operation, and auditors require that the token not be written to a plan file. There the relevant acceptance is: The ephemeral value is supplied for the operation but omitted from saved state and plan data. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant acceptance is: The plan resolves the image lookup and uses its ID in the VM resource configuration. It would therefore not resolve or assess the case as stated.
B:This is linked to a different situation: A configuration needs a map from environment names to individually selected instance classes, with each value a string. There the relevant acceptance is: The selected environment returns the class value under the requested map key. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant acceptance is: The plan resolves the image lookup and uses its ID in the VM resource configuration. It would therefore not resolve or assess the case as stated.
D:This is linked to a different situation: A developer defines a subnet inventory in which every subnet has cidr, zone, and public attributes, and needs reliable shape checking. There the relevant acceptance is: Invalid records with wrong attribute types fail validation rather than causing obscure downstream errors. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant acceptance is: The plan resolves the image lookup and uses its ID in the VM resource configuration. It would therefore not resolve or assess the case as stated.
Question 203
Consider a proposed solution for this requirement: A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. The team plans to do the following: Reference the selected data source attribute in the managed resource's image argument. Which limitation or operational caveat must remain in the review?
- An automatically changing latest-image lookup may propose later VM replacements depending on resource schema.
- A missing map key causes an expression error unless a default is explicitly handled.
- Order-sensitive outputs should not be built from unordered map iteration without intentional sorting.
- An object type is not interchangeable with any arbitrary map if its declared attributes differ.
Explanation
Correct Answer
A:The limitation is an automatically changing latest-image lookup may propose later VM replacements depending on resource schema. The proposed change is reference the selected data source attribute in the managed resource's image argument. Validate it by checking the plan resolves the image lookup and uses its ID in the VM resource configuration. Data sources provide read-only values that can feed managed resource configuration.
Incorrect Answers
B:This is linked to a different situation: A configuration needs a map from environment names to individually selected instance classes, with each value a string. There the relevant limitation is: A missing map key causes an expression error unless a default is explicitly handled. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant limitation is: An automatically changing latest-image lookup may propose later VM replacements depending on resource schema. It would therefore not resolve or assess the case as stated.
C:This is linked to a different situation: A module emits an ordered list of three subnet IDs aligned with ordered availability zones and consumers depend on position. There the relevant limitation is: Order-sensitive outputs should not be built from unordered map iteration without intentional sorting. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant limitation is: An automatically changing latest-image lookup may propose later VM replacements depending on resource schema. It would therefore not resolve or assess the case as stated.
D:This is linked to a different situation: A developer defines a subnet inventory in which every subnet has cidr, zone, and public attributes, and needs reliable shape checking. There the relevant limitation is: An object type is not interchangeable with any arbitrary map if its declared attributes differ. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant limitation is: An automatically changing latest-image lookup may propose later VM replacements depending on resource schema. It would therefore not resolve or assess the case as stated.
Question 204
The team is reviewing a Terraform implementation for this case: A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. Which tempting assumption would be specifically incorrect for this proposed implementation?
- Use dynamic to create multiple top-level resource blocks directly inside one resource.
- Use type string for the entire nested subnet inventory and rely on implicit parsing of every field.
- Assume a root variable of the same name is implicitly imported into all children.
- Hardcode a stale image identifier while retaining a data source solely as decoration.
Explanation
Correct Answer
D:Reject the assumption: Hardcode a stale image identifier while retaining a data source solely as decoration. Instead, reference the selected data source attribute in the managed resource's image argument. Data sources provide read-only values that can feed managed resource configuration. Acceptance evidence: The plan resolves the image lookup and uses its ID in the VM resource configuration.
Incorrect Answers
A:This is linked to a different situation: A security group requires multiple repeated ingress blocks derived from a variable collection, and copy-pasting blocks is error-prone. There the relevant misconception is: Use dynamic to create multiple top-level resource blocks directly inside one resource. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant misconception is: Hardcode a stale image identifier while retaining a data source solely as decoration. It would therefore not resolve or assess the case as stated.
B:This is linked to a different situation: A developer defines a subnet inventory in which every subnet has cidr, zone, and public attributes, and needs reliable shape checking. There the relevant misconception is: Use type string for the entire nested subnet inventory and rely on implicit parsing of every field. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant misconception is: Hardcode a stale image identifier while retaining a data source solely as decoration. It would therefore not resolve or assess the case as stated.
C:This is linked to a different situation: A child module expects a variable named subnet_ids, but the calling root references an undeclared variable from inside the child. There the relevant misconception is: Assume a root variable of the same name is implicitly imported into all children. For the question's actual requirement — A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. — the specifically relevant misconception is: Hardcode a stale image identifier while retaining a data source solely as decoration. It would therefore not resolve or assess the case as stated.
Question 205
A Terraform platform team is coordinating 2 independent decisions. Workstream A: A module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier. and Workstream B: A team uses a module from the public registry and needs to prevent unreviewed minor changes after a security assessment. Select exactly 2 actions, one addressing each distinct workstream.
- Specify a reviewed registry-module version constraint in the module block.
- Configure the workspace's VCS connection, working directory, and run triggers for the intended branch.
- Reference the selected data source attribute in the managed resource's image argument.
- Create an appropriately scoped HCP Terraform variable set applied to those project workspaces.
- Reuse one reviewed Terraform module with explicit environment inputs instead of independently editing each deployment.
Explanation
Correct Answers
A:For the workstream in which a team uses a module from the public registry and needs to prevent unreviewed minor changes after a security assessment, use this action: Specify a reviewed registry-module version constraint in the module block. Registry module versions can be constrained explicitly in module calls. Verify: Initialization selects a module release satisfying the stated registry version requirement. Limitation: Registry-module versions are separate from provider lock-file selections and Terraform CLI versions.
C:For the workstream in which a module uses a provider data source to find the newest image and a resource block to launch a VM from its returned identifier, use this action: Reference the selected data source attribute in the managed resource's image argument. Data sources provide read-only values that can feed managed resource configuration. Verify: The plan resolves the image lookup and uses its ID in the VM resource configuration. Limitation: An automatically changing latest-image lookup may propose later VM replacements depending on resource schema.
Incorrect Answers
B:This option addresses a separate requirement: A development team connects one infrastructure repository to an HCP Terraform workspace and expects reviewed commits to trigger plans. Evidence for that other requirement would be a relevant commit produces a workspace run and pull requests can show speculative plans if configured; neither listed workstream asks for it.
D:This option addresses a separate requirement: A platform administrator must reuse one nonsecret provider configuration variable across multiple workspaces in the same HCP project. Evidence for that other requirement would be new and existing workspaces in the project receive the intended shared variable; neither listed workstream asks for it.
E:This option addresses a separate requirement: Two branches of a retailer deploy similar staging clusters, but each hand-built cluster gradually acquires different firewall rules. Evidence for that other requirement would be review version-control diffs and compare planned firewall changes for both environments; neither listed workstream asks for it.
Question 206
An infrastructure team faces this specific situation: A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. Which Terraform action most directly satisfies the requirement?
- Use a dynamic nested block for the repeatable ingress structure when the provider schema allows it.
- Use a list(string) or tuple with explicit ordering semantics rather than a set.
- Declare the child's input variable and pass subnet_ids explicitly through its module block arguments.
- Reference the security group resource attribute directly from the database argument.
Explanation
Correct Answer
D:Reference the security group resource attribute directly from the database argument. Cross-resource references connect outputs to inputs and usually create implicit dependencies. Verify: Terraform's graph records the dependency and plans the database with the correct group identifier. Limitation: An attribute may be unknown until apply, but Terraform can still preserve the dependency graph.
Incorrect Answers
A:This is linked to a different situation: A security group requires multiple repeated ingress blocks derived from a variable collection, and copy-pasting blocks is error-prone. There the relevant decision is: Use a dynamic nested block for the repeatable ingress structure when the provider schema allows it. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant decision is: Reference the security group resource attribute directly from the database argument. It would therefore not resolve or assess the case as stated.
B:This is linked to a different situation: A module emits an ordered list of three subnet IDs aligned with ordered availability zones and consumers depend on position. There the relevant decision is: Use a list(string) or tuple with explicit ordering semantics rather than a set. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant decision is: Reference the security group resource attribute directly from the database argument. It would therefore not resolve or assess the case as stated.
C:This is linked to a different situation: A child module expects a variable named subnet_ids, but the calling root references an undeclared variable from inside the child. There the relevant decision is: Declare the child's input variable and pass subnet_ids explicitly through its module block arguments. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant decision is: Reference the security group resource attribute directly from the database argument. It would therefore not resolve or assess the case as stated.
Question 207
A reviewer is confirming a change for the following use case: A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. The implementation follows this approach: Reference the security group resource attribute directly from the database argument. Which observation or acceptance test most directly verifies the intended result?
- A failed check appears as a diagnostic rather than necessarily blocking the run like a precondition.
- Terraform's graph records the dependency and plans the database with the correct group identifier.
- A change to one hostname affects its keyed address instead of renumbering unrelated instances.
- The child's configuration validates and resolves the provided subnet IDs in its own scope.
Explanation
Correct Answer
B:Acceptance evidence: Terraform's graph records the dependency and plans the database with the correct group identifier. It validates the proposed action, reference the security group resource attribute directly from the database argument, because cross-resource references connect outputs to inputs and usually create implicit dependencies. Remaining limitation: An attribute may be unknown until apply, but Terraform can still preserve the dependency graph.
Incorrect Answers
A:This is linked to a different situation: An operations group wants an infrastructure health assertion that can report a diagnostic without behaving exactly like a resource precondition. There the relevant acceptance is: A failed check appears as a diagnostic rather than necessarily blocking the run like a precondition. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant acceptance is: Terraform's graph records the dependency and plans the database with the correct group identifier. It would therefore not resolve or assess the case as stated.
C:This is linked to a different situation: An application team must create one DNS record per hostname from a stable set of known domain names. There the relevant acceptance is: A change to one hostname affects its keyed address instead of renumbering unrelated instances. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant acceptance is: Terraform's graph records the dependency and plans the database with the correct group identifier. It would therefore not resolve or assess the case as stated.
D:This is linked to a different situation: A child module expects a variable named subnet_ids, but the calling root references an undeclared variable from inside the child. There the relevant acceptance is: The child's configuration validates and resolves the provided subnet IDs in its own scope. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant acceptance is: Terraform's graph records the dependency and plans the database with the correct group identifier. It would therefore not resolve or assess the case as stated.
Question 208
Consider a proposed solution for this requirement: A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. The team plans to do the following: Reference the security group resource attribute directly from the database argument. Which limitation or operational caveat must remain in the review?
- Ephemeral values have context restrictions and cannot be inserted into arbitrary persistent expressions.
- Both branches need compatible types and the condition must be a boolean expression.
- The data source requires access and will fail if its lookup criteria match no suitable object.
- An attribute may be unknown until apply, but Terraform can still preserve the dependency graph.
Explanation
Correct Answer
D:The limitation is an attribute may be unknown until apply, but Terraform can still preserve the dependency graph. The proposed change is reference the security group resource attribute directly from the database argument. Validate it by checking terraform's graph records the dependency and plans the database with the correct group identifier. Cross-resource references connect outputs to inputs and usually create implicit dependencies.
Incorrect Answers
A:This is linked to a different situation: A short-lived token must be used during an operation, and auditors require that the token not be written to a plan file. There the relevant limitation is: Ephemeral values have context restrictions and cannot be inserted into arbitrary persistent expressions. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant limitation is: An attribute may be unknown until apply, but Terraform can still preserve the dependency graph. It would therefore not resolve or assess the case as stated.
B:This is linked to a different situation: A deployment needs to choose a service hostname based on whether the environment is production. There the relevant limitation is: Both branches need compatible types and the condition must be a boolean expression. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant limitation is: An attribute may be unknown until apply, but Terraform can still preserve the dependency graph. It would therefore not resolve or assess the case as stated.
C:This is linked to a different situation: A web team must create a new load balancer and also look up an existing shared network ID managed by another team. There the relevant limitation is: The data source requires access and will fail if its lookup criteria match no suitable object. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant limitation is: An attribute may be unknown until apply, but Terraform can still preserve the dependency graph. It would therefore not resolve or assess the case as stated.
Question 209
The team is reviewing a Terraform implementation for this case: A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. Which tempting assumption would be specifically incorrect for this proposed implementation?
- Use a resource declaration for the shared network and assume Terraform only reads it.
- Use count with changing list positions while assuming unrelated indices can never shift.
- Assume a root variable of the same name is implicitly imported into all children.
- Manually type an anticipated generated security group ID into a constant before creation.
Explanation
Correct Answer
D:Reject the assumption: Manually type an anticipated generated security group ID into a constant before creation. Instead, reference the security group resource attribute directly from the database argument. Cross-resource references connect outputs to inputs and usually create implicit dependencies. Acceptance evidence: Terraform's graph records the dependency and plans the database with the correct group identifier.
Incorrect Answers
A:This is linked to a different situation: A web team must create a new load balancer and also look up an existing shared network ID managed by another team. There the relevant misconception is: Use a resource declaration for the shared network and assume Terraform only reads it. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant misconception is: Manually type an anticipated generated security group ID into a constant before creation. It would therefore not resolve or assess the case as stated.
B:This is linked to a different situation: An application team must create one DNS record per hostname from a stable set of known domain names. There the relevant misconception is: Use count with changing list positions while assuming unrelated indices can never shift. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant misconception is: Manually type an anticipated generated security group ID into a constant before creation. It would therefore not resolve or assess the case as stated.
C:This is linked to a different situation: A child module expects a variable named subnet_ids, but the calling root references an undeclared variable from inside the child. There the relevant misconception is: Assume a root variable of the same name is implicitly imported into all children. For the question's actual requirement — A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. — the specifically relevant misconception is: Manually type an anticipated generated security group ID into a constant before creation. It would therefore not resolve or assess the case as stated.
Question 210
A Terraform platform team is coordinating 3 independent decisions. Workstream A: A database security group must be passed into a managed database resource without copying IDs into hardcoded variables. and Workstream B: A registry module release contains an urgent fix and the team's installed module is still the previous compatible release. and Workstream C: A team is migrating existing local state into HCP Terraform and wants to avoid accidental duplicate resource creation. Select exactly 3 actions, one addressing each distinct workstream.
- Review the intended registry release and run terraform init -upgrade after updating constraints as needed.
- Explain that Terraform compares current configuration with state bindings and plans to reconcile deleted declarations.
- Reuse one reviewed Terraform module with explicit environment inputs instead of independently editing each deployment.
- Reference the security group resource attribute directly from the database argument.
- Back up state, configure HCP cloud integration, and follow the prompted state migration during initialization.
- Configure default and aliased AWS providers and assign the disaster-recovery resource to the alias.
Explanation
Correct Answers
A:For the workstream in which a registry module release contains an urgent fix and the team's installed module is still the previous compatible release, use this action: Review the intended registry release and run terraform init -upgrade after updating constraints as needed. Module upgrade changes downloaded code, not state ownership by itself. Verify: The initialized module source matches the new permitted version and the resulting plan is reviewed. Limitation: An upgrade may change resources and output interfaces; it needs an impact review before apply.
D:For the workstream in which a database security group must be passed into a managed database resource without copying IDs into hardcoded variables, use this action: Reference the security group resource attribute directly from the database argument. Cross-resource references connect outputs to inputs and usually create implicit dependencies. Verify: Terraform's graph records the dependency and plans the database with the correct group identifier. Limitation: An attribute may be unknown until apply, but Terraform can still preserve the dependency graph.
E:For the workstream in which a team is migrating existing local state into HCP Terraform and wants to avoid accidental duplicate resource creation, use this action: Back up state, configure HCP cloud integration, and follow the prompted state migration during initialization. State migration preserves the mapping between configuration addresses and existing objects. Verify: The HCP workspace contains the existing managed addresses after migration and normal plan does not re-create all resources. Limitation: Migration needs destination permissions, correct workspace identity, and validation of resulting state.
Incorrect Answers
B:This action is appropriate instead for a different, unlisted requirement: An operator asks why deleting one resource stanza from a configuration can cause a production object to be proposed for destruction. It would be checked by: A plan shows the bound object as no longer desired when its resource address disappears from configuration. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.
C:This action is appropriate instead for a different, unlisted requirement: Two branches of a retailer deploy similar staging clusters, but each hand-built cluster gradually acquires different firewall rules. It would be checked by: Review version-control diffs and compare planned firewall changes for both environments. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.
F:This action is appropriate instead for a different, unlisted requirement: An infrastructure release creates AWS resources in two regions, with a disaster-recovery instance explicitly assigned to the second region. It would be checked by: The plan identifies primary and recovery resources using the intended regional provider instances. None of the 3 specified workstreams calls for this action; their correct choices directly solve the identified cases.
HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests