nerdexam
HashiCorp

TA-002-P · Question #27

Terraform can import modules from a number of sources ?which of the following is not a valid source?

The correct answer is A. FTP server. Terraform supports module sources from various locations like local paths, version control systems, and registries, but not directly from an FTP server.

Interact with Terraform modules

Question

Terraform can import modules from a number of sources ?which of the following is not a valid source?

Options

  • AFTP server
  • BGitHub repository
  • CLocal path
  • DTerraform Module Registry

How the community answered

(59 responses)
  • A
    95% (56)
  • B
    2% (1)
  • C
    3% (2)

Why each option

Terraform supports module sources from various locations like local paths, version control systems, and registries, but not directly from an FTP server.

AFTP serverCorrect

Terraform explicitly supports module sources from local file paths, various version control systems like Git (including GitHub), generic HTTP URLs, and the Terraform Module Registry, but it does not list FTP servers as a natively supported module source.

BGitHub repository

GitHub repositories are a valid and common source for Terraform modules, fetched using Git-based URLs.

CLocal path

Local paths are a valid source for Terraform modules, allowing for organization and reuse of configurations within the same file system.

DTerraform Module Registry

The Terraform Module Registry is a primary source for discovering and using public and private Terraform modules.

Concept tested: Terraform module sources

Source: https://developer.hashicorp.com/terraform/language/modules/sources

Topics

#Terraform modules#Module sources#Module import

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice