Free terraform-associate-003 sample questions
Each free Terraform Associate 003 sample question below has an answer and an explanation. The set follows the retired syllabus, with providers, state commands and modules. Pair it with TA-004 study if you plan to book the current exam.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
During a `terraform apply`, an engineer accidentally closes their terminal. Upon re-running `terraform apply`, they receive an error indicating the state is locked. The lock ID belongs to the original, terminated process. What is the safest command to resolve this situation?
A platform team provides a Terraform module for creating standardized Kubernetes clusters. To ensure compliance, they need to prevent users from creating clusters with public endpoints. Which Terraform feature allows them to embed this rule directly into their module or configuration?
A team has decided to refactor their monolithic Terraform configuration by moving a set of `aws_s3_bucket` resources into a new, dedicated module. Which sequence of Terraform commands represents the safest workflow to perform this refactoring without causing downtime or resource recreation?
You are tasked with creating a set of similarly configured virtual machines, but the exact number is not known in advance and will be determined by the length of a list variable. Which meta-argument should you use in your `resource` block?
True or False: The `sensitive = true` argument in an output block prevents the sensitive value from ever being written to the Terraform state file.
An organization is migrating from Terraform Community Edition to HCP Terraform Enterprise. They want to enforce a policy that all S3 buckets must have versioning enabled. How can this be implemented in HCP Terraform?
You need to write a Terraform expression that returns a list of all public IP addresses from a set of AWS EC2 instances created with `for_each`. The resource is defined as `resource "aws_instance" "web" { for_each = var.instance_names ... }`. What is the correct expression?
A Terraform plan shows the following output for a resource: `~ aws_instance.web[0] (update in-place)` What does the `~` symbol indicate?
A team is setting up a new Terraform project that will manage infrastructure on both Google Cloud and an on-premises vSphere environment. How must they configure Terraform to handle these two different platforms? graph TD Terraform_Core[Terraform Core] -->|Manages| Google_Cloud[Google Cloud] Terraform_Core -->|Manages| vSphere[On-Prem vSphere]
10 more free samples are waiting
Create a free account to unlock the whole terraform-associate-003 sample bank, or get full access to all 207 practice questions in the simulator.