How can you ensure that?

resource “aws_s3_bucket” “example” { bucket = “my-test-s3-terraform-bucket” …} resource “aws_iam_role” “test_role” { name = “test_role” …} Due to the way that the application code is written , the s3 bucket must be created before the test role is created , otherwise there will be a problem. How can you ensure that?
A. This will already be taken care of by terraform native implicit dependency. Nothing else needs to be done from your end.
B. Add explicit dependency using depends_on . This will ensure the correct order of resource creation.
C. Create 2 separate terraform config scripts , and run them one by one , 1 for s3 bucket , and another for IAM role , run the S3 bucket script first.
D. This is not possible to control in terraform . Terraform will take care of it in a native way , and create a dependency graph that is best suited for the parallel resource creation.

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.