Ricciardo was 0.131 seconds speedier than Hamilton, who had a turn right on time in the session, with Max Verstappen’s Red Bull in front of Sebastian Vettel.
Vettel was just 0.032secs off Hamilton as the Ferrari driver sticks to his blurring title trusts.
Hamilton needs just to complete fifth on Sunday to secure a fourth title.
In the event that Vettel is second in the race, Hamilton needs just ninth to secure the title. On the off chance that the German completes anyplace else, Hamilton takes the crown in any case.
The 32-year-old Briton had all the earmarks of being battling, his turn ahead of schedule in the second session following his being almost 0.5secs slower than Bottas in the first.
Be that as it may, he finished the session 0.3secs snappier than Bottas and with a stunningly snappy race-recreation keep running in the second piece of the session.
“The car did not feel great this morning,” said Hamilton. “I made some good changes and then had that big spin and destroyed that first set of tyres, but fortunately recovered with not such a bad couple of laps on the ultra-soft and then I did a very long run – 27 laps.
“I think it is going to be close. I was expecting us potentially to be worse off here but it is looking quite good.”
Hamilton and Ricciardo were equally coordinated on long-run pace when contrasting their comparable laps – however the Australian halted his after only four circuits while Hamilton went ahead to complete a colossal 27-lap run.
Vettel showed up about a large portion of a moment slower than the Mercedes and Ferrari however his pace may have been influenced by the way that his session was disturbed by a specialized issue, and he said he was not content with the adjust of the car.
In any case, Red Bull don’t have the additional power mode in qualifying trim so will probably need to battle past the Mercedes and Ferraris in the event that they are to vie for the triumph.