TF-003 • Practice Test 3 — 25 Questions
Free TF-003 practice test 3 — 25 questions with explanations. No signup required.
The user runs `terraform init` successfully, but then `terraform plan` still fails with a different error: "Error: No configuration files found in this directory." The directory contains backend.tf and main.tf. What is the most likely cause?
Refer to the exhibit.
```
# backend.tf
terraform {
backend "remote" {
organization = "myorg"
workspaces {
name = "example-workspace"
}
}
}
# main.tf
resource "null_resource" "example" {
triggers = {
always = timestamp()
}
provisioner "local-exec" {
command = "echo '${self.id}'"
}
}
```
When running `terraform plan` locally, the user receives the error: "Error: Backend initialization required: please run 'terraform init'".