HashiCorp Terraform Associate 004 (HashiCorp Certified: Terraform Associate (004)) Practice Test 65

Question 640

A Terraform rollout has two separate requirements: first, preview actions required to reach the declared infrastructure state; second, focus on a small subset for exceptional repair or troubleshooting. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Plan without state refresh; then use Targeted planning.
  2. First use terraform plan command; then use Refresh-only planning.
  3. First use terraform plan command; then use Targeted planning.
  4. First use Refresh-only planning; then use Plan without state refresh.
  5. First use Targeted planning; then use terraform plan command.

Explanation

Correct Answer

C:

The first requirement, to preview actions required to reach the declared infrastructure state, is handled by terraform plan command: terraform plan shows changes Terraform expects, including creates, updates, deletes, and replacements. The second 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. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to preview actions required to reach the declared infrastructure state and focus on a small subset for exceptional repair or troubleshooting, 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; the actual requirements are preview actions required to reach the declared infrastructure state first and focus on a small subset for exceptional repair or troubleshooting second.

B:

For the requested tasks to preview actions required to reach the declared infrastructure state and focus on a small subset for exceptional repair or troubleshooting, the first candidate terraform plan command addresses preview actions required to reach the declared infrastructure state; the second candidate Refresh-only planning addresses inspect externally changed infrastructure without planning configuration reconciliation. This mapping fails because the second mechanism primarily supports the task to inspect externally changed infrastructure without planning configuration reconciliation; the actual requirements are preview actions required to reach the declared infrastructure state first and focus on a small subset for exceptional repair or troubleshooting second.

D:

For the requested tasks to preview actions required to reach the declared infrastructure state and focus on a small subset for exceptional repair or troubleshooting, the first candidate Refresh-only planning addresses inspect externally changed infrastructure without planning configuration reconciliation; 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 inspect externally changed infrastructure without planning configuration reconciliation and the second mechanism primarily supports the task to avoid remote refresh reads when an intentional troubleshooting constraint requires it; the actual requirements are preview actions required to reach the declared infrastructure state first and focus on a small subset for exceptional repair or troubleshooting second.

E:

For the requested tasks to preview actions required to reach the declared infrastructure state and focus on a small subset for exceptional repair or troubleshooting, the first candidate Targeted planning addresses focus on a small subset for exceptional repair or troubleshooting; the second candidate terraform plan command addresses preview actions required to reach the declared infrastructure state. This mapping fails because the first mechanism primarily supports the task to focus on a small subset for exceptional repair or troubleshooting and the second mechanism primarily supports the task to preview actions required to reach the declared infrastructure state; the actual requirements are preview actions required to reach the declared infrastructure state first and focus on a small subset for exceptional repair or troubleshooting second.

Question 641

A change proposal relies on Aliased provider instance for the task to configure a second instance of the same provider for another account or region. Which limitation specifically applies to it?

  1. The alias must be declared and satisfy provider requirements.
  2. The existence of an alias does not move existing resources to that configuration automatically.
  3. Aliases and complex configurations often require explicit mapping.
  4. A child module cannot automatically see every parent alias just because it exists.
  5. Resources still use their provider-defined schemas and credentials.

Explanation

Correct Answer

B:

For Aliased provider instance in the task to configure a second instance of the same provider for another account or region, the important caution is: The existence of an alias does not move existing resources to that configuration automatically. The reason this matters is its actual behavior: The alias argument gives a provider configuration an additional address that resources can select.

Incorrect Answers

A:

The proposed warning belongs to Resource provider meta-argument, which serves the different goal to direct an individual resource to the intended aliased provider, rather than to Aliased provider instance: The provider meta-argument can select a configured instance such as aws.west for that resource. The question concerns Aliased provider instance acting to configure a second instance of the same provider for another account or region, not a limit of Resource provider meta-argument.

C:

The proposed warning belongs to Default provider configuration inheritance, which serves the different goal to let a child module use default provider settings from its parent, rather than to Aliased provider instance: Child modules commonly inherit default provider configurations from the calling module. The question concerns Aliased provider instance acting to configure a second instance of the same provider for another account or region, not a limit of Default provider configuration inheritance.

D:

The proposed warning belongs to Explicit child module provider mapping, which serves the different goal to pass an aliased provider to resources inside a child module, rather than to Aliased provider instance: The providers map in a module block maps the child's provider name to a parent provider configuration. The question concerns Aliased provider instance acting to configure a second instance of the same provider for another account or region, not a limit of Explicit child module provider mapping.

E:

The proposed warning belongs to Different provider local names, which serves the different goal to declare several provider types in the same root module, rather than to Aliased provider instance: The required_providers map can list multiple source addresses with distinct local names. The question concerns Aliased provider instance acting to configure a second instance of the same provider for another account or region, not a limit of Different provider local names.

Question 642

A Terraform rollout has two separate requirements: first, recognize that a resource was changed outside Terraform; second, rename a managed resource address without destroying its remote object. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Remote drift detection during plan; then use removed block with destroy=false.
  2. First use removed block with destroy=false; then use terraform state rm.
  3. First use Remote drift detection during plan; then use moved block for refactoring.
  4. First use moved block for refactoring; then use Remote drift detection during plan.
  5. First use terraform state rm; then use moved block for refactoring.

Explanation

Correct Answer

C:

The first requirement, to recognize that a resource was changed outside Terraform, is handled by Remote drift detection during plan: Normal plan refresh reads can reveal drift between state and the remote object. The second 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. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to recognize that a resource was changed outside Terraform and rename a managed resource address without destroying its remote object, the first candidate Remote drift detection during plan addresses recognize that a resource was changed outside Terraform; the second candidate removed block with destroy=false addresses stop tracking an object in state but deliberately leave it deployed. This mapping fails because the second mechanism primarily supports the task to stop tracking an object in state but deliberately leave it deployed; the actual requirements are recognize that a resource was changed outside Terraform first and rename a managed resource address without destroying its remote object second.

B:

For the requested tasks to recognize that a resource was changed outside Terraform and rename a managed resource address without destroying its remote object, the first candidate removed block with destroy=false addresses stop tracking an object in state but deliberately leave it deployed; 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 stop tracking an object in state but deliberately leave it deployed and the second mechanism primarily supports the task to detach a resource address from state while leaving the remote object intact; the actual requirements are recognize that a resource was changed outside Terraform first and rename a managed resource address without destroying its remote object second.

D:

For the requested tasks to recognize that a resource was changed outside Terraform and rename a managed resource address without destroying its remote object, the first candidate moved block for refactoring addresses rename a managed resource address without destroying its remote object; the second candidate Remote drift detection during plan addresses recognize that a resource was changed outside Terraform. This mapping fails because the first mechanism primarily supports the task to rename a managed resource address without destroying its remote object and the second mechanism primarily supports the task to recognize that a resource was changed outside Terraform; the actual requirements are recognize that a resource was changed outside Terraform first and rename a managed resource address without destroying its remote object second.

E:

For the requested tasks to recognize that a resource was changed outside Terraform and rename a managed resource address without destroying its remote object, 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; the actual requirements are recognize that a resource was changed outside Terraform first and rename a managed resource address without destroying its remote object second.

Question 643

A Terraform rollout has two separate requirements: first, select module releases meeting a declared compatibility range; second, fetch a newly allowed version after editing the module version requirement. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Registry module version constraint; then use Module upgrade through init.
  2. First use Module upgrade through init; then use Registry module version constraint.
  3. First use Local module development lifecycle; then use Module upgrade through init.
  4. First use Registry module version constraint; then use Version of Git module.
  5. First use Version of Git module; then use Local module development lifecycle.

Explanation

Correct Answer

A:

The first requirement, to select module releases meeting a declared compatibility range, is handled by Registry module version constraint: A registry module call accepts a version argument that chooses supported release versions. The second requirement, to fetch a newly allowed version after editing the module version requirement, is handled by Module upgrade through init: Rerunning terraform init downloads compatible module source versions when module requirements change. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

