SSD’s and HDD’s are secondary memories and they are in charge of storing data. Its function is to store large amounts of data and prevent them from being lost with the shutdown of the computer. The secondary memory does not have direct access to the CPU, but to access it you need to go through the main memory (RAM).