Question 7

- (Exam Topic 1)
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (files). You need to enable debug messages to find this out.
Which of the following would achieve this?

Correct Answer:A
Although this will only output to stderr and if you need to review log file you will need to include TF_LOG_PATH=pathtofile https://www.terraform.io/internals/debugging

Question 8

- (Exam Topic 4)
What are some of the problems of how infrastructure was traditionally managed before Infrastructure as Code? (select three)

Correct Answer:ABC
Businesses are making a transition where traditionally-managed infrastructure can no longer meet the demands of today's businesses. IT organizations are quickly adopting the public cloud, which is predominantly
API-driven. To meet customer demands and save costs, application teams are architecting their applications to support a much higher level of elasticity, supporting technology like containers and public cloud resources. These resources may only live for a matter of hours; therefore the traditional method of raising a ticket to request resources is no longer a viable option Pointing and clicking in a management console is NOT scale and increases the change of human error.

Question 9

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

Correct Answer:C
https://www.terraform.io/docs/configuration/variables.html

Question 10

- (Exam Topic 4)
You have created a main.tr Terraform configuration consisting of an application server, a database, and a load balancer. You ran terraform apply and all resources were created successfully. Now you realize that you do not actually need the load balancer so you run terraform destroy without any flags What will happen?

Correct Answer:B

Question 11

- (Exam Topic 4)
Terraform plan updates your state file.

Correct Answer:B
The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure. The plan command alone will not actually carry out the proposed changes, and so you can use this command to check whether the proposed changes match what you expected before you apply the changes or share your changes with your team for broader review. Source: https://www.terraform.io/cli/commands/plan

Question 12

- (Exam Topic 1)
Which of the following is not a key principle of infrastructure as code?

Correct Answer:B
Reference: https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as- code#:~:text=Idempotence is a principle of,of the environment's starting state.

START TA-002-P EXAM