B:

For the requested tasks to select module releases meeting a declared compatibility range and fetch a newly allowed version after editing the module version requirement, the first candidate Module upgrade through init addresses fetch a newly allowed version after editing the module version requirement; the second candidate Registry module version constraint addresses select module releases meeting a declared compatibility range. This mapping fails because the first mechanism primarily supports the task to fetch a newly allowed version after editing the module version requirement and the second mechanism primarily supports the task to select module releases meeting a declared compatibility range; the actual requirements are select module releases meeting a declared compatibility range first and fetch a newly allowed version after editing the module version requirement second.

C:

For the requested tasks to select module releases meeting a declared compatibility range and fetch a newly allowed version after editing the module version requirement, the first candidate Local module development lifecycle addresses update a local path module without applying registry release versioning; the second candidate Module upgrade through init addresses fetch a newly allowed version after editing the module version requirement. This mapping fails because the first mechanism primarily supports the task to update a local path module without applying registry release versioning; the actual requirements are select module releases meeting a declared compatibility range first and fetch a newly allowed version after editing the module version requirement second.

D:

For the requested tasks to select module releases meeting a declared compatibility range and fetch a newly allowed version after editing the module version requirement, the first candidate Registry module version constraint addresses select module releases meeting a declared compatibility range; the second candidate Version of Git module addresses pin a VCS module using its source ref rather than registry version. This mapping fails because the second mechanism primarily supports the task to pin a VCS module using its source ref rather than registry version; the actual requirements are select module releases meeting a declared compatibility range first and fetch a newly allowed version after editing the module version requirement second.

E:

For the requested tasks to select module releases meeting a declared compatibility range and fetch a newly allowed version after editing the module version requirement, the first candidate Version of Git module addresses pin a VCS module using its source ref rather than registry version; the second candidate Local module development lifecycle addresses update a local path module without applying registry release versioning. This mapping fails because the first mechanism primarily supports the task to pin a VCS module using its source ref rather than registry version and the second mechanism primarily supports the task to update a local path module without applying registry release versioning; the actual requirements are select module releases meeting a declared compatibility range first and fetch a newly allowed version after editing the module version requirement second.

Question 644

A Terraform rollout has two separate requirements: first, authenticate local Terraform CLI operations against HCP Terraform; second, route CLI-driven operations to the intended HCP workspace. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use CLI-driven HCP runs; then use HCP Terraform workspace selection.
  2. First use Terraform CLI login to HCP; then use HCP Terraform workspace selection.
  3. First use HCP Terraform workspace selection; then use Terraform CLI login to HCP.
  4. First use Terraform CLI login to HCP; then use Local to HCP state migration.
  5. First use Local to HCP state migration; then use CLI-driven HCP runs.

Explanation

Correct Answer

B:

The first requirement, to authenticate local Terraform CLI operations against HCP Terraform, is handled by Terraform CLI login to HCP: terraform login starts an authentication workflow and stores a token for HCP Terraform access. The second requirement, to route CLI-driven operations to the intended HCP workspace, is handled by HCP Terraform workspace selection: The cloud block workspace settings determine which HCP workspace the configuration uses. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to authenticate local Terraform CLI operations against HCP Terraform and route CLI-driven operations to the intended HCP workspace, the first candidate CLI-driven HCP runs addresses initiate workspace operations through familiar Terraform commands; the second candidate HCP Terraform workspace selection addresses route CLI-driven operations to the intended HCP workspace. This mapping fails because the first mechanism primarily supports the task to initiate workspace operations through familiar Terraform commands; the actual requirements are authenticate local Terraform CLI operations against HCP Terraform first and route CLI-driven operations to the intended HCP workspace second.

C:

For the requested tasks to authenticate local Terraform CLI operations against HCP Terraform and route CLI-driven operations to the intended HCP workspace, the first candidate HCP Terraform workspace selection addresses route CLI-driven operations to the intended HCP workspace; the second candidate Terraform CLI login to HCP addresses authenticate local Terraform CLI operations against HCP Terraform. This mapping fails because the first mechanism primarily supports the task to route CLI-driven operations to the intended HCP workspace and the second mechanism primarily supports the task to authenticate local Terraform CLI operations against HCP Terraform; the actual requirements are authenticate local Terraform CLI operations against HCP Terraform first and route CLI-driven operations to the intended HCP workspace second.

D:

For the requested tasks to authenticate local Terraform CLI operations against HCP Terraform and route CLI-driven operations to the intended HCP workspace, the first candidate Terraform CLI login to HCP addresses authenticate local Terraform CLI operations against HCP Terraform; the second candidate Local to HCP state migration addresses move a locally managed state history into an HCP Terraform workspace. This mapping fails because the second mechanism primarily supports the task to move a locally managed state history into an HCP Terraform workspace; the actual requirements are authenticate local Terraform CLI operations against HCP Terraform first and route CLI-driven operations to the intended HCP workspace second.

E:

For the requested tasks to authenticate local Terraform CLI operations against HCP Terraform and route CLI-driven operations to the intended HCP workspace, the first candidate Local to HCP state migration addresses move a locally managed state history into an HCP Terraform workspace; the second candidate CLI-driven HCP runs addresses initiate workspace operations through familiar Terraform commands. This mapping fails because the first mechanism primarily supports the task to move a locally managed state history into an HCP Terraform workspace and the second mechanism primarily supports the task to initiate workspace operations through familiar Terraform commands; the actual requirements are authenticate local Terraform CLI operations against HCP Terraform first and route CLI-driven operations to the intended HCP workspace second.

Question 645

A configuration walkthrough identifies "for expression filtering". Which task is it principally intended to support?

  1. embed evaluated expressions in a Terraform string
  2. transform a collection into a list of calculated values
  3. include only elements satisfying an if condition in a derived collection
  4. choose between two values based on a boolean condition

Explanation

Correct Answer

C:

The practical result of for expression filtering, used to include only elements satisfying an if condition in a derived collection, is: A for expression's optional if clause filters elements while projecting results. A qualification for this effect is: Filtering a collection is different from lifecycle ignore_changes.

Incorrect Answers

A:

That outcome applies to Template interpolation, intended to embed evaluated expressions in a Terraform string, rather than the question's feature for expression filtering: The ${...} syntax can interpolate an expression into a quoted string or template. Unlike Template interpolation, for expression filtering is intended to include only elements satisfying an if condition in a derived collection, not to embed evaluated expressions in a Terraform string.

B:

That outcome applies to for expression list projection, intended to transform a collection into a list of calculated values, rather than the question's feature for expression filtering: A bracketed for expression maps each element to a new value using a declared iterator. Unlike for expression list projection, for expression filtering is intended to include only elements satisfying an if condition in a derived collection, not to transform a collection into a list of calculated values.

D:

That outcome applies to Conditional expression, intended to choose between two values based on a boolean condition, rather than the question's feature for expression filtering: Terraform's condition ? true_value : false_value expression selects a value based on a predicate. Unlike Conditional expression, for expression filtering is intended to include only elements satisfying an if condition in a derived collection, not to choose between two values based on a boolean condition.

Question 646

A design uses Multi-cloud provider configuration to manage different clouds from one Terraform root module. Which qualification applies to the named mechanism?

  1. Replacing a cloud provider normally requires rewriting provider-dependent resources.
  2. Each provider still needs suitable credentials and service permissions.
  3. A unified plan cannot guarantee a distributed transaction across separate providers.
  4. The dependency does not remove authentication or network prerequisites on either platform.

Explanation

Correct Answer

B:

For Multi-cloud provider configuration in the task to manage different clouds from one Terraform root module, the important caution is: Each provider still needs suitable credentials and service permissions. The reason this matters is its actual behavior: Separate provider plugins can reconcile resources on multiple platforms within the same configuration.

Incorrect Answers

A:

