Terraform configuration (including any module references) can contain only one Terraform provider type.
A. True
B. False
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
A. curl commands manually run from a terminal
B. A sequence of REST requests you pass to a public cloud API endpoint Most Voted
C. A script that contains a series of public cloud CLI commands
D. A series of commands you enter into a public cloud console
The_________determines how Terraform creates, updates, or delete resources.
A. Terraform configuration
B. Terraform provisioner
C. Terraform provider
D. Terraform core
A provider configuration block is required in every Terraform configuration.
Example:
A. True
B. False
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string. Which variable type could you use for this input?
A. List
B. Object
C. Map
D. Terraform does not support complex input variables of different types
You can reference a resource created with for_each using a Splat ( *) expression.
A. True
B. False
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?
A. Artifactory
B. Amazon S3
C. Terraform Cloud
D. Git
How is terraform import run?
A. As a part of terraform init
B. As a part of terraform plan
C. As a part of terraform refresh
D. By an explicit call
E. All of the above
Which command add existing resources into Terraform state?
A. Terraform init
B. Terraform plan
C. Terraform refresh
D. Terraform import
E. All of these
You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?
A. Use the terraform state rm command to remove the VM from state file
B. Use the terraform taint command targeting the VMs then run terraform plan and terraform apply
C. Use the terraform apply command targeting the VM resources only
D. Delete the Terraform VM resources from your Terraform code then run terraform plan and terraform apply