mcAfee Secure Website
23

HashiCorp Terraform Associate 004 Bundle

Exam Code: Terraform Associate 004

Exam Name HashiCorp Certified: Terraform Associate (004)

Certification Provider: HashiCorp

Corresponding Certification: Terraform Associate

Terraform Associate 004 Training Materials $44.99

Reliable & Actual Study Materials for Terraform Associate 004 Exam Success

The Latest Terraform Associate 004 Exam Questions as Experienced in the Actual Test!

  • 24
    Questions & Answers

    Terraform Associate 004 Questions & Answers

    167 Questions & Answers

    Includes questions types found on actual exam such as drag and drop, simulation, type in, and fill in the blank.

  • 25
    Terraform Associate 004 Video Course

    Terraform Associate 004 Training Course

    118 Video Lectures

    Based on Real Life Scenarios which you will encounter in exam and learn by working with real equipment.

  • exam =30
    Study Guide

    Terraform Associate 004 Study Guide

    285 PDF Pages

    Study Guide developed by industry experts who have written exams in the past. They are technology-specific IT certification researchers with at least a decade of experience at Fortune 500 companies.

exam =32

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

Guarantee

Satisfaction Guaranteed

Pass4sure has a remarkable HashiCorp Candidate Success record. We're confident of our products and provide no hassle product exchange. That's how confident we are!

99.3% Pass Rate
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • exam =34
    Questions & Answers

    Questions & Answers

    167 Questions

    $124.99
    exam =35
  • exam =37
    Terraform Associate 004 Video Course

    Training Course

    118 Video Lectures

    $39.99
  • exam =36
    Study Guide

    Study Guide

    285 PDF Pages

    $29.99

HashiCorp Terraform Associate 004 Practice Test 42

Question 410

A Terraform associate evaluates: A module should reject an unsupported environment tier before creating resources. Select TWO complementary responses: the appropriate action AND direct evidence it worked.

  1. A supported write-only argument updates the target without storing the supplied secret in state or plan.
  2. Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.
  3. An invalid test input fails with the intended error while an approved value passes validation.
  4. Manually duplicating derived labels and tags across resources invites inconsistency and errors.
  5. Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned.

Explanation

Correct Answers

C:

The observed situation is: A module should reject an unsupported environment tier before creating resources. The acceptance evidence is: An invalid test input fails with the intended error while an approved value passes validation. It verifies the corrective approach (Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned.) and controls the risk: Malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. Checking an unrelated Terraform setting would not prove the stated requirement was met.

E:

The case says: A module should reject an unsupported environment tier before creating resources. The directly relevant Terraform response is: Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned. This addresses the related failure mode: Malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. Validate the result by checking: An invalid test input fails with the intended error while an approved value passes validation. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

A supported write-only argument updates the target without storing the supplied secret in state or plan. This belongs to Provider write-only arguments and Vault integration (official objective 4h). Its separate risk is that using an ordinary resource argument can persist secrets in state, while unsupported write-only fields cannot be assumed to exist. The question instead tests Input variable validation rules; that other safeguard alone does not verify it.

B:

Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. This is relevant to Preconditions postconditions and checks (official objective 4g). Its distinct failure risk is that confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. The present question tests Input variable validation rules, which this measure alone does not establish.

D:

Manually duplicating derived labels and tags across resources invites inconsistency and errors. This addresses Terraform expressions and built-in functions (official objective 4e). The separate hazard is that manually duplicating derived labels and tags across resources invites inconsistency and errors. It does not by itself satisfy the case-specific requirement for Input variable validation rules.

Question 411

A Terraform engineer reports: A database resource must fail planning if an input replication setting violates a required constraint. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Pass secrets through provider-supported write-only arguments and appropriate Vault or ephemeral sources, checking provider versions and never logging values.
  2. Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned.
  3. Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.
  4. Use depends_on only when a real ordering requirement is not represented by an attribute reference, after checking implicit dependencies first.

Explanation

Correct Answer

C:

The case says: A database resource must fail planning if an input replication setting violates a required constraint. The directly relevant Terraform response is: Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. This addresses the related failure mode: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Validate the result by checking: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Pass secrets through provider-supported write-only arguments and appropriate Vault or ephemeral sources, checking provider versions and never logging values. This belongs to Provider write-only arguments and Vault integration (official objective 4h). Its separate risk is that using an ordinary resource argument can persist secrets in state, while unsupported write-only fields cannot be assumed to exist. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

