Complete the code to allow access only if the partition key matches the user's ID.
"ConditionExpression": "[1] = :userId"
The partition key is used to identify the row uniquely. Using it in the condition ensures row-level security.
Complete the condition to check if the user's role attribute equals 'admin'.
"ConditionExpression": "[1] = :adminRole"
The attribute 'role' is commonly used to store user roles like 'admin'.
Fix the error in the condition expression to check if the attribute 'status' is 'active'.
"ConditionExpression": "[1] = :activeStatus"
The attribute name is case-sensitive and should be exactly 'status'.
Fill both blanks to allow access only if the partition key matches and the user role is 'editor'.
"ConditionExpression": "[1] = :userId AND [2] = :editorRole"
The partition key ensures row-level access, and 'role' checks the user's role.
Fill all three blanks to restrict access where partition key matches, role is 'viewer', and status is 'active'.
"ConditionExpression": "[1] = :userId AND [2] = :viewerRole AND [3] = :activeStatus"
Use 'partitionKey' for row identity, 'role' for user role, and 'status' for active status check.