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

Free HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Practice Questions

Exams4sure Dumps

Exam style questions across every Terraform-Associate-004 domain

Last Update 1 day ago
Total Questions : 385

Start with our free Terraform-Associate-004 practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real Terraform Associate exam. Each Terraform-Associate-004 exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your HashiCorp weak domains, see where you're losing marks, and build a focused study plan in minutes.

Terraform-Associate-004 PDF

Terraform-Associate-004 PDF (Printable)
$46.5
$154.99

Terraform-Associate-004 Testing Engine

Terraform-Associate-004 PDF (Printable)
$51
$169.99

Terraform-Associate-004 PDF + Testing Engine

Terraform-Associate-004 PDF (Printable)
$63.9
$212.99
Question # 1

What does the default " local " Terraform backend store?

Options:

A.  

tfplan files

B.  

State file

C.  

Provider plugins

D.  

Terraform binary

Discussion 0
Question # 2

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.

Options:

A.  

True

B.  

False

Discussion 0
Question # 3

Terraform variable names are saved in the state file.

Options:

A.  

True

B.  

False

Discussion 0
Question # 4

Your team is using version 3.1.4 of a module from the public Terraform Registry, and they are worried about possible breaking changes in future versions of the module. Which version argument should you add to the module block to prevent newer versions from being used?

Options:

A.  

version = " < 3.2 "

B.  

version = " > = 3.1.5 "

C.  

version = " 3.1.4 "

D.  

version = " ~ > 3.1.4 "

Discussion 0
Question # 5

You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.

How will Terraform choose which version of the provider to use?

Options:

A.  

Terraform will use the version recorded in your lock file

B.  

Terraform will use the latest version of the provider for the new resource and the version recorded in the lock file to manage existing resources

C.  

Terraform will check your state file to determine the provider version to use

D.  

Terraform will use the latest version of the provider available at the time you provision your new resource

Discussion 0
Question # 6

Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.

Options:

A.  

Lets you version, reuse, and share infrastructure configuration

B.  

Provisions the same resources at a lower cost

C.  

Secures your credentials

D.  

Reduces risk of operator error

E.  

Prevents manual modifications to your resources

Discussion 0
Question # 7

You are responsible for a set of infrastructure that is managed by two workspaces: example-network and example-compute. The example-compute workspace uses data from output values configured in the example-network workspace and must be deployed afterward. Currently, this is a manual process:

An operator deploys changes to the example-network workspace.

They manually copy the output values from the example-network workspace to input variables configured for the example-compute workspace.

They deploy the example-compute workspace.

Which HCP Terraform features can you use to automate this process?

Pick the two correct responses below.

Options:

A.  

A health check configured on the example-network workspace to create a plan on the example-compute workspace when HCP Terraform applies changes to it.

B.  

A health check configured on the example-compute workspace to create a plan when HCP Terraform applies changes to the example-network workspace.

C.  

A tfe_outputs data source configured in the example-compute workspace to automatically load output values from the example-network workspace.

D.  

A run trigger configured on the example-network workspace to automatically plan changes to the example-compute workspace after every apply.

E.  

A run trigger configured on the example-compute workspace to automatically plan changes after HCP Terraform applies changes to the example-network workspace.

Discussion 0
Question # 8

You ' re building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?

Options:

A.  

Copy the sensitive variables into your Terraform code

B.  

Store the sensitive variables in a secure_varS.tf file

C.  

Store the sensitive variables as plain text in a source code repository

D.  

Pass variables to Terraform with a -var flag

Discussion 0
Question # 9

You ' re writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file ' s contents as a string?

Options:

A.  

file( " id_rsa.pub " )

B.  

templaTefil( " id_rsa.pub " )

C.  

filebase64( " id_rsa.pub " )

D.  

fileset < " id_rsa.pub " )

Discussion 0
Question # 10

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 terraform apply again immediately afterward 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.  

Nothing

Discussion 0

Free Exams Sample Questions