Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

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

Viewing page 6 out of 11 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.photoesto = 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:

Module version is required to reference a module on the Terraform Module Registry.

Options:

A.

True


B.

False


Expert Solution
Questions # 53:

Where in your Terraform configuration do you specify remote state storage settings?

Options:

A.

The resource block


B.

The provider block


C.

The data block


D.

The terraform block


Expert Solution
Questions # 54:

It is best practice to store secret data in the same version control repository as your Terraform configuration.

Options:

A.

True


B.

False


Expert Solution
Questions # 55:

A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of that resource block?

Options:

A.

azurerm


B.

azurerm_resource_group


C.

ev


D.

test


Expert Solution
Questions # 56:

You can reference a resource created with for_each using a Splat ( *) expression.

Options:

A.

True


B.

False


Expert Solution
Questions # 57:

Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

Options:

A.

terraform state list ‘provider_type.name’


B.

terraform state show ‘provider_type.name’


C.

terraform get ‘provider_type.name’


D.

terraform state list


Expert Solution
Questions # 58:

Why is it considered important to treat your Terraform state file as sensitive?

Options:

A.

It can contain information such as resource passwords and keys.


B.

It stores all environment variables from the machine that created it.


C.

It can be manually edited to change the deployed resources.


D.

It contains personal information about the last user to update it.


Expert Solution
Questions # 59:

You used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform configuration. To be safe, you would like to first see all the infrastructure that Terraform will delete.

Which command should you use to show all the resources that will be deleted? (Pick the 2 correct responses)

Options:

A.

Runterraform destroy. This will output all the resources that will be deleted before prompting for approval.


B.

Runterraform show -destroy.


C.

Runterraform state rm *.


Expert Solution
Questions # 60:

When using multiple configurations of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?

Options:

A.

depends_on


B.

alias


C.

name


D.

id


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