Free Terraform Associate 004 Exam Braindumps
Terraform Associate 004 Questions 66–70 (page: 15)

Updated On: 10-Feb-2026

Which parameters does terraform import require? Choose two correct answers.

  1. Provider
  2. Resource ID
  3. Resource address
  4. Path

Answer(s): B,C

Explanation:

These are the parameters that terraform import requires, as they allow Terraform to identify the existing resource that you want to import into your state file, and match it with the corresponding configuration block in your files.



What does state looking accomplish?

  1. Prevent accidental Prevent accident deletion of the state file
  2. Blocks Terraform commands from modifying, the state file
  3. Copies the state file from memory to disk
  4. Encrypts any credentials stored within the state file

Answer(s): B

Explanation:

This is what state locking accomplishes, by preventing other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss.



What does this code do?

terraform { required_providers { aws = ">= 3.0" }}

  1. Requires any version of the AWS provider > = 3.0 and <4.0
  2. Requires any version of the AWS provider >= 3.0
  3. Requires any version of the AWS provider > = 3.0 major release. like 4.1
  4. Requires any version of the AWS provider > 3.0

Answer(s): A

Explanation:

From the Terraform Provider Requirements:

">= 3.0" means any versiongreater than or equal to 3.0-- including 4.x and beyond.

A (wrong): Would need >= 3.0, < 4.0

C/D (wrong): > excludes 3.0 -- not what's written.



Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.

  1. True
  2. False

Answer(s): B

Explanation:

Running terraform fmt without any flags in a directory with Terraform configuration files will not check the formatting of those files without changing their contents, but will actually rewrite them to a canonical format and style. If you want to check the formatting without making changes, you need to use the -check flag.



The public Terraform Module Registry is free to use.

  1. True
  2. False

Answer(s): A

Explanation:

The public Terraform Module Registry is free to use, as it is a public service that hosts thousands of self-contained packages called modules that are used to provision infrastructure. You can browse, use, and publish modules to the registry without any cost.



Viewing page 15 of 53
Viewing questions 71 - 75 out of 147 questions


Post your Comments and Discuss HashiCorp Terraform Associate 004 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!