Primary Storage
Primary storage is directly accessible by the CPU. It is fast but limited in capacity.
RAM — Random Access Memory
- Volatile — data is lost when power is removed
- Stores the currently running programs and data being actively used
- Fast access speed
- Read/write memory
ROM — Read Only Memory
- Non-volatile — data is permanently stored even without power
- Stores the bootstrap/BIOS — the startup program that loads the OS
- Cannot normally be changed by the user
Secondary Storage
Secondary storage is non-volatile, high-capacity storage for permanent data. It is slower than RAM but retains data without power. Used for storing OS, programs, files, and databases.
HDD — Hard Disk Drive
- Uses magnetic platters (spinning disks) and a read/write head
- Large capacity, low cost per GB
- Slower than SSD; has moving parts — susceptible to physical damage
- Good for archiving large amounts of data cheaply
SSD — Solid State Drive
- Uses flash memory (electronic, no moving parts)
- Much faster than HDD; quieter; more durable; uses less power
- More expensive per GB than HDD
- Good for laptops and where speed is important
Optical Storage (CD / DVD / Blu-ray)
- Data stored as pits and lands on a reflective disc, read by laser
- Low cost; portable; read-only versions (CD-ROM) cannot be accidentally deleted
- Slower access than HDD/SSD; smaller capacity; easily scratched
- Good for distributing software or archiving data
Flash Memory (USB drives, SD cards)
- Portable, solid-state storage with no moving parts
- Easy to connect/disconnect; compact
- Lower capacity than HDD; can wear out over repeated read/write cycles
- Good for portable file transfer
Cloud Storage
Data stored on remote servers accessed via the internet.
| Advantages | Disadvantages |
| Accessible from any device with internet connection | Requires internet access |
| Data is backed up automatically by the provider | Privacy/security concerns — data on third-party servers |
| Scalable — can increase storage easily | Ongoing subscription cost |
| Reduces need for local hardware | Slower access speed than local storage |
Comparing Storage Types
| Storage | Type | Speed | Capacity | Durability | Cost/GB |
| RAM | Primary | Fastest | Small (GBs) | Volatile | High |
| SSD | Secondary | Very fast | Medium (TBs) | Good | Medium |
| HDD | Secondary | Moderate | Large (TBs) | Fragile (moving parts) | Low |
| Optical | Secondary | Slow | Small (GBs) | Can scratch | Very low |
| Flash | Secondary | Fast | Small-medium | Good | Medium |
| Cloud | Remote | Depends on internet | Unlimited | Provider managed | Subscription |
Exam tip: "Compare HDD and SSD" is a very common question. Remember: SSD = faster, no moving parts, more expensive; HDD = slower, has moving parts, cheaper per GB. When asked to "suggest" storage for a scenario, always link your choice to the context — e.g. "SSD because the laptop needs fast access and should be portable and durable."
⚠️ Common Mistakes
- Confusing RAM (volatile) with ROM (non-volatile) — RAM loses data, ROM keeps it
- Saying SSD is cheaper than HDD — it is more expensive per GB
- Saying cloud storage is always reliable — it requires internet and depends on third-party security