nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #101

What is not processed when running a terraform refresh?

The correct answer is C. Credentials D. Cloud provider. When running terraform refresh, the command synchronizes the state file with the actual infrastructure but does not re-process the configuration for credentials or cloud provider definitions.

Submitted by jordan8· Apr 18, 2026Manage Terraform State

Question

What is not processed when running a terraform refresh?

Options

  • AState file
  • BConfiguration file
  • CCredentials
  • DCloud provider

How the community answered

(30 responses)
  • A
    13% (4)
  • B
    10% (3)
  • C
    77% (23)

Why each option

When running `terraform refresh`, the command synchronizes the state file with the actual infrastructure but does not re-process the configuration for credentials or cloud provider definitions.

AState file

The state file is actively read and updated by `terraform refresh` to reconcile it with the actual infrastructure.

BConfiguration file

The configuration file itself is not processed by `terraform refresh` to detect changes; the command focuses solely on synchronizing the state file with the remote infrastructure.

CCredentialsCorrect

Terraform refresh uses existing configured credentials to interact with the cloud provider but does not re-process or re-evaluate the credential configuration defined in the Terraform files during the refresh operation.

DCloud providerCorrect

Terraform refresh interacts with the cloud provider to fetch the current infrastructure state but does not re-process or re-evaluate the cloud provider's definition or configuration from the Terraform files.

Concept tested: Terraform refresh command functionality

Source: https://developer.hashicorp.com/terraform/cli/commands/refresh

Topics

#terraform refresh#State management#Terraform CLI#Providers

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice