As we know the memory hierarchy , from CPU registers are closer and also they are in built in the chip so that cpu can access data from registers fastely. then , if data is not present in registers then goes to cache memory if hit then take the data otherwise from RAM (main memroy ) , then comes secondary memory. so fastest hierarchy is : REGISTERS > CACHE > MAIN MEMORY(RAM) > SECONDARY MEMORY.
HENCE , ANSWER IS 2