Free Terraform Associate Exam Braindumps (page: 2)

Page 1 of 113

The terraform.tfstate file always matches your currently built infrastructure.

  1. True
  2. False

Answer(s): B


Reference:

https://www.terraform.io/docs/language/state/index.html



One remote backend configuration always maps to a single remote workspace.

  1. True
  2. False

Answer(s): B

Explanation:

The remote backend can work with either a single remote Terraform Cloud workspace, or with multiple similarly-named remote workspaces (like networking-dev and networking-prod). The workspaces block of the backend configuration determines which mode it uses: To use a single remote Terraform Cloud workspace, set workspaces.name to the remote workspace's full name (like networking-prod). To use multiple remote workspaces, set workspaces.prefix to a prefix used in all of the desired remote workspace names. For example, set prefix = "networking-" to use Terraform cloud workspaces with names like networking-dev and networking-prod. This is helpful when mapping multiple Terraform CLI workspaces used in a single Terraform configuration to multiple
Terraform Cloud workspaces.



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

Answer(s): A

Explanation:

Backends define where Terraform's state snapshots are stored. A given Terraform configuration can either specify a backend, integrate with Terraform Cloud, or do neither and default to storing state locally.
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?

  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.

Answer(s): D


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






Post your Comments and Discuss HashiCorp Terraform Associate exam with other Community members:

Terraform Associate Discussions & Posts