Which options will produce a list of the IDs?
You have declared a variable called var.list which is a list of objects that all have an attribute id. Which options will produce a list of the IDs? Choose two correct answers.A . [ var.list [ * ] , id ]B . [ for o in var.list: o.Id ]C ....
Variables declared within a module are accessible outside of the module.
Variables declared within a module are accessible outside of the module.A . TrueB . FalseView AnswerAnswer: B Explanation: Variables declared within a module are only accessible within that module, unless they are explicitly exposed as output values1.
It is best practice to store secret data in the same version control repository as your Terraform configuration.
It is best practice to store secret data in the same version control repository as your Terraform configuration.A . TrueB . FalseView AnswerAnswer: B Explanation: It is not a best practice to store secret data in the same version control repository as your Terraform configuration, as it could expose your...
What kind of configuration block will create an infrastructure object with settings specified within the block?
What kind of configuration block will create an infrastructure object with settings specified within the block?A . providerB . stateC . dataD . resourceView AnswerAnswer: D Explanation: This is the kind of configuration block that will create an infrastructure object with settings specified within the block. The other options are...
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...
Terraform variable names are saved in the state file.
Terraform variable names are saved in the state file.A . TrueB . FalseView AnswerAnswer: B Explanation: Terraform variable names are not saved in the state file, only their values are. The state file only stores the attributes of the resources and data sources that are managed by Terraform, not the...
What does Terraform use the .terraform.lock.hc1 file for?
What does Terraform use the .terraform.lock.hc1 file for?A . There is no such fileB . Tracking specific provider dependenciesC . Preventing Terraform runs from occurringD . Storing references to workspaces which are lockedView AnswerAnswer: B Explanation: The .terraform.lock.hcl file is a new feature in Terraform 0.14 that records the exact...
Which variable type could you use for this input?
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 . ListB . ObjectC . MapD . Terraform does not support...
What will happen you run terraform apply in the working directory again?
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...
Which of the following is not a valid siring function in Terraform?
Which of the following is not a valid siring function in Terraform?A . choafB . joinC . SplitD . sliceView AnswerAnswer: A Explanation: This is not a valid string function in Terraform. The other options are valid string functions that can manipulate strings in various ways2.