How will you use it for provisioning infrastructure?
You have created a custom variable definition file testing.tfvars . How will you use it for provisioning infrastructure?A . terraform apply -var-state-file ="testing.tfvars"B . terraform plan -var-file="testing.tfvar"C . terraform apply -var-file="testing.tfvars"D . terraform apply var-file="testing.tfvars"View AnswerAnswer: C Explanation: https://www.terraform.io/docs/configuration/variables.html
Only the user that generated a plan may apply it.
Only the user that generated a plan may apply it.A . TrueB . FalseView AnswerAnswer: A Explanation: The optional -out argument can be used to save the generated plan to a file for later execution with terraform apply, which can be useful when running Terraform in automation. Reference: https://learn.hashicorp.com/tutorials/terraform/automate-terraform
What is the default backend for Terraform?
What is the default backend for Terraform?A . consulB . gcsC . localD . etcdView AnswerAnswer: C Explanation: By default, Terraform uses the "local" backend, which is the normal behavior of Terraform you're used to. https://www.terraform.io/docs/backends/index.html
Which of the following type of variable allows multiple values of several distinct types to be grouped together as a single value?
Which of the following type of variable allows multiple values of several distinct types to be grouped together as a single value?A . MapB . ObjectC . TupleD . ListView AnswerAnswer: B,C Explanation: Structural type of variable allows multiple values of several distinct types to be grouped together as a...
How can you ensure that the engineering team who has access to git repo will not create any non-compliant resources that might lead to a security audit failure in future. your team is using Hashicorp Terraform Enterprise Edition.
How can you ensure that the engineering team who has access to git repo will not create any non-compliant resources that might lead to a security audit failure in future. your team is using Hashicorp Terraform Enterprise Edition.A . Use Terraform OSS Sentinel Lite version, which will save cost, since...
Since sensitive is set to true, the value associated with db password will not be present in state file as plain-text?
Refer to the below code where developer is outputting the value of the database password but has used sensitive parameter to hide the output value in the CLI. output "db_password" { value = aws_db_instance.db.password description = "The password for logging in to the database." sensitive = true} Since sensitive is...
What is the default backend for Terraform?
What is the default backend for Terraform?A . consulB . gcsC . localD . etcdView AnswerAnswer: C Explanation: By default, Terraform uses the "local" backend, which is the normal behavior of Terraform you're used to. https://www.terraform.io/docs/backends/index.html
What should you do to delete the newly-created VM with Terraform?
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM, perform terraform apply, and see that your VM was created...
What is the command you can use to set an environment variable named "var1"of type String?
What is the command you can use to set an environment variable named "var1"of type String?A . export TF_VAR_VAR1B . set TF_VAR_var1C . variable "var1" { type = "string"}D . export TF_VAR_var1View AnswerAnswer: D Explanation: The environment variable must be in the format TF_VAR_name, so for the Question: TF_ VAR_var1...
Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?
Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?A . Secure variable storageB . Support for multiple cloud providersC . Dry runs with terraform planD . Using the workspace as a data sourceView AnswerAnswer: B Explanation: Reference: https://www.terraform.io/docs/language/providers/configuration.html