🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.The versioning resource references aws_s3_bucket.uploads.id, so it depends on the bucket
  2. B.Resources are always created in file order
  3. C.It creates them in alphabetical order
  4. 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 →