B:

Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned. This is relevant to Input variable validation rules (official objective 4g). Its distinct failure risk is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. The present question tests Preconditions postconditions and checks, which this measure alone does not establish.

D:

Use depends_on only when a real ordering requirement is not represented by an attribute reference, after checking implicit dependencies first. This addresses Explicit depends_on for hidden dependencies (official objective 4f). The separate hazard is that terraform may not infer relationships that have no data reference, but excessive explicit dependencies can make plans unnecessarily conservative. It does not by itself satisfy the case-specific requirement for Preconditions postconditions and checks.

Question 412

After a reviewed change, the team checks: A database resource must fail planning if an input replication setting violates a required constraint. Which evidence MOST directly proves the selected approach is working?

  1. An authorized workflow can consume the output while casual CLI display is redacted and backend access remains restricted.
  2. The resource graph includes the required ordering without invented dependencies between unrelated resources.
  3. A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed.
  4. An invalid test input fails with the intended error while an approved value passes validation.

Explanation

Correct Answer

C:

The observed situation is: A database resource must fail planning if an input replication setting violates a required constraint. The acceptance evidence is: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. It verifies the corrective approach (Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.) and controls the risk: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

An authorized workflow can consume the output while casual CLI display is redacted and backend access remains restricted. This belongs to Outputs and sensitive display control (official objective 4c). Its separate risk is that a sensitive output designation hides normal CLI disclosure but does not guarantee the underlying state contains no secret. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

B:

The resource graph includes the required ordering without invented dependencies between unrelated resources. This is relevant to Explicit depends_on for hidden dependencies (official objective 4f). Its distinct failure risk is that terraform may not infer relationships that have no data reference, but excessive explicit dependencies can make plans unnecessarily conservative. The present question tests Preconditions postconditions and checks, which this measure alone does not establish.

D:

An invalid test input fails with the intended error while an approved value passes validation. This addresses Input variable validation rules (official objective 4g). The separate hazard is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. It does not by itself satisfy the case-specific requirement for Preconditions postconditions and checks.

Question 413

A configuration review reveals: A platform owner wants an advisory test of an endpoint's health after apply without turning every warning into failure. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Reference a managed resource attribute directly in another resource argument so Terraform creates the appropriate dependency graph.
  2. Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned.
  3. Use for_each keyed by stable resource identifiers for collections whose entries change independently and count for genuinely index-oriented repetition.
  4. Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.

Explanation

Correct Answer

D:

The case says: A platform owner wants an advisory test of an endpoint's health after apply without turning every warning into failure. The directly relevant Terraform response is: Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. This addresses the related failure mode: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Validate the result by checking: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Reference a managed resource attribute directly in another resource argument so Terraform creates the appropriate dependency graph. This belongs to Implicit dependency through attribute reference (official objective 4b). Its separate risk is that hardcoding an anticipated ID bypasses Terraform's graph and can reference a stale or nonexistent object. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

B:

Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned. This is relevant to Input variable validation rules (official objective 4g). Its distinct failure risk is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. The present question tests Preconditions postconditions and checks, which this measure alone does not establish.

C:

Use for_each keyed by stable resource identifiers for collections whose entries change independently and count for genuinely index-oriented repetition. That addresses count versus for_each stable addressing (official objective 4e), specifically the hazard that removing a middle entry from a count-indexed collection can shift addresses and provoke unintended replacements. Here the necessary action or evidence is Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate, not that separate control.

Question 414

A Terraform governance audit identifies: A platform owner wants an advisory test of an endpoint's health after apply without turning every warning into failure. What risk MOST directly explains why a correction is needed?

  1. Malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid.
  2. Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning.
  3. Using a set where stable indices are required can make addressing and ordering assumptions invalid.
  4. A data source query alone will not create or delete the referenced infrastructure object.

Explanation

Correct Answer

B:

