Core Terraform concepts including providers, state, and modules tested on the HashiCorp Terraform Associate exam.
41 cards · basic cards · AI-written, checked twice. Edit anything.
- What is Terraform?
Show answer
An open source infrastructure as code tool that uses declarative configuration to define and manage cloud resources.
- What language does Terraform use?
Show answer
HCL (HashiCorp Configuration Language), a declarative configuration language.
- What is a Terraform provider?
Show answer
A plugin that enables Terraform to interact with cloud platforms, SaaS providers, or other APIs.
- What is the Terraform state file?
Show answer
A JSON file that tracks the current state of all managed resources, acting as a single source of truth.
- What is a Terraform module?
Show answer
A container of multiple resources that are used together, enabling code reuse and organization.
- What is a resource in Terraform?
Show answer
An object that represents a specific infrastructure component, such as a compute instance or database.
- What is a Terraform data source?
Show answer
A read-only reference to data managed external to Terraform, allowing you to query existing resources.
- What are Terraform variables used for?
Show answer
To define input values that make configurations reusable and customizable.
- What are Terraform outputs used for?
Show answer
To export values computed or managed by Terraform so they can be used by other configurations or displayed to users.
- What does the terraform plan command do?
Show answer
Generates and shows an execution plan that describes the actions Terraform will perform without making any changes.
- What does the terraform apply command do?
Show answer
Executes the actions described in the plan to create, update, or delete infrastructure resources.
- What does the terraform destroy command do?
Show answer
Destroys all remote objects managed by Terraform in the configuration.
- What is remote state in Terraform?
Show answer
State stored in a remote backend such as S3, Terraform Cloud, or Consul instead of locally on disk.
- What are Terraform provisioners?
Show answer
A way to run scripts or perform actions on a resource after it is created, as a last resort for configuration.
- What is the null_resource in Terraform?
Show answer
A resource from the null provider that does not manage any real infrastructure, useful for provisioners or triggers.