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

Page 5 of 45

Variables declared within a module are accessible outside of the module.

  1. True
  2. False

Answer(s): B

Explanation:

Variables declared within a module are only accessible within that module, unless they are explicitly exposed as output values.



Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?

  1. Edit your state file to scrub out the sensitive data
  2. Always store your secrets in a secrets.tfvars file
  3. Delete the state file every time you run Terraform
  4. Store the state in an encrypted backend

Answer(s): D

Explanation:

This is a secure way to protect sensitive data in the state file, as it will be encrypted at rest and in transit. The other options are not recommended, as they could lead to data loss, errors, or security breaches.



If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.

  1. True
  2. False

Answer(s): A

Explanation:

If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform init. This will ensure that you use the same provider versions across different machines and runs.



Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?

  1. terraform destroy, then terraform apply
  2. terraform init
  3. terraform push
  4. terraform apply

Answer(s): A

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.



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