TK Study

Software Engineering › Key terms › Y12 Secure Software Architecture › Race condition

Race condition

Term Key terms bank Y12 Secure Software Architecture

Definition

A fault where the outcome depends on the timing of two or more processes using the same data, so results are unpredictable (for example two users buying the last ticket).

Example: 'Two withdrawals read the same balance at once.' Prevent with locking.

Found in: syllabus, 2025 HSC marking guidelines, sample exam and familiarisation guidelines, school notes.

Short version to memorise (key terms bank)

Outcome depends on the timing of concurrent access to shared data.

Where it is used in the test

Syllabus area: Y12 Secure Software Architecture.

Question types it can appear in

Where it has appeared in the paper

Secure Software Architecture (Part A, B). Part letters follow each paper’s own layout.

Related past questions

These are the questions the flashcard set links to this term. Open each one and compare your answer with its marking criteria.

Study links

How to use it in an answer

A model sentence

General advice, built from the definition and example above

“A fault where the outcome depends on the timing of two or more processes using the same data, so results are unpredictable (for example two users buying the last ticket).” Then apply it: 'Two withdrawals read the same balance at once.' Prevent with locking.

In a short answer, give the definition in your own words first, then tie it to the situation in the question. Do not copy the example above unless it fits the scenario.

Command words used with it

From the linked past questions
  • Identify: Recognise and name. (2025 HSC Q8 (1 mark): User action controls)

Technique for the question types

What the marking guidelines and feedback say

Sample exam Q22b (3 marks): Race conditions

A clearer example for this scenario: two teachers update the same student's Attended count at once; both read 4, both write 5, so one update is lost. Fix: atomic transactions / row locks so the read-modify-write cannot be interleaved. (Reasoned example, not from the MG.)

Worked answers from the marking guidelines

Sample exam Q22b (3 marks): Race conditions (3 marks): criteria and sample answer

Criteria

3: Provides an example of when a race condition may occur AND outlines how secure code could prevent it. 2: Outlines some features of race conditions. 1: Some relevant information.

Sample answer

With multiple teachers potentially accessing the database at the same time, race conditions can allow malicious users to gain unauthorised access. Authentication could be used to restrict access to the database, and code can be written to use atomic transactions and database locks to time the reading and writing of data.

Open the question page

Common mistakes

General advice
  • Use the term exactly as the syllabus words it, then link it to the scenario in the question; the 2025 feedback repeatedly rewards using the stimulus.
  • Answer the command word: outline gives main points only, explain gives a reason or cause, discuss gives both sides.

Same group in the syllabus: Broken authentication and session management · Cross-site scripting (XSS) · Cross-site request forgery (CSRF) · Invalid forwarding and redirecting · File attacks · Side channel attack

← Programmed backupIn Y12 Secure Software ArchitectureRegulatory compliance →