Question 1 / 4 Which index is a good candidate for this query?
WHERE project_id = ? ORDER BY id DESC LIMIT 25
The equality column comes first, followed by the ordering column. Check the actual execution plan with representative data.
Review the lesson Question 2 / 4 Several tasks share the same creation time. What makes their cursor order unambiguous?
A unique ordering tuple gives each row a distinct position from which the next page can continue.
Review the lesson Question 3 / 4 Only one unit remains and two orders arrive. Which operation can grant it to just one order?
The database evaluates the stock condition as part of the write. A zero-row update tells the other caller that no stock was granted.
Review the lesson Question 4 / 4 How can you check an index optimization without silently changing which tasks the user sees?
The ordered result checks behavior. The plans show whether the database chose a different access path.
Review the lesson Round resultRevisit the missed topics
This browser could not save your score.
My challenge record Each answer is worth 25 points. Replays keep your highest score.