Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 206

Module version is required to reference a module on the Terraform Module Registry.

    Correct Answer: B

    Terraform does not require specifying a module version to reference a module on the Terraform Module Registry. When the version is not specified, Terraform will download the latest version available. However, it is generally recommended to specify the version to maintain consistency and prevent unexpected changes in your infrastructure caused by updates to the module.

Discussion
gekkehenkOption: B

Specifying a versions is not mandatory. When a version is not specified, Terraform just downloads the latest version

Pietjeplukgeluk

Correct, you can run "terraform init" without stating the version. It is still recommended to specify the version, but it is not mandatory.

AbuuOption: B

Module versions are not required but are recommended to avoid unexpected or unwanted changes.

nhvardhanOption: A

Module Versions are required to reference a correct module.

master9Option: A

When referencing a module from the Terraform Module Registry, specifying a version is required. This ensures that your infrastructure code is consistent and reproducible by always using the same version of the module. Here is an example of how you would reference a module with a specific version: module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "2.77.0" # ... other module variables ... }

yubacOption: B

it is not mandatory. If not set terraform will download the latest (not recommended)

NunyabiznesOption: B

Module version is not required to reference a module on the Terraform Module Registry. If you don't specify a version, Terraform will use the latest version available. However, it is a good practice to specify a version to ensure that your configuration continues to work with the same version of the module, even if newer versions are released.

campsOption: B

It''s B - False

Atila50Option: A

when fetching a model version is required

ErrorinprocessOption: B

Selecting B: https://developer.hashicorp.com/terraform/tutorials/modules/module-use The version argument is not required, but we highly recommend you include it when using a Terraform module. For supported sources, this argument specifies the module version Terraform will load. Without the version argument, Terraform will load the latest version of the module.

jabliOption: B

By default, Terraform will clone and use the default branch (referenced by HEAD) in the selected repository. You can override this using the ref argument.

princajenOption: A

Yes, it is required. According to the official Terraform documentation: "When you use a module from the Terraform Module Registry, you'll need to specify both the source address and the module version, which will be in the format {NAMESPACE}/{MODULE NAME}/{PROVIDER}/{VERSION}." (source: https://www.terraform.io/docs/language/modules/sources.html)

princajenOption: A

This is true because Terraform Modules are versioned, and versioning ensures that the module being used is stable and won't change unexpectedly. When referencing a module on the Terraform Module Registry, you must specify the module source address and the version of the module to use. This is usually done in the module block of your Terraform configuration.

pyro7Option: A

True. When referencing a module from the Terraform Module Registry, you must specify a version constraint to indicate which version of the module you want to use. The version constraint is specified in the version argument in the module block. This allows you to lock in a specific version of a module to ensure stability and consistency in your Terraform configurations.

Only5Option: A

I think answer should be True, when you want to refer a particular module version is mandatory to use . below answer is from chat GPT Yes, when referencing a module on the Terraform Module Registry, the module version is required. This is because modules on the registry are versioned, and different versions of a module may have different configurations and behaviors.