Answer - A.
The application can use the application metadata to get the private IP address.
The below snapshot from the AWS Documentation shows the information that you can get from the Instance metadata.
Option B is invalid because this cannot be used to get the IP address of the instance.
Option C is invalid because this is not an automated approach.
Option D is invalid because we don't know the type of instance the application is running on.