What is Terraform ? Flashcards

1
Q

What is Terraform?

A

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why do we need tools like Terraform for infrastructure management?

A

Tools like Terraform provide benefits such as Infrastructure as Code, safety mechanisms, efficiency in provisioning, and compatibility with various cloud providers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does Terraform enable application software best practices to infrastructure?

A

By treating infrastructure as code, Terraform allows for the application of software development best practices, including version control, testing, and collaboration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the compatibility of Terraform with different clouds and services?

A

Terraform is compatible with multiple cloud providers and services, offering a consistent workflow across different platforms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a common pattern involving Terraform and Ansible?

A

Terraform is used for infrastructure provisioning, while Ansible is used for configuration management and orchestration of software on that infrastructure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the role of server templating tools like Packer?

A

Server templating tools like Packer enable the creation of custom machine images with pre-installed software and configurations, which can be used in conjunction with Terraform for infrastructure deployment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can Terraform be used in conjunction with Kubernetes?

A

Terraform can be used to provision the underlying infrastructure, while Kubernetes is used for container orchestration and managing applications on the provisioned infrastructure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the main components of Terraform architecture?

A

Terraform consists of Terraform Core, Terraform State, Terraform Config, and Providers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the role of Terraform Core?

A

Terraform Core interprets Terraform configuration files, creates execution plans, and executes them to provision and manage infrastructure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the purpose of the Terraform State component?

A

Terraform State stores the current state of the infrastructure and is used to track resources and configurations managed by Terraform.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does Terraform achieve compatibility with specific cloud platforms?

A

Terraform leverages Providers, such as the AWS Provider, to interface with specific cloud platforms and map the desired state defined in Terraform configuration to the corresponding resources and configurations in the target environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the benefits of using Infrastructure as Code (IaC) tools like Terraform?

A

Automation of infrastructure provisioning and management.
Reproducibility and consistency in infrastructure configurations.
Collaboration and version control of infrastructure code.
Scalability and efficiency in managing infrastructure resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How does Terraform ensure safety in infrastructure changes?

A

Terraform performs an execution plan that previews changes before applying them, helping to prevent accidental or destructive modifications. Users can review and verify the changes before committing them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are some examples of cloud providers that are compatible with Terraform?

A

AWS, Azure, Google Cloud, DigitalOcean, and many others. Terraform has a wide range of providers that enable provisioning and management across various cloud platforms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can Terraform be used alongside other configuration management tools?

A

Yes, Terraform can be used in conjunction with tools like Ansible, Chef, or Puppet. While Terraform focuses on infrastructure provisioning, these tools specialize in software configuration management and orchestration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the benefits of using server templating tools like Packer with Terraform?

A

Server templating tools like Packer allow for the creation of custom machine images with pre-configured software and settings. These images can be used as a basis for provisioning infrastructure with Terraform, ensuring consistent and standardized deployments.

17
Q

How does Terraform integrate with Kubernetes?

A

Terraform can provision the underlying infrastructure for Kubernetes, such as virtual machines, networks, and storage. Kubernetes can then be used to manage the deployment and orchestration of containerized applications on the provisioned infrastructure.

18
Q

What role does the Terraform State component play in infrastructure management?

A

The Terraform State component keeps track of the current state of the infrastructure. It allows Terraform to determine the changes required to reach the desired state and tracks the progress of infrastructure modifications over time.

19
Q

What is the purpose of the Terraform Config component?

A

The Terraform Config component consists of the configuration files written in the HashiCorp Configuration Language (HCL). These files define the desired state of the infrastructure, including resources, configurations, and dependencies.

20
Q

How does the AWS Provider interact with Terraform?

A

The AWS Provider is a plugin that enables Terraform to interact with the Amazon Web Services (AWS) platform. It maps the desired state defined in Terraform configuration to the corresponding resources and configurations in the AWS environment.