Free Terraform Associate Exam Braindumps (page: 15)

Page 14 of 113

What command should you run to display all workspaces for the current configuration?

  1. terraform workspace
  2. terraform workspace show
  3. terraform workspace list
  4. terraform show workspace

Answer(s): C

Explanation:

terraform workspace list
The command will list all existing workspaces.


Reference:

https://www.terraform.io/docs/cli/commands/workspace/list.html



Terraform providers are always installed from the Internet.

  1. True
  2. False

Answer(s): B

Explanation:

Terraform configurations must declare which providers they require, so that Terraform can install and use them.


Reference:

https://www.terraform.io/docs/language/providers/configuration.html



Which of these is the best practice to protect sensitive values in state files?

  1. Blockchain
  2. Secure Sockets Layer (SSL)
  3. Enhanced remote backends
  4. Signed Terraform providers

Answer(s): C

Explanation:

Use of remote backends and especially the availability of Terraform Cloud, there are now a variety of backends that will encrypt state at rest and will not store the state in cleartext on machines running.


Reference:

https://www.terraform.io/docs/extend/best-practices/sensitive-state.html



When does terraform apply reflect changes in the cloud environment?

  1. Immediately
  2. However long it takes the resource provider to fulfill the request
  3. After updating the state file
  4. Based on the value provided to the -refresh command line argument
  5. None of the above

Answer(s): B






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

Terraform Associate Discussions & Posts