Curious about Actual HashiCorp Infrastructure Automation (Terraform-Associate-003) Exam Questions?
Here are sample HashiCorp Certified: Terraform Associate (003) (Terraform-Associate-003) Exam questions from real exam. You can get more HashiCorp Infrastructure Automation (Terraform-Associate-003) Exam premium practice questions at TestInsights.
What is terraform refresh-only intended to detect?
Correct : C
The terraform refresh-only command is intended to detect state file drift. This command synchronizes the state file with the actual infrastructure, updating the state to reflect any changes that have occurred outside of Terraform.
Start a Discussions
Multiple team members are collaborating on infrastructure using Terraform and want to format the* Terraform code following standard Terraform-style convention.
How should they ensure the code satisfies conventions?
Correct : C
The terraform fmt command is used to format Terraform configuration files to a canonical format and style. This ensures that all team members are using a consistent style, making the code easier to read and maintain. It automatically applies Terraform's standard formatting conventions to your configuration files, helping maintain consistency across the team's codebase.
Terraform documentation on terraform fmt: Terraform Fmt
Start a Discussions
How would you reference the "name'' value of the second instance of this resource?
Correct : D
In Terraform, when you use the count meta-argument, you can reference individual instances using an index. The indexing starts at 0, so to reference the 'name' value of the second instance, you would use aws_instance.web[1].name. This syntax allows you to access the properties of specific instances in a list generated by the count argument.
Terraform documentation on count and accessing resource instances: Terraform Count
Start a Discussions
You have a list of numbers that represents the number of free CPU cores on each virtual cluster:
What Terraform function could you use to select the largest number from the list?
Correct : B
In Terraform, the max function can be used to select the largest number from a list of numbers. The max function takes multiple arguments and returns the highest one. For the list numcpus = [18, 3, 7, 11, 2], using max(numcpus...) will return 18, which is the largest number in the list.
Terraform documentation on max function: Terraform Functions - max
Start a Discussions
All modules published on the official Terraform Module Registry have been verified by HasihCorp.
Correct : B
Not all modules published on the official Terraform Module Registry have been verified by HashiCorp. While HashiCorp verifies some modules, there are many community-contributed modules that are not verified. Verified modules have a 'Verified' badge indicating that HashiCorp has reviewed them for security and best practices, but the registry also includes unverified modules.
Start a Discussions
Total 195 questions