Free HashiCorp Terraform Associate 004 practice questions
10 free sample questions for the HashiCorp Terraform Associate 004 exam, each with an explanation that starts with why a wrong answer is wrong. No account needed. Try the first one now.
What the exam covers
- Infrastructure as Code (IaC) with Terraform (12.5%)
- Terraform fundamentals (12.5%)
- Core Terraform workflow (12.5%)
- Terraform configuration (12.5%)
- Terraform modules (12.5%)
- Terraform state management (12.5%)
- Maintain infrastructure with Terraform (12.5%)
- HCP Terraform (12.5%)
A few more sample questions
Sample question 1. A team manages its cloud networks by clicking through vendor consoles. Changes are hard to review before they happen, and the staging network never quite matches production. Which benefits would the team gain by defining this infrastructure in Terraform configuration? (Choose two.)
- Changes can be proposed and reviewed as code in version control before being applied
- One configuration can create consistent environments such as staging and production
- Provider credentials are no longer needed to create or change the cloud resources
- The infrastructure can never drift from the configuration once it has been applied
- Engineers no longer need to understand the cloud services they are configuring
Sample question 2. A team uses Terraform CLI workspaces named dev and prod with one configuration and one S3 backend. Which two statements are accurate? (Choose two.)
- Each workspace keeps its own state for the same configuration
- Workspaces isolate credentials, so dev engineers cannot read prod state
- All workspaces use the same configuration code and the same backend settings
- Creating a workspace copies the configuration so edits to dev never affect prod
- The default workspace can be deleted once other workspaces exist
Sample question 3. A networking team manages a shared VPC in its own Terraform configuration. An application configuration must place instances in that VPC’s subnets, looking up their IDs by tag each time it plans, without managing or changing the subnets. Which construct should the application configuration use?
- A data block, such as data "aws_subnets", filtered on the tag
- A resource block for the subnets using the same tags as the existing ones
- An import block for each subnet so that the configuration can read its attributes
- A locals block holding subnet IDs that were copied from the console
Terraform Associate is free practice for now
Answer the free sample questions above, as many times as you like. Timed practice tests for Terraform Associate are not on sale yet.
How to trust this practice
- Every answer explains why, and cites its source.
- Practice tests are built around the vendor’s published exam domains.
- These are practice questions, not real exam questions.
See the free sample questions for every certification