Understand infrastructure as code (IaC) concepts COPY COPY Flashcards

Explain what IaC is Describe the advantages of IaC patterns

1
Q

What is Infrastructure as Code?

A

You write and execute the code to define, deploy, update, and destroy your infrastructure

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

What are the benefits of IaC?

A

a. Automation
We can bring up the servers with one script and scale up and down based on our load with the same script.

b. Reusability of the code
We can reuse the same code

c. Versioning
We can check it into version control and we get versioning. Now we can see an incremental history of who changed what, how is our infrastructure actually defined at any given point of time, and wehave this transparency of documentation

IaC makes changes idempotent, consistent, repeatable, and predictable.

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

How using IaC make it easy to provision infrastructure?

A

IaC makes it easy to provision and apply infrastructure configurations, saving time. It standardizes workflows across different infrastructure providers (e.g., VMware, AWS, Azure, GCP, etc.) by using a common syntax across all of them.

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

What is Ideompodent in terms of IaC?

A

The idempotent characteristic provided by IaC tools ensures that, even if the same code is applied multiple times, the result remains the same.

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

What are Day 0 and Day 1 activities?`

A

IaC can be applied throughout the lifecycle, both on the initial build, as well as throughout the life of the infrastructure. Commonly, these are referred to as Day 0 and Day 1 activities.
“Day 0” code provisions and configures your initial infrastructure.
“Day 1” refers to OS and application configurations you apply after you’ve initially built your infrastructure.

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

What are the use cases of Terraform?

A
Heroku App Setup
Multi-Tier Applications
Self-Service Clusters
Software Demos
Disposable Environments
Software Defined Networking
Resource Schedulers
Multi-Cloud Deployment

https://www.terraform.io/intro/use-cases.html

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

What are the advantages of Terraform?

A

Platform Agnostic
State Management
Operator Confidence

https://learn.hashicorp.com/terraform/getting-started/intro

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

Where do you describe all the components or your entire datacenter so that Terraform provision those?

A

Configuration files ends with *.tf

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

How can Terraform build infrastructure so efficiently?

A

Terraform builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, Terraform builds infrastructure as efficiently as possible, and operators get insight into dependencies in their infrastructure.

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