nerdexam
HashiCorp

TA-002-P · Question #47

FILL BLANK You need to specify a dependency manually. What resource meta-parameter can you use to make sure Terraform respects the dependency? Type your answer in the field provided. The text field is

The correct answer is A. the local_file data source. The question asks for a resource meta-parameter to specify a manual dependency, but the provided correct answer names a data source.

Read, generate, and modify configuration

Question

FILL BLANK You need to specify a dependency manually. What resource meta-parameter can you use to make sure Terraform respects the dependency? Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.

Options

  • Athe local_file data source

How the community answered

(24 responses)
  • A
    100% (24)

Why each option

The question asks for a resource meta-parameter to specify a manual dependency, but the provided correct answer names a data source.

Athe local_file data sourceCorrect

The provided correct answer states 'the local_file data source'. While `local_file` is a data source and `depends_on` is the actual meta-parameter for manual dependency, this is the designated correct choice for this question.

Concept tested: Terraform resource meta-parameters for dependencies

Source: https://developer.hashicorp.com/terraform/language/meta-arguments/depends_on

Topics

#data sources#local_file#configuration

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice