Home Notes Papers

Data storage

Paper 1

This section is examined in Paper 1.

Primary vs Secondary Storage
Primary storage (main memory) is the memory directly accessible by the CPU. It holds data and instructions that are currently in use or being processed. It is critical to understand that primary storage includes both volatile memory (like RAM, which loses data when power is off) and non-volatile memory (like ROM, which retains data without power). The operating system firmware is stored in ROM (non-volatile primary), while active parts of the OS are loaded into RAM (volatile primary) for processing.

Secondary storage is used for permanent, long-term storage of files, software, and data that are not currently required by the CPU. It is non-volatile. Building on the concept of primary storage, secondary storage acts as a repository; when data is needed, it must be transferred from secondary to primary storage before the CPU can access it.

Primary Storage
Primary storage is the internal memory of a computer system that provides fast, direct access to the CPU for data and instructions currently in use. It includes RAM (Random Access Memory) which is volatile, and ROM (Read Only Memory) which is non-volatile.
Secondary Storage
Secondary storage refers to external or internal devices used for the permanent, non-volatile storage of data and programs when they are not in active use by the CPU. Examples include Hard Disk Drives (HDDs), Solid State Drives (SSDs), and Optical discs.
Secondary Storage Technologies: Operation
To describe the operation of secondary storage, you must explain how binary data (0s and 1s) is physically represented and read.

1. Magnetic Storage (e.g., Hard Disk Drive - HDD)
Data is stored on rotating platters coated with magnetic material. The operation relies on magnetic polarity. A read/write head magnetizes tiny regions of the platter surface. Binary data is encoded via magnetic transitions: a change in magnetic polarity (e.g., from North to South) represents a binary 1, while no change (or a specific stable state like South to North) represents a binary 0. The sensor detects these magnetic field changes as the platter spins.

2. Optical Storage (e.g., CD, DVD, Blu-ray)
Data is stored on a reflective disc surface containing microscopic indentations called pits and flat areas called lands. A laser beam shines onto the disc. The operation relies on light reflection: when the laser hits a land, it reflects strongly back to a sensor (representing one binary value, typically 1); when it hits a pit, the light scatters or is absorbed with little reflection (representing the other binary value, typically 0). The sensor converts these changes in reflected light intensity into digital data.

3. Solid-State Storage (Flash Memory - e.g., SSD, USB Drive)
This uses integrated circuits with no moving parts. Data is stored in floating-gate transistors. The operation involves trapping electrons within the floating gate of a transistor. The presence or absence of these trapped electrons changes the threshold voltage required to turn the transistor on or off, representing binary 1 and 0. Because there are no mechanical parts, data access is significantly faster than magnetic storage.

Examples of Storage Types
Examples
Hard Disk Drive (HDD), Magnetic Tape, Floppy Disk
Compact Disc (CD), Digital Versatile Disc (DVD), Blu-ray Disc
Solid State Drive (SSD), USB Flash Drive, SD Card
⚠︎ Misconceptions in Storage Classification
Mistake: Stating that 'USB' is an example of optical storage or magnetic storage.
Correction: A USB drive is a Solid-State (Flash) storage device. It uses electronic circuits, not lasers or magnets. Similarly, do not classify an HDD as optical; it uses magnetic fields, not light reflection.

Mistake: Claiming that primary storage is always volatile.
Correction: Primary storage includes both RAM (volatile) and ROM (non-volatile). While RAM loses data without power, ROM retains the firmware/BIOS permanently.

Describing Storage Operation
When to use: When asked to 'describe the operation' of magnetic or optical storage.
Why examiners accept this: Examiners look for specific physical mechanisms, not just general functions. You must mention how the binary data is physically represented.
Correct Usage Example: For magnetic storage, write: 'Data is encoded as magnetic polarity transitions on the platter surface.' For optical storage, write: 'A laser detects differences in reflection between pits and lands to read binary data.' Avoid vague phrases like 'it stores data' or 'it uses a laser' without explaining the reflection mechanism.
Virtual Memory
Virtual memory is a technique that allows a computer to compensate for shortages of physical RAM by temporarily transferring pages of data from RAM to storage on the hard disk (secondary storage).

