exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 319 discussion

Exam question from Amazon's AWS-SysOps
Question #: 319
Topic #: 1
[All AWS-SysOps Questions]

How can software determine the public and private IP addresses of the Amazon EC2 instance that it is running on?

  • A. Query the local instance metadata.
  • B. Query the appropriate Amazon CloudWatch metric.
  • C. Query the local instance userdata.
  • D. Use ipconfig or ifconfig command.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.htm

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
albert_kuo
11 months ago
Selected Answer: A
To determine the public and private IP addresses of the Amazon EC2 instance it is running on, software can query the local instance metadata. The instance metadata service provides a set of data about an EC2 instance that can be accessed from within the instance itself. The metadata can be retrieved by making a simple HTTP request to a specific URL. To retrieve the IP addresses, the software can make a request to the following URLs: To get the public IP address: http://169.254.169.254/latest/meta-data/public-ipv4 To get the private IP address: http://169.254.169.254/latest/meta-data/local-ipv4
upvoted 1 times
...
xxxdolorxxx
2 years, 6 months ago
A: Metadata is the right place to find that info.
upvoted 1 times
...
TroyMcLure
2 years, 7 months ago
Correct Answer: A
upvoted 1 times
...
awscertified
2 years, 7 months ago
A. Query the local instance metadata.
upvoted 2 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