Question 690
A change proposal relies on Hybrid infrastructure automation for the task to configure cloud and on-premises platforms through a common workflow. Which limitation specifically applies to it?
- An appropriate provider or integration must exist for each target system.
- Each provider still needs suitable credentials and service permissions.
- A resource type from one provider cannot be substituted blindly for another.
- Service-agnostic does not mean resource schemas are interchangeable.
Explanation
Correct Answer
A:For Hybrid infrastructure automation in the task to configure cloud and on-premises platforms through a common workflow, the important caution is: An appropriate provider or integration must exist for each target system. The reason this matters is its actual behavior: Terraform can coordinate providers for hosted services and private infrastructure without imposing one cloud API.
Incorrect Answers
B:The proposed warning belongs to Multi-cloud provider configuration, which serves the different goal to manage different clouds from one Terraform root module, rather than to Hybrid infrastructure automation: Separate provider plugins can reconcile resources on multiple platforms within the same configuration. The question concerns Hybrid infrastructure automation acting to configure cloud and on-premises platforms through a common workflow, not a limit of Multi-cloud provider configuration.
C:The proposed warning belongs to Provider-specific implementation, which serves the different goal to use a common language without pretending providers expose identical capabilities, rather than to Hybrid infrastructure automation: HCL and workflow are common while each provider defines its own resource schema and service-specific behavior. The question concerns Hybrid infrastructure automation acting to configure cloud and on-premises platforms through a common workflow, not a limit of Provider-specific implementation.
D:The proposed warning belongs to Service-agnostic orchestration, which serves the different goal to control DNS, SaaS, and cloud resources through a common configuration tool, rather than to Hybrid infrastructure automation: Terraform providers expose resource and data types beyond infrastructure hosted by a cloud vendor. The question concerns Hybrid infrastructure automation acting to configure cloud and on-premises platforms through a common workflow, not a limit of Service-agnostic orchestration.
Question 691
A change proposal relies on TF_LOG_PATH environment variable for the task to write Terraform debug logging to a named file. Which limitation specifically applies to it?
- Core logging does not substitute for investigating remote API authorization errors.
- Verbose logs can contain sensitive data and should be protected.
- Setting a log path alone does not necessarily enable logging.
- Provider logs may reveal credentials or request data and require caution.
Explanation
Correct Answer
C:For TF_LOG_PATH environment variable in the task to write Terraform debug logging to a named file, the important caution is: Setting a log path alone does not necessarily enable logging. The reason this matters is its actual behavior: TF_LOG_PATH controls a file destination for Terraform logging when logging is enabled.
Incorrect Answers
A:The proposed warning belongs to TF_LOG_CORE environment variable, which serves the different goal to focus debugging on Terraform Core behavior rather than provider messages, rather than to TF_LOG_PATH environment variable: TF_LOG_CORE can set logging for Terraform Core separately from provider plugin output. The question concerns TF_LOG_PATH environment variable acting to write Terraform debug logging to a named file, not a limit of TF_LOG_CORE environment variable.
B:The proposed warning belongs to TF_LOG environment variable, which serves the different goal to enable Terraform debugging output while investigating a CLI failure, rather than to TF_LOG_PATH environment variable: TF_LOG sets a supported logging level such as DEBUG or TRACE for a Terraform process. The question concerns TF_LOG_PATH environment variable acting to write Terraform debug logging to a named file, not a limit of TF_LOG environment variable.
D:The proposed warning belongs to TF_LOG_PROVIDER environment variable, which serves the different goal to focus verbose diagnostics on provider-side activity, rather than to TF_LOG_PATH environment variable: TF_LOG_PROVIDER controls the provider logging level to aid plugin or API troubleshooting. The question concerns TF_LOG_PATH environment variable acting to write Terraform debug logging to a named file, not a limit of TF_LOG_PROVIDER environment variable.
Question 692
Before adopting Targeted planning to focus on a small subset for exceptional repair or troubleshooting, which statement sets an accurate boundary?
- A plan based on stale state can be inaccurate about real infrastructure.
- Routine targeted planning can overlook intended changes elsewhere.
- The JSON can expose secrets and requires secure handling.
- An in-place update is represented differently and preserves the existing instance.
Explanation
Correct Answer
B:For Targeted planning in the task to focus on a small subset for exceptional repair or troubleshooting, the important caution is: Routine targeted planning can overlook intended changes elsewhere. The reason this matters is its actual behavior: terraform plan -target=ADDRESS limits the planner's focus to the selected graph portion.
Incorrect Answers
A:The proposed warning belongs to Plan without state refresh, which serves the different goal to avoid remote refresh reads when an intentional troubleshooting constraint requires it, rather than to Targeted planning: terraform plan -refresh=false uses existing state without refreshing live objects before planning. The question concerns Targeted planning acting to focus on a small subset for exceptional repair or troubleshooting, not a limit of Plan without state refresh.
C:The proposed warning belongs to Machine-readable plan inspection, which serves the different goal to convert a saved plan into JSON for automated analysis, rather than to Targeted planning: terraform show -json change.tfplan exposes plan details for tooling. The question concerns Targeted planning acting to focus on a small subset for exceptional repair or troubleshooting, not a limit of Machine-readable plan inspection.
D:The proposed warning belongs to Replacement plan indicator, which serves the different goal to recognize that a proposed change will replace an existing resource, rather than to Targeted planning: The plan symbols -/+ or +/- indicate replacement behavior and its creation/destruction ordering. The question concerns Targeted planning acting to focus on a small subset for exceptional repair or troubleshooting, not a limit of Replacement plan indicator.
Question 693
A change proposal relies on moved block for refactoring for the task to rename a managed resource address without destroying its remote object. Which limitation specifically applies to it?
- Configuration reconciliation requires a subsequent reviewed apply.
- If its configuration remains, a later plan can propose creating another object.
- Ordinary resource removal from HCL can instead lead to destruction.
- It does not transfer a resource between unrelated provider types.
- It does not make the live object conform to an old configuration value.
Explanation
Correct Answer
D:For moved block for refactoring in the task to rename a managed resource address without destroying its remote object, the important caution is: It does not transfer a resource between unrelated provider types. The reason this matters is its actual behavior: A moved block describes an address migration as part of configuration history.
Incorrect Answers
A:The proposed warning belongs to Remote drift detection during plan, which serves the different goal to recognize that a resource was changed outside Terraform, rather than to moved block for refactoring: Normal plan refresh reads can reveal drift between state and the remote object. The question concerns moved block for refactoring acting to rename a managed resource address without destroying its remote object, not a limit of Remote drift detection during plan.
B:The proposed warning belongs to terraform state rm, which serves the different goal to detach a resource address from state while leaving the remote object intact, rather than to moved block for refactoring: state rm forgets the binding but does not delete the real infrastructure object. The question concerns moved block for refactoring acting to rename a managed resource address without destroying its remote object, not a limit of terraform state rm.
C:The proposed warning belongs to removed block with destroy=false, which serves the different goal to stop tracking an object in state but deliberately leave it deployed, rather than to moved block for refactoring: A removed block declares that Terraform should forget a resource without deleting it when destroy=false. The question concerns moved block for refactoring acting to rename a managed resource address without destroying its remote object, not a limit of removed block with destroy=false.
E:The proposed warning belongs to Refresh-only reconciliation, which serves the different goal to accept an external change into Terraform state without modifying remote infrastructure, rather than to moved block for refactoring: A refresh-only plan or apply updates state and outputs to observed values. The question concerns moved block for refactoring acting to rename a managed resource address without destroying its remote object, not a limit of Refresh-only reconciliation.
Question 694
A design uses Template interpolation to embed evaluated expressions in a Terraform string. Which qualification applies to the named mechanism?
- Interpolation is not required when an argument can take a direct expression reference.
- Filtering a collection is different from lifecycle ignore_changes.
- The two branches need compatible types for Terraform to reconcile the result.
- A for expression calculates values but does not itself create resource instances.
Explanation
Correct Answer
A:For Template interpolation in the task to embed evaluated expressions in a Terraform string, the important caution is: Interpolation is not required when an argument can take a direct expression reference. The reason this matters is its actual behavior: The ${...} syntax can interpolate an expression into a quoted string or template.
Incorrect Answers
B:The proposed warning belongs to for expression filtering, which serves the different goal to include only elements satisfying an if condition in a derived collection, rather than to Template interpolation: A for expression's optional if clause filters elements while projecting results. The question concerns Template interpolation acting to embed evaluated expressions in a Terraform string, not a limit of for expression filtering.
C:The proposed warning belongs to Conditional expression, which serves the different goal to choose between two values based on a boolean condition, rather than to Template interpolation: Terraform's condition ? true_value : false_value expression selects a value based on a predicate. The question concerns Template interpolation acting to embed evaluated expressions in a Terraform string, not a limit of Conditional expression.
D:The proposed warning belongs to for expression list projection, which serves the different goal to transform a collection into a list of calculated values, rather than to Template interpolation: A bracketed for expression maps each element to a new value using a declared iterator. The question concerns Template interpolation acting to embed evaluated expressions in a Terraform string, not a limit of for expression list projection.
Question 695
Before adopting Module upgrade through init to fetch a newly allowed version after editing the module version requirement, which statement sets an accurate boundary?
- An unpinned module version may drift as newer releases appear.
- Pinning a module does not pin its provider dependencies unless constrained separately.
- A local edit can still change the next plan and should be reviewed.
- terraform apply does not automatically fetch newly declared module packages.
Explanation
Correct Answer
D:For Module upgrade through init in the task to fetch a newly allowed version after editing the module version requirement, the important caution is: terraform apply does not automatically fetch newly declared module packages. The reason this matters is its actual behavior: Rerunning terraform init downloads compatible module source versions when module requirements change.
Incorrect Answers
A:The proposed warning belongs to Registry module version constraint, which serves the different goal to select module releases meeting a declared compatibility range, rather than to Module upgrade through init: A registry module call accepts a version argument that chooses supported release versions. The question concerns Module upgrade through init acting to fetch a newly allowed version after editing the module version requirement, not a limit of Registry module version constraint.
B:The proposed warning belongs to Exact registry module version, which serves the different goal to make a published module dependency deterministic across clean installs, rather than to Module upgrade through init: An exact version requirement identifies one registry module release. The question concerns Module upgrade through init acting to fetch a newly allowed version after editing the module version requirement, not a limit of Exact registry module version.
C:The listed caution belongs specifically to Local module development lifecycle, used to update a local path module without applying registry release versioning: Local module source code is read from its path and does not use a version argument; the feature under review is instead Module upgrade through init, so this answer attaches another feature's qualification to the wrong mechanism.
Question 696
A design uses HCP Terraform workspace selection to route CLI-driven operations to the intended HCP workspace. Which qualification applies to the named mechanism?
- Selecting the wrong workspace can target a different infrastructure state.
- Sensitive values should be marked appropriately and access limited.
- Provider version constraints remain a separate configuration concern.
- Actual execution behavior depends on the workspace and integration settings.
Explanation
Correct Answer
A:For HCP Terraform workspace selection in the task to route CLI-driven operations to the intended HCP workspace, the important caution is: Selecting the wrong workspace can target a different infrastructure state. The reason this matters is its actual behavior: The cloud block workspace settings determine which HCP workspace the configuration uses.
Incorrect Answers
B:The proposed warning belongs to HCP Terraform workspace variable configuration, which serves the different goal to provide Terraform and environment variables to a hosted run, rather than to HCP Terraform workspace selection: Workspace variables and variable sets can supply inputs or environment settings to HCP Terraform operations. The question concerns HCP Terraform workspace selection acting to route CLI-driven operations to the intended HCP workspace, not a limit of HCP Terraform workspace variable configuration.
C:The proposed warning belongs to HCP Terraform workspace version settings, which serves the different goal to control the Terraform version used for remote runs, rather than to HCP Terraform workspace selection: Workspace settings can select the Terraform Core version used in HCP remote execution. The question concerns HCP Terraform workspace selection acting to route CLI-driven operations to the intended HCP workspace, not a limit of HCP Terraform workspace version settings.
D:The proposed warning belongs to CLI-driven HCP runs, which serves the different goal to initiate workspace operations through familiar Terraform commands, rather than to HCP Terraform workspace selection: HCP Terraform supports CLI-driven workflows connected to remote workspace state and operations. The question concerns HCP Terraform workspace selection acting to route CLI-driven operations to the intended HCP workspace, not a limit of CLI-driven HCP runs.
Question 697
A Terraform rollout has two separate requirements: first, direct an individual resource to the intended aliased provider; second, pass an aliased provider to resources inside a child module. Which assignment of mechanisms correctly handles both responsibilities?
- First use Resource provider meta-argument; then use Default provider configuration inheritance.
- First use Provider alias reference address; then use Explicit child module provider mapping.
- First use Resource provider meta-argument; then use Explicit child module provider mapping.
- First use Default provider configuration inheritance; then use Provider alias reference address.
- First use Explicit child module provider mapping; then use Resource provider meta-argument.
Explanation
Correct Answer
C:The first requirement, to direct an individual resource to the intended aliased provider, is handled by Resource provider meta-argument: The provider meta-argument can select a configured instance such as aws.west for that resource. The second requirement, to pass an aliased provider to resources inside a child module, is handled by Explicit child module provider mapping: The providers map in a module block maps the child's provider name to a parent provider configuration. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to direct an individual resource to the intended aliased provider and pass an aliased provider to resources inside a child module, the first candidate Resource provider meta-argument addresses direct an individual resource to the intended aliased provider; the second candidate Default provider configuration inheritance addresses let a child module use default provider settings from its parent. This mapping fails because the second mechanism primarily supports the task to let a child module use default provider settings from its parent; the actual requirements are direct an individual resource to the intended aliased provider first and pass an aliased provider to resources inside a child module second.
B:For the requested tasks to direct an individual resource to the intended aliased provider and pass an aliased provider to resources inside a child module, the first candidate Provider alias reference address addresses refer to a provider configuration by its local name and alias; the second candidate Explicit child module provider mapping addresses pass an aliased provider to resources inside a child module. This mapping fails because the first mechanism primarily supports the task to refer to a provider configuration by its local name and alias; the actual requirements are direct an individual resource to the intended aliased provider first and pass an aliased provider to resources inside a child module second.
D:For the requested tasks to direct an individual resource to the intended aliased provider and pass an aliased provider to resources inside a child module, the first candidate Default provider configuration inheritance addresses let a child module use default provider settings from its parent; the second candidate Provider alias reference address addresses refer to a provider configuration by its local name and alias. This mapping fails because the first mechanism primarily supports the task to let a child module use default provider settings from its parent and the second mechanism primarily supports the task to refer to a provider configuration by its local name and alias; the actual requirements are direct an individual resource to the intended aliased provider first and pass an aliased provider to resources inside a child module second.
E:For the requested tasks to direct an individual resource to the intended aliased provider and pass an aliased provider to resources inside a child module, the first candidate Explicit child module provider mapping addresses pass an aliased provider to resources inside a child module; the second candidate Resource provider meta-argument addresses direct an individual resource to the intended aliased provider. This mapping fails because the first mechanism primarily supports the task to pass an aliased provider to resources inside a child module and the second mechanism primarily supports the task to direct an individual resource to the intended aliased provider; the actual requirements are direct an individual resource to the intended aliased provider first and pass an aliased provider to resources inside a child module second.
Question 698
The implementation must both embed evaluated expressions in a Terraform string and generate repeated nested configuration blocks from a collection. Which TWO mechanisms directly address these two separate requirements? Choose TWO.
- for expression filtering
- Conditional expression
- for expression list projection
- Dynamic nested block
- Template interpolation
Explanation
Correct Answers
D:Among the paired tasks to embed evaluated expressions in a Terraform string and generate repeated nested configuration blocks from a collection, Dynamic nested block serves the requirement to generate repeated nested configuration blocks from a collection: A dynamic block emits nested blocks where the enclosing resource schema permits them. The other task must be covered by a separate mechanism.
E:Among the paired tasks to embed evaluated expressions in a Terraform string and generate repeated nested configuration blocks from a collection, Template interpolation serves the requirement to embed evaluated expressions in a Terraform string: The ${...} syntax can interpolate an expression into a quoted string or template. The other task must be covered by a separate mechanism.
Incorrect Answers
A:The requirements are embed evaluated expressions in a Terraform string and generate repeated nested configuration blocks from a collection, while for expression filtering supports the different task to include only elements satisfying an if condition in a derived collection: A for expression's optional if clause filters elements while projecting results. That capability is outside the two selected responsibilities.
B:The requirements are embed evaluated expressions in a Terraform string and generate repeated nested configuration blocks from a collection, while Conditional expression supports the different task to choose between two values based on a boolean condition: Terraform's condition ? true_value : false_value expression selects a value based on a predicate. That capability is outside the two selected responsibilities.
C:The requirements are embed evaluated expressions in a Terraform string and generate repeated nested configuration blocks from a collection, while for expression list projection supports the different task to transform a collection into a list of calculated values: A bracketed for expression maps each element to a new value using a declared iterator. That capability is outside the two selected responsibilities.
Question 699
A Terraform rollout has two separate requirements: first, focus on a small subset for exceptional repair or troubleshooting; second, avoid remote refresh reads when an intentional troubleshooting constraint requires it. Which assignment of mechanisms correctly handles both responsibilities?
- First use Replacement plan indicator; then use Plan without state refresh.
- First use Machine-readable plan inspection; then use Replacement plan indicator.
- First use Targeted planning; then use Machine-readable plan inspection.
- First use Targeted planning; then use Plan without state refresh.
- First use Plan without state refresh; then use Targeted planning.
Explanation
Correct Answer
D:The first requirement, to focus on a small subset for exceptional repair or troubleshooting, is handled by Targeted planning: terraform plan -target=ADDRESS limits the planner's focus to the selected graph portion. The second requirement, to avoid remote refresh reads when an intentional troubleshooting constraint requires it, is handled by Plan without state refresh: terraform plan -refresh=false uses existing state without refreshing live objects before planning. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to focus on a small subset for exceptional repair or troubleshooting and avoid remote refresh reads when an intentional troubleshooting constraint requires it, the first candidate Replacement plan indicator addresses recognize that a proposed change will replace an existing resource; the second candidate Plan without state refresh addresses avoid remote refresh reads when an intentional troubleshooting constraint requires it. This mapping fails because the first mechanism primarily supports the task to recognize that a proposed change will replace an existing resource; the actual requirements are focus on a small subset for exceptional repair or troubleshooting first and avoid remote refresh reads when an intentional troubleshooting constraint requires it second.
B:For the requested tasks to focus on a small subset for exceptional repair or troubleshooting and avoid remote refresh reads when an intentional troubleshooting constraint requires it, the first candidate Machine-readable plan inspection addresses convert a saved plan into JSON for automated analysis; the second candidate Replacement plan indicator addresses recognize that a proposed change will replace an existing resource. This mapping fails because the first mechanism primarily supports the task to convert a saved plan into JSON for automated analysis and the second mechanism primarily supports the task to recognize that a proposed change will replace an existing resource; the actual requirements are focus on a small subset for exceptional repair or troubleshooting first and avoid remote refresh reads when an intentional troubleshooting constraint requires it second.
C:For the requested tasks to focus on a small subset for exceptional repair or troubleshooting and avoid remote refresh reads when an intentional troubleshooting constraint requires it, the first candidate Targeted planning addresses focus on a small subset for exceptional repair or troubleshooting; the second candidate Machine-readable plan inspection addresses convert a saved plan into JSON for automated analysis. This mapping fails because the second mechanism primarily supports the task to convert a saved plan into JSON for automated analysis; the actual requirements are focus on a small subset for exceptional repair or troubleshooting first and avoid remote refresh reads when an intentional troubleshooting constraint requires it second.
E:For the requested tasks to focus on a small subset for exceptional repair or troubleshooting and avoid remote refresh reads when an intentional troubleshooting constraint requires it, the first candidate Plan without state refresh addresses avoid remote refresh reads when an intentional troubleshooting constraint requires it; the second candidate Targeted planning addresses focus on a small subset for exceptional repair or troubleshooting. This mapping fails because the first mechanism primarily supports the task to avoid remote refresh reads when an intentional troubleshooting constraint requires it and the second mechanism primarily supports the task to focus on a small subset for exceptional repair or troubleshooting; the actual requirements are focus on a small subset for exceptional repair or troubleshooting first and avoid remote refresh reads when an intentional troubleshooting constraint requires it second.
Question 700
A Terraform rollout has two separate requirements: first, rename a managed resource address without destroying its remote object; second, detach a resource address from state while leaving the remote object intact. Which assignment of mechanisms correctly handles both responsibilities?
- First use moved block for refactoring; then use terraform state rm.
- First use terraform state rm; then use moved block for refactoring.
- First use Drift reconciliation to configuration; then use terraform state rm.
- First use moved block for refactoring; then use terraform state mv.
- First use terraform state mv; then use Drift reconciliation to configuration.
Explanation
Correct Answer
A:The first requirement, to rename a managed resource address without destroying its remote object, is handled by moved block for refactoring: A moved block describes an address migration as part of configuration history. The second requirement, to detach a resource address from state while leaving the remote object intact, is handled by terraform state rm: state rm forgets the binding but does not delete the real infrastructure object. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
B:For the requested tasks to rename a managed resource address without destroying its remote object and detach a resource address from state while leaving the remote object intact, the first candidate terraform state rm addresses detach a resource address from state while leaving the remote object intact; the second candidate moved block for refactoring addresses rename a managed resource address without destroying its remote object. This mapping fails because the first mechanism primarily supports the task to detach a resource address from state while leaving the remote object intact and the second mechanism primarily supports the task to rename a managed resource address without destroying its remote object; the actual requirements are rename a managed resource address without destroying its remote object first and detach a resource address from state while leaving the remote object intact second.
C:For the requested tasks to rename a managed resource address without destroying its remote object and detach a resource address from state while leaving the remote object intact, the first candidate Drift reconciliation to configuration addresses restore externally modified resource settings to desired code values; the second candidate terraform state rm addresses detach a resource address from state while leaving the remote object intact. This mapping fails because the first mechanism primarily supports the task to restore externally modified resource settings to desired code values; the actual requirements are rename a managed resource address without destroying its remote object first and detach a resource address from state while leaving the remote object intact second.
D:For the requested tasks to rename a managed resource address without destroying its remote object and detach a resource address from state while leaving the remote object intact, the first candidate moved block for refactoring addresses rename a managed resource address without destroying its remote object; the second candidate terraform state mv addresses change a resource state address to match a configuration refactor. This mapping fails because the second mechanism primarily supports the task to change a resource state address to match a configuration refactor; the actual requirements are rename a managed resource address without destroying its remote object first and detach a resource address from state while leaving the remote object intact second.
E:For the requested tasks to rename a managed resource address without destroying its remote object and detach a resource address from state while leaving the remote object intact, the first candidate terraform state mv addresses change a resource state address to match a configuration refactor; the second candidate Drift reconciliation to configuration addresses restore externally modified resource settings to desired code values. This mapping fails because the first mechanism primarily supports the task to change a resource state address to match a configuration refactor and the second mechanism primarily supports the task to restore externally modified resource settings to desired code values; the actual requirements are rename a managed resource address without destroying its remote object first and detach a resource address from state while leaving the remote object intact second.