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 275 discussion

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

Which command adds existing resources into Terraform state?

  • A. terraform init
  • B. terraform plan
  • C. terraform refresh
  • D. terraform import
  • E. All of these
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
090200f
3 months, 3 weeks ago
Selected Answer: D
yes, only terraform import can add exiting resources into terraform state file. terraform init : - The terraform init command initializes a working directory containing Terraform configuration files. This is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control. It is safe to run this command multiple times. terraform plan :- The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure. terraform import :- The terraform import command imports existing resources into Terraform. Usage: terraform import [options] ADDRESS ID Import will find the existing resource from ID and import it into your Terraform state at the given ADDRESS. terraform refresh :- The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match. so only terraform import, option D is correct answer
upvoted 1 times
...
heeloco
1 year, 2 months ago
Selected Answer: D
agree Pete987
upvoted 1 times
...
Pete987
1 year, 3 months ago
D: terraform import
upvoted 4 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 ...