Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Pass the HashiCorp Terraform Associate Terraform-Associate-004 Questions and answers with CertsForce

Viewing page 9 out of 11 pages
Viewing questions 81-90 out of questions
Questions # 81:

A Terraform backend determines how Terraform loads state and stores updates when you execute which command?

Options:

A.

apply


B.

destroy


C.

Both of these are correct.


D.

Neither of these are correct.


Expert Solution
Questions # 82:

You’ve just finished refactoring part of your Terraform workspace’s configuration to use a module to manage some of your resources. When you plan your changes, you notice that Terraform will destroy and recreate the affected resources. Doing so could cause unintended downtime in the application your workspace manages. What supported approach should you take to complete the refactor without destroying and recreating your resources?

Options:

A.

Add moved blocks to your configuration to let Terraform know the new resource addresses for the affected resources.


B.

Run the terraform console command to edit your workspace ' s state and update the resource names.


C.

Manually edit your terraform.tfstate file and update the resource names.


D.

Open your cloud provider ' s console and rename the affected resources.


Expert Solution
Questions # 83:

Which command generates DOT (Document Template) formatted data to visualize Terraform dependencies?

Options:

A.

terraform graph


B.

terraform show


C.

terraform refresh


D.

terraform output


Expert Solution
Questions # 84:

When you run terraform apply -refresh-only, which of the following is not consulted by Terraform to update the state file?

Options:

A.

Terraform configuration files defining the resources.


B.

Authentication credentials for the provider.


C.

The most recent state file.


D.

The actual infrastructure as reported by the provider API.


Expert Solution
Questions # 85:

You want to use API tokens and other secrets within your team ' s Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick 3)

Options:

A.

In a plaintext document on a shared drive.


B.

In a terraform.tfvars file, checked into version control.


C.

In a terraform.tfvars file, securely managed and shared with your team.


D.

In an HCP Terraform/Terraform Cloud variable, with the sensitive option checked.


E.

In HashiCorp Vault.


Expert Solution
Questions # 86:

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.

Options:

A.

True


B.

False


Expert Solution
Questions # 87:

You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.

Which command will migrate your current state file to the new S3 remote backend?

Options:

A.

terraform state


B.

terraform init


C.

terraform push


D.

terraform refresh


Expert Solution
Questions # 88:

You need to determine from which paths Terraform is loading the providers referenced in your *.tf files.

How can you enable additional logging to see this information?

Options:

A.

Set the environment variable TF_VAR_log=TRACE.


B.

Set the environment variable TF_LOG_PATH.


C.

Set the environment variable TF_LOG=TRACE.


D.

Set verbose logging for each provider in your Terraform configuration.


Expert Solution
Questions # 89:

You want to create a string that is a combination of a generated random_id and a variable, and reuse that string several times in your configuration.

What is the simplest correct way to implement this without repeating the random_id and variable?

Options:

A.

Use a data source.


B.

Use a module.


C.

Add a local value.


D.

Add an output value.


Expert Solution
Questions # 90:

Which of the following is not a valid source path for specifying a module?

Options:

A.

source - " github.com/hashicorp/examplePref-ul.0.8M


B.

source = " ./module?version=vl.6.0 "


C.

source - " hashicorp/consul/aws "


D.

source - " ./module "


Expert Solution
Viewing page 9 out of 11 pages
Viewing questions 81-90 out of questions