Complete the code to filter items where the attribute 'status' equals 'active'.
FilterExpression = "status = [1]"
The filter expression uses a placeholder for the value. Here, ':active' is the correct placeholder for the value 'active'.
Complete the code to filter items where the attribute 'age' is greater than 25.
FilterExpression = "age [1] :age_val"
The filter expression uses '>' to check if 'age' is greater than 25.
Fix the error in the filter expression to check if 'score' is less than or equal to 100.
FilterExpression = "score [1] :max_score"
The correct operator for 'less than or equal to' is '<='.
Fill both blanks to filter items where 'category' equals 'books' and 'price' is less than 20.
FilterExpression = "category = [1] AND price [2] :max_price"
The placeholder ':books' is used for the category value, and '<' is used to check if price is less than max_price.
Fill all three blanks to filter items where 'status' equals 'pending', 'priority' is greater than 3, and 'assigned' attribute exists.
FilterExpression = "status = [1] AND priority [2] :min_priority AND attribute_exists([3])"
Use ':pending' as placeholder for status, '>' for priority comparison, and 'assigned' as the attribute name to check existence.