nerdexam
HashiCorp

TA-002-P · Question #192

You are reviewing Terraform configurations for a big project in your company. You noticed that there are several identical sets of resources that appear in multiple configurations. What feature of Ter

The correct answer is D. Modules. Modules are reusable configuration packages that Terraform can share through a variety of sources including Terraform Registries, GitHub, and Amazon S3 buckets. A module is a container for multiple resources that are used together. Modules can be used to create lightweight abstra

Interact with Terraform modules

Question

You are reviewing Terraform configurations for a big project in your company. You noticed that there are several identical sets of resources that appear in multiple configurations. What feature of Terraform would you recommend to use to reduce the amount of cloned configuration between the different configurations?

Options

  • APackages
  • BBackends
  • CProvisioners
  • DModules

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    3% (1)
  • D
    89% (31)

Explanation

Modules are reusable configuration packages that Terraform can share through a variety of sources including Terraform Registries, GitHub, and Amazon S3 buckets. A module is a container for multiple resources that are used together. Modules can be used to create lightweight abstractions, so that you can describe your infrastructure in terms of its architecture, rather than directly in terms of physical objects. Modules are reusable configuration packages that Terraform can share through a variety of sources including Terraform Registries, GitHub, and Amazon S3 buckets.

Topics

#Terraform modules#Configuration reuse#DRY principle

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice