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 # 51

Exhibit:

resource " aws_instance " " example " {

ami = " ami-0a123456789abcdef "

instance_type = " t3.micro "

}

You are updating a child module with the resource block shown in the exhibit. The public_ip attribute of the resource needs to be accessible to the parent module. How do you meet this requirement?

Options:

A.  

Create an output in the child module.

B.  

Add a data source to the parent module.

C.  

Add an import block to the parent module.

D.  

Create a local value in the child module.

Discussion 0
Question # 52

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

Discussion 0
Question # 53

Which of the following is not a way to trigger terraform destroy?

Options:

A.  

Using the destroy command with auto-approve.

B.  

Passing --destroy at the end of a plan request.

C.  

Running terraform destroy from the correct directory and then typing yes when prompted in the CLI.

Discussion 0
Question # 54

A module block used in your configuration is shown in the exhibit. You have been asked to update the version of this module from 4.2.1 to 5.0.0.

Exhibit:

module " compute " {

source = " Azure/compute/azurerm "

version = " 4.2.1 "

}

Which two steps must you take to accomplish this?

Options:

A.  

Run the terraform init command.

B.  

Run the terraform pull command.

C.  

Update the version argument in the module block.

D.  

Remove the version argument from the module block.

Discussion 0
Question # 55

Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?

Options:

A.  

Edit your state file to scrub out the sensitive data

B.  

Always store your secrets in a secrets.tfvars file

C.  

Delete the state file every time you run Terraform

D.  

Store the state in an encrypted backend

Discussion 0
Question # 56

Which option does not keep secret variable values out of Terraform configuration files?

Options:

A.  

Pass the secret values via a -var flag.

B.  

Pass the secret values as environment variables.

C.  

Store the secrets in a shared credentials file.

D.  

Configure the variable as sensitive.

Discussion 0
Question # 57

Which features do HCP Terraform workspaces provide that are not available in Terraform Community Edition? (Pick the 3 correct responses below.)

Options:

A.  

State versions and run history.

B.  

Automatic detection of common security issues.

C.  

Store Terraform and environment variables in variable sets.

D.  

Remote execution of Terraform operations.

E.  

Store your configuration in a Version Control System (VCS).

F.  

Support for multiple cloud providers.

Discussion 0
Question # 58

Which task does terraform init not perform?

Options:

A.  

Discovers all providers used in the configuration and downloads them.

B.  

Validates that values are set for all required input variables.

C.  

Connects to the configured backend.

D.  

Discovers any remote modules and downloads them.

Discussion 0
Question # 59

Terraform configuration can only call modules from the public registry.

Options:

A.  

True

B.  

False

Discussion 0
Question # 60

Which are examples of infrastructure as code? Choose two correct answers.

Options:

A.  

Cloned virtual machine images

B.  

Versioned configuration files

C.  

Change management database records

D.  

Doctor files

Discussion 0

Free Exams Sample Questions