and Conceptual Actual Frequently Tested
Exam Questions With Reviewed 100% Correct
Detailed Answers
Guaranteed Pass!!Current Update!!
1. Which option cannot be used to keep secrets out of Terraform configuration
files?
A. Environment Variables
B. Mark the variable as sensitive
C. A Terraform provider
D. A -var flag - ANSWER B
2. Which of the following arguments are required when declaring a Terraform
output?
A. sensitive
B. description
C. default
D. value - ANSWER D
3. What does state locking accomplish?
A. Copies the state file from memory to disk
B. Encrypts any credentials stored within the state file
,C. Blocks Terraform commands from modifying the state file
D. Prevents accidental deletion of the state file - ANSWER C
4. You just upgraded the version of a provider in an existing Terraform project.
What do you need to do to install the new provider?
A. Run terraform apply -upgrade
B. Run terraform init -upgrade
C. Run terraform refresh
D. Upgrade your version of Terraform - ANSWER B
5. A module can always refer to all variables declared in its parent module.
A. True
B. False - ANSWER B
6. When you use a remote backend that needs authentication, HashiCorp
recommends that you:
A. Use partial configuration to load the authentication credentials outside of the
Terraform code
B. Push your Terraform configuration to an encrypted git repository
C. Write the authentication credentials in the Terraform configuration files
D. Keep the Terraform configuration files in a secret store - ANSWER A
7. You have a simple Terraform configuration containing one virtual machine (VM)
in a cloud provider. You run terraform apply and the VM is created successfully.
,What will happen if you terraform apply again immediately afterwards without
changing any Terraform code?
A. Terraform will terminate and recreate the VM
B. Terraform will create another duplicate VM
C. Terraform will apply the VM to the state file
D. Nothing - ANSWER D
8. A junior admin accidentally deleted some of your cloud instances. What does
Terraform do when you run terraform apply?
A. Build a completely brand new set of infrastructure
B. Tear down the entire workspace infrastructure and rebuild it
C. Rebuild only the instances that were deleted
D. Stop and generate an error message about the missing instances - ANSWER
C
9. You have created a main.tr Terraform configuration consisting of an application
server, a database, and a load balancer. You ran terraform apply and all resources
were created successfully. Now you realize that you do not actually need the load
balancer so you run terraform destroy without any flags What will happen?
A. Terraform will destroy the application server because it is listed first in the code
B. Terraform will prompt you to confirm that you want to destroy all the
infrastructure
C. Terraform will destroy the main.tf file
, D. Terraform will prompt you to pick which resource you want to destroy E.
Terraform will immediately destroy all the infrastructure - ANSWER B
10. Which type of block fetches or computes information for use elsewhere in a
Terraform configuration?
A. provider
B. resource
C. local
D. data - ANSWER D
11. You have just developed a new Terraform configuration for two virtual
machines with a cloud provider. You would like to create the infrastructure for the
first time. Which Terraform command should you run first?
A. terraform apply
B. terraform plan
C. terraform show
D. terraform init - ANSWER D
12. All modules published on the official Terraform Module Registry have been
verified by HashiCorp.
A. True