nerdexam
HashiCorpHashiCorp

TA-002-P · Question #15

TA-002-P Question #15: Real Exam Question with Answer & Explanation

The correct answer is C: Credentials. When terraform refresh (or the refresh phase of plan/apply) runs, it reads the configuration and state to query the cloud provider, updating the state, but it does not intrinsically modify or deeply analyze the internal structure of credentials or the cloud provider itself.

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

What is not processed when running a terraform refresh?

Options

  • AState file
  • BConfiguration file
  • CCredentials
  • DCloud provider

Explanation

When terraform refresh (or the refresh phase of plan/apply) runs, it reads the configuration and state to query the cloud provider, updating the state, but it does not intrinsically modify or deeply analyze the internal structure of credentials or the cloud provider itself.

Common mistakes.

  • A. The state file is actively read, compared against the real infrastructure, and then updated with any detected drift, meaning it is fundamentally 'processed' by terraform refresh.
  • B. The configuration file is parsed and evaluated by Terraform to understand the desired state and the resources it should be managing in the cloud, making it a critical component that is 'processed'.

Concept tested. Terraform refresh operation scope

Topics

#terraform refresh#CLI commands#state management#resource reconciliation

Community Discussion

No community discussion yet for this question.

Full TA-002-P PracticeBrowse All TA-002-P Questions