Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the HashiCorp Terraform Associate Terraform-Associate-004 Questions and answers with CertsForce

Viewing page 6 out of 8 pages
Viewing questions 51-60 out of questions
Questions # 51:

You modified your Terraform configuration to fix a typo in the resource ID by renaming it from photoes to photos. What configuration will you add to update the resource ID in state without destroying the existing resource?

Original configuration:

resource "aws_s3_bucket" "photoes" {

bucket_prefix = "images"

}

Updated configuration:

resource "aws_s3_bucket" "photos" {

bucket_prefix = "images"

}

Options:

A.

moved {

from = aws_s3_bucket.photoes

to = aws_s3_bucket.photos

}


B.

moved {

bucket.photoes = aws_s3_bucket.photos

}


C.

moved {

aws_s3_bucket.photoes = aws_s3_bucket.photos

}


D.

None. Terraform will automatically update the resource ID.


Expert Solution
Questions # 52:

You cannot install third party plugins using terraform init.

Options:

A.

True


B.

False


Expert Solution
Questions # 53:

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?

Options:

A.

Artifactory


B.

Amazon S3


C.

Terraform Cloud


D.

Git


Expert Solution
Questions # 54:

terraform init retrieves and caches the configuration for all remote modules.

Options:

A.

True


B.

False


Expert Solution
Questions # 55:

Which of the following isnotan advantage of using Infrastructure as Code (IaC) operations?

Options:

A.

Self-service infrastructure deployment.


B.

Modify a count parameter to scale resources.


C.

API-driven workflows.


D.

Troubleshoot via a Linux diff command.


E.

Public cloud console configuration workflows.


Expert Solution
Questions # 56:

Only the user that generated a plan may apply it.

Options:

A.

True


B.

False


Expert Solution
Questions # 57:

Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?

Options:

A.

terraform destroy, then terraform apply


B.

terraform init


C.

terraform push


D.

terraform apply


Expert Solution
Questions # 58:

terraform plan updates your state file.

Options:

A.

True


B.

False


Expert Solution
Questions # 59:

Which of the following should you add in the required_providers block to define a provider version constraint?

Options:

A.

version ~> 3.1


B.

version >= 3.1


C.

version = ">= 3.1"


Expert Solution
Questions # 60:

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

Options:

A.

When you change a Terraform-managed resource via the Azure Cloud Console, Terraform updates the state file to reflect the change during the next plan or apply


B.

Changing resources via the Azure Cloud Console records the change in the current state file


C.

When you change a resource via the Azure Cloud Console, Terraform records the changes in a new state file


D.

Changing resources via the Azure Cloud Console does not update current state file


Expert Solution
Viewing page 6 out of 8 pages
Viewing questions 51-60 out of questions