Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

HashiCorp Terraform Associate - Practice Questions 1 ( Verified Solution) 2024

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
19-01-2024
Written in
2023/2024

HashiCorp Terraform Associate - Practice Questions 1 ( Verified Solution) 2024 What is Infrastructure as Code? You write and execute the code to define, deploy, update, and destroy your infrastructure What are the benefits of IaC? a. AutomationWe 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 codeWe can reuse the same code c. VersioningWe 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 using IaC make it easy to provision infrastructure? 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. What is Ideompodent in terms of IaC? The idempotent characteristic provided by IaC tools ensures that, even if the same code is applied multiple times, the result remains the same. What are Day 0 and Day 1 activities? 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. What are the use cases of Terraform? Heroku App SetupMulti-Tier ApplicationsSelf-Service ClustersSoftware DemosDisposable EnvironmentsSoftware Defined NetworkingResource SchedulersMulti-Cloud Deployment What are the advantages of Terraform? Platform AgnosticState ManagementOperator Confidence Where do you describe all the components or your entire datacenter so that Terraform provision those? Configuration files ends with *.tf How can Terraform build infrastructure so efficiently? 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. What is multi-cloud deployment? Provisoning your infrastrcutire into multiple cloud providers to increase fault-tolerance of your applications.

Show more Read less
Institution
Course

Content preview

HashiCorp Terraform Associate - Practice Questions 1
( Verified Solution) 2024
What is Infrastructure as Code?
You write and execute the code to define, deploy, update, and destroy your
infrastructure
What are the benefits of IaC?
a. AutomationWe 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 codeWe can reuse the same code
c. VersioningWe 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 using IaC make it easy to provision infrastructure?
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.
What is Ideompodent in terms of IaC?
The idempotent characteristic provided by IaC tools ensures that, even if the same code
is applied multiple times, the result remains the same.
What are Day 0 and Day 1 activities?
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.
What are the use cases of Terraform?
Heroku App SetupMulti-Tier ApplicationsSelf-Service ClustersSoftware
DemosDisposable EnvironmentsSoftware Defined NetworkingResource
SchedulersMulti-Cloud Deployment
What are the advantages of Terraform?
Platform AgnosticState ManagementOperator Confidence
Where do you describe all the components or your entire datacenter so that
Terraform provision those?
Configuration files ends with *.tf
How can Terraform build infrastructure so efficiently?
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.
What is multi-cloud deployment?
Provisoning your infrastrcutire into multiple cloud providers to increase fault-tolerance of
your applications.

, How multi-cloud deployment is useful?
By using only a single region or cloud provider, fault tolerance is limited by the
availability of that provider.

Having a multi-cloud deployment allows for more graceful recovery of the loss of a
region or entire provider.
What is cloud-agnostic in terms of provisioning tools?
cloud-agnostic and allows a single configuration to be used to manage multiple
providers, and to even handle cross-cloud dependencies.
What is the use of terraform being cloud-agnostic?
It simplifies management and orchestration, helping operators build large-scale multi-
cloud infrastructures.
What is the Terraform State?
Every time you run Terraform, it records information about what infrastructure it created
in a Terraform state file.
By default, when you run Terraform in the folder /some/folder, Terraform creates the
file /some/folder/terraform.tfstate.
This file contains a custom JSON format that records a mapping from the Terraform
resources in your configuration files to the representation of those resources in the real
world.
What is the purpose of the Terraform State?
Mapping to the Real World
Terraform requires some sort of database to map Terraform config to the real world
because you can't find the same functionality in every cloud provider. You need to have
some kind of mechanism to be cloud-agnostic
Metadata
Terraform must also track metadata such as resource dependencies, pointer to the
provider configuration that was most recently used with the resource in situations where
multiple aliased providers are present.
Performance
When running a terraform plan, Terraform must know the current state of resources in
order to effectively determine the changes that it needs to make to reach your desired
configuration.For larger infrastructures, querying every resource is too slow. Many cloud
providers do not provide APIs to query multiple resources at once, and the round trip
time for each resource is hundreds of milliseconds. So, Terraform stores a cache of the
attribute values for all resources in the state. This is the most optional feature of
Terraform state and is done only as a performance improvement.
Syncing
When two people works on the same file and doing some changes to the infrastructure.
Its very important for everyone to be working with the same state so that operations will
be applied to the same remote objects.
What is the name of the terraform state file?
terraform.tfstate
Where do you put terraform configurations so that you can configure some
behaviors of Terraform itself?

Written for

Course

Document information

Uploaded on
January 19, 2024
Number of pages
11
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LectDan Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
220
Member since
3 year
Number of followers
157
Documents
7985
Last sold
1 month ago

4.0

47 reviews

5
25
4
12
3
2
2
3
1
5

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions