ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 35 - DVA-C01 discussion

Report
Export

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

A.
Query the appropriate Amazon CloudWatch metric.
Answers
A.
Query the appropriate Amazon CloudWatch metric.
B.
Use ipconfig or ifconfig command.
Answers
B.
Use ipconfig or ifconfig command.
C.
Query the local instance userdata.
Answers
C.
Query the local instance userdata.
D.
Query the local instance metadata.
Answers
D.
Query the local instance metadata.
Suggested answer: D

Explanation:

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.htmlData: local-hostname Descriptions: The private IPv4 DNS hostname of the instance. In cases where multiple network interfaces are present, this refers to the eth0 device (the device for which the device number is 0). Data: public-ipv4 Descriptions: The public IPv4 address. If an Elastic IP address is associated with the instance, the value returned is the Elastic IP address.

asked 16/09/2024
Rozsahegyi Jozsef
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first