What is the primary risk of relying solely on 'create_before_destroy' without considering dependency chains?
Relying on create_before_destroy duplicates dependent resources before the originals are removed, so unique names, tags, or quotas collide. This directly satisfies the stem's dependency-chain constraint: Terraform cannot sequence replacements, producing naming conflicts and resource contention during the overlap window.
Why this answer
'create_before_destroy' makes Terraform create the replacement resource before destroying the old one. When resources have unique names, fixed IPs, or other globally unique identifiers, the new resource cannot be created while the old one still exists, causing naming conflicts or resource contention. This is the primary risk when dependency chains are not carefully considered.
Exam trap
The trap is assuming 'create_before_destroy' is always safe for zero-downtime — candidates forget that unique naming constraints and dependency chains can force a conflict, making 'resource contention or naming conflicts' the correct risk.
How to eliminate wrong answers
Option B is wrong because 'create_before_destroy' does not cause infinite loops — Terraform's graph is acyclic and the lifecycle flag only reorders create/destroy operations. Option C is wrong because plan cost is not affected by lifecycle ordering; cost estimation depends on resource types and counts, not on create/destroy sequencing. Option D is wrong because 'create_before_destroy' is not inherently a security risk — it is an availability/ordering concern, not a security control.