Which statement about local modules is incorrect?

Prepare for the HashiCorp Terraform Associate Exam. Utilize flashcards and multiple-choice questions with detailed hints and explanations. Boost your confidence and be ready for success!

Multiple Choice

Which statement about local modules is incorrect?

Explanation:
Local modules come from a directory on disk and are referenced by a local path, not by a remote source with a version. Because the version concept applies to modules fetched from the Terraform Registry or from a Git source, you can’t pin or specify a version for a local module. So the statement that local modules support versions is not correct. If you need version control, you’d switch to a registry or Git-sourced module and use a version or a specific ref. The other facts align with how local modules work: they are sourced from a directory on disk, and they don’t rely on remote versioning.

Local modules come from a directory on disk and are referenced by a local path, not by a remote source with a version. Because the version concept applies to modules fetched from the Terraform Registry or from a Git source, you can’t pin or specify a version for a local module. So the statement that local modules support versions is not correct. If you need version control, you’d switch to a registry or Git-sourced module and use a version or a specific ref. The other facts align with how local modules work: they are sourced from a directory on disk, and they don’t rely on remote versioning.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy