Question 850
The rollout owner asks whether Apply a previously saved plan is sufficient to execute precisely a previously generated binary execution plan. Which limitation specifically concerns that mechanism?
- A partial failure can leave partial changes requiring another plan and review.
- The same variable inputs must be accounted for when using a saved plan.
- The saved artifact may become stale if state changes after its creation.
- Inspecting real objects and current state is necessary after a failed apply.
Explanation
Correct Answer
C:For Apply a previously saved plan in the task to execute precisely a previously generated binary execution plan, the important caution is: The saved artifact may become stale if state changes after its creation. The reason this matters is its actual behavior: terraform apply change.tfplan applies that saved plan rather than recalculating a fresh interactive plan.
Incorrect Answers
A:The proposed warning belongs to Updated state after apply, which serves the different goal to record the result of successful provider operations for subsequent reconciliation, rather than to Apply a previously saved plan: Terraform persists state reflecting actions and known attributes after apply operations. The question concerns Apply a previously saved plan acting to execute precisely a previously generated binary execution plan, not a limit of Updated state after apply.
B:The proposed warning belongs to Apply variable overrides, which serves the different goal to set an input variable for a particular deployment without editing its declaration, rather than to Apply a previously saved plan: terraform apply -var='name=value' supplies root-module input during that run. The question concerns Apply a previously saved plan acting to execute precisely a previously generated binary execution plan, not a limit of Apply variable overrides.
D:The proposed warning belongs to Apply failure diagnosis, which serves the different goal to rerun a plan after a partial apply rather than assuming complete rollback, rather than to Apply a previously saved plan: Terraform does not guarantee all-or-nothing rollback across external provider APIs. The question concerns Apply a previously saved plan acting to execute precisely a previously generated binary execution plan, not a limit of Apply failure diagnosis.
Question 851
Before adopting ignore_changes lifecycle to suppress planned updates for selected externally managed attributes, which statement sets an accurate boundary?
- A uniqueness constraint or quota can still prevent parallel old and new objects.
- Ignored attributes may still be used during initial resource creation.
- No extra depends_on is needed for an already represented relationship.
- Excessive explicit dependencies can make planning conservative and values unknown.
Explanation
Correct Answer
B:For ignore_changes lifecycle in the task to suppress planned updates for selected externally managed attributes, the important caution is: Ignored attributes may still be used during initial resource creation. The reason this matters is its actual behavior: ignore_changes tells Terraform to disregard specified differences when planning updates to an existing resource.
Incorrect Answers
A:The proposed warning belongs to create_before_destroy lifecycle, which serves the different goal to favor replacement resource creation before deletion of its predecessor, rather than to ignore_changes lifecycle: The lifecycle rule changes replacement ordering when the provider and external constraints permit it. The question concerns ignore_changes lifecycle acting to suppress planned updates for selected externally managed attributes, not a limit of create_before_destroy lifecycle.
C:The proposed warning belongs to Implicit dependency from expression, which serves the different goal to order resources when one consumes an attribute produced by another, rather than to ignore_changes lifecycle: Terraform derives an edge from an expression reference and schedules the producer first. The question concerns ignore_changes lifecycle acting to suppress planned updates for selected externally managed attributes, not a limit of Implicit dependency from expression.
D:The proposed warning belongs to Explicit depends_on relationship, which serves the different goal to order otherwise unreferenced actions that have a hidden operational dependency, rather than to ignore_changes lifecycle: depends_on declares an ordering relationship when there is no suitable value reference. The question concerns ignore_changes lifecycle acting to suppress planned updates for selected externally managed attributes, not a limit of Explicit depends_on relationship.
Question 852
A Terraform rollout has two separate requirements: first, refer to a provider configuration by its local name and alias; second, configure a second instance of the same provider for another account or region. Which assignment of mechanisms correctly handles both responsibilities?
- First use Different provider local names; then use Aliased provider instance.
- First use Resource provider meta-argument; then use Different provider local names.
- First use Provider alias reference address; then use Resource provider meta-argument.
- First use Aliased provider instance; then use Provider alias reference address.
- First use Provider alias reference address; then use Aliased provider instance.
Explanation
Correct Answer
E:The first requirement, to refer to a provider configuration by its local name and alias, is handled by Provider alias reference address: An address such as aws.audit identifies a specific configured instance of the aws provider. The second requirement, to configure a second instance of the same provider for another account or region, is handled by Aliased provider instance: The alias argument gives a provider configuration an additional address that resources can select. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to refer to a provider configuration by its local name and alias and configure a second instance of the same provider for another account or region, the first candidate Different provider local names addresses declare several provider types in the same root module; the second candidate Aliased provider instance addresses configure a second instance of the same provider for another account or region. This mapping fails because the first mechanism primarily supports the task to declare several provider types in the same root module; the actual requirements are refer to a provider configuration by its local name and alias first and configure a second instance of the same provider for another account or region second.
B:For the requested tasks to refer to a provider configuration by its local name and alias and configure a second instance of the same provider for another account or region, the first candidate Resource provider meta-argument addresses direct an individual resource to the intended aliased provider; the second candidate Different provider local names addresses declare several provider types in the same root module. This mapping fails because the first mechanism primarily supports the task to direct an individual resource to the intended aliased provider and the second mechanism primarily supports the task to declare several provider types in the same root module; the actual requirements are refer to a provider configuration by its local name and alias first and configure a second instance of the same provider for another account or region second.
C:For the requested tasks to refer to a provider configuration by its local name and alias and configure a second instance of the same provider for another account or region, the first candidate Provider alias reference address addresses refer to a provider configuration by its local name and alias; the second candidate Resource provider meta-argument addresses direct an individual resource to the intended aliased provider. This mapping fails because the second mechanism primarily supports the task to direct an individual resource to the intended aliased provider; the actual requirements are refer to a provider configuration by its local name and alias first and configure a second instance of the same provider for another account or region second.
D:For the requested tasks to refer to a provider configuration by its local name and alias and configure a second instance of the same provider for another account or region, the first candidate Aliased provider instance addresses configure a second instance of the same provider for another account or region; the second candidate Provider alias reference address addresses refer to a provider configuration by its local name and alias. This mapping fails because the first mechanism primarily supports the task to configure a second instance of the same provider for another account or region and the second mechanism primarily supports the task to refer to a provider configuration by its local name and alias; the actual requirements are refer to a provider configuration by its local name and alias first and configure a second instance of the same provider for another account or region second.
Question 853
A Terraform rollout has two separate requirements: first, suppress planned updates for selected externally managed attributes; second, detect an impossible dependency ordering caused by circular references. Which assignment of mechanisms correctly handles both responsibilities?
- First use Explicit depends_on relationship; then use Terraform resource graph cycle.
- First use Terraform resource graph cycle; then use ignore_changes lifecycle.
- First use Implicit dependency from expression; then use Explicit depends_on relationship.
- First use ignore_changes lifecycle; then use Implicit dependency from expression.
- First use ignore_changes lifecycle; then use Terraform resource graph cycle.
Explanation
Correct Answer
E:The first requirement, to suppress planned updates for selected externally managed attributes, is handled by ignore_changes lifecycle: ignore_changes tells Terraform to disregard specified differences when planning updates to an existing resource. The second requirement, to detect an impossible dependency ordering caused by circular references, is handled by Terraform resource graph cycle: Terraform reports cycles when resources depend on one another in a way it cannot order. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to suppress planned updates for selected externally managed attributes and detect an impossible dependency ordering caused by circular references, the first candidate Explicit depends_on relationship addresses order otherwise unreferenced actions that have a hidden operational dependency; the second candidate Terraform resource graph cycle addresses detect an impossible dependency ordering caused by circular references. This mapping fails because the first mechanism primarily supports the task to order otherwise unreferenced actions that have a hidden operational dependency; the actual requirements are suppress planned updates for selected externally managed attributes first and detect an impossible dependency ordering caused by circular references second.
B:For the requested tasks to suppress planned updates for selected externally managed attributes and detect an impossible dependency ordering caused by circular references, the first candidate Terraform resource graph cycle addresses detect an impossible dependency ordering caused by circular references; the second candidate ignore_changes lifecycle addresses suppress planned updates for selected externally managed attributes. This mapping fails because the first mechanism primarily supports the task to detect an impossible dependency ordering caused by circular references and the second mechanism primarily supports the task to suppress planned updates for selected externally managed attributes; the actual requirements are suppress planned updates for selected externally managed attributes first and detect an impossible dependency ordering caused by circular references second.
C:For the requested tasks to suppress planned updates for selected externally managed attributes and detect an impossible dependency ordering caused by circular references, the first candidate Implicit dependency from expression addresses order resources when one consumes an attribute produced by another; the second candidate Explicit depends_on relationship addresses order otherwise unreferenced actions that have a hidden operational dependency. This mapping fails because the first mechanism primarily supports the task to order resources when one consumes an attribute produced by another and the second mechanism primarily supports the task to order otherwise unreferenced actions that have a hidden operational dependency; the actual requirements are suppress planned updates for selected externally managed attributes first and detect an impossible dependency ordering caused by circular references second.
D:For the requested tasks to suppress planned updates for selected externally managed attributes and detect an impossible dependency ordering caused by circular references, the first candidate ignore_changes lifecycle addresses suppress planned updates for selected externally managed attributes; the second candidate Implicit dependency from expression addresses order resources when one consumes an attribute produced by another. This mapping fails because the second mechanism primarily supports the task to order resources when one consumes an attribute produced by another; the actual requirements are suppress planned updates for selected externally managed attributes first and detect an impossible dependency ordering caused by circular references second.
Question 854
A Terraform rollout has two separate requirements: first, execute precisely a previously generated binary execution plan; second, create an upstream object before a dependent reference is resolved. Which assignment of mechanisms correctly handles both responsibilities?
- First use Updated state after apply; then use Apply failure diagnosis.
- First use Dependency-ordered apply; then use Apply a previously saved plan.
- First use Apply a previously saved plan; then use Updated state after apply.
- First use Apply a previously saved plan; then use Dependency-ordered apply.
- First use Apply failure diagnosis; then use Dependency-ordered apply.
Explanation
Correct Answer
D:The first requirement, to execute precisely a previously generated binary execution plan, is handled by Apply a previously saved plan: terraform apply change.tfplan applies that saved plan rather than recalculating a fresh interactive plan. The second requirement, to create an upstream object before a dependent reference is resolved, is handled by Dependency-ordered apply: Terraform uses references and explicit dependencies to order apply graph operations. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to execute precisely a previously generated binary execution plan and create an upstream object before a dependent reference is resolved, the first candidate Updated state after apply addresses record the result of successful provider operations for subsequent reconciliation; the second candidate Apply failure diagnosis addresses rerun a plan after a partial apply rather than assuming complete rollback. This mapping fails because the first mechanism primarily supports the task to record the result of successful provider operations for subsequent reconciliation and the second mechanism primarily supports the task to rerun a plan after a partial apply rather than assuming complete rollback; the actual requirements are execute precisely a previously generated binary execution plan first and create an upstream object before a dependent reference is resolved second.
B:For the requested tasks to execute precisely a previously generated binary execution plan and create an upstream object before a dependent reference is resolved, the first candidate Dependency-ordered apply addresses create an upstream object before a dependent reference is resolved; the second candidate Apply a previously saved plan addresses execute precisely a previously generated binary execution plan. This mapping fails because the first mechanism primarily supports the task to create an upstream object before a dependent reference is resolved and the second mechanism primarily supports the task to execute precisely a previously generated binary execution plan; the actual requirements are execute precisely a previously generated binary execution plan first and create an upstream object before a dependent reference is resolved second.
C:For the requested tasks to execute precisely a previously generated binary execution plan and create an upstream object before a dependent reference is resolved, the first candidate Apply a previously saved plan addresses execute precisely a previously generated binary execution plan; the second candidate Updated state after apply addresses record the result of successful provider operations for subsequent reconciliation. This mapping fails because the second mechanism primarily supports the task to record the result of successful provider operations for subsequent reconciliation; the actual requirements are execute precisely a previously generated binary execution plan first and create an upstream object before a dependent reference is resolved second.
E:For the requested tasks to execute precisely a previously generated binary execution plan and create an upstream object before a dependent reference is resolved, the first candidate Apply failure diagnosis addresses rerun a plan after a partial apply rather than assuming complete rollback; the second candidate Dependency-ordered apply addresses create an upstream object before a dependent reference is resolved. This mapping fails because the first mechanism primarily supports the task to rerun a plan after a partial apply rather than assuming complete rollback; the actual requirements are execute precisely a previously generated binary execution plan first and create an upstream object before a dependent reference is resolved second.
Question 855
The implementation must both abstract a deployment pattern while keeping provider details explicit and manage different clouds from one Terraform root module. Which TWO mechanisms directly address these two separate requirements? Choose TWO.
- Vendor portability through modules
- Provider-specific implementation
- Service-agnostic orchestration
- Cross-platform dependency references
- Multi-cloud provider configuration
Explanation
Correct Answers
A:Among the paired tasks to abstract a deployment pattern while keeping provider details explicit and manage different clouds from one Terraform root module, Vendor portability through modules serves the requirement to abstract a deployment pattern while keeping provider details explicit: A module can offer common input and output conventions even if its implementation uses provider-specific resources. The other task must be covered by a separate mechanism.
E:Among the paired tasks to abstract a deployment pattern while keeping provider details explicit and manage different clouds from one Terraform root module, Multi-cloud provider configuration serves the requirement to manage different clouds from one Terraform root module: Separate provider plugins can reconcile resources on multiple platforms within the same configuration. The other task must be covered by a separate mechanism.
Incorrect Answers
B:The requirements are abstract a deployment pattern while keeping provider details explicit and manage different clouds from one Terraform root module, while Provider-specific implementation supports the different task to use a common language without pretending providers expose identical capabilities: HCL and workflow are common while each provider defines its own resource schema and service-specific behavior. That capability is outside the two selected responsibilities.
C:The requirements are abstract a deployment pattern while keeping provider details explicit and manage different clouds from one Terraform root module, while Service-agnostic orchestration supports the different task to control DNS, SaaS, and cloud resources through a common configuration tool: Terraform providers expose resource and data types beyond infrastructure hosted by a cloud vendor. That capability is outside the two selected responsibilities.
D:The requested tasks are to abstract a deployment pattern while keeping provider details explicit; manage different clouds from one Terraform root module, but Cross-platform dependency references primarily addresses the different goal to use output from one service to configure another supported service: References can establish ordering when a resource on one platform consumes attributes from another resource; therefore it is not one of the mechanisms selected for the stated requirements.
Question 856
The implementation must both avoid collecting unnecessary sensitive operational output and enable Terraform debugging output while investigating a CLI failure. Which TWO mechanisms directly address these two separate requirements? Choose TWO.
- TF_LOG_CORE environment variable
- TF_LOG environment variable
- TF_LOG_PATH environment variable
- Disable debug logging after diagnosis
- TRACE diagnostic level
Explanation
Correct Answers
B:Among the paired tasks to avoid collecting unnecessary sensitive operational output and enable Terraform debugging output while investigating a CLI failure, TF_LOG environment variable serves the requirement to enable Terraform debugging output while investigating a CLI failure: TF_LOG sets a supported logging level such as DEBUG or TRACE for a Terraform process. The other task must be covered by a separate mechanism.
D:Among the paired tasks to avoid collecting unnecessary sensitive operational output and enable Terraform debugging output while investigating a CLI failure, Disable debug logging after diagnosis serves the requirement to avoid collecting unnecessary sensitive operational output: Unset debug environment variables or restore normal log settings when the investigation ends. The other task must be covered by a separate mechanism.
Incorrect Answers
A:The requirements are avoid collecting unnecessary sensitive operational output and enable Terraform debugging output while investigating a CLI failure, while TF_LOG_CORE environment variable supports the different task to focus debugging on Terraform Core behavior rather than provider messages: TF_LOG_CORE can set logging for Terraform Core separately from provider plugin output. That capability is outside the two selected responsibilities.
C:The requirements are avoid collecting unnecessary sensitive operational output and enable Terraform debugging output while investigating a CLI failure, while TF_LOG_PATH environment variable supports the different task to write Terraform debug logging to a named file: TF_LOG_PATH controls a file destination for Terraform logging when logging is enabled. That capability is outside the two selected responsibilities.
E:The requested tasks are to avoid collecting unnecessary sensitive operational output; enable Terraform debugging output while investigating a CLI failure, but TRACE diagnostic level primarily addresses the different goal to capture highly detailed events for a stubborn Terraform problem: TRACE is a very verbose Terraform logging level useful for deep troubleshooting; therefore it is not one of the mechanisms selected for the stated requirements.
Question 857
A configuration review identifies the need to replace a resource when a specified managed resource change occurs. Which mechanism most directly meets this particular need?
- Terraform resource graph cycle
- replace_triggered_by lifecycle
- Implicit dependency from expression
- prevent_destroy lifecycle
- ignore_changes lifecycle
Explanation
Correct Answer
B:The task is to replace a resource when a specified managed resource change occurs; replace_triggered_by lifecycle directly supports that requirement: replace_triggered_by adds replacement behavior tied to changes in other managed objects or attributes. Its relevant boundary is: It is not a general string-based condition on arbitrary local values.
Incorrect Answers
A:Terraform resource graph cycle is designed to detect an impossible dependency ordering caused by circular references, whereas this task is to replace a resource when a specified managed resource change occurs: Terraform reports cycles when resources depend on one another in a way it cannot order. Against replace_triggered_by lifecycle, its limitation is: Changing file order does not resolve a cyclic dependency graph.
C:Implicit dependency from expression is designed to order resources when one consumes an attribute produced by another, whereas this task is to replace a resource when a specified managed resource change occurs: Terraform derives an edge from an expression reference and schedules the producer first. Against replace_triggered_by lifecycle, its limitation is: No extra depends_on is needed for an already represented relationship.
D:prevent_destroy lifecycle is designed to protect a declared resource from plans that destroy its managed object, whereas this task is to replace a resource when a specified managed resource change occurs: prevent_destroy causes an error if a plan includes destruction while the rule is present in configuration. Against replace_triggered_by lifecycle, its limitation is: Removing the entire resource configuration also removes this protective rule.
E:ignore_changes lifecycle is designed to suppress planned updates for selected externally managed attributes, whereas this task is to replace a resource when a specified managed resource change occurs: ignore_changes tells Terraform to disregard specified differences when planning updates to an existing resource. Against replace_triggered_by lifecycle, its limitation is: Ignored attributes may still be used during initial resource creation.
Question 858
Before continuing an infrastructure rollout, the operator must run a controlled automated deployment from current configuration. Which mechanism most directly meets this particular need?
- Dependency-ordered apply
- Apply without interactive approval
- Apply the current configuration
- Updated state after apply
Explanation
Correct Answer
B:The task is to run a controlled automated deployment from current configuration; Apply without interactive approval directly supports that requirement: terraform apply -auto-approve skips the interactive approval prompt for an unsaved plan. Its relevant boundary is: It is appropriate only when automation has separate policy and authorization controls.
Incorrect Answers
A:Dependency-ordered apply is designed to create an upstream object before a dependent reference is resolved, whereas this task is to run a controlled automated deployment from current configuration: Terraform uses references and explicit dependencies to order apply graph operations. Against Apply without interactive approval, its limitation is: The order is not determined by the placement of resource blocks in files.
C:Apply the current configuration is designed to execute proposed operations after reviewing their impact, whereas this task is to run a controlled automated deployment from current configuration: terraform apply normally creates a plan and asks for approval before making changes. Against Apply without interactive approval, its limitation is: A plan might fail during execution if a provider API rejects an action.
D:Updated state after apply addresses the different requirement to record the result of successful provider operations for subsequent reconciliation: Terraform persists state reflecting actions and known attributes after apply operations; this does not by itself satisfy the requested task to run a controlled automated deployment from current configuration. For the stated need, Apply without interactive approval is the more direct mechanism.
Question 859
For a new infrastructure repository, the team wants to create similar resources in different regions without duplicating the root module. Which mechanism most directly meets this particular need?
- Explicit child module provider mapping
- Multiple regions in one configuration
- Different provider local names
- Aliased provider instance
- Resource provider meta-argument
Explanation
Correct Answer
B:The task is to create similar resources in different regions without duplicating the root module; Multiple regions in one configuration directly supports that requirement: Two provider instances with different region settings can serve explicitly assigned resources or modules. Its relevant boundary is: A default provider does not infer a resource's desired region from its name.
Incorrect Answers
A:Explicit child module provider mapping is designed to pass an aliased provider to resources inside a child module, whereas this task is to create similar resources in different regions without duplicating the root module: The providers map in a module block maps the child's provider name to a parent provider configuration. Against Multiple regions in one configuration, its limitation is: A child module cannot automatically see every parent alias just because it exists.
C:Different provider local names is designed to declare several provider types in the same root module, whereas this task is to create similar resources in different regions without duplicating the root module: The required_providers map can list multiple source addresses with distinct local names. Against Multiple regions in one configuration, its limitation is: Resources still use their provider-defined schemas and credentials.
D:Aliased provider instance is designed to configure a second instance of the same provider for another account or region, whereas this task is to create similar resources in different regions without duplicating the root module: The alias argument gives a provider configuration an additional address that resources can select. Against Multiple regions in one configuration, its limitation is: The existence of an alias does not move existing resources to that configuration automatically.
E:Resource provider meta-argument is designed to direct an individual resource to the intended aliased provider, whereas this task is to create similar resources in different regions without duplicating the root module: The provider meta-argument can select a configured instance such as aws.west for that resource. Against Multiple regions in one configuration, its limitation is: The alias must be declared and satisfy provider requirements.
Question 860
A team reviews the use of replace_triggered_by lifecycle in Terraform 1.12. Which purpose matches its actual behavior?
- protect a declared resource from plans that destroy its managed object
- suppress planned updates for selected externally managed attributes
- order resources when one consumes an attribute produced by another
- replace a resource when a specified managed resource change occurs
- detect an impossible dependency ordering caused by circular references
- order otherwise unreferenced actions that have a hidden operational dependency
Explanation
Correct Answer
D:The practical result of replace_triggered_by lifecycle, used to replace a resource when a specified managed resource change occurs, is: replace_triggered_by adds replacement behavior tied to changes in other managed objects or attributes. A qualification for this effect is: It is not a general string-based condition on arbitrary local values.
Incorrect Answers
A:That outcome applies to prevent_destroy lifecycle, intended to protect a declared resource from plans that destroy its managed object, rather than the question's feature replace_triggered_by lifecycle: prevent_destroy causes an error if a plan includes destruction while the rule is present in configuration. Unlike prevent_destroy lifecycle, replace_triggered_by lifecycle is intended to replace a resource when a specified managed resource change occurs, not to protect a declared resource from plans that destroy its managed object.
B:That outcome applies to ignore_changes lifecycle, intended to suppress planned updates for selected externally managed attributes, rather than the question's feature replace_triggered_by lifecycle: ignore_changes tells Terraform to disregard specified differences when planning updates to an existing resource. Unlike ignore_changes lifecycle, replace_triggered_by lifecycle is intended to replace a resource when a specified managed resource change occurs, not to suppress planned updates for selected externally managed attributes.
C:That outcome applies to Implicit dependency from expression, intended to order resources when one consumes an attribute produced by another, rather than the question's feature replace_triggered_by lifecycle: Terraform derives an edge from an expression reference and schedules the producer first. Unlike Implicit dependency from expression, replace_triggered_by lifecycle is intended to replace a resource when a specified managed resource change occurs, not to order resources when one consumes an attribute produced by another.
E:That outcome applies to Terraform resource graph cycle, intended to detect an impossible dependency ordering caused by circular references, rather than the question's feature replace_triggered_by lifecycle: Terraform reports cycles when resources depend on one another in a way it cannot order. Unlike Terraform resource graph cycle, replace_triggered_by lifecycle is intended to replace a resource when a specified managed resource change occurs, not to detect an impossible dependency ordering caused by circular references.
F:That outcome applies to Explicit depends_on relationship, intended to order otherwise unreferenced actions that have a hidden operational dependency, rather than the question's feature replace_triggered_by lifecycle: depends_on declares an ordering relationship when there is no suitable value reference. Unlike Explicit depends_on relationship, replace_triggered_by lifecycle is intended to replace a resource when a specified managed resource change occurs, not to order otherwise unreferenced actions that have a hidden operational dependency.