TA-002-P · Question #299
Provider dependencies are created in several different ways. Select the valid provider dependencies from the following list: (select three)
The correct answer is A. Explicit use of a provider block in configuration, optionally including a version constraint. B. Use of any resource belonging to a particular provider in a resource or data block in C. Existence of any resource instance belonging to a particular provider in the current state. Terraform creates provider dependencies in three ways: (A) An explicit provider block in configuration, optionally specifying a version constraint - this directly declares the dependency. (B) Any resource or data block that references a provider's resource type implicitly…
Question
Provider dependencies are created in several different ways. Select the valid provider dependencies from the following list: (select three)
Options
- AExplicit use of a provider block in configuration, optionally including a version constraint.
- BUse of any resource belonging to a particular provider in a resource or data block in
- CExistence of any resource instance belonging to a particular provider in the current state.
- DExistence of any provider plugins found locally in the working directory.
How the community answered
(27 responses)- A89% (24)
- D11% (3)
Explanation
Terraform creates provider dependencies in three ways: (A) An explicit provider block in configuration, optionally specifying a version constraint - this directly declares the dependency. (B) Any resource or data block that references a provider's resource type implicitly creates a dependency on that provider. (C) If existing resource instances for a provider exist in the current state file, Terraform maintains a dependency on that provider to manage those resources. Choice D is incorrect - the mere presence of provider plugin binaries in the local working directory does not create a dependency. Dependencies are driven by configuration and state, not local file system contents.
Topics
Community Discussion
No community discussion yet for this question.