Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Understand Terraform's purpose practice sets

TF-003 Understand Terraform's purpose • Complete Question Bank

TF-003 Understand Terraform's purpose — All Questions With Answers

Complete TF-003 Understand Terraform's purpose question bank — all 0 questions with answers and detailed explanations.

59
Questions
Free
No signup
Certifications/TF-003/Practice Test/Understand Terraform's purpose/All Questions
Question 1mediummultiple choice
Read the full Understand Terraform's purpose explanation →

A company wants to manage its infrastructure as code using Terraform. The team has a mix of on-premises servers and cloud resources in AWS and Azure. Which of the following best describes Terraform's purpose in this scenario?

Question 2easymultiple choice
Read the full Understand Terraform's purpose explanation →

A developer runs `terraform plan` and sees that Terraform will create a new S3 bucket and modify a security group. Which Terraform feature allows the developer to review these changes before applying them?

Question 3hardmultiple choice
Read the full Understand Terraform's purpose explanation →

A team is using Terraform to manage multiple environments (dev, staging, prod) with the same configuration but different variable values. They want to avoid duplicating configuration files. Which Terraform feature is best suited for this?

Question 4mediummultiple choice
Read the full Understand Terraform's purpose explanation →

An organization uses Terraform Cloud for remote state management. A user runs `terraform apply` locally but receives an error that the state is locked. What is the most likely cause?

Question 5mediummulti select
Read the full Understand Terraform's purpose explanation →

Which TWO of the following are benefits of using Terraform's infrastructure as code approach?

Question 6hardmulti select
Read the full Understand Terraform's purpose explanation →

Which THREE of the following are valid Terraform providers?

Question 7hardmultiple choice
Review the full subnetting walkthrough →

Your organization manages a multi-cloud infrastructure using Terraform. The infrastructure includes an AWS VPC with subnets and EC2 instances, and an Azure resource group with virtual networks and VMs. The Terraform configuration is stored in a Git repository, and state is stored in an S3 bucket with DynamoDB locking. Recently, a developer updated the configuration to add a new security group rule in AWS, but after running `terraform apply`, the rule was not created. The developer verified that the configuration file contains the rule. Additionally, the developer noticed that the state file shows the security group exists but without the new rule. The developer ran `terraform plan` again, and it shows that the rule will be created. However, when applying, it fails with a 'timeout' error. The operations team suspects network connectivity issues to the S3 backend. What is the best course of action to resolve this issue?

Question 8easymulti select
Read the full Understand Terraform's purpose explanation →

Which TWO statements accurately describe the purpose of Terraform? (Choose two.)

Question 9mediummultiple choice
Read the full Understand Terraform's purpose explanation →

A team is reviewing the Terraform configuration shown in the exhibit. Which statement best describes the relationship between the two resources?

Exhibit

Refer to the exhibit.

```hcl
resource "aws_instance" "web" {
  ami           = "ami-0c55b159cbfafe1f0"
  instance_type = "t2.micro"
}

resource "aws_s3_bucket" "data" {
  bucket = "my-data-bucket"
}
```
Question 10hardmultiple choice
Read the full Understand Terraform's purpose explanation →

A company is adopting Terraform to manage its multi-cloud infrastructure on AWS and Azure. The infrastructure team has written several Terraform configurations stored in a Git repository. Each configuration is applied by different team members using their local machines. Recently, the team has been experiencing state file conflicts and inconsistencies, leading to infrastructure drift. The team currently stores the state file locally. They want to ensure that only one person can apply changes at a time and that the state file is always up-to-date. They also want to be able to collaborate effectively without overwriting each other's changes. Which approach should they implement?

Question 11easymultiple choice
Read the full Understand Terraform's purpose explanation →

A junior DevOps engineer is learning about Infrastructure as Code (IaC) and asks why Terraform is preferred over manual configuration in cloud consoles. Which of the following is the primary benefit of using Terraform for infrastructure management?

Question 12mediummulti select
Read the full Understand Terraform's purpose explanation →

A team is evaluating Terraform for managing their multi-cloud infrastructure. Which TWO statements accurately describe Terraform's purpose and capabilities? (Choose two.)

Question 13hardmultiple choice
Read the full Understand Terraform's purpose explanation →

A team member runs terraform apply with the configuration shown in the exhibit. The apply succeeds, but the output of the local-exec provisioner shows an empty string for the public IP address. What is the most likely cause?

Exhibit

Refer to the exhibit.

```hcl
resource "aws_instance" "web" {
  ami           = "ami-0c55b159cbfafe1f0"
  instance_type = "t2.micro"
}

resource "null_resource" "provisioner" {
  provisioner "local-exec" {
    command = "echo ${aws_instance.web.public_ip}"
  }
}
```
Question 14mediummulti select
Read the full Understand Terraform's purpose explanation →

Which three of the following best describe the core purpose and capabilities of Terraform? (Choose three.)

Question 15mediummulti select
Read the full Understand Terraform's purpose explanation →

Which of the following accurately describe core purposes and benefits of using Terraform in a cloud infrastructure environment? Choose all that apply. (There are four correct answers.)

Question 16mediumdrag order
Read the full Understand Terraform's purpose explanation →

Drag and drop the steps to destroy infrastructure managed by Terraform in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 17mediummatching
Read the full Understand Terraform's purpose explanation →

Match each Terraform error code to its meaning.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Success – no errors

Error – command failed

Error – CLI argument parsing error

Error – configuration errors

Error – state lock error

Question 18easymultiple choice
Read the full Understand Terraform's purpose explanation →

A company wants to manage both on-premises and cloud infrastructure with a single tool. Which feature of Terraform makes this possible?

Question 19mediummultiple choice
Read the full Understand Terraform's purpose explanation →

During a terraform apply, the state file becomes corrupted. What is the recommended recovery method?

Question 20hardmultiple choice
Read the full Understand Terraform's purpose explanation →

Which Terraform feature allows managing multiple separate sets of infrastructure from the same configuration?

Question 21easymultiple choice
Read the full Understand Terraform's purpose explanation →

What does Terraform's declarative model mean for infrastructure changes?

Question 22mediummultiple choice
Read the full Understand Terraform's purpose explanation →

A company wants to ensure that Terraform configurations are consistent across teams. What practice should they adopt?

Question 23hardmultiple choice
Read the full Understand Terraform's purpose explanation →

Which Terraform feature helps manage dependencies between resources?

Question 24easymultiple choice
Read the full Understand Terraform's purpose explanation →

What is the primary purpose of Terraform's state file?

Question 25mediummultiple choice
Read the full Understand Terraform's purpose explanation →

A DevOps engineer needs to integrate Terraform with a CI/CD pipeline. What is a common practice?

Question 26hardmultiple choice
Read the full Understand Terraform's purpose explanation →

A company has a Terraform configuration that works correctly in us-east-1 but fails in us-west-2 due to resource availability. What is the best way to handle this?

Question 27mediummulti select
Read the full Understand Terraform's purpose explanation →

Which TWO are benefits of Terraform's immutable infrastructure approach?

Question 28hardmulti select
Read the full Understand Terraform's purpose explanation →

Which THREE are considered Terraform's best practices?

Question 29mediummulti select
Read the full Understand Terraform's purpose explanation →

Which TWO tasks are better suited for configuration management tools than Terraform?

Question 30mediummultiple choice
Read the full Understand Terraform's purpose explanation →

Refer to the exhibit. What does this output indicate?

Exhibit

Plan: 0 to add, 1 to change, 0 to destroy.
Question 31hardmultiple choice
Read the full Understand Terraform's purpose explanation →

Refer to the exhibit. What is the purpose of the data source?

Exhibit

resource "aws_instance" "web" {
  ami = data.aws_ami.ubuntu.id
  instance_type = "t2.micro"
}

data "aws_ami" "ubuntu" {
  most_recent = true
  owners = ["099720109477"]

  filter {
    name   = "name"
    values = ["ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*"]
  }
}
Question 32easymultiple choice
Read the full Understand Terraform's purpose explanation →

Refer to the exhibit. What does this output show?

Exhibit

aws_instance.web
aws_security_group.sg
Question 33easymultiple choice
Read the full Understand Terraform's purpose explanation →

A junior DevOps engineer is asked to explain the primary purpose of Terraform. Which statement best describes Terraform's purpose?

Question 34mediummultiple choice
Read the full Understand Terraform's purpose explanation →

A team wants to use Terraform to manage their AWS infrastructure. They have existing resources created manually. What is the recommended approach to bring these resources under Terraform management?

Question 35hardmultiple choice
Read the full Understand Terraform's purpose explanation →

An organization has a multi-cloud strategy using Terraform. They need to ensure that secrets such as API keys are not stored in plaintext in the configuration files. Which Terraform feature should they use to securely manage sensitive data?

Question 36mediummulti select
Read the full Understand Terraform's purpose explanation →

Which TWO of the following are key advantages of using Terraform over manual infrastructure management? (Select TWO.)

Question 37hardmulti select
Read the full Understand Terraform's purpose explanation →

Which THREE statements accurately describe Terraform state? (Select THREE.)

Question 38mediummulti select
Read the full Understand Terraform's purpose explanation →

Which TWO of the following are core components of Terraform's workflow? (Select TWO.)

Question 39easymultiple choice
Read the full Understand Terraform's purpose explanation →

Refer to the exhibit. A developer runs terraform plan and sees the above output. What will happen when terraform apply is executed?

Exhibit

Terraform will perform the following actions:

  # aws_instance.example will be updated in-place
  ~ resource "aws_instance" "example" {
        ami                          = "ami-0c55b159cbfafe1f0"
      ~ instance_type                = "t2.micro" -> "t2.small"
        tags                         = {}
    }
Question 40mediummultiple choice
Read the full Understand Terraform's purpose explanation →

Refer to the exhibit. A user attempts to run terraform apply with this configuration. What error will occur?

Exhibit

provider "aws" {
  region = "us-east-1"
}

resource "aws_s3_bucket" "mybucket" {
  bucket = "my-unique-bucket-12345"
  acl    = "private"
}

resource "aws_s3_bucket" "mybucket" {
  bucket = "my-unique-bucket-67890"
  acl    = "public-read"
}
Question 41hardmultiple choice
Read the full Understand Terraform's purpose explanation →

Refer to the exhibit. A team is troubleshooting a Terraform deployment. What information can be inferred from this state file?

Exhibit

{
  "version": 4,
  "terraform_version": "1.5.0",
  "resources": [
    {
      "mode": "managed",
      "type": "aws_instance",
      "name": "web",
      "provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
      "instances": [
        {
          "attributes": {
            "id": "i-0a1b2c3d4e5f67890",
            "instance_type": "t2.micro"
          },
          "dependencies": [
            "aws_security_group.web_sg"
          ]
        }
      ]
    }
  ]
}
Question 42easymultiple choice
Read the full Understand Terraform's purpose explanation →

A company wants to adopt infrastructure as code (IaC) to manage their expanding cloud environment. Which problem does Terraform directly address?

Question 43mediummultiple choice
Read the full Understand Terraform's purpose explanation →

An organization uses Terraform to deploy resources on AWS. They have separate configuration files for development, staging, and production. To differentiate these environments, they plan to use the same root module with different variable values. Which Terraform feature best supports this use case?

Question 44hardmultiple choice
Read the full Understand Terraform's purpose explanation →

A DevOps engineer runs terraform plan and sees that a resource will be destroyed and recreated, but they expected an in-place update. The resource is an AWS EC2 instance with a specific AMI. Which attribute change is most likely causing the destruction?

Question 45easymultiple choice
Read the full Understand Terraform's purpose explanation →

A new user is learning Terraform. They write a configuration file and run terraform apply expecting to provision resources. However, they forgot to run terraform init first. What will happen?

Question 46mediummultiple choice
Read the full Understand Terraform's purpose explanation →

A team uses a remote backend (S3) with state locking via DynamoDB. One team member runs terraform apply and it fails mid-way. Another team member immediately tries to run terraform plan. What is likely to happen?

Question 47hardmultiple choice
Read the full Understand Terraform's purpose explanation →

An organization has multiple teams using Terraform to manage shared infrastructure. They want to enforce policies such as requiring specific tags on all resources and preventing the use of certain instance types. Which Terraform feature should they implement to meet these requirements?

Question 48easymultiple choice
Read the full Understand Terraform's purpose explanation →

