This IAM policy allows reading and writing items in the 'Library' table but denies deleting any items. It protects data by controlling exactly what actions are allowed.
B. The Resource ARN is incomplete; it must specify the table name
C. Effect should be Deny to allow access
D. The policy must include a Condition block
Solution
Step 1: Check the Resource ARN format
The ARN ends with :table but lacks the specific table name, so it is incomplete.
Step 2: Understand ARN requirements for DynamoDB
IAM policies require full ARN including the table name to apply permissions correctly.
Final Answer:
The Resource ARN is incomplete; it must specify the table name -> Option B
Quick Check:
Complete ARN needed for resource [OK]
Hint: Always include full table name in ARN [OK]
Common Mistakes:
Leaving ARN incomplete
Confusing Allow and Deny effects
Thinking Condition is mandatory
5. You want to protect sensitive data in your DynamoDB table by allowing only users with a specific IAM role to update items. Which approach best uses IAM policies to achieve this?
hard
A. Create an IAM policy that allows dynamodb:UpdateItem only for the role's ARN on the table resource
B. Grant all users dynamodb:UpdateItem permission and rely on application code to check roles
C. Use a policy that denies dynamodb:UpdateItem for everyone except the root user
D. Create a policy allowing dynamodb:UpdateItem on all tables for all users
Solution
Step 1: Identify the need for role-based permission
Only users with a specific IAM role should update items, so permissions must be scoped to that role.
Step 2: Use IAM policy to allow UpdateItem only for that role on the table
Creating a policy that allows dynamodb:UpdateItem only for the role's ARN on the table resource enforces this securely.
Final Answer:
Create an IAM policy that allows dynamodb:UpdateItem only for the role's ARN on the table resource -> Option A
Quick Check:
Role-based IAM policy controls updates [OK]
Hint: Scope permissions to specific role and resource [OK]
Common Mistakes:
Relying on app code instead of IAM
Using overly broad permissions
Denying everyone except root is too restrictive
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.