BlackFriday 2024! 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 5 Question 6 Discussion

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

From the code below, identify the implicit dependency:

1. resource "aws_eip" "public_ip" {

2. vpc = true

3. instance = aws_instance.web_server.id

4. }

5. resource "aws_instance" "web_server" {

6. ami = "ami-2757f631"

7. instance_type = "t2.micro"

8. depends_on = [aws_s3_bucket.company_data]

9. }

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