Free Terraform Associate 004 Exam Braindumps
Terraform Associate 004 Questions 71–75 (page: 16)

Updated On: 10-Feb-2026

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

  1. Configuration it in the module's Terraform code
  2. Mention it on the module's configuration page on the Terraform Module Registry
  3. The Terraform Module Registry does not support versioning modules
  4. Tag a release in the associated repo

Answer(s): D

Explanation:

This is how you specify a module's version when publishing it to the public Terraform Module Registry, as it uses the tags from your version control system (such as GitHub or GitLab) to identify module versions. You need to use semantic versioning for your tags, such as v1.0.0.



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

  1. Subfolder within a workspace
  2. Generic git repository
  3. Terraform Cloud private registry
  4. Public Terraform module registry

Answer(s): C

Explanation:

This is the method for sharing Terraform configurations that fulfills the following criteria:

Keeps the configurations confidential within your organization

Supports Terraform's semantic version constraints

Provides a browsable directory

The Terraform Cloud private registry is a feature of Terraform Cloud that allows you to host and manage your own modules within your organization, and use them in your Terraform configurations with versioning and access control.



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

  1. Cloned virtual machine images
  2. Versioned configuration files
  3. Change management database records
  4. Doctor files

Answer(s): B

Explanation:

These are examples of infrastructure as code (IaC), which is a practice of managing and provisioning infrastructure through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools.



Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?

  1. Terraform state show ` provider_type_name
  2. Terraform state list
  3. Terraform get provider_type_name
  4. Terraform state list provider_type_name

Answer(s): A

Explanation:

This is the command that you would use to access all of the attributes and details of a resource managed by Terraform, by providing the resource address as an argument. For example, terraform state show 'aws_instance.example' will show you all the information about the AWS instance named example.



The_________determines how Terraform creates, updates, or delete resources.

  1. Terraform configuration
  2. Terraform provisioner
  3. Terraform provider
  4. Terraform core

Answer(s): C

Explanation:

This is what determines how Terraform creates, updates, or deletes resources, as it is responsible for understanding API interactions with some service and exposing resources and data sources based on that API.



Viewing page 16 of 53
Viewing questions 76 - 80 out of 147 questions


Post your Comments and Discuss HashiCorp Terraform Associate 004 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!