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?
Answer(s): A
Which provisioner invokes a process on the resource created by Terraform?
The remote-exec provisioner invokes a script on a remote resource after it is created.
https://www.terraform.io/docs/language/resources/provisioners/remote-exec.html
Which of the following is not true of Terraform providers?
Answer(s): E
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?
Answer(s): B
terraform init command is used to initialize a working directory containing Terraform configuration files.
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?
Answer(s): C
https://www.terraform.io/docs/cli/commands/output.html
Share your comments for HashiCorp Terraform Associate exam with other users:
question 14 - run terraform import: this is the recommended best practice for bringing manually created or destroyed resources under terraform management. you use terraform import to associate an existing resource with a terraform resource configuration. this ensures that terraform is aware of the resource, and you can subsequently manage it with terraform.
good one nice
nice questions