Certified Verified Multiple Choice and
Conceptual Actual Frequently Tested Exam
Questions With Reviewed 100%
Correct Detailed Answers
Guaranteed Pass!!Current Update!!
1. Which one of the following is considered as a Terraform plugin?
Terraform provisioner
Terraform module
Terraform provider
Terraform registry - ANSWER Terraform provider
2. Terraform remembers the compatible version of dependencies such as
providers and modules through dependency lock file. What is the name of that
file?
.terraform.lock.hcl
.terraform.lock.tf
.dependency.lock.hcl
.dependency.lock.tf - ANSWER .terraform.lock.hcl
,3. Terraform Core is a statically-compiled binary written in the ______
programming language.
Java
C#
Python
Go - ANSWER Go
4. Terraform builds a dependency graph from the Terraform configurations.
Which is NOT a correct step of building a Graph?
Resources are mapped to provisioners if they have any defined.
Resources are mapped to providers.
Resources nodes are added to the graph from the configuration.
Resources are not added to the graph that are no longer present in the
configuration but are present in the state file. - ANSWER Resources are
not added to the graph that are no longer present in the configuration but are
present in the state file.
5. Which of the following best describes a Terraform state file?
A file that contains a list of available Terraform providers
A file that stores the current state of infrastructure managed by Terraform
A file that contains a list of Terraform modules used in a configuration
A file that stores the output of a Terraform plan - ANSWER A file that
stores the current state of infrastructure managed by Terraform
, 6. The Terraform state always matches to the remote cloud resources defined in
the configuration?
true
false - ANSWER false
7. Usernames and passwords referenced in the Terraform code, even as variables,
will end up in plain text in the state file?
true
false - ANSWER true
8. Without using a state file, terraform can inspect cloud resources on every run
to validate that the real-world resources match the desired state.
true
false - ANSWER false
9. You injected some secrets from variables into your Terraform configuration.
What happens after you run the terraform apply command and they are loaded
into state?
They are shown in clear-text.
They are shown as their referenced variables.
They are shown as encrypted values.
They are omitted from state. - ANSWER They are shown in clear-text.
10. What is the name of the default file where Terraform stores the state?
, Type your answer in the field provided. The text field is not case-sensitive and all
variations of the correct answer are accepted. - ANSWER terraform.tfstate
12. Where is the default location that Terraform stores its state in?
The current working directory in which Terraform was run.
At the users root directory.
In the same location that Terraform is installed. E.g. /usr/bin/terraform
In ~/.terraform.d/plugins - ANSWER The current working directory in
which Terraform was run.
13. What is the recommended way to implement Terraform's state for larger
teams?
By configuring a remote backend such that multiple teams can work in
tandem and know which resources are being created and destroyed.
By sticking the state in a cloud instance, and having team members SSH into
the instance to work on their configuration files
. Having your state synced to a github repo for members to compare to.
By using the daily standup you are a part of sot that you can share change -
ANSWER By configuring a remote backend such that multiple teams can
work in tandem and know which resources are being created and destroyed.
14. You are part of a large DevOps team using the current version of Terraform,
and there can be multiple changes going on to your terraform files across the
company. What would you do to ensure that the state file is locked when you run
terraform apply?