Question 580
A CI/CD engineer is writing infrastructure automation. The acceptance requirement is to install the correct independently published provider of a given type. What approach addresses it directly?
Explanation
Correct Answer
Source addresses disambiguate publishers and package identities. This meets the stated requirement to install the correct independently published provider of a given type.
Incorrect Answers
Provider configuration inheritance is intended to let resources in one module share a provider's configured credentials and region; default provider configuration avoids duplicating connection settings. That is not the specific requirement to install the correct independently published provider of a given type.
Aliased provider configuration is intended to connect one module to two independently configured accounts of the same platform; aliases permit multiple configurations of a single provider plugin. That is not the specific requirement to install the correct independently published provider of a given type.
Data source schema is intended to query an existing platform object without asking Terraform to create it; data sources retrieve details of remote objects for expressions. That is not the specific requirement to install the correct independently published provider of a given type.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests