Free Terraform Associate Exam Braindumps (page: 32)

Page 31 of 113

What does terrafom plan do ?

  1. Create an execution plan by evaluating the difference between configuration file and state file.
  2. Performs a refresh, unless explicitly disabled, and then apply the changes that are necessary to achieve the desired state specified in the configuration files.
  3. Create an execution plan by evaluating the difference between configuration file and actual infrastructure.
  4. Checks whether the execution plan for a set of changes matches your expectations by making changes to real resources or to the state.

Answer(s): A



When TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.

  1. False
  2. True

Answer(s): B

Explanation:

TF_LOG_PATH specifies where the log should persist its output to. Note that even when TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.
For example, to always write the log to the directory you're currently running terraform from: export TF_LOG_PATH=./terraform.log
export TF_LOG=TRACE



Workspaces in Terraform provides similar functionality in the open-source, Terraform Cloud, and Enterprise versions of Terraform.

  1. True
  2. False

Answer(s): B

Explanation:

Workspaces, managed with the terraform workspace command, aren't the same thing as Terraform Cloud's workspaces. Terraform Cloud workspaces act more like completely separate working directories; CLI workspaces are just alternate state files.


Reference:

https://www.terraform.io/docs/cloud/migrate/workspaces.html



The current implementation of Terraform import can only import resources into the state. It does not generate configuration.

  1. False
  2. True

Answer(s): B

Explanation:

The current implementation of Terraform import can only import resources into the state. It does not generate configuration. A future version of Terraform will also generate configuration.
Because of this, prior to running terraform import it is necessary to write manually a resource configuration block for the resource, to which the imported object will be mapped.
While this may seem tedious, it still gives Terraform users an avenue for importing existing resources. https://www.terraform.io/docs/import/index.html#currently-state-only






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

Terraform Associate Discussions & Posts