




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of various terraform language functions and features, including the element function, the file function, dynamic blocks, the taint command, terraform graph, the output command, terraform settings, debugging terraform, the terraform format command, meta-arguments like ignore_changes and replace_triggered_by, data types, the dry principle, terraform modules, terraform workspaces, remote state management, terraform backends, state locking, terraform state management commands, terraform import, the sensitive parameter, the dependency lock file, terraform cloud, vcs providers, and sentinel. The structure, usage, and benefits of these terraform concepts, making it a valuable resource for terraform users, particularly those interested in understanding the language's advanced features and capabilities.
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!





What are the Terraform language functions? - Answers -1. Numeric
What are splat expressions? - Answers -It provides a more concise way to express a common operation
What is the DRY Principle? - Answers -Don't Repeat Yourself - limits the amount of repeated code as much as possible What is a challenge with directly using MODULES in respect to infrastructure management? - Answers -Resources will be a REPLIA of code in the module. It is hard- coded in the module as one resource, but in a different environment, you might not want that hard-coded resource What is a challenge with using locals to assign values within a module instead of using a variable? - Answers -Unable to override What is the Terraform Registry? - Answers -A repository of modules written by the Terraform community with a goal to get started in Terraform more quickly. Verified modules are actively updated and indicated by a blue badge What are the requirements for publishing to the Terraform Registry? - Answers -1. Must be on Github and a PUBLIC repository
-Example: can launch two different instance types in two different environments (staging and production) within the workspace What does the command terraform workspace -h do? - Answers -Shows a list of subcommands (delete, list, new, select, show) What is Remote State Management? - Answers -Terraform writes the state data to a remote data store, which can then be shared between all members of a team. What is the benefit of using remote state? - Answers -It alleviates the issue caused by Terraform's default.; Terraform stores state locally in a file named terraform.tfstate. When working with Terraform in a team, use of a local file makes Terraform usage complicated because each user must make sure they always have the latest state data before running Terraform and make sure that nobody else runs Terraform at the same time. Why are downside of local changes? - Answers -- Not collaborative
What would be a reason to have to conduct terraform state management? - Answers - When terraform usage becomes more advanced and there is a need to modify the terraform state What are the common terraform state management commands? - Answers -1. list - list resources within TF state file
Vault + Terraform = any secrets that you read/write are persisted in state file Describe the Dependency Lock File: - Answers -The dependency lock file is a file that belongs to the configuration as a whole, rather than to each separate module in the configuration. What are version dependencies? - Answers -Version constraints within configuration determines which versions of dependencies are compatible Terraform remembers which version of each dependency in a dependency lock file What happens when you update the terraform file with versions that doesn't match the terraform.lock.hcl (terraform lock file)? - Answers -An error will happen What is the Terraform Cloud? - Answers -Manages Terraform runs in a consistent/reliable environment It shows runs, commentary, and status of runs What is the VCS Provider? - Answers -Where you can configure the Terraform Cloud with the Git repository to fetch Terraform code What must you connect to in the Terraform Workspace when working with VCS Provider? - Answers -version control provider What is Sentinel? - Answers -- policy-as-code framework meshed with HashiCorp products