← Quiz: AWS Core Services: all 10 questions
Quiz: AWS Core Services · Question 2 of 10
How should an EC2 instance get permission to read an S3 bucket?
How should an EC2 instance get permission to read an S3 bucket?
- A.Hard-code the root account access keys in the app
- B.Attach an IAM role with a least-privilege policy to the instance
- C.Make the bucket public
- D.Share the console password
Answer & explanation
Correct answer: Attach an IAM role with a least-privilege policy to the instance
Roles give temporary credentials automatically; no keys in code.
Can you get the rest right without peeking?
Take the timed Quiz: AWS Core Services quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →