PCDE Design and implement database schemas • Set 5
PCDE Design and implement database schemas Practice Test 5 — 15 questions with explanations. Free, no signup.
A retail company is designing a schema for a new Cloud Spanner database to store order line items. The `Orders` table has a primary key of `OrderId` (STRING). The `OrderItems` table will store individual items for each order. The application frequently queries all items for a given order and also needs to efficiently retrieve a specific item by its line number within an order. What should be the primary key of the `OrderItems` table to optimize these access patterns?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.