HashiCorp Certified: Terraform Associate (003) Free Sample Questions

Description

Covers infrastructure as code concepts, Terraform's multi-cloud design, providers and configuration basics, state management and locking, module usage, and the core workflow.

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 for 10 more questions

Or unlock all 308 Terraform Associate questions with explanations, timed mode and flashcards.