Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Exam VA-002-P Topic 6 Question 66 Discussion

Actual exam question for HashiCorp's VA-002-P exam
Question #: 66
Topic #: 6
[All VA-002-P Questions]

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

1. resource "aws_instance" "web_server" {

2. ami = "i-abdce12345"

3. instance_type = "t2.micro"

4. }

5. resource "aws_eip" "web_server_ip" {

6. vpc = true

7. instance = aws_instance.web_server.id

8. }

Show Suggested Answer Hide Answer
Suggested Answer: A

The EC2 instance labeled web_server is the implicit dependency as the aws_eip cannot be created until the aws_instance labeled web_server has been provisioned and the id is available.

Note that aws_s3_bucket.example is an explicit dependency.


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel