HashiCorp Associate Certification exams consists of multiple choice, multiple answer, true/false, and other question types. Below are some examples so you can familiarize yourself with the exam format. None of the questions on HashiCorp exams are intended to trick you. We want to test 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 information on the exam and to sign up.
ยปTrue or False
True or false questions present you with a statement and ask you to identify whether the statement 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 choice questions ask you to identify one right answer out of many choices. If we don't list the number of correct choices, there is only one correct option.
ยปExamples
Consider the following Terraform 0.12 configuration snippet:
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 identify multiple correct answers from a list. We will always tell you how many correct answers you can expect to find, if there's more than one.
ยป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. Because we know that you could make a typo, in addition to the technically correct answer, we'll also accept variations of the answer that still demonstrate your understanding of the material. 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:
ยปContinue studying
To study the exam content from start to finish, review the materials in our study guide. To learn about the specific topics that will be tested and find study material on a specific topic, refer to our review guide.
If you're ready to register for the exam, we wish you the best of luck! Visit our exam partner to:
- create an account.
- purchase the exam.
- register for an exam appointment.
- take the exam.