Free Terraform-Associate-003 Exam Braindumps (page: 7)

Page 7 of 45

What does Terraform not reference when running a terraform apply -refresh-only ?

  1. State file
  2. Credentials
  3. Cloud provider
  4. Terraform resource definitions in configuration files

Answer(s): D

Explanation:

When running a terraform apply -refresh-only, Terraform does not reference the configuration files,

but only the state file, credentials, and cloud provider. The purpose of this command is to update the state file with the current status of the real resources, without making any changes to them.



Which of the following is not a valid Terraform variable type?

  1. list
  2. array
  3. nap
  4. string

Answer(s): B

Explanation:

This is not a valid Terraform variable type. The other options are valid variable types that can store different kinds of values.



You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.



Which command will migrate your current state file to the new S3 remote backend?

  1. terraform state
  2. terraform init
  3. terraform push
  4. terraform refresh

Answer(s): B

Explanation:

This command will initialize the new backend and prompt you to migrate the existing state file to the new location. The other commands are not relevant for this task.



Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location.
Which of the following backends would not work?

  1. Artifactory
  2. Amazon S3
  3. Terraform Cloud
  4. Git

Answer(s): D

Explanation:

This is not a valid backend for Terraform, as it does not support locking or versioning of state files. The other options are valid backends that can store state files in a central location.



Page 7 of 45



Post your Comments and Discuss HashiCorp Terraform-Associate-003 exam with other Community members:

Marc commented on October 18, 2024
What the best way to learn terraform?
UNITED STATES
upvote

Chandra commented on October 09, 2024
This is the best and only way of passing this exam as it is extremely hard. Good questions and valid dump.
INDIA
upvote

Madhan commented on September 26, 2024
Useful questions
INDIA
upvote

Abu commented on September 22, 2024
I did not know these questions were available online. I did not believe and trust them and studied quite a lot and just used these questions for practice. But most of the questions turned out to be in the exam.
UNITED STATES
upvote

Sahin commented on July 04, 2024
Need que to learn new things
UNITED STATES
upvote