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 commands would you use first?
You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script. Which of the following commands would you use first?A . terraform taint null_resource.run_scriptB . terraform apply -target=null_resource.run_scriptC . terraform validate null_resource.run_scriptD . terraform plan -target=null_resource.run_scriptView AnswerAnswer: A
The instance id of that EC2 instance is i-0260835eb7e9bd40 How he can import data of EC2 to state file?
Matt wants to import a manually created EC2 instance into terraform so that he can manage the EC2 instance through terraform going forward. He has written the configuration file of the EC2 instance before importing it to Terraform. Following is the code: resource "aws_instance" "matt_ec2" { ami = "ami-bg2640de" instance_type...
What programming language will need to use to write the fix?
You want to get involved in the development of Terraform. As this is an open source project, you would like to contribute a fix for an open issue of Terraform . What programming language will need to use to write the fix?A . It depends on which command issue related...
Which task does terraform init not perform?
Which task does terraform init not perform?A . Sources all providers present in the configuration and ensures they are downloaded and available locallyB . Connects to the backendC . Sources any modules and copies the configuration locallyD . Validates all required variables are presentView AnswerAnswer: D Explanation: Reference: https://www.terraform.io/docs/cli/commands/init.html
Which argument(s) is (are) required when declaring a Terraform variable?
Which argument(s) is (are) required when declaring a Terraform variable?A . typeB . defaultC . descriptionD . All of the aboveE . None of the aboveView AnswerAnswer: B Explanation: The variable declaration can also include a default argument. Reference: https://www.terraform.io/docs/language/values/variables.html
Terraform has detailed logs which can be enabled by setting the _________ environmental
Terraform has detailed logs which can be enabled by setting the _________ environmental variable.A . TF_TRACEB . TF_DEBUGC . TF_LOGD . TF_INFOView AnswerAnswer: C Explanation: Terraform has detailed logs that can be enabled by setting the TF_LOG environment variable to any value. This will cause detailed logs to appear on...
Which of the following best describes the default local backend?
Which of the following best describes the default local backend?A . The local backend is where Terraform Enterprise stores logs to be processed by an log collector.B . The local backend stores state on the local filesystem, locks the state using system APIs, and performs operations locally.C . The local...
Which option can not be used to keep secrets out of Terraform configuration files?
Which option can not be used to keep secrets out of Terraform configuration files?A . A Terraform providerB . Environment variablesC . A -var flagD . secure stringView AnswerAnswer: C Explanation: Reference: https://secrethub.io/blog/secret-management-for-terraform/
terraform validate validates the syntax of Terraform files.
terraform validate validates the syntax of Terraform files.A . TrueB . FalseView AnswerAnswer: A Explanation: The terraform validate command validates the syntax and arguments of the Terraform configuration files. Reference: https://www.terraform.io/docs/cli/code/index.html