Bird
0
0

Which of the following is the correct way to assign permissions to an AWS service using IAM?

easy📝 Configuration Q12 of 15
AWS - Identity and Access Management
Which of the following is the correct way to assign permissions to an AWS service using IAM?
ACreate an IAM role and assign it to the AWS service
BGenerate permanent access keys and embed them in the service code
CCreate an IAM user and attach policies directly to the user
DUse root account credentials for the service
Step-by-Step Solution
Solution:
  1. Step 1: Understand IAM roles for services

    IAM roles allow AWS services to assume permissions temporarily without permanent keys.
  2. Step 2: Identify best practice

    Assigning an IAM role to the service is the recommended way to grant permissions securely.
  3. Final Answer:

    Create an IAM role and assign it to the AWS service -> Option A
  4. Quick Check:

    Use roles for services, not permanent keys [OK]
Quick Trick: Use roles for AWS services, not permanent keys [OK]
Common Mistakes:
  • Attaching policies directly to users for services
  • Embedding permanent keys in code
  • Using root account credentials

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes