McAfee-Secured Website

Exam Bundle

Exam Code: Terraform Associate 004

Exam Name HashiCorp Certified: Terraform Associate (004)

Certification Provider: HashiCorp

Corresponding Certification: Terraform Associate

HashiCorp Terraform Associate 004 Bundle $19.99

100% HashiCorp Terraform Associate 004 Guaranteed Success With Testking Training Materials

Get Real Terraform Associate 004 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    Terraform Associate 004 Questions & Answers

    167 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual Terraform Associate 004 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • Study Guide

    Terraform Associate 004 Study Guide

    285 PDF Pages

    Developed by industry experts, this 285-page guide spells out in painstaking detail all of the information you need to ace Terraform Associate 004 exam.

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

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $154.98
Bundle Price: $134.99

Purchase Individually

  • Questions & Answers

    Questions & Answers

    167 Questions

    $124.99
  • Study Guide

    Study Guide

    285 PDF Pages

    $29.99

HashiCorp Terraform Associate 004 Practice Test 10

Question 90

The Terraform change owner at Eastbridge Operations seeks a verifiable outcome for: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. Which observation best confirms that the proposed correction worked?

  1. Only intended teams retain access and the workspace's new project is visible in its settings.
  2. Concurrent plans or applies operate on the same current state without overwriting an intervening state update.
  3. One job holds the lock while the other waits or fails safely instead of writing stale state.
  4. terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

Explanation

Correct Answer

D:

terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type. This directly verifies the corrective action: Install and configure the relevant provider that exposes the target platform's resource types. The measured result specifically addresses the failure at Eastbridge Operations: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type.

Incorrect Answers

A:

Only intended teams retain access and the workspace's new project is visible in its settings. This evidence would validate a DIFFERENT correction: Review destination project membership, variables, and project/workspace permissions before and after moving the workspace. That different correction addresses: A security team moves a workspace between HCP Terraform projects but fails to review inherited access consequences. It does not establish that the Eastbridge Operations issue has been corrected: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The relevant measured outcome is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

B:

Concurrent plans or applies operate on the same current state without overwriting an intervening state update. This evidence would validate a DIFFERENT correction: Use an appropriately configured shared backend with state locking and controlled access. That different correction addresses: A project shares one unmanaged state file among two engineers, causing each to overwrite the other's latest changes. It does not establish that the Eastbridge Operations issue has been corrected: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The relevant measured outcome is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

C:

One job holds the lock while the other waits or fails safely instead of writing stale state. This evidence would validate a DIFFERENT correction: Use a backend that supports state locking and avoid concurrent uncoordinated writes. That different correction addresses: Two automation jobs apply the same state concurrently and one overwrites the other's resource mappings. It does not establish that the Eastbridge Operations issue has been corrected: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The relevant measured outcome is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

Question 91

During repository review at Harborline Infrastructure, the platform team reports: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. Which proposed fix addresses the reported root cause?

  1. Install and configure the relevant provider that exposes the target platform's resource types.
  2. Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible.
  3. Handle the documented detailed exit codes: zero for no changes, two for changes, and one for errors.
  4. Manage CLI version installation separately and use init -upgrade only for dependency selections supported by configuration.

Explanation

Correct Answer

A:

Install and configure the relevant provider that exposes the target platform's resource types. This is targeted to the observed Terraform issue: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. At Harborline Infrastructure, the acceptance criterion is not merely a valid plan; the team should verify: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

Incorrect Answers

B:

Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. This would be suitable for a DIFFERENT Terraform problem: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not directly resolve the Harborline Infrastructure failure: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The required acceptance evidence instead is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

C:

Handle the documented detailed exit codes: zero for no changes, two for changes, and one for errors. This would be suitable for a DIFFERENT Terraform problem: A CI job invokes terraform plan -detailed-exitcode but treats a change-detected exit status as a tool failure. It does not directly resolve the Harborline Infrastructure failure: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The required acceptance evidence instead is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

D:

Manage CLI version installation separately and use init -upgrade only for dependency selections supported by configuration. This would be suitable for a DIFFERENT Terraform problem: A team assumes terraform init -upgrade also updates the Terraform CLI executable on engineers' laptops. It does not directly resolve the Harborline Infrastructure failure: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The required acceptance evidence instead is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

Question 92

An acceptance reviewer at Harborline Infrastructure must validate the fix for: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. What result would demonstrate that the identified problem is actually resolved?

  1. The module's resources resolve the caller-approved account and no unexpected credentials are used.
  2. terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.
  3. The CI decision distinguishes a legitimate diff from a genuine planning error without skipping review.
  4. The CLI version is checked independently and the provider version change appears in the lock file.

Explanation

Correct Answer

B:

terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type. This directly verifies the corrective action: Install and configure the relevant provider that exposes the target platform's resource types. The measured result specifically addresses the failure at Harborline Infrastructure: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type.

Incorrect Answers

A:

The module's resources resolve the caller-approved account and no unexpected credentials are used. This evidence would validate a DIFFERENT correction: Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. That different correction addresses: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not establish that the Harborline Infrastructure issue has been corrected: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The relevant measured outcome is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

C:

The CI decision distinguishes a legitimate diff from a genuine planning error without skipping review. This evidence would validate a DIFFERENT correction: Handle the documented detailed exit codes: zero for no changes, two for changes, and one for errors. That different correction addresses: A CI job invokes terraform plan -detailed-exitcode but treats a change-detected exit status as a tool failure. It does not establish that the Harborline Infrastructure issue has been corrected: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The relevant measured outcome is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

D:

The CLI version is checked independently and the provider version change appears in the lock file. This evidence would validate a DIFFERENT correction: Manage CLI version installation separately and use init -upgrade only for dependency selections supported by configuration. That different correction addresses: A team assumes terraform init -upgrade also updates the Terraform CLI executable on engineers' laptops. It does not establish that the Harborline Infrastructure issue has been corrected: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. The relevant measured outcome is: terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.

Question 93

During repository review at Westfield Digital Systems, the platform team reports: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. What is the most appropriate corrective action for this Terraform scenario?

  1. Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs.
  2. Use terraform init -backend=false for an appropriate backend-free local initialization.
  3. Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation.
  4. Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources.

Explanation

Correct Answer

D:

Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources. This is targeted to the observed Terraform issue: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. At Westfield Digital Systems, the acceptance criterion is not merely a valid plan; the team should verify: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

Incorrect Answers

A:

Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs. This would be suitable for a DIFFERENT Terraform problem: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. It does not directly resolve the Westfield Digital Systems failure: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The required acceptance evidence instead is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

B:

Use terraform init -backend=false for an appropriate backend-free local initialization. This would be suitable for a DIFFERENT Terraform problem: A team needs to initialize providers without contacting the configured remote backend during a local syntax-only preflight. It does not directly resolve the Westfield Digital Systems failure: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The required acceptance evidence instead is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

C:

Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation. This would be suitable for a DIFFERENT Terraform problem: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. It does not directly resolve the Westfield Digital Systems failure: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The required acceptance evidence instead is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

Question 94

An acceptance reviewer at Westfield Digital Systems must validate the fix for: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. Which controlled check would validate the remediation?

  1. Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.
  2. Clean installations select the approved provider versions with expected lock-file checksums.
  3. Provider and module dependencies initialize while the remote backend is not configured during that preflight.
  4. Each environment's state list contains only its own intended resource addresses.

Explanation

Correct Answer

A:

Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits. This directly verifies the corrective action: Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources. The measured result specifically addresses the failure at Westfield Digital Systems: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources.

Incorrect Answers

B:

Clean installations select the approved provider versions with expected lock-file checksums. This evidence would validate a DIFFERENT correction: Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs. That different correction addresses: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. It does not establish that the Westfield Digital Systems issue has been corrected: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The relevant measured outcome is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

C:

Provider and module dependencies initialize while the remote backend is not configured during that preflight. This evidence would validate a DIFFERENT correction: Use terraform init -backend=false for an appropriate backend-free local initialization. That different correction addresses: A team needs to initialize providers without contacting the configured remote backend during a local syntax-only preflight. It does not establish that the Westfield Digital Systems issue has been corrected: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The relevant measured outcome is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

D:

Each environment's state list contains only its own intended resource addresses. This evidence would validate a DIFFERENT correction: Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation. That different correction addresses: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. It does not establish that the Westfield Digital Systems issue has been corrected: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The relevant measured outcome is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

Question 95

At Evergreen Development, the Terraform review finds this specific problem: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. Which action would best restore the intended infrastructure-as-code workflow?

  1. Treat state as potentially sensitive, keep it out of public version control, and store it in a controlled backend.
  2. Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources.
  3. Inspect partial state and remote outcomes after a failed apply, then replan from the current condition.
  4. Use Terraform's declarative resource definitions and plan/apply reconciliation instead of imperative replay of creation commands.

Explanation

Correct Answer

B:

Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources. This is targeted to the observed Terraform issue: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. At Evergreen Development, the acceptance criterion is not merely a valid plan; the team should verify: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

Incorrect Answers

A:

Treat state as potentially sensitive, keep it out of public version control, and store it in a controlled backend. This would be suitable for a DIFFERENT Terraform problem: A teammate wants to commit terraform.tfstate to a public repository because state contains only harmless resource names. It does not directly resolve the Evergreen Development failure: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The required acceptance evidence instead is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

C:

Inspect partial state and remote outcomes after a failed apply, then replan from the current condition. This would be suitable for a DIFFERENT Terraform problem: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. It does not directly resolve the Evergreen Development failure: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The required acceptance evidence instead is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

D:

Use Terraform's declarative resource definitions and plan/apply reconciliation instead of imperative replay of creation commands. This would be suitable for a DIFFERENT Terraform problem: An operator treats Terraform as a one-time shell script and expects it to replay every creation command identically on each run. It does not directly resolve the Evergreen Development failure: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The required acceptance evidence instead is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

Question 96

After corrective work at Evergreen Development, a reviewer requests measurable proof for: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. Which observation best confirms that the proposed correction worked?

  1. Repository scanning finds no state artifact and only authorized identities can read stored state.
  2. A second plan against unchanged configuration and infrastructure proposes no unnecessary new resources.
  3. Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.
  4. The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

Explanation

Correct Answer

C:

Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits. This directly verifies the corrective action: Configure the provider centrally with an appropriately supplied credential rather than duplicating authentication in resources. The measured result specifically addresses the failure at Evergreen Development: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources.

Incorrect Answers

A:

Repository scanning finds no state artifact and only authorized identities can read stored state. This evidence would validate a DIFFERENT correction: Treat state as potentially sensitive, keep it out of public version control, and store it in a controlled backend. That different correction addresses: A teammate wants to commit terraform.tfstate to a public repository because state contains only harmless resource names. It does not establish that the Evergreen Development issue has been corrected: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The relevant measured outcome is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

B:

A second plan against unchanged configuration and infrastructure proposes no unnecessary new resources. This evidence would validate a DIFFERENT correction: Use Terraform's declarative resource definitions and plan/apply reconciliation instead of imperative replay of creation commands. That different correction addresses: An operator treats Terraform as a one-time shell script and expects it to replay every creation command identically on each run. It does not establish that the Evergreen Development issue has been corrected: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The relevant measured outcome is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

D:

The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation. This evidence would validate a DIFFERENT correction: Inspect partial state and remote outcomes after a failed apply, then replan from the current condition. That different correction addresses: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. It does not establish that the Evergreen Development issue has been corrected: A service provider API token is hardcoded inside every resource block and rotation requires editing dozens of resources. The relevant measured outcome is: Resource operations authenticate through the configured provider and rotation requires no resource-block credential edits.

Question 97

At Bluewater IT Services, the Terraform review finds this specific problem: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. How should the Terraform engineer correct this specific failure?

  1. Set supported region and authentication settings in the provider configuration or its documented environment variables.
  2. Treat state as potentially sensitive, keep it out of public version control, and store it in a controlled backend.
  3. Set TF_LOG to a needed diagnostic level for a controlled run and protect or redact any captured output.
  4. Verify the selected backend's documented locking support and add an execution serialization control if necessary.

Explanation

Correct Answer

A:

Set supported region and authentication settings in the provider configuration or its documented environment variables. This is targeted to the observed Terraform issue: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. At Bluewater IT Services, the acceptance criterion is not merely a valid plan; the team should verify: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

Incorrect Answers

B:

Treat state as potentially sensitive, keep it out of public version control, and store it in a controlled backend. This would be suitable for a DIFFERENT Terraform problem: A teammate wants to commit terraform.tfstate to a public repository because state contains only harmless resource names. It does not directly resolve the Bluewater IT Services failure: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The required acceptance evidence instead is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

C:

Set TF_LOG to a needed diagnostic level for a controlled run and protect or redact any captured output. This would be suitable for a DIFFERENT Terraform problem: An initialization failure has insufficient context, but an operator enables verbose logs and forgets the log may contain sensitive provider data. It does not directly resolve the Bluewater IT Services failure: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The required acceptance evidence instead is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

D:

Verify the selected backend's documented locking support and add an execution serialization control if necessary. This would be suitable for a DIFFERENT Terraform problem: A repository uses a remote backend that does not implement locking, but a team claims every remote backend automatically prevents concurrent applies. It does not directly resolve the Bluewater IT Services failure: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The required acceptance evidence instead is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

Question 98

After corrective work at Bluewater IT Services, a reviewer requests measurable proof for: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. Which verification outcome is the strongest evidence of the required correction?

  1. Repository scanning finds no state artifact and only authorized identities can read stored state.
  2. The provider targets the intended region and a plan shows resources using its configured account and endpoint.
  3. A simulated pair of runs does not perform simultaneous unsafe state writes.
  4. The diagnostic log identifies the failing operation without being published or retaining unrestricted credentials.

Explanation

Correct Answer

B:

The provider targets the intended region and a plan shows resources using its configured account and endpoint. This directly verifies the corrective action: Set supported region and authentication settings in the provider configuration or its documented environment variables. The measured result specifically addresses the failure at Bluewater IT Services: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables.

Incorrect Answers

A:

