- (Exam Topic 4)
A variable az has the following default value. What will be the datatype of the variable? az=["us-west-1a","us-east-1a"]
Correct Answer:
B
- (Exam Topic 2)
Which of the below are paid features of Terraform Cloud?
Correct Answer:
CDF
https://www.hashicorp.com/products/terraform/pricing/
- (Exam Topic 4)
What does Terraform use providers for? (Choose three.)
Correct Answer:
ABC
- (Exam Topic 3)
You have been given requirements to create a security group for a new application. Since your organization standardizes on Terraform, you want to add this new security group with the fewest number of lines of code. What feature could you use to iterate over a list of required tcp ports to add to the new security group?
Correct Answer:
D
A dynamic block acts much like a for expression, but produces nested blocks instead of a complex typed value. It iterates over a given complex value and generates a nested block for each element of that complex value.
https://www.terraform.io/docs/configuration/expressions.html#dynamic-blocks
- (Exam Topic 3)
What happens when a terraform apply command is executed?
Correct Answer:
B
The terraform apply command is used to apply the changes required to reach the desired state of the configuration, or the pre-determined set of actions generated by a terraform plan execution plan.
https://www.terraform.io/docs/commands/apply.html