Bird
0
0

You created an inline policy for a role but it is not granting the expected permissions. What is the most likely cause?

medium📝 Debug Q14 of 15
AWS - Identity and Access Management
You created an inline policy for a role but it is not granting the expected permissions. What is the most likely cause?
AThe inline policy JSON syntax is invalid.
BThe role already has a managed policy attached with higher priority.
CInline policies cannot be attached to roles.
DThe inline policy name conflicts with an existing managed policy.
Step-by-Step Solution
Solution:
  1. Step 1: Verify inline policy attachment rules

    Inline policies can be attached to roles, so Inline policies cannot be attached to roles. is incorrect.
  2. Step 2: Check common issues with inline policies

    Invalid JSON syntax in the inline policy will prevent permissions from applying correctly.
  3. Step 3: Understand policy priority

    Managed and inline policies are evaluated together; no priority overrides permissions except explicit deny.
  4. Final Answer:

    The inline policy JSON syntax is invalid. -> Option A
  5. Quick Check:

    Invalid JSON breaks policy effect [OK]
Quick Trick: Check JSON syntax first for inline policy issues [OK]
Common Mistakes:
  • Assuming inline policies can't attach to roles
  • Thinking managed policies override inline by priority
  • Confusing policy names causing conflicts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes