exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 68 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 68
Topic #: 1
[All AWS Certified Developer Associate Questions]

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
sindra
Highly Voted 2 years, 7 months ago
Selected Answer: A
Confirm a since we can find the attribute in 169.254.169.254/latest/meta-data
upvoted 9 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: A
A) Correct - Amazon EC2 instances expose instance metadata, which provides information about the instance, such as its public IPv4 address, instance ID, security groups, and more.
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: A
A for sure, on EC2 instance we have the possibility to get metadata doing a request to the following private linkç http://169.254.169.254/latest/meta-data/
upvoted 1 times
...
sichilam
2 years, 3 months ago
A ti si
upvoted 1 times
...
dark_cherrymon
2 years, 5 months ago
it's A
upvoted 1 times
...
Arnaud92
2 years, 6 months ago
Selected Answer: A
It's A. Instance meta-data : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html In them you will find : « network/interfaces/macs/mac/public-ipv4s : The public IP address or Elastic IP addresses associated with the interface. There may be multiple IPv4 addresses on an instance. » (from https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html)
upvoted 1 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