開始使用免費開始

使用 Local Secondary Index 規劃資料表

你有一個「Orders」資料表,userId 為分割區鍵(partition key),orderDate 為排序鍵(sort key)。你需要依 userId 查詢訂單,並改為依 orderStatus(pending、shipped、delivered)排序,而不是依 orderDate。你正考慮在 orderStatus 上新增一個 Local Secondary Index(LSI)。

針對這個需求,哪一個敘述是正確的?

本練習屬於課程

在 AWS 中使用資料儲存服務

檢視課程

動手互動練習

將理論付諸實踐,立即體驗我們的互動練習

開始練習