Which command must you first run before performing further Terraform operations in a working directory?
A. terraform import
B. terraform workspace
C. terraform plan
D. terraform init
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
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.Git::https://example.com/vpc.git)?
A. Append pref=v1.0.0 argument to the source path
B. Add version = "1.0.0" parameter to module block
C. Nothing modules stored on GitHub always default to version 1.0.0
You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file. What will happen you run terraform apply in the working directory again?
A. Terraform will remove the virtual machine from the state file, but the resource will still exist
B. Nothing
C. Terraform will error
D. Terraform will destroy the virtual machine
Which command lets you experiment with terraform expressions?
A. Terraform console
B. Terraform validate
C. Terraform env
D. Terraform test
You must use different Terraform commands depending on the cloud provider you use.
A. True
B. False
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
A. terraform destroy, then terraform apply
B. terraform init
C. terraform push
D. terraform apply
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
A. Cloud infrastructure Most Voted
B. The .terraform directory
C. The execution plan
D. State file
E. Terraform code
Select the command that doesn't cause Terraform to refresh its state.
A. Terraform destroy
B. Terraform apply
C. Terraform plan
D. Terraform state list