Skip to content

Quiz — Debugging, Recovery & Verification Methodology

Quiz results are saved to your browser's local storage and will persist between sessions.

How to order hypotheses by cost of falsification, why an empty terraform.tfstate file is not proof of an unapplied or healthy root, and why a green terraform apply is never a substitute for independent verification. Reference: §9 State Surgery & Recovery and §10 Production Architecture.

6 questions. Back to all topics

#

Two different Terraform learners hit the same unfamiliar syntax. One says 'I never knew that' after seeing the answer; the other says 'I should have thought of that.' What's the practical teaching implication of this difference?

#

When a real, unexpected Terraform error appears with more than one plausible cause, what's the better debugging approach — testing hypotheses in order with direct evidence, or reading through the whole codebase first to find the bug?

#

terraform apply finishes with no errors and prints a Kubernetes namespace name as an output. Is that sufficient proof the namespace and workload actually exist and are healthy on the real cluster?

#

A verification script checks GKE cluster status via gcloud, checks node pool existence, and separately checks kubectl get nodes for Ready status. Why check all three instead of just confirming the cluster status is RUNNING?

#

A recovery script checks [ -f terraform.tfstate ] to guard against accidentally bootstrapping over existing infrastructure. Why did that check fail to detect that infrastructure/infra and backend/infra owned zero resources?

#

An automation script starts consul agent -dev & in the background and immediately runs terraform apply on a root containing resource "consul_keys". The apply intermittently fails with connection refused on 127.0.0.1:8500. What is the architectural lesson?

Quiz Progress

0 / 0 questions answered (0%)

0 correct