- (Exam Topic 1)
Which argument(s) is (are) required when declaring a Terraform variable?
Correct Answer:B
The variable declaration can also include a default argument.
Reference: https://www.terraform.io/docs/language/values/variables.html
- (Exam Topic 4)
Suppose terraformcode is taking up some values which are not defined inside the code files. In which of the following options issue might have occurred?
Correct Answer:D
- (Exam Topic 4)
What does Terraform use .terraform.lock.hcl file for?
Correct Answer:A
https://www.terraform.io/language/files/dependency-lock
"hcl , and this name is intended to signify that it is a lock file for various items that Terraform caches in the . terraform subdirectory of your working directory. Terraform automatically creates or updates the dependency lock file each time you run the terraform init command."
- (Exam Topic 3)
Which of the below command will upgrade the provider version to the latest acceptable one?
Correct Answer:C
To upgrade to the latest acceptable version of each provider, run terraform init -upgrade. This command also upgrades to the latest versions of all Terraform modules.
https://www.terraform.io/docs/configuration/providers.html
- (Exam Topic 1)
You should store secret data in the same version control repository as your Terraform configuration.
Correct Answer:B
Reference: https://blog.gruntwork.io/a-comprehensive-guide-to-managing-secrets-in-your-terraform-code- 1d586955ace1