Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Terraform me up

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.
What benefits brings Infrastructure as Code (IaC)?
a)
It's encrypted
b)
It's reusable
c)
It's predictable
d)
It's unpredictable
2.
What should I use if I want to reference an existing resource from my AWS account?
a)
Data Resource
b)
Resource
c)
Data Source
d)
Source
3.
Can I run terraform apply BEFORE terraform plan?
a)
Yes, apply will run a plan in this case.
b)
Yes although it will be a dry run
c)
Z+ Infra Police will come after you
d)
No, it is not possible
4.
Why should I care about the famous "backend" block for remote state?
a)
Changes here will destroy your infrastructure
b)

It's important to have a shared state in the team

c)

It's mandatory, because it will create the state bucket

d)

Needs to be removed to share the state

5.

What happens if I run several times?

terraform plan -out=plan.out

terraform apply plan.out

a)
Terraform will create new infrastructure everytime since we are creating a new plan each time.
b)
Terraform is omnipotent, who knows
c)

Terraform is idempotent, will provision once, and does nothing for the rest

d)
Terraform will re-create stateful resources, as the state of the resource can change
6.
I am using module that contains a provider, but I don't need it anymore, what's the best approach to proceed?
a)
Use terraform destroy, with the target flag to select that module exclusively
b)
Use terraform destroy
c)
Remove from the code and apply it
d)
Go to AWS console and delete it
7.
We have a bucket as backend for our state, some Terraform code, a lot of free time and a couple of ideas. After a while, the apply failed due to credentials and the state is broken... what can we do?
a)
Pray
b)
Remove all the code and start again
c)
Rollback to a  previous state version
d)
Go on holidays
8.
I have a RDS Database and I need it to be as fast as possible so frontend will show some data for our customers, in which subnet does make sense to have it?
a)
Tier1, it is the closest to the customers!!
b)
Tier2, closest to the application!!
c)
Tier3, in the inner circle of protection
d)
Tier4... woot?
9.
Data sources allow us to fetch data from AWS resources. Generally, which of the following fields CAN NOT be used as argument? 
a)
Amazon Resource Name (ARN)
b)
IP addresses
c)
Tags
d)
Name of the resource