Infrastructure as Code (003)
IaC · Workflow · State · Modules · HCP · 50 questions
⚠️ Exam Rules
| Questions in this Techclick bank | 50 |
|---|---|
| Timer | 60 min |
| Techclick practice target | 70% |
| Official exam code | Terraform Associate |
Your team currently clicks through the AWS console to build environments, and dev, staging, and prod have silently drifted apart. Adopting Infrastructure as Code is expected to MOST directly address which problem?
Correct: B. IaC treats infrastructure as software: definitions live in version control, get peer reviewed, and apply identically across environments, which eliminates the manual-drift problem. The cost claim is wrong because IaC does not guarantee cheaper bills; the credentials option is incorrect since providers still require authentication; and IaC provisions infrastructure, not the application code itself.
During an architecture review a colleague claims Terraform is imperative like a shell script. Comparing declarative and imperative approaches, how should you correct them?
Correct: C. Terraform is declarative, so you specify the target state in HCL and Terraform calculates the create, update, or destroy actions needed. Calling it imperative is incorrect because you never script ordered API calls; the claim that both are identical is wrong since the execution model differs fundamentally; and declarative tools absolutely manage cloud resources.
A junior engineer worries that re-running terraform apply on an unchanged configuration will create duplicate infrastructure. How does idempotency in Terraform actually behave here?
Correct: C. Idempotency means repeated applies of the same configuration converge on the identical desired state and produce no changes when nothing has drifted. The duplication option is incorrect because Terraform reconciles against state instead of appending; the single-run and error claims are wrong because apply is designed to be run safely as many times as needed.
Your platform team uses Terraform to stand up fleets of immutable VMs and Ansible to configure software inside long-lived servers. Which statements about how these tools differ are accurate? (Choose TWO)
Correct: A and B. Terraform provisions infrastructure declaratively and leans toward immutable patterns, whereas Ansible is a configuration manager that tunes software on running hosts; the two are commonly combined. The interchangeable claim is wrong because they solve different problems together; Ansible is not the sole tool for cloud networks; and Terraform does not need to destroy servers before Ansible runs.
An organization running workloads across AWS, Azure, and Kubernetes wants a single IaC tool with one workflow. Comparing Terraform with CloudFormation, ARM/Bicep, and Pulumi, why does Terraform fit best?
Correct: B. Terraform's multi-cloud strength comes from HCL plus a large provider ecosystem, giving one workflow across AWS, Azure, GCP, and Kubernetes. The AWS-only and Azure-only options are wrong because those describe CloudFormation and ARM respectively; the Python/TypeScript option is incorrect because that is Pulumi's model, not Terraform's HCL approach.
Last updated:
Yes. You can start, finish and score it for free, and download the Techclick practice certificate.
This bank has 50 original scenario-based questions with a 60-minute timer and a 70% Techclick practice target.
The credential is HashiCorp Certified: Terraform Associate.
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!
