Variables declared within a module are accessible outside of the module.
Answer(s): B
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?
Answer(s): D
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.
Answer(s): A
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?
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.
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