AWS Certified Advanced Networking – Specialty ANS-C00 – Question175

You need to find the public IP address of an instance that you're logged in to. What command would you use?

A.
curl ftp://169.254.169.254/latest/meta-data/public-ipv4
B. scp localhost/latest/meta-data/public-ipv4
C. curl http://127.0.0.1/latest/meta-data/public-ipv4
D. curl http://169.254.169.254/latest/meta-data/public-ipv4

Correct Answer: D

Explanation:

Explanation:
curl http://169.254.169.254/latest/meta-data/public-ipv4