Ravi Sir's Cards › AWS
Query the cart
This interview card covers Query the cart. Scan for one user cart is wrong. Query PK=USER# and begins_with SK CART#. Put lines , then Query , then assert count , then delete lab.
Read card text
What this card says
What it is
Scan for one user cart is wrong.
Why it matters
Query PK=USER# and begins_with SK CART#.
begins_with
How / example
Put lines → Query → assert count → delete lab.
Live begins_with demo.