🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Hard-code the root account access keys in the app
  2. B.Attach an IAM role with a least-privilege policy to the instance
  3. C.Make the bucket public
  4. 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 →