exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 76 discussion

A developer deployed an application to an Amazon EC2 instance. The application needs to know the public IPv4 address of the instance.

How can the application find this information?

  • A. Query the instance metadata from http://169.254.169.254/latest/meta-data/.
  • B. Query the instance user data from http://169.254.169.254/latest/user-data/.
  • C. Query the Amazon Machine Image (AMI) information from http://169.254.169.254/latest/meta-data/ami/.
  • D. Check the hosts file of the operating system.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Naj_64
Highly Voted 1 year, 3 months ago
Selected Answer: A
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
upvoted 6 times
...
SerialiDr
Highly Voted 9 months, 3 weeks ago
Selected Answer: A
This is the correct approach. The instance metadata includes details such as the instance's public IPv4 address. The application can make a request to this URL, specifically to http://169.254.169.254/latest/meta-data/public-ipv4, to retrieve the public IPv4 address of the instance.
upvoted 6 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: A
The EC2 instance metadata service provides details about the instance, such as its public and private IP addresses. To find the public IPv4 address, you can query the metadata
upvoted 1 times
...
65703c1
5 months, 1 week ago
Selected Answer: A
A is the correct answer.
upvoted 2 times
...
zodraz
1 year, 5 months ago
Selected Answer: A
You can retrieve ip through http://169.254.169.254/latest/meta-data/local-ipv4 or http://169.254.169.254/latest/meta-data/public-ipv4 https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
upvoted 2 times
...
zodraz
1 year, 5 months ago
Selected Answer: A
It' s C. Any of the events mentioned on D exist. https://docs.aws.amazon.com/codecommit/latest/userguide/monitoring-events.html#pullRequestSourceBranchUpdated
upvoted 2 times
zodraz
1 year, 5 months ago
Please remove this comment @admin
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago