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.
A. Lets you version, reuse, and share infrastructure configuration
B. Provisions the same resources at a lower cost
C. Secures your credentials
D. Reduces risk of operator error
E. Prevents manual modifications to your resources
It is best practice to store secret data in the same version control repository as your Terraform configuration.
A. True
B. False
What is one disadvantage of using dynamic blocks in Terraform?
A. Dynamic blocks can construct repeatable nested blocks
B. Terraform will run more slowly
C. They cannot be used to loop through a list of values
D. They make configuration harder to read and understand
How does Terraform determine dependencies between resources?
A. Terraform requires resource dependencies to be defined as modules and sourced in order
B. Terraform automatically builds a resource graph based on resources provisioners, special meta-parameters, and the stale file (if present}
C. Terraform requires resources in a configuration to be listed m the order they will be created to determine dependencies
D. Terraform requires all dependencies between resources to be specified using the depends_on parameter
Which is the best way to specify a tag of v1.0.0 when referencing a module stored in Git (for example.Git::https://example.com/vpc.git)?
A. Append pref=v1.0.0 argument to the source path
B. Add version = "1.0.0" parameter to module block
C. Nothing modules stored on GitHub always default to version 1.0.0
A Terraform provider is NOT responsible for:
A. Exposing resources and data sources based on an APUI
B. Managing actions to take based on resources differences
C. Understanding API interactions with some service
D. Provisioning infrastructure in multiple
A module can always refer to all variables declared in its parent module.
A. True
B. False
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. var.list[*].id
D. { for o in var.llst : o => o.id }
Which of the following should you put into the required_providers block?
A. version >= 3.1
B. version = ">= 3.1"
C. version ~> 3.1
Which command add existing resources into Terraform state?
A. Terraform init
B. Terraform plan
C. Terraform refresh
D. Terraform import
E. All of these