Briefing Amazon Knowledge

How can software determine the public and private IP ad…

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.