Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 15 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 15
Topic #: 1
[All Terraform Associate Questions]

What is not processed when running a terraform refresh?

  • A. State file
  • B. Configuration file
  • C. Credentials
  • D. Cloud provider
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
wangchung
Highly Voted 2 years, 6 months ago
Selected Answer: B
A. State file - its updated during the refresh B. Configuration file - C. Credentials - required to get onto the cloud D. Cloud provider - required to carry out the refresh of whats in the cloud vs whats in state.
upvoted 37 times
...
cloudcuckooland
Highly Voted 2 years, 6 months ago
Selected Answer: B
the answer has to be B, as per docs, it's checking remote objects and update the state file, it needs to process the creds to connect, the cloud provider to check objects and the state to update. "The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match."
upvoted 13 times
...
fasaleAkshay
Most Recent 2 months ago
Selected Answer: B
When running terraform refresh, Terraform updates the state file by querying the cloud provider using the appropriate credentials to check the actual state of the infrastructure. However, the configuration file (the .tf files) is not processed during a refresh. Terraform is only concerned with updating the state to match the real-world infrastructure, not applying changes from the configuration.
upvoted 1 times
...
shubhamlonkar
4 months, 3 weeks ago
Selected Answer: B
Refresh command updates the state file but not the terraform configuration file
upvoted 1 times
...
Molly1994
5 months, 3 weeks ago
Refresh command will update the remote state file to match the current configuration. So configuration file won’t change anything. State file and credentials and cloud providers will associate with the refresh action
upvoted 1 times
...
ravk2321
8 months, 2 weeks ago
The question is outdated as this command is deprecated by Terraform, and they also recommend against using it because it provides no opportunity to review the effects of the operation before updating the state.
upvoted 1 times
...
Jayanth
1 year, 3 months ago
B. Configuration file
upvoted 2 times
...
Busi57
1 year, 4 months ago
Selected Answer: B
i choose B
upvoted 1 times
...
Busi57
1 year, 4 months ago
I choose B
upvoted 1 times
...
cdechery
1 year, 4 months ago
Selected Answer: B
Of course it is B. Credentials are used during refresh.
upvoted 1 times
...
Ibrahim2023
1 year, 4 months ago
The answer is C. Credentials. When you run terraform refresh, Terraform will read the state file and the configuration file, but it will not read the credentials. This is because the credentials are used to connect to the cloud provider, and Terraform does not need to connect to the cloud provider to refresh the state file.
upvoted 3 times
HMthyl
1 year, 4 months ago
Refresh is about ensuring the state file reflects real world objects: it's not bringing the state file in line with your configuration, it's bringing it into line with the real thing
upvoted 2 times
...
...
connecttozee
1 year, 7 months ago
Agree with B. Only confiugration file not processed for provisioning infra. Provider & credential need login to infra & state file will overwrite new config current infra
upvoted 2 times
...
SilentMilli
1 year, 8 months ago
Selected Answer: B
he configuration file is not processed during terraform refresh. The configuration file is only used during the terraform apply or terraform plan commands to determine the desired state of the infrastructure. terraform refresh does not make any changes to the infrastructure, it only updates the state file to reflect the current state of the resources in the cloud provider.
upvoted 3 times
...
Mal_8
1 year, 9 months ago
Selected Answer: B
The answer is B.
upvoted 1 times
...
InformationOverload
1 year, 10 months ago
Selected Answer: B
The terraform refresh command does not create new resources or modify existing resources. It only updates the state to reflect the current configuration. If you want to create new resources or modify existing resources, you need to use the terraform apply command.
upvoted 1 times
...
Fatoch
2 years ago
there is should be two answers, then B and another one?
upvoted 1 times
...
yogishrb2020
2 years, 1 month ago
Selected Answer: BD
State file and if credentials stored in the state file gets updated. I chose B and D
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...