Having made up four places in the Sao Paulo F1 Sprint to secure two points, Ferrari's seven-time world champion Lewis Hamilton endured a shock Q2 exit in the grand prix qualifying.