Download HashiCorp Certified: Terraform Associate.Terraform-Associate.VCEplus.2021-02-03.57q.vcex

Vendor: HashiCorp
Exam Code: Terraform-Associate
Exam Name: HashiCorp Certified: Terraform Associate
Date: Feb 03, 2021
File Size: 187 KB
Downloads: 10

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 1
The terraform.tfstate file always matches your currently built infrastructure.
  1. True
  2. False
Correct answer: B
Explanation:
Reference: https://www.terraform.io/docs/language/state/index.html
Reference: https://www.terraform.io/docs/language/state/index.html
Question 2
One remote backend configuration always maps to a single remote workspace.
  1. True
  2. False
Correct answer: A
Explanation:
Reference: https://www.terraform.io/docs/language/settings/backends/remote.html 
Reference: https://www.terraform.io/docs/language/settings/backends/remote.html 
Question 3
How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?
  1. It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud
  2. It doesn't show the output of a terraform apply locally
  3. It is only available to paying customers
  4. All of the above
Correct answer: A
Explanation:
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
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
Question 4
What is the workflow for deploying new infrastructure with Terraform?
  1. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure
  2. Write a Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructure.
  3. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure
  4. Write a Terraform configuration, run terraform init, run terraform plan to view planned infrastructure changes, and terraform apply to create new infrastructure.
Correct answer: C
Explanation:
Reference: https://www.google.com/search?q=Write+a+Terraform+configuration%2C+run+terraform+init%2C+run+terraform+plan+to+view+planned  infrastructure+changes%2C+and+terraform+apply+to+create+new+infrastructure.&oq=Write+a+Terraform+configuration%2C+run+terraform+init%2C+run+terraform+plan+to+view+planned+infrastructure+changes%2C+and+terraform+apply+to+create+new +infrastructure.&aqs=chrome..69i57.556j0j7&sourceid=chrome&ie=UTF-8
Reference: https://www.google.com/search?q=Write+a+Terraform+configuration%2C+run+terraform+init%2C+run+terraform+plan+to+view+planned  
infrastructure+changes%2C+and+terraform+apply+to+create+new+infrastructure.&oq=Write+a+Terraform+configuration%2C+run+terraform+init%2C+run+terraform+plan+to+view+planned+infrastructure+changes%2C+and+terraform+apply+to+create+new +infrastructure.&aqs=chrome..69i57.556j0j7&sourceid=chrome&ie=UTF-8
Question 5
A provider configuration block is required in every Terraform configuration.  
Example: 
      
  1. True
  2. False
Correct answer: A
Explanation:
Reference: https://github.com/hashicorp/terraform/issues/17928
Reference: https://github.com/hashicorp/terraform/issues/17928
Question 6
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?
  1. terraform taint null_resource.run_script  
  2. terraform apply -target=null_resource.run_script
  3. terraform validate null_resource.run_script
  4. terraform plan -target=null_resource.run_script
Correct answer: A
Question 7
Which provisioner invokes a process on the resource created by Terraform?
  1. remote-exec
  2. null-exec
  3. local-exec
  4. file
Correct answer: A
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
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
Question 8
Which of the following is not true of Terraform providers?  
 
  1. Providers can be written by individuals
  2. Providers can be maintained by a community of users
  3. Some providers are maintained by HashiCorp
  4. Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on Terraform providers
  5. None of the above
Correct answer: D
Explanation:
Reference: https://jayendrapatil.com/terraform-cheat-sheet/#Terraform_Read_and_write_configuration
Reference: https://jayendrapatil.com/terraform-cheat-sheet/#Terraform_Read_and_write_configuration
Question 9
What command does Terraform require the first time you run it within a configuration directory?
  1. terraform import
  2. terraform init
  3. terraform plan
  4. terraform workspace
Correct answer: B
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
terraform init command is used to initialize a working directory containing Terraform configuration files. Reference: 
https://www.terraform.io/docs/cli/commands/init.html
Question 10
You have deployed a new webapp with a public IP address on a clod 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?
  1. Run terraform output ip_address to view the result
  2. In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
  3. Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
  4. Run terraform destroy then terraform apply and look for the IP address in stdout
Correct answer: A
Explanation:
Reference: https://www.terraform.io/docs/cli/commands/output.html
Reference: https://www.terraform.io/docs/cli/commands/output.html
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!