Free TA-002-P Exam Dumps

Question 56

- (Exam Topic 2)
Which one of the following command will rewrite Terraform configuration files to a canonical format and style.

Correct Answer:D
The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style. This command applies a subset of the Terrra Terraform language style conventions, along with other minor adjustments for readability.

Question 57

- (Exam Topic 2)
When using remote state, state is only ever held in memory when used by Terraform.

Correct Answer:B

Question 58

- (Exam Topic 1)
Module variable assignments are inherited from the parent module and do not need to be explicitly set.

Correct Answer:B

Question 59

- (Exam Topic 1)
Terraform variables and outputs that set the "description" argument will store that description in the state file.

Correct Answer:B
Reference: https://www.terraform.io/docs/language/values/outputs.html

Question 60

- (Exam Topic 2)
terraform refresh command will not modify infrastructure, but does modify the state file.

Correct Answer:A
The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. This can be used to detect any drift from the last-known state, and to update the state file. This does not modify infrastructure, but does modify the state file.
https://www.terraform.io/docs/commands/refresh.html