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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: CD 🗳️
Reference:
https://www.terraform.io/docs/cli/commands/refresh.html

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, 1 month 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 34 times
...
cloudcuckooland
Highly Voted 2 years, 1 month 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 12 times
...
shubhamlonkar
Most Recent 4 days, 18 hours ago
Selected Answer: B
Refresh command updates the state file but not the terraform configuration file
upvoted 1 times
...
Molly1994
1 month, 1 week 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
4 months 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
11 months, 2 weeks ago
B. Configuration file
upvoted 2 times
...
Busi57
11 months, 2 weeks ago
Selected Answer: B
i choose B
upvoted 1 times
...
Busi57
11 months, 2 weeks ago
I choose B
upvoted 1 times
...
cdechery
11 months, 3 weeks ago
Selected Answer: B
Of course it is B. Credentials are used during refresh.
upvoted 1 times
...
Ibrahim2023
1 year 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
12 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, 3 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, 3 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, 4 months ago
Selected Answer: B
The answer is B.
upvoted 1 times
...
InformationOverload
1 year, 6 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
1 year, 8 months ago
there is should be two answers, then B and another one?
upvoted 1 times
...
yogishrb2020
1 year, 9 months ago
Selected Answer: BD
State file and if credentials stored in the state file gets updated. I chose B and D
upvoted 1 times
...
Pinky0289
1 year, 9 months ago
There is no change/impact on the configuration file during the refresh, therefore the answer is B. Configuration file.
upvoted 2 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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in