How it is created and used: The operating system manages a portion of secondary storage as an extension of primary memory. When RAM is full, inactive blocks of data are moved ('paged out') to this virtual memory space on the disk. When those data are needed again, they are moved back into RAM ('paged in').

Why it is necessary: It allows programs larger than the available physical RAM to run. Without virtual memory, a computer would crash or fail to load large applications when RAM is exhausted. However, because secondary storage is slower than RAM, excessive use of virtual memory can slow down the system.

Cloud Storage
Cloud storage is a model of data storage where digital data is stored in logical pools, said to be on 'the cloud'. The physical storage spans multiple servers (sometimes in multiple locations), and the physical environment is typically owned and managed by a hosting company. Users access this data via the internet.
Cloud vs Local Storage: Advantages and Disadvantages

Advantages of Cloud Storage:

  1. Accessibility: Data can be accessed from any device with an internet connection, anywhere in the world.
  2. Cost/Device Independence: Users do not need to purchase expensive local secondary storage devices (like large HDDs) for every device.
  3. Maintenance: The cloud provider manages hardware maintenance, updates, and security patches.
  4. Scalability: Storage capacity can be easily increased or decreased as needed without buying new hardware.

Disadvantages of Cloud Storage:

  1. Internet Dependency: Data cannot be accessed if the internet connection is lost or unavailable.
  2. Security/Privacy: Data is stored on third-party servers, raising concerns about data breaches, unauthorized access, or lack of control over who accesses the data.
  3. Cost: While initial hardware costs are low, ongoing subscription fees can accumulate over time.
  4. Reliability: If the cloud provider experiences downtime or goes out of business, users may lose access to their data.
⚠︎ Cloud Storage Misconceptions
Mistake: Claiming that cloud data can be accessed 'without Wi-Fi' or 'offline'.
Correction: Cloud storage requires an internet connection (wired or wireless) to access the remote servers. Offline access is only possible if the data has been previously synced/downloaded to a local device, but the storage itself is remote.

Mistake: Giving advantages that apply to all storage, not just cloud.
Correction: Do not say 'it is faster than RAM' (it is slower). Do not say 'it is non-volatile' as a unique advantage (local HDDs are also non-volatile). Focus on accessibility, remote management, and no local hardware cost.

Explaining Cloud Storage Advantages
When to use: When asked to 'explain the advantages' of cloud storage.
Why examiners accept this: Examiners want specific benefits related to the remote nature of the service. Generic answers like 'it is good' get no marks.
Correct Usage Example: Write: 'Data can be accessed from any smart speaker or device with internet connectivity, allowing seamless use across multiple locations.' Or: 'The user does not need to purchase and maintain local secondary storage hardware.' Ensure you mention accessibility or cost/hardware avoidance.
Common Exam Questions
Q:
Describe the operation of magnetic storage.
A:
Data is stored as magnetic polarity on rotating platters. Binary 1s and 0s are represented by transitions in the magnetic field (e.g., North-South vs South-North) detected by a read head.
Q:
Give two advantages of cloud storage over local storage.
A:
  1. Data can be accessed from any device with an internet connection.
  2. No need to purchase or maintain physical secondary storage hardware.
Q:
Explain why virtual memory is necessary.
A:
Virtual memory is necessary to allow programs larger than the available physical RAM to run by using secondary storage as an extension of primary memory when RAM is full.
Q:
Identify one example of optical storage and explain how it stores data.
A:
Example: Blu-ray disc. It stores data using pits and lands on a reflective surface; a laser detects changes in reflection to read binary data.
Beta v0.7.8 Free while we're in beta — it transitions to paid post launch. Thank you for supporting us at this stage!