The terraform.tfstate file always matches your currently built infrastructure.
Correct Answer:
B
🗳️
Reference:
https://www.terraform.io/docs/language/state/index.html
One remote backend configuration always maps to a single remote workspace.
Correct Answer:
A
🗳️
Reference:
https://www.terraform.io/docs/language/settings/backends/remote.html
How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?
Correct Answer:
A
🗳️
If you and your team are using Terraform to manage meaningful infrastructure, we recommend using the remote backend with Terraform Cloud or Terraform
Enterprise.
Reference:
https://www.terraform.io/docs/language/settings/backends/index.html
What is the workflow for deploying new infrastructure with Terraform?
Correct Answer:
D
🗳️
A provider configuration block is required in every Terraform configuration.
Example:
Correct Answer:
A
🗳️
Reference:
https://github.com/hashicorp/terraform/issues/17928
You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script.
Which of the following commands would you use first?
Correct Answer:
A
🗳️
Which provisioner invokes a process on the resource created by Terraform?
Correct Answer:
A
🗳️
The remote-exec provisioner invokes a script on a remote resource after it is created.
Reference:
https://www.terraform.io/docs/language/resources/provisioners/remote-exec.html
Which of the following is not true of Terraform providers?
Correct Answer:
D
🗳️
Reference:
https://jayendrapatil.com/terraform-cheat-sheet/#Terraform_Read_and_write_configuration
What command does Terraform require the first time you run it within a configuration directory?
Correct Answer:
B
🗳️
terraform init command is used to initialize a working directory containing Terraform configuration files.
Reference:
https://www.terraform.io/docs/cli/commands/init.html
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code.
What is the best method to quickly find the IP address of the resource you deployed?
Correct Answer:
A
🗳️
Reference:
https://www.terraform.io/docs/cli/commands/output.html