When is the best time to run terraform validate?
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?A . After you run terraform apply so you can validate your infrastructureB . Before you run terraform apply so you can validate your provider credentialsC . Before you...
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.A . TrueB . FalseView AnswerAnswer: B Explanation: Outside of the required_providers block, Terraform configurations can refer to providers by either their local names or their source addresses. The local name is a short name that...
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.
How can you do this safely?
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?A . Copy the sensitive variables into your Terraform codeB . Store the sensitive variables in a secure_varS.tf fileC . Store the sensitive variables as plain text...
_______backends support state locking.
_______backends support state locking.A . AllB . NoC . SomeD . Only localView AnswerAnswer: C Explanation: Some backends support state locking, which prevents other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss. Not all backends support this feature, and...
What information does the public Terraform Module Registry automatically expose about published modules?
What information does the public Terraform Module Registry automatically expose about published modules?A . Required input variablesB . Optional inputs variables and default valuesC . OutputsD . All of the aboveE . None of the aboveView AnswerAnswer: D Explanation: The public Terraform Module Registry automatically exposes all the information about...
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...
How does Terraform manage most dependencies between resources?
How does Terraform manage most dependencies between resources? A. Terraform will automatically manage most resource dependencies B. Using the depends_on parameter C. By defining dependencies as modules and including them in a particular order D. The order that resources appear in Terraform configuration indicates dependenciesView AnswerAnswer: A Explanation: This is...
What feature stops multiple users from operating on the Terraform state at the same time?
What feature stops multiple users from operating on the Terraform state at the same time?A . State lockingB . Version controlC . Provider constraintsD . Remote backendsView AnswerAnswer: A Explanation: State locking prevents other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts...
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.A . TrueB . FalseView AnswerAnswer: A Explanation: If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you...