Free Terraform-Associate Exam Questions - Easiest Way for Success

Prepare for the HashiCorp Terraform-Associate exam questions with our authentic preparation materials, including free Terraform-Associate practice exam questions and answers. TheExamsLab provides all the support you need to succeed in the HashiCorp Certified Terraform Associate (003) Terraform-Associate exam. This dedication to student success is why we have the most satisfied Terraform-Associate certification exam candidates worldwide.

Page:    1 / 159      
Total 794 Questions | Updated On: Sep 11, 2024
Add To Cart
Question 1

When using Terraform, which command allows you to modify a resource in your infrastructure?


Answer: B
Question 2

Which of the following best describes the purpose of Terraform compared to other Infrastructure-as-Code (IaC) tools?


Answer: B
Question 3

You are working with a cloud provider to deploy resources using Terraform. You've added the following data block to your configuration. When the data block is used, what data will be returned?

data "aws_ami" "amzlinux2" {

  most_recent = true

  owners      = ["amazon"]

 

  filter {

    name   = "name"

    values = ["amzn2-ami-hvm-*-x86_64-ebs"]

  }

}

resource "aws_instance" "vault" {

  ami                         = data.aws_ami.amzlinux2.id

  instance_type               = "t3.micro"

  key_name                    = "vault-key"

  vpc_security_group_ids      = var.sg

  subnet_id                   = var.subnet

  associate_public_ip_address = "true"

  user_data                   = file("vault.sh")

 

  tags = {

    Name = "vault"

  }

}


Answer: C
Question 4

Michael has deployed many resources in AWS using Terraform and can easily update or destroy resources when required by the application team. A new employee, Dwight, is working with the application team and deployed a new EC2 instance through the AWS console. When Michael finds out, he decided he wants to manage the new EC2 instance using Terraform moving forward. He opens his terminal and types:

$ terraform import aws_instance.web_app_42 i-b54a26b28b8acv7233

However, Terraform returns the following error: Error: resource address "aws_instance.web_app_42" does not exist in the configuration.

What does Michael need to do first in order to manage the new Amazon EC2 instance with Terraform?


Answer: D
Question 5

True or False? You can migrate the Terraform backend but only if there are no resources currently being managed.


Answer: B
Page:    1 / 159      
Total 794 Questions | Updated On: Sep 11, 2024
Add To Cart

© Copyrights TheExamsLab 2024. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the TheExamsLab.