You are deploying an application on EC2 that must call AWS APIs. What method of securely passing
credentials to the application should you use?
Use AWS Identity and Access Management roles for EC2 instances.
Pass API credentials to the instance using instance userdata.
Embed the API credentials into your JAR files.
Store API credentials as an object in Amazon Simple Storage Service.