PrepAway - Latest Free Exam Questions & Answers

Category: HashiCorp Terraform Associate

Exam HashiCorp Terraform Associate: HashiCorp Certified: Terraform Associate

What command does Terraform require the first time you run it within a configuration directory?

What command does Terraform require the first time you run it within a configuration directory? A. terraform import B. terraform init C. terraform plan D. terraform workspace Explanation: terraform init command is used to initialize a working directory containing Terraform configuration files. Reference: https://www.terraform.io/docs/cli/commands/init.html

Which of the following is not true of Terraform providers?

Which of the following is not true of Terraform providers? A. Providers can be written by individuals B. Providers can be maintained by a community of users C. Some providers are maintained by HashiCorp D. Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on Terraform providers E. None of the above Reference: […]

Which provisioner invokes a process on the resource created by Terraform?

Which provisioner invokes a process on the resource created by Terraform? A. remote-exec B. null-exec C. local-exec D. file Explanation: 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 commands would you use first?

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? A. terraform taint null_resource.run_script B. terraform apply -target=null_resource.run_script C. terraform validate null_resource.run_script D. terraform plan -target=null_resource.run_script

What is the workflow for deploying new infrastructure with Terraform?

What is the workflow for deploying new infrastructure with Terraform? A. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure B. Write a Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructure. C. terraform plan to […]

How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?

How is the Terraform remote backend different than other state backends such as S3, Consul, etc.? A. It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud B. It doesn’t show the output of a terraform apply locally C. It is only available to paying customers D. All of the above […]