8 real TF-Associate-004 flashcards, sampled from 4 of the 8 domains the exam tests, heaviest first. Each concept card is paired with the misconception card built from the tempting wrong answer - the trap most decks skip. No account, no card.
The full deck has 634 flashcards, and a free account opens 40 of them across every domain. For a domain-by-domain breakdown and a study plan, read the TF-Associate-004 study guide.
schoolConceptTerraform configuration
Why can a list not be used directly with for_each, and what conversion makes it work?
arrow_downward
for_each keys each instance by a stable string, which a map or a set of strings provides but a list does not. Converting the list to set(string) supplies acceptable keys and lets the iteration proceed.
errorMisconceptionTerraform configuration
Changing a variable to tuple([string, string]) satisfies for_each, because a fixed-length tuple is the collection it expects.
arrow_downward
A tuple looks like an ordered pair that might suit two zones, but for_each rejects tuples just as it rejects lists; it needs a map or a set.
schoolConceptCore Terraform workflow
Why does a plain 'terraform apply' pause after printing the proposed plan?
arrow_downward
By default apply computes a plan, displays it, and blocks on an interactive confirmation. Only after the operator types 'yes' does it call the providers to create, update, or destroy real resources.
errorMisconceptionCore Terraform workflow
Because apply already generated its own plan during the same command, it applies the changes immediately.
arrow_downward
Apply does generate its own plan, but without a saved plan file or -auto-approve it still stops and asks for confirmation first.
schoolConceptTerraform fundamentals
If a resource type is declared but no required_providers entry exists, how does terraform init handle the provider?
arrow_downward
A resource type such as aws_s3_bucket carries the provider local name as its prefix. Terraform resolves that to the default hashicorp/aws source address and installs the plugin during init, which is the phase responsible for provider installation.
errorMisconceptionTerraform fundamentals
Every provider must be pinned in a required_providers block before any plugin can be installed.
arrow_downward
Pinning in required_providers is best practice for version control, but its absence does not stop init. Terraform can still infer and install the provider, so requiring the pin overstates the rule.
schoolConceptTerraform modules
When a module's source is a relative path like ./ or ../, how does init retrieve it?
arrow_downward
A source prefixed with ./ or ../ denotes a local module, so init resolves it against the working directory on disk and reads the files in place, never contacting the registry or a remote host.
errorMisconceptionTerraform modules
A module block pointing at a subdirectory makes init query the public registry and download the newest matching version.
arrow_downward
Registry retrieval is tempting because init does fetch registry modules, but a registry source must be a namespaced address such as 'namespace/name/provider', not a relative path.
Study 40 TF-Associate-004 flashcards free
A free account opens 40 cards from the 634-card TF-Associate-004 deck, spread across every domain the exam tests. Drop your email and we will keep you posted as new TF-Associate-004 study material ships. No spam - we mail you only when it is worth your time.
Examworthy is not affiliated with or endorsed by HashiCorp. All flashcards are original, drawn from our own blueprint-aligned practice questions. We never reproduce live exam items. TF-Associate-004 and related marks belong to their respective owners.