The Terraform binary version and provider versions must match each other in a single configuration.
terraform validate confirms that your infrastructure matches the Terraform state file.
Which option cannot be used to keep secrets out of Terraform configuration files?
How would you output returned values from a child module in the Terraform CLI output?
What type of block is used to construct a collection of nested configuration blocks?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
Terraform configuration (including any module references) can contain only one Terraform provider type.
What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?
A provider configuration block is required in every Terraform configuration.
Example:
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
A)
B)
C)
D)
Infrastructure as Code (laC) can be stored in a version control system along with application code.
What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?
You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.
Which command will migrate your current state file to the new S3 remote backend?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend, what open source Terraform feature would allow you create multiple states but still be associated with your current code?
How could you reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?
Which of these actions will prevent two Terraform runs from changing the same state file at the same time?
You can reference a resource created with for_each using a Splat ( *) expression.
It is best practice to store secret data in the same version control repository as your Terraform configuration.