Spring 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 5 out of 10 pages
Viewing questions 41-50 out of questions
Questions # 41:

Your Terraform configuration declares a variable. You want to enforce that its value meets your specific requirements, and you want to block the Terraform operation if it does not. What should you add to your configuration?

Options:

A.

Add a top-level check block.


B.

Add a validation block to the variable block.


C.

Add a top-level validation block.


D.

Add a check block to the variable block.


Expert Solution
Questions # 42:

Which is a benefit of using infrastructure as code (IaC) tools compared to native platform APIs?

Options:

A.

IaC allows you to write each API call required to reach the desired configuration.


B.

IaC calls native command line tools, which are more efficient than API calls.


C.

IaC configurations define the current state of infrastructure, which allows you to identify the correct API calls to make changes.


D.

IaC configurations define the end state of the infrastructure without having to write API calls to reach the desired configuration.


Expert Solution
Questions # 43:

Which of the following is not a valid source path for specifying a module?

Options:

A.

source - " github.com/hashicorp/examplePref-ul.0.8M


B.

source = " ./module?version=vl.6.0 "


C.

source - " hashicorp/consul/aws "


D.

source - " ./module "


Expert Solution
Questions # 44:

Which of the following can you do with terraform plan? (Pick 2 correct responses)

Options:

A.

Schedule Terraform to run at a planned time in the future.


B.

View the execution plan and check if the changes match your expectations.


C.

Save a generated execution plan to apply later.


D.

Execute a plan in a different workspace.


Expert Solution
Questions # 45:

If you don’t use the local Terraform backend, where else can Terraform save resource state?

Options:

A.

In a remote location configured in the terraform block, such as HCP Terraform or a cloud storage system.


B.

In a remote location configured in the -terraformrc file, such as HCP Terraform or a cloud storage system.


C.

In memory.


D.

In an environment variable.


Expert Solution
Questions # 46:

Which of the following is true about terraform apply?(Pick 2 correct responses)

Options:

A.

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


B.

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


C.

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


D.

You cannot target specific resources for the operation.


E.

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


Expert Solution
Questions # 47:

Terraform providers are part of the Terraform core binary.

Options:

A.

True


B.

False


Expert Solution
Questions # 48:

How would you output returned values from a child module in the Terraform CLI output?

Options:

A.

Declare the output in the root configuration


B.

Declare the output in the child module


C.

Declare the output in both the root and child module


D.

None of the above


Expert Solution
Questions # 49:

Only the user that generated a plan may apply it.

Options:

A.

True


B.

False


Expert Solution
Questions # 50:

Any user can publish modules to the public Terraform Module Registry.

Options:

A.

True


B.

False


Expert Solution
Viewing page 5 out of 10 pages
Viewing questions 41-50 out of questions