DynamoDB: Fetching Latest Items By Time: Part 2: Scan and Query APIs coupled with some Logic 2 minute read