Seventh Flashcards Preview

P211A000N02F > Seventh > Flashcards

Flashcards in Seventh Deck (4)
Loading flashcards...
1

You are a DevOps consultant and you have a customer that never has heard about IaC. How do you describe what IaC is?

A. IaC is a new way to create infrastructure using APIs from different providers. Has the disadvantage that is not modular and is not reusable
B. IaC is the way to create infrastructure or resources using code where you can plan to check out the differences between the actual state and the new one and you can apply those changes to your infrastructure. This can be also destroyed
C. Terraform is a OOO programing language which you can create infrastructure just on Amazon Web Services
D. All the above

B. IaC is the way to create infrastructure or resources using code where you can plan to check out the differences between the actual state and the new one and you can apply those changes to your infrastructure. This can be also destroyed.

With IaC, and particularly with Terraform, you write your infrastructure, and you can execute plans before to see the differences with the current state of your infrastructure. You can also apply those changes to the infrastructure.

Option A is incorrect because one of the main benefits of the IaC is modular and reusable but you are missing the permissions control

Option C is incorrect because with Terraform you can write infrastructure for multiple providers and not just Amazon Web Services. Also Terraform is a declarative language, not a OOO

Option D is incorrect as A and C are not correct

https://www.terraform.io/intro/index.html#infrastructure-as-code
https://registry.terraform.io/browse/providers

2

What are the main advantages of Terraform?

A. Is agnostic to any platform
B. Is reusable
C. State management of the infrastructure
D. All of the above

D. All of the above

There are multiple advantages of Terraform:

Agnostic: Same language (HCL) to build infrastructure in multiple platforms such as AWS, Azure, or Kubernetes. You don’t have to learn different languages for different platforms or providers.

Reusable: you can create and build your modules to be used for your whole organization

When you write your infrastructure and create an execution plan, this plan is compared with a Terraform State. This State is fully managed with Terraform and easy to configure.

Answer A is incorrect as a single answer as you have multiple more benefits with Terraform

Answer B same as A. You have multiple more benefits with Terraform

Answer C same as A and B.

https://learn.hashicorp.com/tutorials/terraform/infrastructure-as-code#advantages-of-terraform

3

What of the following statement is not a use-case
of Terraform?

A. Multi Cloud Deployments
B. Kubernetes Infrastructure Definition
C. Data migration between a DC and a Cloud Provider
D. Creation of CI/CD Pipelines on GitLab

C. Data migration between a DC and a Cloud Provider

Terraform is not a tool to migrate data between different providers, i.e.: On-premise to Cloud, but you can use Terraform to create this infrastructure and use resources from different providers to design and create your platform for data migration

A is incorrect because one Multi Cloud Deployments is one of the main benefits of Terraform, and particularly, one of the main advantages

B is incorrect because you can use the Kubernetes provider to create your infrastructure and resources definition using Terraform.

D is incorrect because you can take advantage of the GitLab provider to define your pipelines using Terraform.

https://www.terraform.io/intro/use-cases.html
https://registry.terraform.io/providers/hashicorp/kubernetes/latest
https://registry.terraform.io/providers/gitlabhq/gitlab/latest

4

You are the DevOps Team Lead of a company where all the infrastructure is being created manually. You have a meeting with the CTO and you need to convince him to change the current approach to start using IaC.
Your CTO thinks that IaC will be expensive and the learning curve will be high.

How would you describe the main advantages of using IaC and Terraform?

A. Terraform will introduce speed on the development of the applications of your company.
B. Terraform is expensive because you have to pay for a license, but this cost is less than the time-consuming creating the infrastructure manually
C. With Terraform, the possibility to have security incidents and leave a firewall open in your infrastructure is higher, but you can create firewalls in seconds
D. Terraform has a free version and you don’t have to pay for it. IaC makes your infrastructure more reliable, repeatable, consistent, and secure gaining speed and velocity when you have to deploy your infrastructure multiple times.

D. Terraform has a free version and you don’t have to pay for it. IaC makes your infrastructure more reliable, repeatable, consistent, and secure gaining speed and velocity when you have to deploy your infrastructure multiple times.

Terraform has a free version with all the capabilities and you don’t have to pay for its use. Also, Terraform can use modules to have your IaC repeatable and re-usable and a management state of your infrastructure to be consistent with your code, the state of your infrastructure.

Option A is incorrect because, although, you will gain velocity developing the infrastructure of your applications, Terraform is not a tool to create Software Development.

Option B is incorrect because you have a free version of Terraform and you don’t have to pay for it.

Option C is incorrect because with IaC you can have a code review to check your changes before applying to have an extra security point of view when your code is being written.

https://www.hashicorp.com/blog/infrastructure-as-code-in-a-private-or-public-cloud
https://www.hashicorp.com/products/terraform/pricing