Free Terraform-Associate-003 Practice Test Questions and Answers (2026)

View Mode
Q: 1
[Navigate Terraform State and Backends] You have to initialize a Terraform backend before it can be configured.
Options
20 comments in the community discussion
6
No way, you need the backend config in your .tf files before running terraform init or it won’t know what backend to set up. So the statement is False. Pretty sure most practice tests reflect this order too, but I’m open if someone’s seen documentation that says otherwise.
5
False , backend config goes in the .tf files first and only then can you run terraform init. If they flipped the order, True would be right but that's not how it works here.
Q: 2
[Navigate Terraform State and Backends] Terraform variables and outputs that set the description argument will store that description in the state file.
Options
12 comments in the community discussion
6
Nope, descriptions don't end up in the state file. False is right here.
4
Yeah, this one’s definitely False.
Q: 3
[Navigate Terraform State and Backends] A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.
Options
19 comments in the community discussion
5
This one's definitely False. Using sensitive = true just hides the output from the CLI, but the actual value still ends up in the Terraform state file. That's why state files need to be secured even if outputs are masked. Pretty sure on this, but correct me if I’m wrong.
4
False . Sensitive=true only hides the value in CLI but it's still written in the state file. Have seen this trip people up, so be careful with state file security. Someone correct me if that's changed lately.
Q: 4
[Interact with Terraform Modules] You can develop a custom provider to manage its resources using Terraform.
Options
18 comments in the community discussion
6
Makes sense, that's True. Terraform lets you build custom providers to manage your own resources if needed.
4
Is this still True if your custom provider only supports data sources but no resources?
Q: 5
[Navigate Terraform State and Backends] One remote backend configuration always maps to a single remote workspace.
Options
15 comments in the community discussion
5
False , because with the prefix setting in remote backend config, a single backend can cover multiple remote workspaces. If it only supported name, maybe True, but prefix flips it. Anyone disagree?
5
False tbh
Q: 6
[Manage Terraform Resources and Providers] Terraform providers are always installed from the Internet.
Options
20 comments in the community discussion
1
Yeah, I'm pretty sure this is False. Local or private mirrors let you install providers without any Internet, so "always" doesn't hold up here. Maybe someone disagrees?
1
Nah, "always" is the trap here. False.
Q: 7
[Interact with Terraform Modules] Any user can publish modules to the public Terraform Module Registry.
Options
17 comments in the community discussion
7
True imo
6
True
Q: 8
[Understand Terraform Basics and CLI] You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.
Options
19 comments in the community discussion
1
False . Terraform apply triggers a refresh, so if your teammate made manual infra changes after your plan, apply will see them and generate a new plan. Only using a saved plan file would skip that. Pretty sure that's exam intent, but let me know if you disagree.
1
Always some Terraform trickery, right? False tbh
Q: 9
[Interact with Terraform Modules] The public Terraform Module Registry is free to use.
Options
19 comments in the community discussion
5
True
5
I get the confusion but the question specifically asks about the public registry, so that means it's True. Paid stuff only kicks in if you're dealing with private/enterprise modules, which isn't what they're asking. Some folks might mix up the trap here.
Q: 10
[Interact with Terraform Modules] Using the terraform state rm command against a resource will destroy it.
Options
15 comments in the community discussion
5
Nope, that's false.
2
Guessing False. terraform state rm just removes the resource from the state file, but leaves the actual infra (like an EC2 instance) running. It won't trigger any deletion in the provider. Only terraform destroy or a remove-from-config plus apply will actually destroy something. Pretty sure
Q: 11
[Understand Terraform's Purpose and Use Cases] Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
Options
6 comments in the community discussion
1
B and D imo, not totally sure but that's what I remember from practice. Anyone else get this too?
B D tbh, that's what the official study guide and practice tests focus on.
Q: 12
[Manage Terraform Resources and Providers]
Options
4 comments in the community discussion
1
Probably D, since providers work with one service each and don't provision infra across multiple platforms. Official docs clarify this too. I remember a similar question popping up in practice tests. Anyone see otherwise in the official guide?
1
D imo. Had something like this in a mock. Providers don’t handle provisioning across multiple clouds, that’s more of Terraform Core’s job.
Q: 13
[Understand Terraform Basics and CLI] You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform? terraform apply
Options
3 comments in the community discussion
Its B, I think. terraform taint should force just the VM to be replaced right? Not totally sure but seems safest way.
Q: 14
[Interact with Terraform Modules]
Options
7 comments in the community discussion
2
B. Modules need variables explicitly passed in, they can't just access parent vars automatically. Saw this pop up on some practice tests too, so pretty sure that's what Terraform expects.
1
Would go with B here. Modules only get access to what you pass via module inputs, they don't inherit parent variables unless sent explicitly. Makes it very predictable but sometimes I forget that edge case when refactoring big configs. Unless the question is about outputs or data sources (which can be shared differe
Q: 15
[Understand Infrastructure as Code (IaC) Concepts] Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
Options
3 comments in the community discussion
1
A D A is key since versioning and sharing configs isn't possible with just a GUI. D makes sense because IaC automation reduces fat-finger mistakes. But if the organization locks down the GUI with strict RBAC, manual errors might still be minimized-so context matters a bit.
Probably A and D here, since IaC is really about repeatability and version control. B is a trap because costs don't go down just by using code, and preventing manual changes (E) isn't really guaranteed. Does the question specify if some manual intervention is still allowed? That could change things.
Q: 16
[Read, Generate, and Modify Configurations] You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
Options
4 comments in the community discussion
2
You should use the -var flag to pass sensitive variables at runtime, so they don't end up in your codebase or source control. D is much safer than storing secrets in files or repos. Pretty sure that's best practice, but open to feedback.
A is wrong, D. You don't want to put secrets in code or repos, so passing them using -var and sourcing from a secret manager keeps things safer. Pretty standard CI/CD handling from what I've seen.
Q: 17
[Navigate Terraform State and Backends] Which provider authentication method prevents credentials from being stored in the state file?
Options
6 comments in the community discussion
4
A. Environment variables is the only method here where creds aren't saved in state-B is tempting but puts secrets at risk. Seen this exact trap on practice sets!
1
I remember a similar scenario from labs. on my practice set, it's A. Using environment variables keeps credentials out of both code and state files, which is what Terraform recommends for sensitive data. Correct me if I'm missing something.
Q: 18
[Understand Terraform Basics and CLI] Which command lets you experiment with terraform expressions?
Options
2 comments in the community discussion
C tbh, I thought terraform env is used for changing settings or experimenting. Not really sure on this one, can someone confirm?
Q: 19
[Understand Terraform Basics and CLI] Which option cannot be used to keep secrets out of Terraform configuration files?
Options
8 comments in the community discussion
3
Option D. "secure string" isn't available in Terraform CLI or HCL as a secret control.
1
Probably D-had something like this in a mock test, "secure string" just doesn't exist in Terraform.
Q: 20

[Interact with Terraform Modules]

You have deployed a new webapp with a public IP address on a cloud provider. However, you did not

create any outputs for your code. What is the best method to quickly find the IP address of the

resource you deployed?




Options
6 comments in the community discussion
1
C/D? Can't decide which is better, but pretty sure it's B since terraform state show gives the attributes, including the IP, even if no output is defined.
Probably B. I've seen this in a few practice exams and official docs mention using terraform state show when outputs aren't set up. If you're prepping, definitely check the Terraform docs on state commands and run some quick lab tests.
Question 1 of 20

Premium Access Includes

  • Quiz Simulator
  • Exam Mode
  • Progress Tracking
  • Question Saving
  • Flash Cards
  • Drag & Drops
  • 3 Months Access
  • PDF Downloads
Get Premium Access
Scroll to Top

FLASH OFFER

Days
Hours
Minutes
Seconds

avail 10% DISCOUNT on YOUR PURCHASE