Free Terraform-Associate-003 Exam Braindumps

Pass your HashiCorp Certified: Terraform Associate (003) exam with these free Questions and Answers

Page 5 of 36
QUESTION 16

When does Terraform create the .terraform.lock.hc1 file?

  1. A. After your first terraform plan
  2. B. After your first terraform apply
  3. C. After your first terraform init
  4. D. When you enable state locking

Correct Answer: C
Terraform creates the .terraform.lock.hcl file after the first terraform init command. This lock file ensures that the dependencies for your project are consistent across different runs by locking the versions of the providers and modules used.

QUESTION 17

Terraform providers are part of the Terraform core binary.

  1. A. True
  2. B. False

Correct Answer: B
Terraform providers are not part of the Terraform core binary. Providers are distributed separately from Terraform itself and have their own release cadence and version numbers. Providers are plugins that Terraform uses to interact with various APIs, such as cloud providers, SaaS providers, and other services. You can find and install providers from the Terraform Registry, which hosts providers for most major infrastructure platforms. You can also load providers from a local mirror or cache, or develop your own custom providers. To use a provider in your Terraform configuration, you need to declare it in the provider requirements block and optionally configure its settings in the provider
block. References = : Providers - Configuration Language | Terraform : Terraform Registry
- Providers Overview | Terraform

QUESTION 18

You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would like to first see all the infrastructure that Terraform will delete.
Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.

  1. A. Run terraform state rm ??
  2. B. Run terraform show :destroy
  3. C. Run terraform destroy and it will first output all the resource that will be deleted before prompting for approval
  4. D. Run terraform plan .destory

Correct Answer: CD
To see all the resources that Terraform will delete, you can use either of these two commands:
✑ terraform destroy will show the plan of destruction and ask for your confirmation
before proceeding. You can cancel the command if you do not want to destroy the resources.
✑ terraform plan -destroy will show the plan of destruction without asking for
confirmation. You can use this command to review the changes before
running terraform destroy. References = : Destroy Infrastructure : Plan Command: Options

QUESTION 19

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

  1. A. With a tab
  2. B. With two spaces
  3. C. With four spaces
  4. D. With three spaces

Correct Answer: B
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.

QUESTION 20

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.

  1. A. True
  2. B. False

Correct Answer: B
Module variable assignments are not inherited from the parent module and you need to explicitly set them using the source argument. This allows you to customize the behavior of each module instance.

Page 5 of 36

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