- (Exam Topic 4)
As a member of the operations team, you need to run a script on a virtual machine created by Terraform. Which provisioned is best to use in your Terraform code?
Correct Answer:
D
https://www.terraform.io/language/resources/provisioners/remote-exec
- (Exam Topic 2)
What does terrafom plan do ?
Correct Answer:
A
- (Exam Topic 4)
What is the best and easiest way for Terraform to read and write secrets from HashiCorp Vault?
Correct Answer:
A
- (Exam Topic 4)
You have a Terraform configuration that defines a single virtual machine with no references to it. You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.
What will happen when you run terraform apply in the working directory again?
Correct Answer:
B
If you remove the resource from your config file and the resource is in your state file, terraform will apply the configuration in the config file - which is to delete the resource
- (Exam Topic 2)
Which of the below configuration file formats are supported by Terraform? (Select TWO)
Correct Answer:
BE
Terraform supports both HashiCorp Configuration Language (HCL) and JSON formats for configurations. https://www.terraform.io/docs/configuration/