FILL BLANK -
Which flag would you add to terraform plan to save the execution plan to a file?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
Answer : -out=FILENAME
Reference:
https://www.terraform.io/docs/cli/commands/plan.html
FILL BLANK -
What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
Answer : Terraform.tfstate
Reference:
https://www.terraform.io/docs/language/state/index.html
A Terraform local value can reference other Terraform local values.
Answer : A
Reference:
https://www.terraform.io/docs/configuration-0-11/locals.html
Which of the following is not a valid Terraform collection type?
Answer : C
Reference:
https://www.terraform.io/docs/language/expressions/type-constraints.html
When running the command terraform taint against a managed resource you want to force recreation upon, Terraform will immediately destroy and recreate the resource.
Answer : B
Reference:
https://www.devopsschool.com/blog/terraform-taint-and-untaint-explained-with-example-programs-and-tutorials/
All standard backend types support state storage, locking, and remote operations like plan, apply and destroy.
Answer : A
Reference:
https://www.terraform.io/docs/language/settings/backends/remote.html
How can terraform plan aid in the development process?
Answer : A
Reference:
https://github.com/hashicorp/terraform/issues/19235
You would like to reuse the same Terraform configuration for your development and production environments with a different state file for each.
Which command would you use?
Answer : B
What is the name assigned by Terraform to reference this resource?
Answer : B
You're building a CI/CD (continuous integration/ continuous delivery) pipeline and need to inject sensitive variables into your Terraform run.
How can you do this safely?
Answer : B
Your security team scanned some Terraform workspaces and found secrets stored in a plaintext in state files.
How can you protect sensitive data stored in Terraform state files?
Answer : B
Reference:
https://www.terraform.io/docs/language/state/sensitive-data.html
In contrast to Terraform Open Source, when working with Terraform Enterprise and Cloud Workspaces, conceptually you could think about them as completely separate working directories.
Answer : A
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (*.tf files). You need to enable debug messages to find this out.
Which of the following would achieve this?
Answer : A
Reference:
https://www.terraform.io/docs/cli/config/environment-variables.html
How is terraform import run?
Answer : D
You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully.
What will happen if you delete the VM using the cloud provider console, and run terraform apply again without changing any Terraform code?
Answer : D