Resource Lifecycle · Dynamic HCL · Collaborative Workflows · Modules · Providers · HCP Terraform
60 questions · 90 min · 70% Techclick practice target
⚠️ Exam Rules
| Questions in this Techclick bank | 58 |
|---|---|
| Timer | 90 min |
| Techclick practice target | 70% |
| Official exam code | TA-003 |
An engineer adds a new resource that depends on an attribute Terraform cannot know until apply time. During `terraform plan` the value shows as `(known after apply)`. Which statement best describes what Terraform will do?
Correct: A. `(known after apply)` means the value depends on another resource's not-yet-created attribute; Terraform resolves it during apply and writes it to state. It does not require hardcoding, null substitution, or a manual refresh.
An admin must replace a single resource on the next apply without changing the configuration. Which command queues that one resource for recreation?
Correct: A. `-replace` is the current supported flag to force recreation of one resource. `terraform taint` is deprecated, `-recreate` does not exist, and `refresh` only updates state, it does not recreate resources.
A configuration manages an EC2 instance whose `user_data` changes frequently from outside Terraform. The team wants Terraform to ignore drift on that one attribute only. Which block achieves this? ```hcl resource "aws_instance" "app" { ami = var.ami instance_type = "t3.micro" user_data = var.bootstrap lifecycle { # ??? } } ```
Correct: A. `ignore_changes = [user_data]` tells Terraform to disregard external drift on that single attribute. `ignore_changes = all` would ignore every attribute, `prevent_destroy` is a boolean that blocks deletion, and `create_before_destroy` controls replacement ordering.
After importing an existing S3 bucket, `terraform plan` shows the resource will be destroyed and recreated even though nothing changed in the cloud. What is the most likely cause?
Correct: A. `terraform import` populates state but not configuration. If the HCL you wrote does not match the actual resource (especially force-new arguments), the plan shows replacement. The fix is to align the configuration to the real attributes.
A team renamed a resource from `aws_instance.web` to `aws_instance.frontend`. They want Terraform to treat it as the same object without destroying it. Which approach is the recommended, version-controllable method?
Correct: A. A `moved` block (e.g. `moved { from = aws_instance.web; to = aws_instance.frontend }` ) records the rename in code so every collaborator and CI run applies it. `state rm`/import and manual edits are not version-controlled and risk drift.
Last updated:
Yes. You can start, finish and score it for free, and download the Techclick practice certificate.
This bank has 58 original scenario-based questions with a 90-minute timer and a 70% Techclick practice target.
TA-003 is the label Techclick uses for this practice set. Check the official HashiCorp certification page for the current exam code.
No. They are original practice questions written by Techclick. This is not the vendor's official exam and not leaked dumps.
Score 70% or higher to get a Techclick practice certificate and LinkedIn badge. It is not an official HashiCorp certification.
Use the HashiCorp practice exams page (linked above) to pick the next practice test in the same track.

You earned it — let the world know!
