What is one disadvantage of using dynamic blocks in Terraform?
Dynamic blocks can construct repeatable nested blocks
Terraform will run more slowly
They cannot be used to loop through a list of values
They make configuration harder to read and understand
Correct answer: D
Explanation:
This is one disadvantage of using dynamic blocks in Terraform, as they can introduce complexity and reduce readability of the configuration. The other options are either advantages or incorrect statements.
This is one disadvantage of using dynamic blocks in Terraform, as they can introduce complexity and reduce readability of the configuration. The other options are either advantages or incorrect statements.
Question 2
Which backend does the Terraform CU use by default?
Depends on the cloud provider configured
HTTP
Remote
Terraform Cloud
Local
Correct answer: E
Explanation:
This is the backend that the Terraform CLI uses by default, unless you specify a different backend in your configuration. The local backend stores the state file in a local file namedterraform.tfstate, which can be used to track and manage the state of your infrastructure.
This is the backend that the Terraform CLI uses by default, unless you specify a different backend in your configuration. The local backend stores the state file in a local file namedterraform.tfstate, which can be used to track and manage the state of your infrastructure.
Question 3
How does Terraform manage most dependencies between resources?
Terraform will automatically manage most resource dependencies
Using the depends_on parameter
By defining dependencies as modules and including them in a particular order
The order that resources appear in Terraform configuration indicates dependencies
Correct answer: A
Explanation:
This is how Terraform manages most dependencies between resources, by using the references between them in the configuration files. For example, if resource A depends on resource B, Terraform will create resource B first and then pass its attributes to resource A.
This is how Terraform manages most dependencies between resources, by using the references between them in the configuration files. For example, if resource A depends on resource B, Terraform will create resource B first and then pass its attributes to resource A.