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.
Question
Options
- AState file
- BConfiguration file
- CCredentials
- DCloud provider
How the community answered
(30 responses)- A13% (4)
- B10% (3)
- C77% (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.
The state file is actively read and updated by `terraform refresh` to reconcile it with the actual infrastructure.
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.
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.
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
Community Discussion
No community discussion yet for this question.