A team wants to manage infrastructure across multiple cloud providers using a single tool that supports infrastructure as code. Which tool is best suited for this purpose?

Question 49mediummultiple choice
Read the full Understand Terraform's purpose explanation →

A team has been manually modifying cloud resources outside of Terraform. They now find that Terraform plans show changes that don't match their expectations. What core concept of Terraform's purpose does this situation violate?

Question 50hardmultiple choice
Read the full Understand Terraform's purpose explanation →

An organization is evaluating Terraform for managing interconnected resources that must be created in a specific order. Why is Terraform's dependency graph handling a key aspect of its purpose?

Question 51easymulti select
Read the full Understand Terraform's purpose explanation →

Which TWO statements best describe Terraform's purpose? (Choose two.)

Question 52mediummulti select
Read the full Understand Terraform's purpose explanation →

Which THREE are part of Terraform's core workflow? (Choose three.)

Question 53easymultiple choice
Read the full Understand Terraform's purpose explanation →

A developer is new to infrastructure as code and wants to deploy a simple web server on AWS using a tool that allows them to define the infrastructure in a reusable and version-controlled manner. They are considering using the AWS Management Console, AWS CLI, or Terraform. Which course of action aligns best with Terraform's purpose?

Question 54mediummultiple choice
Read the full Understand Terraform's purpose explanation →

A team has been managing their AWS infrastructure using a collection of Bash scripts that create resources in a specific order. They frequently encounter issues where resources are created out of order or not properly cleaned up. They want to adopt a more reliable approach that ensures consistent provisioning and teardown. Which action best aligns with Terraform's purpose?

Question 55hardmultiple choice
Read the full Understand Terraform's purpose explanation →

A company uses AWS CloudFormation for AWS resources and Azure Resource Manager for Azure resources. They want to standardize on a single tool that can manage resources across both clouds with a consistent workflow and support for infrastructure as code. They also want to ensure that their infrastructure can be version-controlled and reviewed. Which approach best fulfills Terraform's purpose?

Question 56hardmultiple choice
Read the full Understand Terraform's purpose explanation →

A DevOps team accidentally deleted their Terraform state file. The actual infrastructure (EC2 instances, security groups, etc.) is still running and unchanged. They have the Terraform configuration files that were used to create the infrastructure. They want to re-establish management of the existing infrastructure without recreating it. Which course of action aligns with Terraform's purpose?

Question 57easymulti select
Read the full Understand Terraform's purpose explanation →

Which TWO statements accurately describe key purposes of Terraform?

Question 58mediummultiple choice
Read the full Understand Terraform's purpose explanation →

Refer to the exhibit. What is the primary purpose of the version constraint '~> 4.0'?

Exhibit

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.0"
    }
  }
}
Question 59hardmultiple choice
Read the full Understand Terraform's purpose explanation →

A team uses Terraform to manage infrastructure in AWS. They have a single workspace and store state in an S3 bucket with DynamoDB locking. After a recent apply, the state file became corrupted due to a network interruption during the state write. The team needs to recover the state and prevent future corruption. They have not enabled any backup or versioning. What should they do?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

TF-003 Practice Test 1 — 10 Questions→TF-003 Practice Test 2 — 10 Questions→TF-003 Practice Test 3 — 10 Questions→TF-003 Practice Test 4 — 10 Questions→TF-003 Practice Test 5 — 10 Questions→TF-003 Practice Exam 1 — 20 Questions→TF-003 Practice Exam 2 — 20 Questions→TF-003 Practice Exam 3 — 20 Questions→TF-003 Practice Exam 4 — 20 Questions→Free TF-003 Practice Test 1 — 30 Questions→Free TF-003 Practice Test 2 — 30 Questions→Free TF-003 Practice Test 3 — 30 Questions→TF-003 Practice Questions 1 — 50 Questions→TF-003 Practice Questions 2 — 50 Questions→TF-003 Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Understand IaC conceptsUnderstand Terraform basicsUnderstand Terraform's purposeUse Terraform outside the core workflowInteract with Terraform modulesUse the core Terraform workflowImplement and maintain stateRead, generate and modify configuration

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Understand Terraform's purpose setsAll Understand Terraform's purpose questionsTF-003 Practice Hub