Repository scanning finds no state artifact and only authorized identities can read stored state. This evidence would validate a DIFFERENT correction: Treat state as potentially sensitive, keep it out of public version control, and store it in a controlled backend. That different correction addresses: A teammate wants to commit terraform.tfstate to a public repository because state contains only harmless resource names. It does not establish that the Bluewater IT Services issue has been corrected: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The relevant measured outcome is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

C:

A simulated pair of runs does not perform simultaneous unsafe state writes. This evidence would validate a DIFFERENT correction: Verify the selected backend's documented locking support and add an execution serialization control if necessary. That different correction addresses: A repository uses a remote backend that does not implement locking, but a team claims every remote backend automatically prevents concurrent applies. It does not establish that the Bluewater IT Services issue has been corrected: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The relevant measured outcome is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

D:

The diagnostic log identifies the failing operation without being published or retaining unrestricted credentials. This evidence would validate a DIFFERENT correction: Set TF_LOG to a needed diagnostic level for a controlled run and protect or redact any captured output. That different correction addresses: An initialization failure has insufficient context, but an operator enables verbose logs and forgets the log may contain sensitive provider data. It does not establish that the Bluewater IT Services issue has been corrected: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The relevant measured outcome is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

Question 99

The infrastructure engineers at Mariner Infrastructure Group document the following failure during a change review: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. What is the most appropriate corrective action for this Terraform scenario?

  1. Reconcile compatible provider constraints across root and child modules before selecting an installed version.
  2. Align the passed value with the child module's declared input type or update the module contract explicitly.
  3. Set supported region and authentication settings in the provider configuration or its documented environment variables.
  4. Run terraform init with the appropriate reconfigure or migration options after reviewing state location intent.

Explanation

Correct Answer

C:

Set supported region and authentication settings in the provider configuration or its documented environment variables. This is targeted to the observed Terraform issue: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. At Mariner Infrastructure Group, the acceptance criterion is not merely a valid plan; the team should verify: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

Incorrect Answers

A:

Reconcile compatible provider constraints across root and child modules before selecting an installed version. This would be suitable for a DIFFERENT Terraform problem: A platform's provider version range conflicts with the constraints of a child module and initialization fails with no compatible release. It does not directly resolve the Mariner Infrastructure Group failure: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The required acceptance evidence instead is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

B:

Align the passed value with the child module's declared input type or update the module contract explicitly. This would be suitable for a DIFFERENT Terraform problem: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. It does not directly resolve the Mariner Infrastructure Group failure: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The required acceptance evidence instead is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

D:

Run terraform init with the appropriate reconfigure or migration options after reviewing state location intent. This would be suitable for a DIFFERENT Terraform problem: A team reconfigures the remote state endpoint but assumes terraform plan alone will switch to the new backend automatically. It does not directly resolve the Mariner Infrastructure Group failure: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The required acceptance evidence instead is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

Question 100

The reliability team at Mariner Infrastructure Group is closing an incident described as follows: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. Which controlled check would validate the remediation?

  1. Terraform init resolves a provider version satisfying every participating required_providers constraint.
  2. terraform validate accepts an appropriately typed input and rejects the incompatible fixture.
  3. The initialized backend reads the expected workspace state, not an unintended empty backend.
  4. The provider targets the intended region and a plan shows resources using its configured account and endpoint.

Explanation

Correct Answer

D:

The provider targets the intended region and a plan shows resources using its configured account and endpoint. This directly verifies the corrective action: Set supported region and authentication settings in the provider configuration or its documented environment variables. The measured result specifically addresses the failure at Mariner Infrastructure Group: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables.

Incorrect Answers

A:

Terraform init resolves a provider version satisfying every participating required_providers constraint. This evidence would validate a DIFFERENT correction: Reconcile compatible provider constraints across root and child modules before selecting an installed version. That different correction addresses: A platform's provider version range conflicts with the constraints of a child module and initialization fails with no compatible release. It does not establish that the Mariner Infrastructure Group issue has been corrected: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The relevant measured outcome is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

B:

terraform validate accepts an appropriately typed input and rejects the incompatible fixture. This evidence would validate a DIFFERENT correction: Align the passed value with the child module's declared input type or update the module contract explicitly. That different correction addresses: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. It does not establish that the Mariner Infrastructure Group issue has been corrected: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The relevant measured outcome is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.

C:

The initialized backend reads the expected workspace state, not an unintended empty backend. This evidence would validate a DIFFERENT correction: Run terraform init with the appropriate reconfigure or migration options after reviewing state location intent. That different correction addresses: A team reconfigures the remote state endpoint but assumes terraform plan alone will switch to the new backend automatically. It does not establish that the Mariner Infrastructure Group issue has been corrected: A project uses a provider's resource type but expects the provider to infer a region from unrelated application variables. The relevant measured outcome is: The provider targets the intended region and a plan shows resources using its configured account and endpoint.