Question 500 of 519
Use Terraform outside the core workfloweasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is to use the Terraform Cloud API to trigger a run. This is correct because the API provides a dedicated endpoint—specifically the `POST /runs` endpoint—that allows external systems like CI/CD pipelines to programmatically create a run with full control over variables, configuration versions, and apply strategies, directly meeting the requirement to invoke a Terraform run from an external system without manual intervention. On the HashiCorp Terraform Associate TF-003 exam, this question tests your understanding of Terraform Cloud’s operational workflows versus local execution; a common trap is confusing the API with the CLI-driven `terraform apply` command, which cannot trigger runs in Terraform Cloud remotely. Remember the memory tip: “API for automation, CLI for local operation”—if the scenario involves a CI/CD pipeline or external system, the API is always the correct trigger mechanism.

TF-003 Use Terraform outside the core workflow Practice Question

This TF-003 practice question tests your understanding of use terraform outside the core workflow. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A DevOps team is using Terraform Cloud to manage infrastructure. They want to integrate Terraform into their CI/CD pipeline by triggering runs programmatically. Which approach should they use to invoke a Terraform run from an external system?

Question 1easymultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use the Terraform Cloud API to trigger a run.

The Terraform Cloud API provides a programmatic endpoint to trigger runs, allowing external CI/CD systems to initiate Terraform operations without manual intervention. This is the correct approach because it directly invokes a run with full control over variables, configuration versions, and apply strategies, aligning with the requirement to integrate Terraform into a CI/CD pipeline programmatically.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use the Terraform Cloud API to trigger a run.

    Why this is correct

    The API allows programmatic triggering of runs, suitable for CI/CD integration.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Set up a webhook from the VCS provider to trigger runs.

    Why it's wrong here

    Webhooks are for VCS-driven workflows, not programmatic invocation from arbitrary systems.

  • Configure a remote backend to automatically run apply.

    Why it's wrong here

    Remote backends only store state, they do not trigger runs.

  • Execute 'terraform apply -auto-approve' in the CI pipeline.

    Why it's wrong here

    This requires local execution and is not integrated with Terraform Cloud.

Common exam traps

Common exam trap: answer the scenario, not the keyword

HashiCorp often tests the distinction between event-driven triggers (VCS webhooks) and programmatic API calls, where candidates mistakenly choose webhooks because they seem 'automated,' but the question explicitly requires programmatic invocation from an external system, not a VCS event.

Detailed technical explanation

How to think about this question

The Terraform Cloud API's 'Create Run' endpoint (POST /api/v2/runs) accepts a payload specifying the workspace, configuration version, and optional variables or plan-only mode. Under the hood, this triggers a plan phase, followed by an apply if auto-apply is enabled or if manually confirmed, with full state locking and Sentinel policy enforcement. In real-world CI/CD, teams often combine this with the 'Get Run' endpoint to poll for completion and handle errors, ensuring idempotent deployments.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the TF-003 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related TF-003 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free TF-003 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this TF-003 question test?

Use Terraform outside the core workflow — This question tests Use Terraform outside the core workflow — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use the Terraform Cloud API to trigger a run. — The Terraform Cloud API provides a programmatic endpoint to trigger runs, allowing external CI/CD systems to initiate Terraform operations without manual intervention. This is the correct approach because it directly invokes a run with full control over variables, configuration versions, and apply strategies, aligning with the requirement to integrate Terraform into a CI/CD pipeline programmatically.

What should I do if I get this TF-003 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More TF-003 practice questions

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This TF-003 practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the TF-003 exam.