Question 70
A colleague recommends the Terraform concept "Local workspace state files". Which use case best matches it?
- distinguish state of different local Terraform workspaces
- avoid using workstation files as the source of truth for team deployments
- prevent unauthorized reading of saved infrastructure metadata
- place an isolated sandbox state file away from another lab's state
Explanation
Correct Answer
A:The practical result of Local workspace state files, used to distinguish state of different local Terraform workspaces, is: Non-default local workspace state snapshots can be kept in a terraform.tfstate.d structure. A qualification for this effect is: Separate workspace state does not change the configuration code automatically.
Incorrect Answers
B:That outcome applies to Local backend and shared CI, intended to avoid using workstation files as the source of truth for team deployments, rather than the question's feature Local workspace state files: Local state is best suited to isolated or experimental work rather than competing team runners. Unlike Local backend and shared CI, Local workspace state files is intended to distinguish state of different local Terraform workspaces, not to avoid using workstation files as the source of truth for team deployments.
C:That outcome applies to Local state access controls, intended to prevent unauthorized reading of saved infrastructure metadata, rather than the question's feature Local workspace state files: Filesystem permissions and secure workstation handling matter when state stays local. Unlike Local state access controls, Local workspace state files is intended to distinguish state of different local Terraform workspaces, not to prevent unauthorized reading of saved infrastructure metadata.
D:That outcome applies to Custom local state path, intended to place an isolated sandbox state file away from another lab's state, rather than the question's feature Local workspace state files: A local backend path can separate state storage from another configuration's snapshot. Unlike Custom local state path, Local workspace state files is intended to distinguish state of different local Terraform workspaces, not to place an isolated sandbox state file away from another lab's state.
Question 71
A team reviews the use of Git-hosted module source in Terraform 1.12. Which purpose matches its actual behavior?
- choose an explicit compatible release of a registry module
- use a chosen module branch, tag, or commit from a Git source
- reference a reusable Terraform module from a VCS repository
- find documented reusable modules rather than copying configurations manually
Explanation
Correct Answer
C:The practical result of Git-hosted module source, used to reference a reusable Terraform module from a VCS repository, is: A git:: URL can fetch a module from a Git repository using supported source syntax. A qualification for this effect is: A Git module is not selected by the registry-only version argument.
Incorrect Answers
A:That outcome applies to Registry module version selection, intended to choose an explicit compatible release of a registry module, rather than the question's feature Git-hosted module source: The version argument on a registry module call constrains which published module release is installed. Unlike Registry module version selection, Git-hosted module source is intended to reference a reusable Terraform module from a VCS repository, not to choose an explicit compatible release of a registry module.
B:That outcome applies to Pinned Git module ref, intended to use a chosen module branch, tag, or commit from a Git source, rather than the question's feature Git-hosted module source: A Git module source can use ?ref=... to select the intended revision. Unlike Pinned Git module ref, Git-hosted module source is intended to reference a reusable Terraform module from a VCS repository, not to use a chosen module branch, tag, or commit from a Git source.
D:That outcome applies to Module discovery in registry, intended to find documented reusable modules rather than copying configurations manually, rather than the question's feature Git-hosted module source: The Terraform Registry and private module registries can publish modules with inputs and outputs. Unlike Module discovery in registry, Git-hosted module source is intended to reference a reusable Terraform module from a VCS repository, not to find documented reusable modules rather than copying configurations manually.
Question 72
An operator chooses the mechanism "HCP Terraform remote execution" for a Terraform project. Which outcome should this choice support?
- isolate the state, variables, and run history for one managed infrastructure unit
- execute Terraform operations in a managed remote runtime
- store workspace state centrally rather than on a personal machine
- review a planned change in the HCP Terraform run interface before apply
Explanation
Correct Answer
B:The practical result of HCP Terraform remote execution, used to execute Terraform operations in a managed remote runtime, is: HCP Terraform can run plans and applies outside a developer's workstation under workspace controls. A qualification for this effect is: Remote execution still needs provider credentials and connectivity.
Incorrect Answers
A:That outcome applies to HCP Terraform workspace, intended to isolate the state, variables, and run history for one managed infrastructure unit, rather than the question's feature HCP Terraform remote execution: An HCP Terraform workspace organizes a Terraform run context with its own state and configuration connection. Unlike HCP Terraform workspace, HCP Terraform remote execution is intended to execute Terraform operations in a managed remote runtime, not to isolate the state, variables, and run history for one managed infrastructure unit.
C:That outcome applies to HCP Terraform state storage, intended to store workspace state centrally rather than on a personal machine, rather than the question's feature HCP Terraform remote execution: HCP Terraform manages workspace state snapshots with controlled access and history. Unlike HCP Terraform state storage, HCP Terraform remote execution is intended to execute Terraform operations in a managed remote runtime, not to store workspace state centrally rather than on a personal machine.
D:The outcome in this option belongs to Remote run approval: An HCP workspace can separate planning and apply confirmation for controlled changes; by contrast, the feature actually named in the stem, HCP Terraform remote execution, has a distinct purpose: to execute Terraform operations in a managed remote runtime.
Question 73
An operator chooses the mechanism "Read-only cross-account lookup" for a Terraform project. Which outcome should this choice support?
- look up an existing object to use its attributes without managing its lifecycle
- obtain a shared network identifier owned by a different deployment team
- ask Terraform to create and maintain an infrastructure object
- identify a pre-existing infrastructure object using provider-supported search criteria
- distinguish a provider-defined resource kind from its Terraform address label
Explanation
Correct Answer
B:The practical result of Read-only cross-account lookup, used to obtain a shared network identifier owned by a different deployment team, is: A data source reads a shared object if the provider configuration has permission to access it. A qualification for this effect is: Reading does not transfer ownership to the consuming root module.
Incorrect Answers
A:That outcome applies to Data source block, intended to look up an existing object to use its attributes without managing its lifecycle, rather than the question's feature Read-only cross-account lookup: A data block asks its provider to read information; its attributes can feed other expressions. Unlike Data source block, Read-only cross-account lookup is intended to obtain a shared network identifier owned by a different deployment team, not to look up an existing object to use its attributes without managing its lifecycle.
C:That outcome applies to Managed resource block, intended to ask Terraform to create and maintain an infrastructure object, rather than the question's feature Read-only cross-account lookup: A resource block declares a managed object whose lifecycle Terraform reconciles through a provider. Unlike Managed resource block, Read-only cross-account lookup is intended to obtain a shared network identifier owned by a different deployment team, not to ask Terraform to create and maintain an infrastructure object.
D:That outcome applies to Data source lookup filters, intended to identify a pre-existing infrastructure object using provider-supported search criteria, rather than the question's feature Read-only cross-account lookup: Data source arguments let the provider identify an existing object, often by name or tags. Unlike Data source lookup filters, Read-only cross-account lookup is intended to obtain a shared network identifier owned by a different deployment team, not to identify a pre-existing infrastructure object using provider-supported search criteria.
E:That outcome applies to Resource type and local name, intended to distinguish a provider-defined resource kind from its Terraform address label, rather than the question's feature Read-only cross-account lookup: A resource block has both a resource type and local name, forming references like aws_vpc.main. Unlike Resource type and local name, Read-only cross-account lookup is intended to obtain a shared network identifier owned by a different deployment team, not to distinguish a provider-defined resource kind from its Terraform address label.
Question 74
The team is documenting risks of Declarative infrastructure model while planning to specify an end state rather than every API request. Which caveat specifically applies to that mechanism?
- It does not mean Terraform can automatically infer missing provider configuration.
- A resource declaration is not the same as a read-only data lookup.
- An external drift or changed input can still cause a nonempty plan.
- The configuration still needs a tool and credentials to change actual systems.
Explanation
Correct Answer
A:For Declarative infrastructure model in the task to specify an end state rather than every API request, the important caution is: It does not mean Terraform can automatically infer missing provider configuration. The reason this matters is its actual behavior: A declarative model states the desired objects and lets Terraform determine an execution path from configuration and state.
Incorrect Answers
B:The proposed warning belongs to Terraform resource declaration, which serves the different goal to describe one managed infrastructure object in a configuration, rather than to Declarative infrastructure model: A resource block represents an object that Terraform will create, update, or destroy through a provider. The question concerns Declarative infrastructure model acting to specify an end state rather than every API request, not a limit of Terraform resource declaration.
C:The proposed warning belongs to Idempotent reconciliation, which serves the different goal to repeat an apply without recreating already matching resources, rather than to Declarative infrastructure model: Terraform compares desired configuration with prior state and refreshed remote information and normally plans no change when they agree. The question concerns Declarative infrastructure model acting to specify an end state rather than every API request, not a limit of Idempotent reconciliation.
D:The proposed warning belongs to Infrastructure as code definition, which serves the different goal to represent desired infrastructure in reviewable configuration files, rather than to Declarative infrastructure model: Infrastructure as code describes infrastructure through machine-readable files instead of relying only on manual console operations. The question concerns Declarative infrastructure model acting to specify an end state rather than every API request, not a limit of Infrastructure as code definition.
Question 75
The team is documenting risks of Configuration-driven import block while planning to declare an import target for normal planning and apply. Which caveat specifically applies to that mechanism?
- A remote object ID is not interchangeable with the Terraform address.
- A post-import plan must still be checked for configuration differences.
- The import command alone does not generate a complete root configuration.
- The matching managed resource configuration must exist or be generated appropriately.
Explanation
Correct Answer
D:For Configuration-driven import block in the task to declare an import target for normal planning and apply, the important caution is: The matching managed resource configuration must exist or be generated appropriately. The reason this matters is its actual behavior: An import block can specify a resource address and provider-specific identity for import.
Incorrect Answers
A:The proposed warning belongs to Import resource address matching, which serves the different goal to map a discovered object to the intended Terraform resource instance address, rather than to Configuration-driven import block: Import uses a Terraform resource address that corresponds to the configuration intended to manage the object. The question concerns Configuration-driven import block acting to declare an import target for normal planning and apply, not a limit of Import resource address matching.
B:The proposed warning belongs to Import without recreation, which serves the different goal to adopt an existing object rather than creating a new duplicate, rather than to Configuration-driven import block: Import connects an existing provider object to the Terraform state mapping. The question concerns Configuration-driven import block acting to declare an import target for normal planning and apply, not a limit of Import without recreation.
C:The proposed warning belongs to terraform import CLI, which serves the different goal to bring a pre-existing remote object under a resource address in Terraform state, rather than to Configuration-driven import block: terraform import ADDRESS ID binds the specified remote object to a declared resource instance. The question concerns Configuration-driven import block acting to declare an import target for normal planning and apply, not a limit of terraform import CLI.
Question 76
The team is documenting risks of Plan refresh and graph evaluation while planning to reason about dependencies before Terraform proposes remote operations. Which caveat specifically applies to that mechanism?
- Saved plans may contain sensitive values and must be protected.
- Version control approval alone does not guarantee the exact reviewed plan is used.
- Destroy and import are maintenance actions rather than steps in every routine run.
- The graph is not simply a sequential list ordered by file line number.
Explanation
Correct Answer
D:For Plan refresh and graph evaluation in the task to reason about dependencies before Terraform proposes remote operations, the important caution is: The graph is not simply a sequential list ordered by file line number. The reason this matters is its actual behavior: Terraform evaluates configuration, state, and provider information to construct an action graph.
Incorrect Answers
A:The proposed warning belongs to Saved plan promotion, which serves the different goal to apply the reviewed plan artifact rather than recomputing from changed inputs, rather than to Plan refresh and graph evaluation: terraform plan -out creates a binary plan that terraform apply can execute by file name. The question concerns Plan refresh and graph evaluation acting to reason about dependencies before Terraform proposes remote operations, not a limit of Saved plan promotion.
B:The proposed warning belongs to Collaborative review before apply, which serves the different goal to separate proposing infrastructure changes from authorizing them, rather than to Plan refresh and graph evaluation: Teams can share configuration and review a Terraform plan before a privileged apply runs. The question concerns Plan refresh and graph evaluation acting to reason about dependencies before Terraform proposes remote operations, not a limit of Collaborative review before apply.
C:The proposed warning belongs to Write-plan-apply lifecycle, which serves the different goal to follow the core workflow from configuration to deliberate execution, rather than to Plan refresh and graph evaluation: The core workflow involves writing configuration, initializing, planning, then applying intended changes. The question concerns Plan refresh and graph evaluation acting to reason about dependencies before Terraform proposes remote operations, not a limit of Write-plan-apply lifecycle.
Question 77
A design uses Local workspace state files to distinguish state of different local Terraform workspaces. Which qualification applies to the named mechanism?
- A local backend cannot by itself provide shared policy controls or central audit.
- Copying a state file between computers is error-prone and can leak secrets.
- Separate workspace state does not change the configuration code automatically.
- State location alone does not separate permissions for remote provider resources.
Explanation
Correct Answer
C:For Local workspace state files in the task to distinguish state of different local Terraform workspaces, the important caution is: Separate workspace state does not change the configuration code automatically. The reason this matters is its actual behavior: Non-default local workspace state snapshots can be kept in a terraform.tfstate.d structure.
Incorrect Answers
A:The proposed warning belongs to Local state access controls, which serves the different goal to prevent unauthorized reading of saved infrastructure metadata, rather than to Local workspace state files: Filesystem permissions and secure workstation handling matter when state stays local. The question concerns Local workspace state files acting to distinguish state of different local Terraform workspaces, not a limit of Local state access controls.
B:The proposed warning belongs to Local backend and shared CI, which serves the different goal to avoid using workstation files as the source of truth for team deployments, rather than to Local workspace state files: Local state is best suited to isolated or experimental work rather than competing team runners. The question concerns Local workspace state files acting to distinguish state of different local Terraform workspaces, not a limit of Local backend and shared CI.
D:The proposed warning belongs to Custom local state path, which serves the different goal to place an isolated sandbox state file away from another lab's state, rather than to Local workspace state files: A local backend path can separate state storage from another configuration's snapshot. The question concerns Local workspace state files acting to distinguish state of different local Terraform workspaces, not a limit of Custom local state path.
Question 78
The team is documenting risks of Read-only cross-account lookup while planning to obtain a shared network identifier owned by a different deployment team. Which caveat specifically applies to that mechanism?
- It is not a read-only query against an object managed elsewhere.
- Reading does not transfer ownership to the consuming root module.
- The data block does not claim responsibility for creating the referenced object.
- A lookup that finds no suitable object can fail rather than creating one.
- Changing the local name can change the state address unless migrated.
Explanation
Correct Answer
B:For Read-only cross-account lookup in the task to obtain a shared network identifier owned by a different deployment team, the important caution is: Reading does not transfer ownership to the consuming root module. The reason this matters is its actual behavior: A data source reads a shared object if the provider configuration has permission to access it.
Incorrect Answers
A:The proposed warning belongs to Managed resource block, which serves the different goal to ask Terraform to create and maintain an infrastructure object, rather than to Read-only cross-account lookup: A resource block declares a managed object whose lifecycle Terraform reconciles through a provider. The question concerns Read-only cross-account lookup acting to obtain a shared network identifier owned by a different deployment team, not a limit of Managed resource block.
C:The proposed warning belongs to Data source block, which serves the different goal to look up an existing object to use its attributes without managing its lifecycle, rather than to Read-only cross-account lookup: A data block asks its provider to read information; its attributes can feed other expressions. The question concerns Read-only cross-account lookup acting to obtain a shared network identifier owned by a different deployment team, not a limit of Data source block.
D:The proposed warning belongs to Data source lookup filters, which serves the different goal to identify a pre-existing infrastructure object using provider-supported search criteria, rather than to Read-only cross-account lookup: Data source arguments let the provider identify an existing object, often by name or tags. The question concerns Read-only cross-account lookup acting to obtain a shared network identifier owned by a different deployment team, not a limit of Data source lookup filters.
E:The proposed warning belongs to Resource type and local name, which serves the different goal to distinguish a provider-defined resource kind from its Terraform address label, rather than to Read-only cross-account lookup: A resource block has both a resource type and local name, forming references like aws_vpc.main. The question concerns Read-only cross-account lookup acting to obtain a shared network identifier owned by a different deployment team, not a limit of Resource type and local name.
Question 79
The team is documenting risks of Git-hosted module source while planning to reference a reusable Terraform module from a VCS repository. Which caveat specifically applies to that mechanism?
- A floating branch can change over time and weaken reproducibility.
- A published module can still depend on provider permissions and external objects.
- The version argument is not supported for arbitrary local path modules.
- A Git module is not selected by the registry-only version argument.
Explanation
Correct Answer
D:For Git-hosted module source in the task to reference a reusable Terraform module from a VCS repository, the important caution is: A Git module is not selected by the registry-only version argument. The reason this matters is its actual behavior: A git:: URL can fetch a module from a Git repository using supported source syntax.
Incorrect Answers
A:The proposed warning belongs to Pinned Git module ref, which serves the different goal to use a chosen module branch, tag, or commit from a Git source, rather than to Git-hosted module source: A Git module source can use ?ref=... to select the intended revision. The question concerns Git-hosted module source acting to reference a reusable Terraform module from a VCS repository, not a limit of Pinned Git module ref.
B:The proposed warning belongs to Module discovery in registry, which serves the different goal to find documented reusable modules rather than copying configurations manually, rather than to Git-hosted module source: The Terraform Registry and private module registries can publish modules with inputs and outputs. The question concerns Git-hosted module source acting to reference a reusable Terraform module from a VCS repository, not a limit of Module discovery in registry.
C:The proposed warning belongs to Registry module version selection, which serves the different goal to choose an explicit compatible release of a registry module, rather than to Git-hosted module source: The version argument on a registry module call constrains which published module release is installed. The question concerns Git-hosted module source acting to reference a reusable Terraform module from a VCS repository, not a limit of Registry module version selection.
Question 80
The rollout owner asks whether HCP Terraform remote execution is sufficient to execute Terraform operations in a managed remote runtime. Which limitation specifically concerns that mechanism?
- Central state storage does not guarantee infrastructure can be reached from every execution mode.
- Remote execution still needs provider credentials and connectivity.
- It is not identical to a local CLI workspace's implementation.
- Its workspace settings determine whether runs need approval or are automatically applied.
Explanation
Correct Answer
B:For HCP Terraform remote execution in the task to execute Terraform operations in a managed remote runtime, the important caution is: Remote execution still needs provider credentials and connectivity. The reason this matters is its actual behavior: HCP Terraform can run plans and applies outside a developer's workstation under workspace controls.
Incorrect Answers
A:The proposed warning belongs to HCP Terraform state storage, which serves the different goal to store workspace state centrally rather than on a personal machine, rather than to HCP Terraform remote execution: HCP Terraform manages workspace state snapshots with controlled access and history. The question concerns HCP Terraform remote execution acting to execute Terraform operations in a managed remote runtime, not a limit of HCP Terraform state storage.
C:The proposed warning belongs to HCP Terraform workspace, which serves the different goal to isolate the state, variables, and run history for one managed infrastructure unit, rather than to HCP Terraform remote execution: An HCP Terraform workspace organizes a Terraform run context with its own state and configuration connection. The question concerns HCP Terraform remote execution acting to execute Terraform operations in a managed remote runtime, not a limit of HCP Terraform workspace.
D:The proposed warning belongs to VCS-driven HCP Terraform workflow, which serves the different goal to start remote plans from connected version-control updates, rather than to HCP Terraform remote execution: A VCS-connected workspace can queue runs when matching configuration changes are committed. The question concerns HCP Terraform remote execution acting to execute Terraform operations in a managed remote runtime, not a limit of VCS-driven HCP Terraform workflow.