Question 350
At Granite SaaS, the tenant database platform team maintains a multi-tenant business application backed by Azure SQL with requirements for tenant isolation and consistent provisioning. After a claimed fix, the release reviewer evaluates: A query performs a string function on an indexed date column in the WHERE predicate and loses partition or index seek efficiency. Which observed result BEST proves the intended problem is corrected?
Explanation
Correct Answer
The rewritten query returns identical rows while the execution plan reads the targeted date range efficiently. That observable result supports resolution of: A query performs a string function on an indexed date column in the WHERE predicate and loses partition or index seek efficiency. The corresponding corrective change is: Rewrite the date condition into a search-argument-friendly range predicate and confirm its semantic correctness. The Granite SaaS reviewer can distinguish demonstrated database behavior from an untested change claim.
Incorrect Answers
The actual plan demonstrates corrected cardinality and reduced work for the representative parameter set. That result is evidence for another corrective change: Compare estimated and actual plans with row counts and resource metrics to identify estimation or join-selection problems. The alternative problem is: A SQL DBA sees an estimated execution plan only and concludes a query cannot have cardinality estimation errors at runtime. The current Granite SaaS issue is instead: A query performs a string function on an indexed date column in the WHERE predicate and loses partition or index seek efficiency. Its decisive acceptance evidence would be: The rewritten query returns identical rows while the execution plan reads the targeted date range efficiently.
The identified lead blocker is corrected and the blocked sessions complete while unrelated transactions are left running. That result is evidence for another corrective change: Inspect active requests, session wait information and blocking chains using supported DMVs or Extended Events. The alternative problem is: Two SQL sessions are blocked for minutes and the incident handler kills random connections without identifying the lead blocking transaction. The current Granite SaaS issue is instead: A query performs a string function on an indexed date column in the WHERE predicate and loses partition or index seek efficiency. Its decisive acceptance evidence would be: The rewritten query returns identical rows while the execution plan reads the targeted date range efficiently.
The updated report returns the same required values while transferring fewer bytes and lowering measured memory demand. That result is evidence for another corrective change: Rewrite the query to project only required columns and review supporting indexes for the access pattern. The alternative problem is: A SQL report selects all columns from a wide transactional table even though it needs only three, causing high memory and network usage. The current Granite SaaS issue is instead: A query performs a string function on an indexed date column in the WHERE predicate and loses partition or index seek efficiency. Its decisive acceptance evidence would be: The rewritten query returns identical rows while the execution plan reads the targeted date range efficiently.