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 7 out of 11 pages
Viewing questions 61-70 out of questions
Questions # 61:

Which two steps are required to provision new infrastructure in the Terraform workflow? (Pick the 2 correct responses below.)

Options:

A.

Import


B.

Apply


C.

Validate


D.

Plan


E.

Init


Expert Solution
Questions # 62:

Exhibit.

You need to deploy resources into two different regions in the same Terraform configuration. To do this, you declare multiple provider configurations as shown in the Exhibit space on this page.

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

Options:

A.

provider = aws.west


B.

alias = aws.west


C.

provider = west


D.

alias = west


Expert Solution
Questions # 63:

You have a simple Terraform configuration containing one VM (virtual machine) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you run terraform apply again immediately afterwards without changing any Terraform code?

Options:

A.

Terraform will terminate and recreate the VM.


B.

Terraform will create another duplicate VM.


C.

Terraform will apply the VM to the state file.


D.

Terraform will take no action.


Expert Solution
Questions # 64:

How do you specify a module’s version when publishing it to the public terraform Module Registry?

Options:

A.

Configuration it in the module ' s Terraform code


B.

Mention it on the module ' s configuration page on the Terraform Module Registry


C.

The Terraform Module Registry does not support versioning modules


D.

Tag a release in the associated repo


Expert Solution
Questions # 65:

Using the terraform state rm command against a resource will destroy it.

Options:

A.

True


B.

False


Expert Solution
Questions # 66:

What is the purpose of the .terraform directory in a Terraform workspace?

Options:

A.

The directory is where Terraform creates and maintains the state file to track the underlying resources it creates and manages.


B.

The directory is used to convert and store Terraform configuration files into API calls to communicate with the targeted platform.


C.

The directory contains the provider credentials and the .tfvars files to prevent them from being committed to version control by accident.


D.

The directory contains plugins and modules that Terraform downloads during initialization, along with other important information.


Expert Solution
Questions # 67:

Terraform variables and outputs that set the description argument will store that description in the state file.

Options:

A.

True


B.

False


Expert Solution
Questions # 68:

Your team adopts AWS CloudFormation as the standardized method for provisioning public cloud resources.

Which scenario presents a challenge for your team?

Options:

A.

Building a reusable codebase that can deploy resources into any AWS region.


B.

Managing a new application stack built on AWS-native services.


C.

Deploying new infrastructure into Microsoft Azure.


D.

Automating a manual, web console-based provisioning process.


Expert Solution
Questions # 69:

HashiCorp Configuration Language (HCL) supports user-denned functions.

Options:

A.

True


B.

False


Expert Solution
Questions # 70:

Exhibit:

provider " aws " { region = " us-east-1 " }

provider " aws " { region = " us-west-2 " }

You need to deploy resources into two different AWS regions in the same Terraform configuration using the provider blocks shown in the exhibit. What do you need to add to the provider configuration to deploy a resource to the us-west-2 AWS region?

Options:

A.

Add an alias to the us-west-2 provider (for example, alias = " west " ) and set provider = aws.west on resources that should use us-west-2.


B.

Rename the provider block to provider " aws " " west " { region = " us-west-2 " }.


C.

Create a new provider named provider " aws_west " { region = " us-west-2 " }.


D.

Nothing. Terraform will automatically decide which provider to use for each resource.


Expert Solution
Viewing page 7 out of 11 pages
Viewing questions 61-70 out of questions