HashiCorp Certified: Terraform Associate HashiCorp Certified: Terraform Associate Exam Questions in PDF

Free HashiCorp HashiCorp Certified: Terraform Associate Dumps Questions (page: 7)

Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?

  1. servers = num_servers
  2. servers = variable.num_servers
  3. servers = var(num_servers)
  4. servers = var.num_servers

Answer(s): D



A Terraform provisioner must be nested inside a resource configuration block.

  1. True
  2. False

Answer(s): A

Explanation:

Most provisioners require access to the remote resource via SSH or WinRM, and expect a nested connection block with details about how to connect.


Reference:

https://www.terraform.io/docs/language/resources/provisioners/connection.html



Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.

  1. True
  2. False

Answer(s): B



What does the default "local" Terraform backend store?

  1. tfplan files
  2. Terraform binary
  3. Provider plugins
  4. State file

Answer(s): D

Explanation:

The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.


Reference:

https://www.terraform.io/docs/language/settings/backends/local.html



You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?

  1. Run the terraform fmt command during the code linting phase of your CI/CD process
  2. Designate one person in each team to review and format everyone's code
  3. Manually apply two spaces indentation and align equal sign "=" characters in every Terraform file (*.tf)
  4. Write a shell script to transform Terraform files using tools such as AWK, Python, and sed

Answer(s): A

Explanation:

- Indent two spaces for each nesting level.
- When multiple arguments with single-line values appear on consecutive lines at the same nesting level, align their equals signs.


Reference:

https://www.terraform.io/docs/language/syntax/style.html



Share your comments for HashiCorp HashiCorp Certified: Terraform Associate exam with other users:

A
Ashok Kumar
1/2/2024 6:53:00 AM

the correct answer to q8 is b. explanation since the mule app has a dependency, it is necessary to include project modules and dependencies to make sure the app will run successfully on the runtime on any other machine. source code of the component that the mule app is dependent of does not need to be included in the exported jar file, because the source code is not being used while executing an app. compiled code is being used instead.

M
Merry
7/30/2023 6:57:00 AM

good questions

V
VoiceofMidnight
12/17/2023 4:07:00 PM

Delayed the exam until December 29th.

U
Umar Ali
8/29/2023 2:59:00 PM

A and D are True

V
vel
8/28/2023 9:17:09 AM

good one with explanation

G
Gurdeep
1/18/2024 4:00:15 PM

This is one of the most useful study guides I have ever used.

AI Tutor 👋 I’m here to help!