CIE IGCSE | 3.3 Data Storage

Lesson objective

Distinguish primary and secondary storage, describe magnetic, optical and solid-state operation, explain virtual memory, and evaluate cloud versus local storage.

Learn

3.3 | PRIMARY, SECONDARY AND CLOUD STORAGE

01 | WHERE IS THE DATA?

Cloud describes where/how storage is accessed, not a new physical storage material
CategoryMain roleExamples
Primary storageInstructions and data directly accessible by the CPURAM and ROM
Secondary storageLonger-term storage, accessed through input/output systems rather than directly as main memoryHDD, SSD, optical disc, SD card, USB drive
Cloud storageRemote storage accessed through a network serviceFiles held on a provider’s servers

Opening a saved document usually brings the data needed for processing from secondary storage into RAM. The CPU works with memory; saving writes the document back to longer-term storage.

Do not decide the category only by whether a device is inside the case. An internal SSD is secondary storage. ROM is primary storage even though it retains its contents without power.

02 | RAM: THE WORKING SPACE

Random access memory (RAM) holds instructions and data currently in use. It is read/write memory: the system can obtain values from it and change them.

RAM is volatile, meaning its contents are lost when power is removed. A running application and unsaved changes may be held in RAM; RAM alone does not preserve them after shutdown.

More RAM can allow a larger working set or more applications to stay in main memory, reducing pressure to use slower virtual memory. It does not automatically make every calculation faster.

03 | ROM: KEEP ESSENTIAL STARTUP CODE

Read-only memory (ROM) is non-volatile memory commonly used to hold essential firmware or startup instructions. The data remains when power is removed.

At startup, the system needs instructions before a normal application is loaded into RAM. Non-volatile firmware supplies that starting point.

In the basic syllabus comparison, ROM is not changed during ordinary use, whereas RAM is routinely written to. Some practical firmware memory is reprogrammable using a controlled update process; “read-only” does not mean no hardware technology can ever be updated.

A computer needs working memory and persistent startup instructions
PropertyRAMROM
Power removedContents lostContents retained
Ordinary useRead and write working dataRead essential stored instructions
Typical purposeRunning programs and current dataFirmware / startup code

04 | SECONDARY STORAGE: SAVE FOR LATER

Secondary storage preserves programs and files beyond the current running session. The devices discussed here are non-volatile.

An SSD can keep a saved essay, while RAM holds the current editable copy. If you type a change but do not save it, the saved version and working version may differ.

Secondary storage generally offers more capacity at lower cost per unit than main memory, but access is typically slower. Exact costs and speeds depend on the devices.

05 | MAGNETIC STORAGE: HDDs

A hard disk drive (HDD) stores data as magnetic patterns on rotating platters. The surface is organised into tracks and sectors.

A moving read/write head accesses the relevant area. Writing changes magnetic states using an electromagnet; reading detects stored patterns and the drive electronics interpret them as data.

Advantages: commonly high capacity and competitive cost per unit. Drawbacks: moving parts introduce seek and rotational delays, noise and sensitivity to mechanical shock.

Magnetic patterns represent binary information. The drive does not store printed 0 and 1 characters on the surface.

06 | OPTICAL STORAGE: LIGHT AND SURFACE PATTERNS

CDs, DVDs and Blu-ray discs use a laser and detector to read an encoded pattern along a track. Pits and lands, or equivalent changes in recordable media, alter the reflected signal.

The electronics interpret the detected pattern as data. It is too simplistic to say every pit directly equals 1 and every land equals 0; encoding uses the detected pattern and transitions.

Writable media use laser-controlled changes to a recording layer. Not every optical disc is rewritable; some are pressed read-only or can be written only once.

Uses: media distribution and removable copies where suitable drives are available. Limitations: scratches, drive requirements, access speed and capacity compared with many modern storage options.

07 | SOLID-STATE STORAGE: ELECTRICAL STATES

SSDs, SD cards and USB flash drives store data electronically with no moving read/write mechanism. They use flash memory cells built from transistors.

In the syllabus floating-gate model, a control gate helps change or sense charge stored on an insulated floating gate. The stored charge changes the transistor’s behaviour, allowing states to represent data even after power is removed.

Flash storage uses NAND or NOR arrangements. Modern designs can use different cell structures and store multiple bits per cell, but the key concept is non-volatile electrical storage rather than rotating magnetic surfaces.

Advantages: fast access, low mechanical noise, compact form and better resistance to movement-related damage. Limitations: finite write endurance and costs that depend on capacity and design. No moving parts does not make a device indestructible.

08 | COMPARE THE PHYSICAL METHODS

Match the method to the scenario, not only the device’s appearance
MethodHow data is representedExamplesUseful comparison
MagneticMagnetic states on a surfaceHDDHigh capacity; mechanical access delays
OpticalPattern affecting reflected laser lightCD, DVD, Blu-rayRemovable discs; optical drive needed
Solid-stateStored electrical states in flash cellsSSD, SD card, USB driveNo mechanical read/write motion; fast access

For a portable system exposed to movement, solid-state storage may suit better than a spinning HDD because it avoids moving read/write parts. For a large archive, capacity and cost may dominate. Compare actual requirements.

09 | VIRTUAL MEMORY: WHEN RAM IS UNDER PRESSURE

Virtual memory uses secondary storage as backing for parts of a process’s memory. In the syllabus model, when RAM is insufficient, the operating system can move selected pages from RAM to secondary storage and bring needed pages back.

