Chapter 6
- Correct answers: A, B, and D
Explanation: The terraform init
command is used to perform initialization and download the respective modules, providers, and plugins. It also initializes the backend config. You can read about terraform init
at https://www.terraform.io/docs/commands/init.html.
- Correct answer: C
Explanation: The terraform plan
lets you know what resources it is going to update or create to achieve the desired state defined in the configuration file. For more information, you can read https://www.terraform.io/docs/commands/plan.html.
- Correct answers: A, B, and D
Explanation: Terraform can take an input variable value in multiple ways.
- Correct answer: B
Explanation: The terraform validate
command will help you check if there is any sort of syntax error.
- Correct answer: C
Explanation: The terraform destroy
command will help you to delete infrastructure that has been provisioned using Terraform...