passdrill
AWS SAA-C03 · IAM & Security · Card 003/014 easy

An application running on an EC2 instance needs to call AWS APIs. The security team requires that no long-lived access keys ever be stored on the instance. Which approach satisfies this requirement?

  1. Attach an IAM role to the EC2 instance through an instance profile, so the application retrieves short-lived credentials automatically from the instance metadata service
  2. Create an IAM user, generate an access key pair, and embed the keys in the instance's user data script
  3. Create an IAM user and have a developer manually enter its access key ID and secret access key into the application's configuration file
  4. Store the AWS account root user's access keys in an environment variable on the instance
Next card → Shuffle