A page is a fixed-size block of memory data. A page needed by the CPU must be available in RAM before normal processing can use it; the CPU does not treat an HDD as equally fast RAM.

  1. The working data exceeds available RAM.
  2. The operating system moves suitable pages out to backing storage, freeing RAM.
  3. If a moved page is needed later, it is brought back into RAM.
  4. Another suitable page may be moved out to make space.

This can allow programs to continue, but page transfers to secondary storage are slower than RAM access. Frequent paging can make the system noticeably slow.

10 | A SMALL PAGING EXAMPLE

Suppose a simplified model has space for three working pages in RAM, but a program needs four pages, A, B, C and D.

An illustrative replacement sequence; real operating systems choose pages using their own policies
MomentRAMBacking storageAction
StartA, B, CDD is not currently in RAM
Need DA, C, DBMove B out and bring D in
Need B againB, C, DAMove A out and bring B in

The program can access all four pages over time, but transfers add delay. Virtual memory does not create physical RAM or make storage faster. Adding suitable RAM can reduce paging when the working set would then fit.

11 | CLOUD STORAGE IS STILL PHYSICAL STORAGE

Cloud storage means storing data on remote servers accessed through a network, often the internet. A provider manages the storage infrastructure.

Files still exist on physical storage hardware in data centres. The term “cloud” does not mean the data has no physical location.

A service may keep a local synchronised copy, allow downloads for offline use or provide only remote access to particular data. The behaviour depends on the service and settings.

12 | CLOUD VERSUS LOCAL

Neither location alone guarantees security or preservation
FactorCloud storageLocal storage
AccessCan support access from multiple authorised devices and locationsAvailable on the device or local system; remote access needs extra arrangements
ConnectionRemote operations depend on a working networkLocal files can be used without internet
SharingServices often offer controlled sharingCopies or a local sharing system may be needed
Capacity / managementProvider manages hardware; plans and quotas varyOwner manages device capacity and maintenance
SpeedAffected by network and service as well as storageAffected by the local device and connection
RisksProvider outage, account access and privacy concernsDevice failure, loss or theft; owner needs backups

Cloud can be useful for collaboration and access across devices. Local storage can be useful for large files, offline work and direct control. Many users combine both.

13 | SYNC IS NOT THE SAME AS BACKUP

Synchronisation keeps selected locations aligned. Deleting or damaging a file locally may therefore propagate to a synced cloud copy.

A backup is a separately retained recovery copy or history. Some cloud services provide version history and recovery, but retention and settings vary.

Do not assume cloud storage is automatically secure, unlimited or immune to data loss. Account controls, permissions, provider arrangements and independent recovery copies matter.

14 | CHOOSE AND EXPLAIN

Running several large applications: sufficient RAM can keep more working data in main memory and reduce paging.

Portable working files: an SSD offers non-volatile storage without mechanical read/write motion.

Sharing a group document: cloud storage may provide convenient authorised access, but requires suitable connectivity and permissions.

Working without internet: a local copy avoids dependence on the remote connection.

In an explanation, link the property to its consequence: “RAM access is faster than paging to secondary storage, therefore reducing paging can improve responsiveness.”

MATCH THE PROCESSING ROLE

Terminology

Terminology

Primary storage

Storage directly accessible by the CPU, including RAM and ROM in this syllabus.

Secondary storage

Longer-term storage accessed through input/output systems rather than directly as main memory.

RAM

Volatile read/write memory holding instructions and data currently in use.

ROM

Non-volatile memory commonly holding firmware or startup instructions.

Volatile

Loses its contents when power is removed.

Non-volatile

Retains its contents without power.

Magnetic storage

Storage representing data using magnetic states.

Track / sector

Organisational divisions of a magnetic disk surface.

Optical storage

Storage read using laser light and a detector.

Solid-state storage

Electronic storage without a mechanical read/write mechanism.

Flash memory

Non-volatile electronic memory using electrically stored states.

Virtual memory

Memory management using secondary storage as backing for pages not held in RAM.

Page

A fixed-size block of memory data used in paging.

Paging

Moving pages between RAM and backing storage as required.

Cloud storage

Remote storage accessed using a network service.

Synchronisation

Keeping selected data locations aligned.

Backup

A retained recovery copy or history separate from ordinary working data.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. Which describe RAM?
2. Which describe ROM?
3. Which device uses magnetic platters?
4. Which pairings are correct?
5. Which statements about virtual memory are correct?
6. Which statements about cloud are correct?
7. Which are sensible cautions?
8. Which statements are correct?

EXPLAIN AND COMPARE

Write your answers before revealing each sample.

1. Compare RAM and ROM.

2. Describe how an HDD stores and accesses data.

3. Describe how optical and solid-state storage differ.

4. Explain why virtual memory can slow a computer.

5. Evaluate cloud storage for a student who works on several devices but sometimes has no internet.

6. Explain why a synchronised cloud copy is not automatically an independent backup.

APPLY IT | OPEN, EDIT, SAVE

A student opens a saved document, edits it and saves it. Describe the different roles of secondary storage and RAM. What could be lost if power fails before saving?

Reveal suggested answer

The saved document is preserved on secondary storage. The data needed for editing is held in RAM. Saving writes the changed document back to longer-term storage. Before saving, recent RAM-only changes may be lost when power is removed; the previously saved copy can remain.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for 3.3 Data Storage is coming soon. Complete the matching task and written questions in your exercise book.