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:

Which method for sharing Terraform configurations fulfills the following criteria:

1. Keeps the configurations confidential within your organization

2. Support Terraform’s semantic version constrains

3. Provides a browsable directory

Options:

A.

Subfolder within a workspace


B.

Generic git repository


C.

Terraform Cloud private registry


D.

Public Terraform module registry


Expert Solution
Questions # 52:

Variables declared within a module are accessible outside of the module.

Options:

A.

True


B.

False


Expert Solution
Questions # 53:

Exhibit:

module " network " {

source = " terraform-google-modules/network/google "

version = " ~ > 11.0 "

}

What version of the source module does Terraform allow with the module block shown in the exhibit?

Options:

A.

Any version of the module > 11.0.


B.

Any version of the module > = 11.0.


C.

Any version of the module > = 11.0 and < 12.0.


D.

Any version of the module > = 11.0.0 and < 11.1.0.


Expert Solution
Questions # 54:

Where does HashiCorp recommend you store API tokens and other secrets within your team’s Terraform workspaces?

Pick the three correct responses below.

Options:

A.

In a plaintext document on a shared drive.


B.

In HashiCorp Vault.


C.

In a terraform.tfvars file, checked into your version control system.


D.

In an environment variable and referenced with TF_VAR_variablename.


E.

In an HCP Terraform variable, with the sensitive option checked.


Expert Solution
Questions # 55:

Which statements are true about terraform apply? (Choose TWO correct answers)

Options:

A.

Depending on the provider specification, Terraform may need to destroy and recreate your infrastructure resources.


B.

It only operates on infrastructure defined in the current working directory or workspace.


C.

You must pass the output of a terraform plan command to it.


D.

By default, it does not refresh your state file to reflect the current infrastructure configuration.


E.

You cannot target specific resources for the operation.


Expert Solution
Questions # 56:

What are some benefits of using Sentinel with Terraform Cloud/Terraform Cloud? Choose three correct answers.

Options:

A.

You can restrict specific resource configurations, such as disallowing the use of CIDR=0.0.0.0/0.


B.

You can check out and check in cloud access keys


C.

Sentinel Policies can be written in HashiCorp Configuration Language (HCL)


D.

Policy-as-code can enforce security best practices


E.

You can enforce a list of approved AWS AMIs


Expert Solution
Questions # 57:

You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully.

What will happen if you delete the VM using the cloud provider console, then run terraform apply again without changing any Terraform code?

Options:

A.

Terraform will recreate the VM.


B.

Terraform will report an error.


C.

Terraform will remove the VM from the state file.


D.

Terraform will not make any changes.


Expert Solution
Questions # 58:

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.

Options:

A.

True


B.

False


Expert Solution
Questions # 59:

A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?

Options:

A.

Tear down the entire workspace ' s infrastructure and rebuild it.


B.

Build a completely brand new set of infrastructure.


C.

Rebuild only the instances that were deleted.


D.

Stop and generate an error message about the missing instances.


Expert Solution
Questions # 60:

Your root module contains a variable namednum_servers. Which is the correct way to pass its value to a child module with an input namedservers?

Options:

A.

servers = num_servers


B.

servers = var(num_servers)


C.

servers = var.num_servers


D.

servers = ${var.num_servers}


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