Learn vocabulary for Terraform workspaces, environment promotion, and multi-environment patterns.
0 / 10 completed
1 / 10
What is a Terraform workspace?
A Terraform workspace provides a named, isolated state within a backend. The default workspace is called 'default'. Workspaces can be used for managing multiple environments (dev, staging, prod).
2 / 10
What is 'environment promotion' in Terraform workflows?
Environment promotion means applying the same Terraform configuration (with environment-specific variables) progressively: dev first, then staging, then production — with validation at each stage.
3 / 10
What is a tfvars file?
A .tfvars file (e.g., prod.tfvars) contains variable values specific to an environment. Multiple tfvars files allow the same configuration to be deployed with different parameters.
4 / 10
What is 'Atlantis' in Terraform workflow context?
Atlantis is a pull request automation tool for Terraform — it runs terraform plan on PR creation, shows the plan in PR comments, and runs terraform apply on merge approval.
5 / 10
What is 'drift detection' in Terraform automation?
Drift detection runs terraform plan on a schedule (e.g., nightly) to detect state drift — when real infrastructure has been modified manually and no longer matches the Terraform configuration.
6 / 10
Review Comment: 'I noticed this Terraform module is using the terraform workspace select command. Are you intentionally creating separate workspaces for development and production environments, or are you just experimenting with different configurations?'
The reviewer is probing whether the coder is using workspace selection for its intended purpose: managing configurations across different environments. Option 1 reflects a valid reason for using terraform workspace select. Options 2 and 3 indicate confusion, while option 4 suggests an incorrect understanding of how workspaces function – they are designed to isolate configuration.
7 / 10
Slack Message: 'Hey team, just a heads up that I'm going to be promoting the 'dev' Terraform workspace to 'staging' later today. Please double-check your local configurations and commit any necessary changes before then.'
This message describes 'environment promotion,' a critical Terraform workflow step. The coder needs to understand that changes made in the 'dev' workspace will be reflected in the 'staging' workspace after the promotion. Options 2 and 3 are inappropriate responses; option 4 demonstrates a lack of awareness.
8 / 10
PR Description: 'This PR updates the Terraform configuration to use environment variables for sensitive data. The tfvars file now contains only non-sensitive values, and we're leveraging HashiCorp Cloud Platform (HCP) Secrets Manager to store the actual secrets.'
The description highlights the use of a tfvars file – this is a configuration file that defines the state of your infrastructure. It correctly notes that tfvars should *not* contain sensitive data and introduces HCP Secrets Manager as a best practice for secure secret management. Option 1 is an outdated security advice, while options 3 and 4 are questions needing further clarification.
9 / 10
Standup Update: 'Yesterday, I ran a drift detection scan on the production Terraform workspace. The results showed that several resource attributes had drifted from their expected values – specifically, the instance size and security group rules.'
The coder needs to understand that 'drift detection' is a process for identifying configuration differences between the desired state (defined in Terraform) and the actual state of your infrastructure. This is crucial for maintaining consistency and preventing unexpected behavior. Options 1, 3, and 4 represent misunderstandings or reckless actions.
10 / 10
Code Review Comment: 'I noticed you're using the terraform plan command before every deployment. While it's good practice to review changes, are you aware that running terraform plan frequently can significantly slow down your CI/CD pipeline?'
This comment addresses a potential optimization opportunity. While running terraform plan is valuable, frequent execution can slow down CI/CD pipelines. The coder needs to understand that performance considerations should be factored into deployment workflows – this isn't about abandoning best practices, but about efficient implementation.
What does this Terraform Operations exercise cover?
This exercise, "Terraform Workspaces — Vocabulary and Language", tests your understanding of terraform operations vocabulary and phrasing through 10 multiple-choice questions drawn from real workplace scenarios.
Is this exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is completely free — no account, sign-up, or payment required.
How many questions does this exercise have?
This exercise has 10 questions. Each one presents a realistic sentence or scenario with multiple-choice options and an explanation once you answer.
What happens after I answer a question?
You'll see immediate feedback showing whether your answer was correct, along with a short explanation of why — then a button to move to the next question.
Can I retry the exercise if I get questions wrong?
Yes. Once you reach the results screen, click "Try again" to reset your answers and go through the exercise from the start as many times as you like.
Do I need to create an account to take this exercise?
No account is needed. Your answers are scored in your browser during the session — nothing is saved to a server, so you can jump straight in.
Is my progress saved if I leave the page?
No — progress within an exercise resets if you navigate away or reload. Each exercise is short enough to complete in a few minutes in one sitting.
Who is this Terraform Operations exercise for?
It's designed for IT professionals and learners who want to sound natural discussing terraform operations topics in English — useful for meetings, documentation, interviews, and day-to-day communication with English-speaking teams.
How is this different from reading a glossary or blog article?
Exercises like this one are active recall drills — you have to choose the correct term or phrasing yourself, which builds retention faster than passively reading a definition.
Where can I find more Terraform Operations exercises?
Browse the full Terraform Operations exercises hub for more practice, or explore other exercise categories covering vocabulary, grammar, interviews, and workplace communication.