Skip to content

Quiz — Multi-Repo & Consul Contracts

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

Why the sandbox publishes through Consul KV instead of terraform_remote_state, what breaks when an upstream repo hasn't published yet, and who should own a grant when the resource and the dependency point in opposite directions.

6 questions. Back to all topics

#

In a multi-repo Terraform setup using Consul KV instead of terraform_remote_state for cross-repo data sharing, what's the main advantage of the Consul approach?

#

In a dependency chain repo-A → repo-B → repo-C (each publishing data the next consumes via Consul), repo-C fails with an 'Invalid index' error trying to read a key that's supposed to come from repo-A. What's the most likely root cause?

#

Two data "consul_keys" blocks live side by side in the same file. One's path is parameterized by environment (${local.env_key}); the other is hardcoded to end in /default. The hardcoded one starts failing with an empty-string read. What's the most likely explanation?

#

Two separate Terraform repos both try to create a google_secret_manager_secret_iam_member granting the same access — one references the other repo's service-account email via cross-repo data, the other only needs data it already has locally. Which one should actually own the grant?

#

A local Consul dev agent (consul agent -dev, in-memory only) still has old KV data describing a service account, even though that service account's Terraform state was fully destroyed and rebuilt from scratch. Why?

#

A real production Consul deployment and the consul agent -dev used in this sandbox both work with identical Terraform HCL. What's actually different between them?

Quiz Progress

0 / 0 questions answered (0%)

0 correct