A computer needs a way to store the data as you work on it. This is performed automatically by the computer system and is called primary storage. It is the only memory the CPU can access directly. Primary storage comes in two varieties: RAM (random-access memory), which is lost when the power is turned off and ROM (read-only memory).
The second type of memory is called secondary storage and is sometimes called external memory. Hard disk drives (HDD) and solid state drives (SSD) are both commonly used for secondary storage. Secondary storage saves files and program permanently, even when the power is turned off. Hopefully you already understand the importance of saving files to a hard disk while you are working on them before you turn your computer off. Average internal SSD hard drives have a capacity of around 500 GB to 1 TB and are fast and reliable but more expensive than an internal HDD, which typically have larger storage capacity than SSD.
We can also store data in the cloud on remote servers. Networked and online file servers are designed to allow secure storage of data and are accessible across the Internet. These are large groups of hard drives located in remote places.
Google Data Centres
Google keeps all information stored in different locations across the globe. This means that if they are ever comprised, only part of the data will be stolen.
Sizing it up
Every day, YouTube needs a petabyte of new hard disk space to store approximately 500 hours of video uploaded every minute. A petabyte is approximately 1 000 000 000 000 000 bytes, or more accurately 250 (=10245) bytes. We measure storage in powers of 2. 8 bits = 1 byte. 1024 bytes is said to be 1 KB of storage as 103 is the power of 10 closest to 210