The proposed warning belongs to Vendor portability through modules, which serves the different goal to abstract a deployment pattern while keeping provider details explicit, rather than to Multi-cloud provider configuration: A module can offer common input and output conventions even if its implementation uses provider-specific resources. The question concerns Multi-cloud provider configuration acting to manage different clouds from one Terraform root module, not a limit of Vendor portability through modules.

C:

The proposed warning belongs to Common Terraform lifecycle across providers, which serves the different goal to plan and apply resources from several providers in one run, rather than to Multi-cloud provider configuration: Terraform Core constructs a dependency graph and asks installed providers to implement their own actions. The question concerns Multi-cloud provider configuration acting to manage different clouds from one Terraform root module, not a limit of Common Terraform lifecycle across providers.

D:

The proposed warning belongs to Cross-platform dependency references, which serves the different goal to use output from one service to configure another supported service, rather than to Multi-cloud provider configuration: References can establish ordering when a resource on one platform consumes attributes from another resource. The question concerns Multi-cloud provider configuration acting to manage different clouds from one Terraform root module, not a limit of Cross-platform dependency references.

Question 647

A design uses TF_LOG environment variable to enable Terraform debugging output while investigating a CLI failure. Which qualification applies to the named mechanism?

  1. A log that shows an error does not automatically identify the root cause without context.
  2. Verbose logs can contain sensitive data and should be protected.
  3. Leaving verbose logs enabled can produce large sensitive artifacts.
  4. It is too noisy and potentially sensitive for routine production pipelines.

Explanation

Correct Answer

B:

For TF_LOG environment variable in the task to enable Terraform debugging output while investigating a CLI failure, the important caution is: Verbose logs can contain sensitive data and should be protected. The reason this matters is its actual behavior: TF_LOG sets a supported logging level such as DEBUG or TRACE for a Terraform process.

Incorrect Answers

A:

The proposed warning belongs to Log analysis and source protection, which serves the different goal to review debugging evidence without publishing API secrets, rather than to TF_LOG environment variable: Diagnostic logs should be stored and shared according to secret-handling policy. The question concerns TF_LOG environment variable acting to enable Terraform debugging output while investigating a CLI failure, not a limit of Log analysis and source protection.

C:

The proposed warning belongs to Disable debug logging after diagnosis, which serves the different goal to avoid collecting unnecessary sensitive operational output, rather than to TF_LOG environment variable: Unset debug environment variables or restore normal log settings when the investigation ends. The question concerns TF_LOG environment variable acting to enable Terraform debugging output while investigating a CLI failure, not a limit of Disable debug logging after diagnosis.

D:

The proposed warning belongs to TRACE diagnostic level, which serves the different goal to capture highly detailed events for a stubborn Terraform problem, rather than to TF_LOG environment variable: TRACE is a very verbose Terraform logging level useful for deep troubleshooting. The question concerns TF_LOG environment variable acting to enable Terraform debugging output while investigating a CLI failure, not a limit of TRACE diagnostic level.

Question 648

A platform engineering group needs to capture one execution plan for later approval and application. Which mechanism most directly meets this particular need?

  1. Targeted planning
  2. Refresh-only planning
  3. terraform plan command
  4. Plan saved to file

Explanation

Correct Answer

D:

The task is to capture one execution plan for later approval and application; Plan saved to file directly supports that requirement: terraform plan -out=change.tfplan saves an executable binary plan artifact. Its relevant boundary is: Saved plans can include sensitive data and should not be committed publicly.

Incorrect Answers

A:

Targeted planning is designed to focus on a small subset for exceptional repair or troubleshooting, whereas this task is to capture one execution plan for later approval and application: terraform plan -target=ADDRESS limits the planner's focus to the selected graph portion. Against Plan saved to file, its limitation is: Routine targeted planning can overlook intended changes elsewhere.

B:

Refresh-only planning is designed to inspect externally changed infrastructure without planning configuration reconciliation, whereas this task is to capture one execution plan for later approval and application: terraform plan -refresh-only proposes updates to state and outputs based on remote observations. Against Plan saved to file, its limitation is: It does not use configuration to correct drift in the remote service.

C:

