HashiCorp Certified: Terraform Associate (003) Free Sample Questions

20 free sample questions308 in the full practice test

Try simulator

Terraform Associate Sample Questions

  1. Question 3

    What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?

    Answer and explanation

    Correct answer: D

    Explanation:
    Terraform Registry is an index of modules shared publicly using this protocol. This public registry is the easiest way to get started with Terraform and find modules created by others in the community. -- Reference: https://www.terraform.io/docs/language/modules/sources.html

  2. Question 5

    You need to specify a dependency manually.

    What resource meta-parameter can you use to make sure Terraform respects the dependency?

    Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.

    Answer and explanation

    Correct answer: A

  3. Question 6

    You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script.

    Which of the following commands would you use first?

    Answer and explanation

    Correct answer: A

    A

  4. Question 7

    When should you use the force-unlock command?

    Answer and explanation

    Correct answer: C

    Explanation:
    Manually unlock the state for the defined configuration. -- Reference: https://www.terraform.io/docs/cli/commands/force-unlock.html

  5. Question 9

    Which of the following is not true of Terraform providers?

    Answer and explanation

    Correct answer: D

    Reference: https://iayendrapatil.eom/terraform-cheat-sheet/#Terraform Read and write configuration

  6. Question 10

    Why would you use the terraform taint command?

    Answer and explanation

    Correct answer: B

    Explanation:
    The terraform taint command manually marks a Terraform-managed resource as tainted, forcing it to be destroyed and recreated on the next apply. -- Reference: https://www.terraform.io/docs/cli/commands/taint.html

Register free to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 308 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon