• HashiCorp Developer

  • HashiCorp Cloud Platform
  • Terraform
  • Packer
  • Consul
  • Vault
  • Boundary
  • Nomad
  • Waypoint
  • Vagrant
Terraform
  • Install
  • Tutorials
    • About the Docs
    • Configuration Language
    • Terraform CLI
    • Terraform Cloud
    • Terraform Enterprise
    • CDK for Terraform
    • Provider Use
    • Plugin Development
    • Registry Publishing
    • Integration Program
  • Registry(opens in new tab)
  • Try Cloud(opens in new tab)
  • Sign up
Associate Prep (002)

Skip to main content
3 tutorials
  • Study Guide - Terraform Associate Certification (002)
  • Sample Questions - Terraform Associate Certification
  • Exam Review - Terraform Associate Certification (002)

  • Resources

  • Tutorial Library
  • Certifications
  • Community Forum
    (opens in new tab)
  • Support
    (opens in new tab)
  • GitHub
    (opens in new tab)
  • Terraform Registry
    (opens in new tab)
  1. Developer
  2. Terraform
  3. Tutorials
  4. Associate Prep (002)
  5. Sample Questions - Terraform Associate Certification

Sample Questions - Terraform Associate Certification

  • 4min

  • TerraformTerraform

HashiCorp Associate Certification exams consist of multiple choice, multiple answer, true/false, and text match question types. Below are some example questions to introduce you to the question format you will encounter on the exam.

The exam questions are not intended to trick you. The exam tests your knowledge of Terraform, not how well you spell or how good you are at identifying obscure details.

Visit the HashiCorp Cloud Engineer Certification page for more information and to sign up for the exam.

True or False

True or false questions present you with a statement and ask you to choose whether it is true or false.

Example

Usernames and passwords referenced in the Terraform code, even as variables, will end up in plain text in the state file.

🔘 True
🔘 False

✅ Correct: True
❌ Incorrect: False

Multiple Choice

Multiple answer questions ask you to select multiple correct answers from a list. The question indicates you how many answers you must choose.

Examples

Consider the following configuration snippet:

variable "vpc_cidrs" {
  type = map
  default = {
    us-east-1 = "10.0.0.0/16"
    us-east-2 = "10.1.0.0/16"
    us-west-1 = "10.2.0.0/16"
    us-west-2 = "10.3.0.0/16"
  }
}

resource "aws_vpc" "shared" {
  cidr_block = _____________
}

How would you define the cidr_block for us-east-1 in the aws_vpc resource using a variable?

🔘 var.vpc_cidrs["us-east-1"]
🔘 var.vpc_cidrs.0
🔘 vpc_cidrs["us-east-1"]
🔘 var.vpc_cidrs[0]

✅ Correct: var.vpc_cidrs["us-east-1"]
❌ Incorrect: var.vpc_cidrs.0
❌ Incorrect: vpc_cidrs["us-east-1"]
❌ Incorrect: var.vpc_cidrs[0]

You have defined the values for your variables in the file terraform.tfvars, and saved it in the same directory as your Terraform configuration. Which of the following commands will use those values when creating an execution plan?

🔘 terraform plan
🔘 terraform plan -var-file=terraform.tfvars
🔘 All of the above
🔘 None of the above

❌ Incorrect: terraform plan
❌ Incorrect: terraform plan -var-file=terraform.tfvars
✅ Correct: All of the above
❌ Incorrect: None of the above

Multiple Answer

Multiple answer questions ask you to select multiple correct answers from a list. The question indicates you how many answers you must choose.

Examples

Which of the following Terraform commands will automatically refresh the state unless supplied with additional flags or arguments? Choose TWO correct answers.

⬜ terraform plan
⬜ terraform state
⬜ terraform apply
⬜ terraform validate
⬜ terraform output

✅ Correct: terraform plan
❌ Incorrect: terraform state
✅ Correct: terraform apply
❌ Incorrect: terraform validate
❌ Incorrect: terraform output

What happens when you apply Terraform configuration? Choose TWO correct answers.

⬜ Terraform makes any infrastructure changes defined in your configuration.
⬜ Terraform gets the plugins that the configuration requires.
⬜ Terraform updates the state file with any configuration changes it made.
⬜ Terraform corrects formatting errors in your configuration.
⬜ Terraform destroys and recreates all your infrastructure from scratch.

✅ Correct: Terraform makes any infrastructure changes defined in your configuration.
❌ Incorrect: Terraform gets the plugins that the configuration requires.
✅ Correct: Terraform updates the state file with any configuration changes it made.
❌ Incorrect: Terraform corrects formatting errors in your configuration.
❌ Incorrect: Terraform destroys and recreates all your infrastructure from scratch.

Text Match

Text match questions present you with a statement and ask you to fill in the blank by typing an answer into a text box. The exam will accept common typos and variations on the correct answer. Text match is not case sensitive.

Example

Which flag is used to find more information about a Terraform command? For example, you need additional information about how to use the plan command. You would type: terraform plan _____. Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.

✅ -h
✅ -help
✅ --help

Answers that would also receive full credit:

  • --h
  • terraform plan -h
  • terraform plan --h
  • terraform plan -help
  • terraform plan --help
  • terraform -h plan
  • terraform -help plan
  • terraform --help plan
  • plan -h
  • plan --h
  • plan -help
  • plan --help
  • -h plan
  • -help plan
  • --help plan

Continue studying

To study all of the objectives tested on the exam, review the materials in our study guide. For a reference of the specific study materials that cover a particular exam objective, refer to the review guide.

If you are ready to register for the exam, we wish you the best of luck! Visit our exam partner to:

  1. Create an account
  2. Purchase the exam
  3. Register for an exam appointment
  4. Take the exam

Sign up for the exam here!

 Previous
 Next

This tutorial also appears in:

  •  
    3 tutorials
    Prepare for Terraform Certification (003)
    Prepare for the HashiCorp Certified: Terraform Associate (003) exam. These guides list the test objectives for the exam and the complete list of docs and tutorials to study.
    • Terraform

On this page

  1. Sample Questions - Terraform Associate Certification
  2. True or False
  3. Multiple Choice
  4. Multiple Answer
  5. Text Match
  6. Continue studying
Give Feedback(opens in new tab)
  • Certifications
  • System Status
  • Terms of Use
  • Security
  • Privacy
  • Trademark Policy
  • Trade Controls
  • Give Feedback(opens in new tab)