Free TA-002-P Exam Dumps

Question 11

- (Exam Topic 4)
From the answers below, select the advantages of using Infrastructure as Code.

Correct Answer:BCDE
Infrastructure as Code is not used to develop applications, but it can be used to help deploy or provision those applications to a public cloud provider or on-premises infrastructure.
All of the others are benefits to using Infrastructure as Code over the traditional way of managing infrastructure, regardless if it's public cloud or on-premises.

Question 12

- (Exam Topic 4)
True or False? Each Terraform workspace uses its own state file to manage the infrastructure associated with that particular workspace.

Correct Answer:B
The persistent data stored in the backend belongs to a workspace. Initially, the backend has only one workspace, called "default", and thus there is only one Terraform state associated with that configuration.

Question 13

- (Exam Topic 4)
You can reference a resource created with for_each using a Splat (*) expression.

Correct Answer:B
Splat Expressions with Maps The splat expression patterns shown above apply only to lists, sets, and tuples. To get a similar result with a map or object value you must use for expressions. Resources that use the for_each argument will appear in expressions as a map of objects, so you can't use splat expressions with those resources. For more information, see Referring to Resource Instances. https://www.terraform.io/language/meta-arguments/for_each#referring-to-instances
https://www.terraform.io/language/expressions/references

Question 14

- (Exam Topic 3)
You have already set TF_LOG = DEBUG to enable debug log. Now you want to always write the log to the directory you're currently running terraform from. what should you do to achieve this.

Correct Answer:B
https://www.terraform.io/docs/commands/environment-variables.html

Question 15

- (Exam Topic 4)
Changing the Terraform backend from the default "local" backend to a different one after doing your first terraform apply is:

Correct Answer:B