Question 100
Before adopting Resource type and local name to distinguish a provider-defined resource kind from its Terraform address label, which statement sets an accurate boundary?
- It is not a read-only query against an object managed elsewhere.
- They should not be hard-coded when proper references are available.
- A data source does not automatically establish ownership over the queried object.
- Reading does not transfer ownership to the consuming root module.
- Changing the local name can change the state address unless migrated.
Explanation
Correct Answer
E:For Resource type and local name in the task to distinguish a provider-defined resource kind from its Terraform address label, the important caution is: Changing the local name can change the state address unless migrated. The reason this matters is its actual behavior: A resource block has both a resource type and local name, forming references like aws_vpc.main.
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 Resource type and local name: A resource block declares a managed object whose lifecycle Terraform reconciles through a provider. The question concerns Resource type and local name acting to distinguish a provider-defined resource kind from its Terraform address label, not a limit of Managed resource block.
B:The proposed warning belongs to Resource attributes computed by provider, which serves the different goal to consume an assigned ID only after the provider supplies it, rather than to Resource type and local name: Computed attributes are often unknown during planning and become available after the provider creates or reads an object. The question concerns Resource type and local name acting to distinguish a provider-defined resource kind from its Terraform address label, not a limit of Resource attributes computed by provider.
C:The proposed warning belongs to Data source dependency scheduling, which serves the different goal to defer a read when its arguments depend on a resource still being created, rather than to Resource type and local name: Terraform tracks references to determine whether a data-source read can run during planning or must wait. The question concerns Resource type and local name acting to distinguish a provider-defined resource kind from its Terraform address label, not a limit of Data source dependency scheduling.
D:The proposed warning belongs to Read-only cross-account lookup, which serves the different goal to obtain a shared network identifier owned by a different deployment team, rather than to Resource type and local name: A data source reads a shared object if the provider configuration has permission to access it. The question concerns Resource type and local name acting to distinguish a provider-defined resource kind from its Terraform address label, not a limit of Read-only cross-account lookup.
Question 101
A configuration walkthrough identifies "Module source subdirectory". Which task is it principally intended to support?
- load a reusable module from a directory in the same repository
- use a chosen module branch, tag, or commit from a Git source
- reference a reusable Terraform module from a VCS repository
- reuse a published module from the Terraform Registry
- select a Terraform module within a larger repository
Explanation
Correct Answer
E:The practical result of Module source subdirectory, used to select a Terraform module within a larger repository, is: The double-slash syntax in supported remote sources identifies a module subdirectory within the downloaded package. A qualification for this effect is: The path suffix does not change provider plugin version selection.
Incorrect Answers
A:That outcome applies to Local child module source, intended to load a reusable module from a directory in the same repository, rather than the question's feature Module source subdirectory: A source like ./modules/network points a module call at a local filesystem path. Unlike Local child module source, Module source subdirectory is intended to select a Terraform module within a larger repository, not to load a reusable module from a directory in the same repository.
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 Module source subdirectory: A Git module source can use ?ref=... to select the intended revision. Unlike Pinned Git module ref, Module source subdirectory is intended to select a Terraform module within a larger repository, not to use a chosen module branch, tag, or commit from a Git source.
C:That outcome applies to Git-hosted module source, intended to reference a reusable Terraform module from a VCS repository, rather than the question's feature Module source subdirectory: A git:: URL can fetch a module from a Git repository using supported source syntax. Unlike Git-hosted module source, Module source subdirectory is intended to select a Terraform module within a larger repository, not to reference a reusable Terraform module from a VCS repository.
D:That outcome applies to Public registry module source, intended to reuse a published module from the Terraform Registry, rather than the question's feature Module source subdirectory: Registry source addresses identify published module packages by namespace, name, and provider. Unlike Public registry module source, Module source subdirectory is intended to select a Terraform module within a larger repository, not to reuse a published module from the Terraform Registry.
Question 102
A team reviews the use of HCP Terraform state storage in Terraform 1.12. Which purpose matches its actual behavior?
- queue runs through an API integration instead of only direct Git events
- review a planned change in the HCP Terraform run interface before apply
- execute Terraform with network access to private environments
- isolate the state, variables, and run history for one managed infrastructure unit
- store workspace state centrally rather than on a personal machine
Explanation
Correct Answer
E:The practical result of HCP Terraform state storage, used to store workspace state centrally rather than on a personal machine, is: HCP Terraform manages workspace state snapshots with controlled access and history. A qualification for this effect is: Central state storage does not guarantee infrastructure can be reached from every execution mode.
Incorrect Answers
A:That outcome applies to HCP Terraform API-driven run, intended to queue runs through an API integration instead of only direct Git events, rather than the question's feature HCP Terraform state storage: The HCP Terraform API can support workflows that upload configuration and trigger managed runs. Unlike HCP Terraform API-driven run, HCP Terraform state storage is intended to store workspace state centrally rather than on a personal machine, not to queue runs through an API integration instead of only direct Git events.
B:That outcome applies to Remote run approval, intended to review a planned change in the HCP Terraform run interface before apply, rather than the question's feature HCP Terraform state storage: An HCP workspace can separate planning and apply confirmation for controlled changes. Unlike Remote run approval, HCP Terraform state storage is intended to store workspace state centrally rather than on a personal machine, not to review a planned change in the HCP Terraform run interface before apply.
C:That outcome applies to HCP Terraform agent, intended to execute Terraform with network access to private environments, rather than the question's feature HCP Terraform state storage: An HCP Terraform agent can run work in an operator-controlled environment and connect to private resources. Unlike HCP Terraform agent, HCP Terraform state storage is intended to store workspace state centrally rather than on a personal machine, not to execute Terraform with network access to private environments.
D: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 state storage: An HCP Terraform workspace organizes a Terraform run context with its own state and configuration connection. Unlike HCP Terraform workspace, HCP Terraform state storage is intended to store workspace state centrally rather than on a personal machine, not to isolate the state, variables, and run history for one managed infrastructure unit.
Question 103
An operator chooses the mechanism "Terraform dependency lock file" for a Terraform project. Which outcome should this choice support?
- keep selected provider versions reproducible between runs
- restrict acceptable versions of an infrastructure provider
- identify the namespace and provider plugin that Terraform should install
- populate or update provider checksum selections in the lock file
Explanation
Correct Answer
A:The practical result of Terraform dependency lock file, used to keep selected provider versions reproducible between runs, is: The .terraform.lock.hcl file records resolved provider versions and checksums for repeatable installation. A qualification for this effect is: It does not lock child module versions or Terraform Core versions.
Incorrect Answers
B:That outcome applies to Provider version constraint, intended to restrict acceptable versions of an infrastructure provider, rather than the question's feature Terraform dependency lock file: The version argument in required_providers expresses allowed provider versions, such as a compatible release series. Unlike Provider version constraint, Terraform dependency lock file is intended to keep selected provider versions reproducible between runs, not to restrict acceptable versions of an infrastructure provider.
C:That outcome applies to required_providers source, intended to identify the namespace and provider plugin that Terraform should install, rather than the question's feature Terraform dependency lock file: The required_providers map supplies a provider source address such as hashicorp/aws for dependency resolution. Unlike required_providers source, Terraform dependency lock file is intended to keep selected provider versions reproducible between runs, not to identify the namespace and provider plugin that Terraform should install.
D:The outcome in this option belongs to terraform providers lock: The providers lock command can record provider package checksums for selected target platforms; by contrast, the feature actually named in the stem, Terraform dependency lock file, has a distinct purpose: to keep selected provider versions reproducible between runs.
Question 104
A Terraform rollout has two separate requirements: first, distinguish a provider-defined resource kind from its Terraform address label; second, defer a read when its arguments depend on a resource still being created. Which assignment of mechanisms correctly handles both responsibilities?
- First use Managed resource block; then use Data source block.
- First use Data source dependency scheduling; then use Resource type and local name.
- First use Resource type and local name; then use Managed resource block.
- First use Data source block; then use Data source dependency scheduling.
- First use Resource type and local name; then use Data source dependency scheduling.
Explanation
Correct Answer
E:The first requirement, to distinguish a provider-defined resource kind from its Terraform address label, is handled by Resource type and local name: A resource block has both a resource type and local name, forming references like aws_vpc.main. The second requirement, to defer a read when its arguments depend on a resource still being created, is handled by Data source dependency scheduling: Terraform tracks references to determine whether a data-source read can run during planning or must wait. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to distinguish a provider-defined resource kind from its Terraform address label and defer a read when its arguments depend on a resource still being created, the first candidate Managed resource block addresses ask Terraform to create and maintain an infrastructure object; the second candidate Data source block addresses look up an existing object to use its attributes without managing its lifecycle. This mapping fails because the first mechanism primarily supports the task to ask Terraform to create and maintain an infrastructure object and the second mechanism primarily supports the task to look up an existing object to use its attributes without managing its lifecycle; the actual requirements are distinguish a provider-defined resource kind from its Terraform address label first and defer a read when its arguments depend on a resource still being created second.
B:For the requested tasks to distinguish a provider-defined resource kind from its Terraform address label and defer a read when its arguments depend on a resource still being created, the first candidate Data source dependency scheduling addresses defer a read when its arguments depend on a resource still being created; the second candidate Resource type and local name addresses distinguish a provider-defined resource kind from its Terraform address label. This mapping fails because the first mechanism primarily supports the task to defer a read when its arguments depend on a resource still being created and the second mechanism primarily supports the task to distinguish a provider-defined resource kind from its Terraform address label; the actual requirements are distinguish a provider-defined resource kind from its Terraform address label first and defer a read when its arguments depend on a resource still being created second.
C:For the requested tasks to distinguish a provider-defined resource kind from its Terraform address label and defer a read when its arguments depend on a resource still being created, the first candidate Resource type and local name addresses distinguish a provider-defined resource kind from its Terraform address label; the second candidate Managed resource block addresses ask Terraform to create and maintain an infrastructure object. This mapping fails because the second mechanism primarily supports the task to ask Terraform to create and maintain an infrastructure object; the actual requirements are distinguish a provider-defined resource kind from its Terraform address label first and defer a read when its arguments depend on a resource still being created second.
D:For the requested tasks to distinguish a provider-defined resource kind from its Terraform address label and defer a read when its arguments depend on a resource still being created, the first candidate Data source block addresses look up an existing object to use its attributes without managing its lifecycle; the second candidate Data source dependency scheduling addresses defer a read when its arguments depend on a resource still being created. This mapping fails because the first mechanism primarily supports the task to look up an existing object to use its attributes without managing its lifecycle; the actual requirements are distinguish a provider-defined resource kind from its Terraform address label first and defer a read when its arguments depend on a resource still being created second.
Question 105
Before adopting Saved plan promotion to apply the reviewed plan artifact rather than recomputing from changed inputs, which statement sets an accurate boundary?
- Editing a file does not update the cloud before apply.
- Saved plans may contain sensitive values and must be protected.
- A green validation result cannot substitute for plan review.
- Concurrency still needs backend locking when several runs target the same state.
Explanation
Correct Answer
B:For Saved plan promotion in the task to apply the reviewed plan artifact rather than recomputing from changed inputs, the important caution is: Saved plans may contain sensitive values and must be protected. The reason this matters is its actual behavior: terraform plan -out creates a binary plan that terraform apply can execute by file name.
Incorrect Answers
A:The proposed warning belongs to Configuration change cycle, which serves the different goal to modify desired resource arguments then inspect the resulting plan, rather than to Saved plan promotion: Editing HCL changes intended infrastructure and a new plan reveals proposed differences. The question concerns Saved plan promotion acting to apply the reviewed plan artifact rather than recomputing from changed inputs, not a limit of Configuration change cycle.
C:The proposed warning belongs to Plan inspection checkpoint, which serves the different goal to review planned deletion before permitting an irreversible action, rather than to Saved plan promotion: A review of change symbols and affected addresses can reveal unexpected destroy or replacement operations. The question concerns Saved plan promotion acting to apply the reviewed plan artifact rather than recomputing from changed inputs, not a limit of Plan inspection checkpoint.
D:The proposed warning belongs to Dependency-aware parallelism, which serves the different goal to allow independent resources to be managed concurrently within one run, rather than to Saved plan promotion: Terraform uses its dependency graph to schedule actions that have no ordering relationship. The question concerns Saved plan promotion acting to apply the reviewed plan artifact rather than recomputing from changed inputs, not a limit of Dependency-aware parallelism.
Question 106
A change proposal relies on Local state backup for the task to retain a prior state snapshot while modifying local state. Which limitation specifically applies to it?
- Separate workspace state does not change the configuration code automatically.
- A custom local path still resides on the operator's filesystem.
- A backup does not make concurrent state modifications safe.
- A local backend cannot by itself provide shared policy controls or central audit.
Explanation
Correct Answer
C:For Local state backup in the task to retain a prior state snapshot while modifying local state, the important caution is: A backup does not make concurrent state modifications safe. The reason this matters is its actual behavior: Local state operations commonly create backup snapshots to aid recovery from mistakes.
Incorrect Answers
A:The proposed warning belongs to Local workspace state files, which serves the different goal to distinguish state of different local Terraform workspaces, rather than to Local state backup: Non-default local workspace state snapshots can be kept in a terraform.tfstate.d structure. The question concerns Local state backup acting to retain a prior state snapshot while modifying local state, not a limit of Local workspace state files.
B:The proposed warning belongs to Local backend configuration, which serves the different goal to choose a particular path for a locally stored Terraform state file, rather than to Local state backup: The local backend supports a path setting to change where state is written. The question concerns Local state backup acting to retain a prior state snapshot while modifying local state, not a limit of Local backend configuration.
D:The listed caution belongs specifically to Local state access controls, used to prevent unauthorized reading of saved infrastructure metadata: Filesystem permissions and secure workstation handling matter when state stays local; the feature under review is instead Local state backup, so this answer attaches another feature's qualification to the wrong mechanism.
Question 107
A Terraform runbook describes the mechanism "Terraform resource declaration". Which responsibility should a reviewer associate with it?
- describe one managed infrastructure object in a configuration
- record intended infrastructure settings under version control
- preview the proposed actions before changing real resources
- translate declarative resources into operations on a platform
Explanation
Correct Answer
A:The practical result of Terraform resource declaration, used to describe one managed infrastructure object in a configuration, is: A resource block represents an object that Terraform will create, update, or destroy through a provider. A qualification for this effect is: A resource declaration is not the same as a read-only data lookup.
Incorrect Answers
B:That outcome applies to Desired configuration, intended to record intended infrastructure settings under version control, rather than the question's feature Terraform resource declaration: Configuration expresses the operator's intended infrastructure and is the starting point for planning. Unlike Desired configuration, Terraform resource declaration is intended to describe one managed infrastructure object in a configuration, not to record intended infrastructure settings under version control.
C:That outcome applies to Infrastructure execution plan, intended to preview the proposed actions before changing real resources, rather than the question's feature Terraform resource declaration: A Terraform plan calculates proposed actions from configuration, state, providers, and current observations. Unlike Infrastructure execution plan, Terraform resource declaration is intended to describe one managed infrastructure object in a configuration, not to preview the proposed actions before changing real resources.
D:That outcome applies to Infrastructure provider API, intended to translate declarative resources into operations on a platform, rather than the question's feature Terraform resource declaration: Provider plugins supply resource implementations and call remote APIs when Terraform reconciles infrastructure. Unlike Infrastructure provider API, Terraform resource declaration is intended to describe one managed infrastructure object in a configuration, not to translate declarative resources into operations on a platform.
Question 108
Before adopting Module source subdirectory to select a Terraform module within a larger repository, which statement sets an accurate boundary?
- A Git module is not selected by the registry-only version argument.
- Review source quality and pin an appropriate version instead of assuming every module is vetted.
- The path suffix does not change provider plugin version selection.
- A floating branch can change over time and weaken reproducibility.
Explanation
Correct Answer
C:For Module source subdirectory in the task to select a Terraform module within a larger repository, the important caution is: The path suffix does not change provider plugin version selection. The reason this matters is its actual behavior: The double-slash syntax in supported remote sources identifies a module subdirectory within the downloaded package.
Incorrect Answers
A:The proposed warning belongs to Git-hosted module source, which serves the different goal to reference a reusable Terraform module from a VCS repository, rather than to Module source subdirectory: A git:: URL can fetch a module from a Git repository using supported source syntax. The question concerns Module source subdirectory acting to select a Terraform module within a larger repository, not a limit of Git-hosted module source.
B:The proposed warning belongs to Public registry module source, which serves the different goal to reuse a published module from the Terraform Registry, rather than to Module source subdirectory: Registry source addresses identify published module packages by namespace, name, and provider. The question concerns Module source subdirectory acting to select a Terraform module within a larger repository, not a limit of Public registry module source.
D:The listed caution belongs specifically to Pinned Git module ref, used to use a chosen module branch, tag, or commit from a Git source: A Git module source can use ?ref=... to select the intended revision; the feature under review is instead Module source subdirectory, so this answer attaches another feature's qualification to the wrong mechanism.
Question 109
A design uses HCP Terraform state storage to store workspace state centrally rather than on a personal machine. Which qualification applies to the named mechanism?
- An agent requires setup and does not make inaccessible endpoints public.
- A speculative plan from a pull request is not the same as an authorized apply run.
- An API workflow must still authenticate and choose the intended workspace.
- Central state storage does not guarantee infrastructure can be reached from every execution mode.
Explanation
Correct Answer
D:For HCP Terraform state storage in the task to store workspace state centrally rather than on a personal machine, the important caution is: Central state storage does not guarantee infrastructure can be reached from every execution mode. The reason this matters is its actual behavior: HCP Terraform manages workspace state snapshots with controlled access and history.
Incorrect Answers
A:The proposed warning belongs to HCP Terraform agent, which serves the different goal to execute Terraform with network access to private environments, rather than to HCP Terraform state storage: An HCP Terraform agent can run work in an operator-controlled environment and connect to private resources. The question concerns HCP Terraform state storage acting to store workspace state centrally rather than on a personal machine, not a limit of HCP Terraform agent.
B:The proposed warning belongs to Remote run approval, which serves the different goal to review a planned change in the HCP Terraform run interface before apply, rather than to HCP Terraform state storage: An HCP workspace can separate planning and apply confirmation for controlled changes. The question concerns HCP Terraform state storage acting to store workspace state centrally rather than on a personal machine, not a limit of Remote run approval.
C:The proposed warning belongs to HCP Terraform API-driven run, which serves the different goal to queue runs through an API integration instead of only direct Git events, rather than to HCP Terraform state storage: The HCP Terraform API can support workflows that upload configuration and trigger managed runs. The question concerns HCP Terraform state storage acting to store workspace state centrally rather than on a personal machine, not a limit of HCP Terraform API-driven run.
Question 110
A Terraform runbook describes the mechanism "Import resource address matching". Which responsibility should a reviewer associate with it?
- run a plan after importing an object to check unexpected updates
- map a discovered object to the intended Terraform resource instance address
- use import planning support to help write resource HCL for an existing object
- adopt a remote object from the correct account or region
Explanation
Correct Answer
B:The practical result of Import resource address matching, used to map a discovered object to the intended Terraform resource instance address, is: Import uses a Terraform resource address that corresponds to the configuration intended to manage the object. A qualification for this effect is: A remote object ID is not interchangeable with the Terraform address.
Incorrect Answers
A:That outcome applies to Import validation follow-up, intended to run a plan after importing an object to check unexpected updates, rather than the question's feature Import resource address matching: A post-import plan reveals whether declared settings match the newly adopted remote object. Unlike Import validation follow-up, Import resource address matching is intended to map a discovered object to the intended Terraform resource instance address, not to run a plan after importing an object to check unexpected updates.
C:That outcome applies to Generate import configuration where supported, intended to use import planning support to help write resource HCL for an existing object, rather than the question's feature Import resource address matching: Terraform supports generating configuration with appropriate import workflows for certain imported resources. Unlike Generate import configuration where supported, Import resource address matching is intended to map a discovered object to the intended Terraform resource instance address, not to use import planning support to help write resource HCL for an existing object.
D:That outcome applies to Import under aliased provider, intended to adopt a remote object from the correct account or region, rather than the question's feature Import resource address matching: The target resource's selected provider configuration determines how Terraform locates and reads the imported object. Unlike Import under aliased provider, Import resource address matching is intended to map a discovered object to the intended Terraform resource instance address, not to adopt a remote object from the correct account or region.