Question 110
A Terraform associate evaluates: A second endpoint needs distinct provider settings without installing a different provider package. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A second endpoint needs distinct provider settings without installing a different provider package. The acceptance evidence is: A plan clearly binds each designated resource to its intended provider configuration and credentials. It verifies the corrective approach (Configure provider blocks with required authentication and regions, using aliases only when a configuration needs multiple instances of one provider.) and controls the risk: A resource without its intended provider instance may target the default region or account unexpectedly. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A second endpoint needs distinct provider settings without installing a different provider package. The directly relevant Terraform response is: Configure provider blocks with required authentication and regions, using aliases only when a configuration needs multiple instances of one provider. This addresses the related failure mode: A resource without its intended provider instance may target the default region or account unexpectedly. Validate the result by checking: A plan clearly binds each designated resource to its intended provider configuration and credentials. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
Use a suitable provider plugin to translate Terraform resource and data operations into the target platform API calls. This is relevant to Provider plugin responsibilities (official objective 2b). Its distinct failure risk is that terraform core alone does not know how to create every cloud resource without a supporting provider implementation. The present question tests Provider configuration and aliases, which this measure alone does not establish.
A clean init uses the committed selected provider version and verifies recorded package checksums. That addresses Provider dependency lock file (official objective 2a), specifically the hazard that ignoring the provider lock file can unexpectedly select different compatible releases on different workstations. Here the necessary action or evidence is the paired action A plan clearly binds each designated resource to its intended provider configuration and credentials and separate validation Configure provider blocks with required authentication and regions, using aliases only when a configuration needs multiple instances of one provider, not that separate control.
Assuming child modules automatically see every aliased provider may result in wrong bindings or validation failures. This does not provide the required Provider configuration and aliases action-and-evidence pair.