IAC and config management Flashcards

1
Q

declarative

A

defines what the state should be but now how it should be accomplished

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

imperative

A

what should be done to achive the result

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

idempotent

A

same result when code is re-ran even if the object already exists. Azure cli is an example of this

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

language used by Terraform

A

Hashicorp config lanagaue

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

format used by ARM templates

A

Json

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

what is Ansible used for

A

declarative configuration of VMs, networking devices and cloud infrastructure

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

main.tf

A

holds config code. Also called a terraform plan

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

terraform.tfstate

A

json file managed by terroaform. Helps map planned resources against the running resources (name to url, guid, id etc)

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

Terraform providers

A

what api to call, azurerm and aws have their own providers.

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

Azure terraform provider defination

A

provider “azurerm” {
version = “>=2.0.0”
features {}
}

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

how to store and call varibales in terraform

A

Variables “keyname” {
descritpion = “exmaple
}

var.keyname

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

how can variables be passed to terraform

A

terraform.tvvars file, -var cmd aurment, enviroment varibles, terraform cloud work space

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

terraform resource

A

defines a infrastructure object or a function that can be reused in the terraform. resources normally start with proivder_ then what type of resource type under the provider with parrement values

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

command: terraform init

A

initializes terraform enivorment and downloads needed plugins. provides should be added into the main.tf file first

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

command: terraform plan

A

creates a diff of what will be changed once the planned has been executed + shows what will added and - shows what will be destoryed

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

command: terraform apply

A

applies the changes in the plan

17
Q

command: terraform destroy

A

deletes all objects created by the plan

18
Q

terraform output values

A

defines an output that should be provided when running terraform output. some exmaples are public ip address, dns host names etc