AWS - DynamoDB
You have a DynamoDB table with a partition key
UserId and sort key OrderDate. You want to efficiently query all orders by Status and sort them by OrderAmount. Which secondary index should you create and how?