Terraform-Associate Practice Online

Quickly grab our Terraform-Associate product now and kickstart your exam preparation today!

Name: HashiCorp Certified Terraform Associate (003)
Exam Code: Terraform-Associate
Certification: HashiCorp Infrastructure Automation
Vendor: HashiCorp
Total Questions: 780
Last Updated: May 13, 2024
Page:    1 / 156      
Total 780 Questions | Updated On: May 13, 2024
Demo Download
Question 1

Sara has her entire application automated using Terraform, but she needs to start automating more infrastructure components, such as creating a new subnet, DNS record, and load balancer. Sara wants to create these new resources using modules so she easily reuse the code. However, Sara is having problems getting the subnet_id from the subnet module to pass to the load balancer module.

modules/subnet.tf:

resource "aws_subnet" "bryan" {

  vpc_id     = aws_vpc.krausen.id

  cidr_block = "10.0.1.0/24"

  tags = {

    Name = "Krausen Subnet"

  }

}

What could fix this problem?


Answer: A

Question 2

You have declared a variable named db_connection_string inside of the app module. However, when you run a terraform apply, you get the following error message:

Error: Reference to undeclared input variable

on main.tf line 35:

4: db_path = var.db_connection_string

An input variable with the name "db_connection_string" has not been declared. This variable can be declared with a variable "db_connection_string" {} block.

Why would you receive such an error?


Answer: A

Question 3

When working with Terraform, what is the recommended way to manage secrets in the state file?


Answer: D

Question 4

You are using Terraform Cloud to manage a new data analytics environment for your organization. You have decided to use Sentinel to enforce standardization and security controls. At what step are the Sentinel policies enforced during a run?


Answer: C

Question 5

Which command is used to remove the stored state in Terraform?


Answer: A

Page:    1 / 156      
Total 780 Questions | Updated On: May 13, 2024
Demo Download