Pre-Winter Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free HashiCorp Terraform-Associate-004 Practice Exam with Questions & Answers | Set: 11

Questions 101

You must use different Terraform commands depending on the cloud provider you use.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-004 Premium Access
Questions 102

Only the user that generated a terraform plan may apply it.

Options:
A.

True

B.

False

Questions 103

You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?

Options:
A.

The Terraform state file contains all 16 VMs in the team account. Execute terraform destroy and select the newly-created VM.

B.

Delete the Terraform state file and execute terraform apply.

C.

The Terraform state file only contains the one new VM. Execute terraform destroy.

D.

Delete the VM using the cloud provider console and terraform apply to apply the changes to the Terraform state file.

Questions 104

Which of these are features of Terraform Cloud? Choose two correct answers.

Options:
A.

A web-based user interface (Ul)

B.

Automated infrastructure deployment visualization

C.

Automatic backups

D.

Remote state storage

Questions 105

How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

Terraform-Associate-004 Question 105

Options:
A.

aws_instance.example.ebs_block_device[sda2,sda3).volume_id

B.

aws_lnstance.example.ebs_block_device.[*].volume_id

C.

aws_lnstance.example.ebs_block_device.volume_ids

D.

aws_instance.example-ebs_block_device.*.volume_id

Questions 106

You used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform configuration. To be safe, you would like to first see all the infrastructure that Terraform will delete.

Which command should you use to show all the resources that will be deleted? (Pick the 2 correct responses)

Options:
A.

Runterraform destroy. This will output all the resources that will be deleted before prompting for approval.

B.

Runterraform show -destroy.

C.

Runterraform state rm *.

Questions 107

Where does HashiCorp recommend you store API tokens and other secrets within your team ' s Terraform workspaces?

Pick three correct responses below:

Options:
A.

In a plaintext document on a shared drive.

B.

In HashiCorp Vault.

C.

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

D.

In an environment variable and referenced with TF_VAR_variablename.

E.

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

Questions 108

A Terraform configuration returns errors when you run terraform plan. How would you enable debug logging to investigate further?

Options:
A.

Rerun terraform plan with the appropriate command-line flag.

B.

Set the appropriate environment variable.

C.

Edit the Terraform CLI configuration file.

D.

Update the backend configuration.

Questions 109

A child module can always access variables declared in its parent module.

Options:
A.

True

B.

False

Questions 110

How does an HCP Terraform integration using the cloud block differ from remote backends such as S3?

Options:
A.

The cloud block supports multiple backends simultaneously.

B.

Using the cloud block automatically encrypts state files at rest and in transit.

C.

Using the cloud block enables remote operations on infrastructure managed by HCP Terraform or Terraform Enterprise.

D.

Using the cloud block requires Terraform Enterprise.