terraform plan command is designed to preview actions required to reach the declared infrastructure state, whereas this task is to capture one execution plan for later approval and application: terraform plan shows changes Terraform expects, including creates, updates, deletes, and replacements. Against Plan saved to file, its limitation is: Plan does not persist the proposed changes to remote infrastructure.

Question 649

During a Terraform 1.12 implementation, the immediate requirement is to accept an external change into Terraform state without modifying remote infrastructure. Which mechanism most directly meets this particular need?

  1. Refresh-only reconciliation
  2. terraform state mv
  3. Drift reconciliation to configuration
  4. terraform state rm
  5. Remote drift detection during plan

Explanation

Correct Answer

A:

The task is to accept an external change into Terraform state without modifying remote infrastructure; Refresh-only reconciliation directly supports that requirement: A refresh-only plan or apply updates state and outputs to observed values. Its relevant boundary is: It does not make the live object conform to an old configuration value.

Incorrect Answers

B:

terraform state mv is designed to change a resource state address to match a configuration refactor, whereas this task is to accept an external change into Terraform state without modifying remote infrastructure: state mv rebinds an existing object under a new compatible address. Against Refresh-only reconciliation, its limitation is: It does not rename or migrate the remote object through its provider API.

C:

Drift reconciliation to configuration is designed to restore externally modified resource settings to desired code values, whereas this task is to accept an external change into Terraform state without modifying remote infrastructure: A regular plan and apply can propose changing a drifted object back to configured settings. Against Refresh-only reconciliation, its limitation is: A refresh-only apply instead accepts observed remote values into state.

D:

terraform state rm is designed to detach a resource address from state while leaving the remote object intact, whereas this task is to accept an external change into Terraform state without modifying remote infrastructure: state rm forgets the binding but does not delete the real infrastructure object. Against Refresh-only reconciliation, its limitation is: If its configuration remains, a later plan can propose creating another object.

E:

Remote drift detection during plan is designed to recognize that a resource was changed outside Terraform, whereas this task is to accept an external change into Terraform state without modifying remote infrastructure: Normal plan refresh reads can reveal drift between state and the remote object. Against Refresh-only reconciliation, its limitation is: Configuration reconciliation requires a subsequent reviewed apply.

Question 650

Before adopting for expression filtering to include only elements satisfying an if condition in a derived collection, which statement sets an accurate boundary?

  1. The two branches need compatible types for Terraform to reconcile the result.
  2. Interpolation is not required when an argument can take a direct expression reference.
  3. Filtering a collection is different from lifecycle ignore_changes.
  4. A function call does not fetch remote provider resources unless a data source is used.
  5. A for expression calculates values but does not itself create resource instances.

Explanation

Correct Answer

C:

For for expression filtering in the task to include only elements satisfying an if condition in a derived collection, the important caution is: Filtering a collection is different from lifecycle ignore_changes. The reason this matters is its actual behavior: A for expression's optional if clause filters elements while projecting results.

Incorrect Answers

A:

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 for expression filtering: Terraform's condition ? true_value : false_value expression selects a value based on a predicate. The question concerns for expression filtering acting to include only elements satisfying an if condition in a derived collection, not a limit of Conditional expression.

B:

The proposed warning belongs to Template interpolation, which serves the different goal to embed evaluated expressions in a Terraform string, rather than to for expression filtering: The ${...} syntax can interpolate an expression into a quoted string or template. The question concerns for expression filtering acting to include only elements satisfying an if condition in a derived collection, not a limit of Template interpolation.

D:

The proposed warning belongs to Built-in collection function, which serves the different goal to calculate collection values without an external provisioner, rather than to for expression filtering: Functions such as length, concat, and merge manipulate Terraform values during expression evaluation. The question concerns for expression filtering acting to include only elements satisfying an if condition in a derived collection, not a limit of Built-in collection function.

E:

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 for expression filtering: A bracketed for expression maps each element to a new value using a declared iterator. The question concerns for expression filtering acting to include only elements satisfying an if condition in a derived collection, not a limit of for expression list projection.

HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests