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

Page 10 of 45

What kind of configuration block will create an infrastructure object with settings specified within the block?

  1. provider
  2. state
  3. data
  4. resource

Answer(s): D

Explanation:

This is the kind of configuration block that will create an infrastructure object with settings specified within the block. The other options are not used for creating infrastructure objects, but for configuring providers, accessing state data, or querying data sources.



What is the Terraform style convention for indenting a nesting level compared to the one above it?

  1. With a tab
  2. With two spaces
  3. With four spaces
  4. With three spaces

Answer(s): B

Explanation:

This is the Terraform style convention for indenting a nesting level compared to the one above it. The other options are not consistent with the Terraform style guide.



You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully.
What should you do to delete the newly-created VM with Terraform?

  1. The Terraform state file contains all 16 VMs in the team account. Execute terraform destroy and select the newly-created VM.
  2. Delete the Terraform state file and execute terraform apply.
  3. The Terraform state file only contains the one new VM. Execute terraform destroy.
  4. Delete the VM using the cloud provider console and terraform apply to apply the changes to the Terraform state file.

Answer(s): C

Explanation:

This is the best way to delete the newly-created VM with Terraform, as it will only affect the resource that was created by your configuration and state file. The other options are either incorrect or inefficient.



When do changes invoked by terraform apply take effect?

  1. After Terraform has updated the state file
  2. Once the resource provider has fulfilled the request
  3. Immediately
  4. None of the above are correct

Answer(s): B

Explanation:

Changes invoked by terraform apply take effect once the resource provider has fulfilled the request, not after Terraform has updated the state file or immediately. The state file is only a reflection of the real resources, not a source of truth.



Page 10 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