Free TA-002-P Exam Dumps

Question 81

- (Exam Topic 4)
terraform apply will fail if you have not run terraform plan first to update the plan output.

Correct Answer:B

Question 82

- (Exam Topic 3)
Which of the following allows Terraform users to apply policy as code to enforce standardized configurations for resources being deployed via infrastructure as code?

Correct Answer:A
Sentinel is a language and framework for policy built to be embedded in existing software to enable
fine-grained, logic-based policy decisions. A policy describes under what circumstances certain behaviors are allowed. Sentinel is an enterprise-only feature.
https://www.youtube.com/watch?v=Vy8s7AAvU6g&feature=emb_title

Question 83

- (Exam Topic 4)
You have created a custom variable definition file my_vars.tfvars. How will you use it for provisioning infrastructure?

Correct Answer:D
To set lots of variables, it is more convenient to specify their values in a variable definitions file (with a filename ending in either .tfvars or .tfvars.json) and then specify that file on the command line with -var-file:
terraform apply -var-file="my_vars.tfvars" https://www.terraform.io/docs/configuration/variables.html#variable-definitions-tfvars-files

Question 84

- (Exam Topic 1)
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.

Correct Answer:A
"Use the depends_on meta-argument to handle hidden resource or module dependencies that Terraform cannot automatically infer. You only need to explicitly specify a dependency when a resource or module relies on another resource's behavior but does not access any of that resource's data in its arguments."
https://www.terraform.io/language/meta-arguments/depends_on

Question 85

- (Exam Topic 4)
You need to write some Terraform code that adds 42 firewall rules to a security group as shown in the example.
TA-002-P dumps exhibit
What can you use to avoid writing 42 different nested ingress config blocks by hand?

Correct Answer:D
A dynamic block acts much like a for expression, but produces nested blocks instead of a complex typed value. It iterates over a given complex value, and generates a nested block for each element of that complex value. Reference: https://www.terraform.io/language/expressions/dynamic-blocks