Question 10
A code review notices provider aliases were renamed without a state-aware migration plan in a long-lived stack. Which Terraform concept most directly explains the appropriate approach?
Explanation
Correct Answer
Plan provider-configuration changes carefully and validate state associations before apply. Managed objects remain mapped to usable provider configurations after the alias change.
Incorrect Answers
Explain and use the existing Terraform state snapshot as part of planning. Plan provider-configuration changes carefully and validate state associations before apply.
Set an appropriate required_providers version constraint and commit the dependency lock file. State tracks provider configuration associations, so removing aliases carelessly can break operations.
Correct the provider's credential/configuration context for the target service. Plan provider-configuration changes carefully and validate state associations before apply.