Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
What is the Terraform style convention for indenting a nesting level compared to the one above it?
You cannot install third party plugins using terraform init.
One remote backend configuration always maps to a single remote workspace.
Define the purpose of state in Terraform.
You have to initialize a Terraform backend before it can be configured.
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Terraform providers are always installed from the Internet.
When should you run terraform init?
In Terraform HCL, an object type of object({name=string, age-number}) would match this value.
A)
B)
C)
D)
Which of these is true about Terraform's plugin-based architecture?
What does Terraform not reference when running a terraform apply -refresh-only ?
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
Only the user that generated a plan may apply it.
Which task does terraform init not perform?
Terraform configuration can only import modules from the public registry.
Which configuration consistency errors does terraform validate report?
_______backends support state locking.
Which of these ate secure options for storing secrets for connecting to a Terraform remote backend? Choose two correct answers.
Variables declared within a module are accessible outside of the module.
Which of these ate features of Terraform Cloud? Choose two correct answers.
terraform validate reports syntax check errors for which of the following?
The public Terraform Module Registry is free to use.
Which of the following is not a valid Terraform variable type?
What kind of configuration block will create an infrastructure object with settings specified within the block?
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?
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?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
What type of block is used to construct a collection of nested configuration blocks?
Terraform providers are part of the Terraform core binary.
When should you use the force-unlock command?
Which command add existing resources into Terraform state?
Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.
You can configure Terraform to log to a file using the TF_LOG environment variable.
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs.
Which of the following methods could you use to discover which instance Terraform manages?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
Which provider authentication method prevents credentials from being stored in the state file?
What does this code do?
It is best practice to store secret data in the same version control repository as your Terraform configuration.
A Terraform provider is NOT responsible for:
You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.
You must use different Terraform commands depending on the cloud provider you use.
Which backend does the Terraform CU use by default?
Which option cannot be used to keep secrets out of Terraform configuration files?
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
Infrastructure as Code (laC) can be stored in a version control system along with application code.