← Quiz: Infrastructure as Code: all 10 questions
Quiz: Infrastructure as Code · Question 8 of 10
In the example, how does Terraform know to create the bucket before its versioning setting?
In the example, how does Terraform know to create the bucket before its versioning setting?
- A.The versioning resource references aws_s3_bucket.uploads.id, so it depends on the bucket
- B.Resources are always created in file order
- C.It creates them in alphabetical order
- D.You must run apply twice
Answer & explanation
Correct answer: The versioning resource references aws_s3_bucket.uploads.id, so it depends on the bucket
References between resources build a dependency graph that sets the order.
Can you get the rest right without peeking?
Take the timed Quiz: Infrastructure as Code quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →