Free Terraform Associate Exam Braindumps (page: 26)

Page 25 of 113

Which statement describes a goal of infrastructure as code?

  1. An abstraction from vendor specific APIs
  2. Write once, run anywhere
  3. A pipeline process to test and deliver software
  4. The programmatic configuration of resources

Answer(s): D

Explanation:

The purpose of infrastructure as code is to enable developers or operations teams to automatically manage, monitor and provision resources, rather than manually configure discrete hardware devices and operating systems. Infrastructure as code is sometimes referred to as programmable or software-defined infrastructure.



When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)

  1. When a change is made to the resources via the Azure Cloud Console, the changes are recorded in a new state file
  2. When a change is made to the resources via the Azure Cloud Console, Terraform will update the state file to reflect them during the next plan or apply
  3. When a change is made to the resources via the Azure Cloud Console, the current state file will not be updated
  4. When a change is made to the resources via the Azure Cloud Console, the changes are recorded in the current state file

Answer(s): B,C



You need to deploy resources into two different cloud regions in the same Terraform configuration. To do that, you declare multiple provider configurations as follows:


What meta-argument do you need to configure in a resource block to deploy the resource to the “us- west-2” AWS region?

  1. alias = west
  2. provider = west
  3. provider = aws.west
  4. alias = aws.west

Answer(s): C


Reference:

https://www.terraform.io/language/providers/configuration



You have declared an input variable called environment in your parent module. What must you do to pass the value to a child module in the configuration?

  1. Add node_count = var.node_count
  2. Declare the variable in a terraform.tfvars file
  3. Declare a node_count input variable for child module
  4. Nothing, child modules inherit variables of parent module

Answer(s): C

Explanation:

"That module may call other modules and connect them together by passing output values from one to input values of another." https://www.terraform.io/language/modules/develop






Post your Comments and Discuss HashiCorp Terraform Associate exam with other Community members:

Terraform Associate Discussions & Posts