nerdexam
HashiCorp

TA-002-P · Question #279

Given the Terraform configuration below, in which order will the resources be created?

The correct answer is D. aws_instance will be created first aws_eip will be created second. The aws_instance will be created first, and then aws_eip will be created second due to the aws_eip's resource dependency of the aws_instance id

Read, generate, and modify configuration

Question

Given the Terraform configuration below, in which order will the resources be created?

Options

  • ALarger image
  • Bresources will be created simultaneously
  • Caws_eip will be created first aws_instance will be created second
  • Daws_instance will be created first aws_eip will be created second

How the community answered

(37 responses)
  • A
    11% (4)
  • B
    3% (1)
  • C
    3% (1)
  • D
    84% (31)

Explanation

The aws_instance will be created first, and then aws_eip will be created second due to the aws_eip's resource dependency of the aws_instance id

Topics

#Terraform Dependency Graph#Resource Creation Order#Implicit Dependencies#AWS EC2

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice