PCDE • Practice Exam 51
Free PCDE practice exam — 20 questions with explanations. Set 51. No signup required.
A global gaming company uses Cloud Spanner for player profiles and game state. The schema includes a table 'PlayerStats' with a primary key (PlayerId, GameId, Timestamp). The table stores millions of rows per player. The application frequently runs a query to fetch the most recent stats for a given player across all games, using ORDER BY Timestamp DESC LIMIT 10. This query is slow, taking several seconds. The team adds a secondary index on (PlayerId, Timestamp) but still sees high CPU usage and latency. They need to redesign the schema to optimize this query without changing the application logic significantly. What should they do?
Choose an answer to begin — your selection is scored in the full session.
20 questions · instant feedback and full explanations after every question.