The reported issue (A platform owner wants an advisory test of an endpoint's health after apply without turning every warning into failure) exposes the risk: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. The corrective action is: Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. Confirm with: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. The risk is specific to this configuration or operation, not an unrelated Terraform feature.

Incorrect Answers

A:

Malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. This belongs to Input variable validation rules (official objective 4g). Its separate risk is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

C:

Using a set where stable indices are required can make addressing and ordering assumptions invalid. That is the exact risk associated with Terraform list set and map collections (official objective 4d), not the required Preconditions postconditions and checks outcome.

D:

A data source query alone will not create or delete the referenced infrastructure object. This addresses Managed resources versus data sources (official objective 4a). The separate hazard is that a data source query alone will not create or delete the referenced infrastructure object. It does not by itself satisfy the case-specific requirement for Preconditions postconditions and checks.

Question 415

During a controlled infrastructure change, a team observes: A team assumes check blocks always block resource creation when assertions fail. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned.
  2. Declare typed input variables and supply different values through approved tfvars or other documented input mechanisms rather than editing module internals.
  3. Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.
  4. Select list when element order and duplicates matter, set for unique unordered values, and map for values indexed by string keys.

Explanation

Correct Answer

C:

The case says: A team assumes check blocks always block resource creation when assertions fail. The directly relevant Terraform response is: Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. This addresses the related failure mode: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Validate the result by checking: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned. This belongs to Input variable validation rules (official objective 4g). Its separate risk is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

B:

Declare typed input variables and supply different values through approved tfvars or other documented input mechanisms rather than editing module internals. This is relevant to Input variables and default or CLI overrides (official objective 4c). Its distinct failure risk is that hardcoded environment values in shared configuration create accidental cross-environment changes. The present question tests Preconditions postconditions and checks, which this measure alone does not establish.

D:

Select list when element order and duplicates matter, set for unique unordered values, and map for values indexed by string keys. This addresses Terraform list set and map collections (official objective 4d). The separate hazard is that using a set where stable indices are required can make addressing and ordering assumptions invalid. It does not by itself satisfy the case-specific requirement for Preconditions postconditions and checks.

Question 416

An operator wants proof regarding: A team assumes check blocks always block resource creation when assertions fail. Which evidence MOST directly proves the selected approach is working?

  1. Variable validation and console inspection show each named attribute or tuple position has the expected type.
  2. An invalid test input fails with the intended error while an approved value passes validation.
  3. The replacement plan shows create-before-destroy ordering and a test confirms provider constraints permit both instances.
  4. A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed.

Explanation

Correct Answer

D:

The observed situation is: A team assumes check blocks always block resource creation when assertions fail. The acceptance evidence is: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. It verifies the corrective approach (Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.) and controls the risk: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

Variable validation and console inspection show each named attribute or tuple position has the expected type. This belongs to Object and tuple structural types (official objective 4d). Its separate risk is that treating a structured object like an untyped string makes required fields and attribute access error-prone. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

B:

An invalid test input fails with the intended error while an approved value passes validation. This is relevant to Input variable validation rules (official objective 4g). Its distinct failure risk is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. The present question tests Preconditions postconditions and checks, which this measure alone does not establish.

C:

The replacement plan shows create-before-destroy ordering and a test confirms provider constraints permit both instances. That addresses Lifecycle create_before_destroy (official objective 4f), specifically the hazard that a replacement may fail if a globally unique name prevents a second object from existing simultaneously. Here the necessary action or evidence is A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed, not that separate control.

Question 417

An infrastructure deployment design calls for: A child module needs to assert that a fetched data source attribute meets a minimum value. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use sensitive to redact CLI display and ephemeral for supported temporary values that must be omitted from plan and state, respecting context restrictions.
  2. Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.
  3. Reference a managed resource attribute directly in another resource argument so Terraform creates the appropriate dependency graph.
  4. Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned.

Explanation

Correct Answer

B:

The case says: A child module needs to assert that a fetched data source attribute meets a minimum value. The directly relevant Terraform response is: Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. This addresses the related failure mode: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Validate the result by checking: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use sensitive to redact CLI display and ephemeral for supported temporary values that must be omitted from plan and state, respecting context restrictions. This belongs to Sensitive variables versus ephemeral variables (official objective 4h). Its separate risk is that a secret can still appear in state despite sensitive=true and may require an ephemeral value path to avoid persistence. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

C:

Reference a managed resource attribute directly in another resource argument so Terraform creates the appropriate dependency graph. That addresses Implicit dependency through attribute reference (official objective 4b), specifically the hazard that hardcoding an anticipated ID bypasses Terraform's graph and can reference a stale or nonexistent object. Here the necessary action or evidence is Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate, not that separate control.

D:

Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned. This addresses Input variable validation rules (official objective 4g). The separate hazard is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. It does not by itself satisfy the case-specific requirement for Preconditions postconditions and checks.

Question 418

A production-readiness review highlights: A child module needs to assert that a fetched data source attribute meets a minimum value. What risk MOST directly explains why a correction is needed?

  1. Terraform may not infer relationships that have no data reference, but excessive explicit dependencies can make plans unnecessarily conservative.
  2. Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning.
  3. Using a set where stable indices are required can make addressing and ordering assumptions invalid.
  4. Malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid.

Explanation

Correct Answer

B:

The reported issue (A child module needs to assert that a fetched data source attribute meets a minimum value) exposes the risk: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. The corrective action is: Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. Confirm with: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. The risk is specific to this configuration or operation, not an unrelated Terraform feature.

Incorrect Answers

A:

Terraform may not infer relationships that have no data reference, but excessive explicit dependencies can make plans unnecessarily conservative. This belongs to Explicit depends_on for hidden dependencies (official objective 4f). Its separate risk is that terraform may not infer relationships that have no data reference, but excessive explicit dependencies can make plans unnecessarily conservative. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

C:

Using a set where stable indices are required can make addressing and ordering assumptions invalid. That is the exact risk associated with Terraform list set and map collections (official objective 4d), not the required Preconditions postconditions and checks outcome.

D:

Malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. This addresses Input variable validation rules (official objective 4g). The separate hazard is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. It does not by itself satisfy the case-specific requirement for Preconditions postconditions and checks.

Question 419

An operations team needs to resolve: An engineer asks when a lifecycle condition is preferable to a general diagnostic check. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use sensitive to redact CLI display and ephemeral for supported temporary values that must be omitted from plan and state, respecting context restrictions.
  2. Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.
  3. Declare outputs for intended consumer values and mark sensitive outputs appropriately while separately protecting any state that may contain them.
  4. Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned.

Explanation

Correct Answer

B:

The case says: An engineer asks when a lifecycle condition is preferable to a general diagnostic check. The directly relevant Terraform response is: Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. This addresses the related failure mode: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Validate the result by checking: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use sensitive to redact CLI display and ephemeral for supported temporary values that must be omitted from plan and state, respecting context restrictions. This belongs to Sensitive variables versus ephemeral variables (official objective 4h). Its separate risk is that a secret can still appear in state despite sensitive=true and may require an ephemeral value path to avoid persistence. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

C:

Declare outputs for intended consumer values and mark sensitive outputs appropriately while separately protecting any state that may contain them. That addresses Outputs and sensitive display control (official objective 4c), specifically the hazard that a sensitive output designation hides normal CLI disclosure but does not guarantee the underlying state contains no secret. Here the necessary action or evidence is Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate, not that separate control.

D:

Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned. This addresses Input variable validation rules (official objective 4g). The separate hazard is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. It does not by itself satisfy the case-specific requirement for Preconditions postconditions and checks.

Question 420

A Terraform associate evaluates: An engineer asks when a lifecycle condition is preferable to a general diagnostic check. Select TWO complementary responses: the appropriate action AND direct evidence it worked.

  1. The resource graph includes the required ordering without invented dependencies between unrelated resources.
  2. Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned.
  3. Trying to reach directly into a child module's private resource address bypasses the module interface.
  4. A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed.
  5. Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.

Explanation

Correct Answers

D:

The observed situation is: An engineer asks when a lifecycle condition is preferable to a general diagnostic check. The acceptance evidence is: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. It verifies the corrective approach (Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate.) and controls the risk: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Checking an unrelated Terraform setting would not prove the stated requirement was met.

E:

The case says: An engineer asks when a lifecycle condition is preferable to a general diagnostic check. The directly relevant Terraform response is: Use lifecycle precondition or postcondition for enforceable resource assertions and check blocks for nonblocking health diagnostics when appropriate. This addresses the related failure mode: Confusing advisory checks with hard validation gates can let an unsafe value pass despite a warning. Validate the result by checking: A purposely violated precondition blocks the operation while an independent check reports its observed condition as designed. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

The resource graph includes the required ordering without invented dependencies between unrelated resources. This belongs to Explicit depends_on for hidden dependencies (official objective 4f). Its separate risk is that terraform may not infer relationships that have no data reference, but excessive explicit dependencies can make plans unnecessarily conservative. The question instead tests Preconditions postconditions and checks; that other safeguard alone does not verify it.

B:

Use a variable validation block with a clear condition and error message to reject invalid caller inputs before changes are planned. This is relevant to Input variable validation rules (official objective 4g). Its distinct failure risk is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. The present question tests Preconditions postconditions and checks, which this measure alone does not establish.

C:

Trying to reach directly into a child module's private resource address bypasses the module interface. That is the exact risk associated with Cross-module output references (official objective 4b), not the required Preconditions postconditions and checks outcome.