Bird
0
0

To enable an EC2 instance to access S3 buckets temporarily without embedding credentials, which AWS feature should you implement?

hard📝 Application Q8 of 15
AWS - Identity and Access Management
To enable an EC2 instance to access S3 buckets temporarily without embedding credentials, which AWS feature should you implement?
ACreate a Lambda function to provide credentials to the EC2 instance
BStore AWS access keys in the EC2 instance user data
CUse AWS Secrets Manager to store permanent credentials on the instance
DAttach an IAM role to the EC2 instance with appropriate S3 permissions
Step-by-Step Solution
Solution:
  1. Step 1: Understand credential management for EC2

    Embedding credentials is insecure; IAM roles provide temporary credentials automatically.
  2. Step 2: Use IAM roles

    Attaching an IAM role to EC2 allows automatic temporary credential provisioning via instance metadata.
  3. Final Answer:

    Attach an IAM role to the EC2 instance with appropriate S3 permissions -> Option D
  4. Quick Check:

    IAM roles attached to EC2 provide temporary credentials [OK]
Quick Trick: Attach IAM role to EC2 for temporary credentials [OK]
Common Mistakes:
MISTAKES
  • Embedding permanent keys in user data
  • Using Secrets Manager for permanent keys on EC2
  • Relying on Lambda to supply credentials

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes