SQL Server uses a filtered index only if it can prove at compile time that the query's predicate implies the index filter. It fails when: the filter value is a parameter (WHERE Status = @status), because the cached plan must work for any value; the predicate is written differently from the filter (an OR, a function, a different column expression) so the optimiser can't match it; the index doesn't cover the query and a scan looks cheaper on the cost estimate; or statistics on the filtered index are stale (they update on modifications to the filtered rows only, so they can lag). In EF Core, keep global query filters as simple literals (DeletedAt == null becomes IS NULL), use EF.Constant (EF Core 8+) where a fixed value matters, include the projected columns, and verify the seek in the actual plan.
Checks that the candidate understands how the optimiser matches filtered indexes, why parameterisation and predicate shape matter, and how to make EF Core generate SQL that uses them.
Green flags
Red flags
Last updated 23 Nov 2026.