Past questions › sample-q22b
2025 3 marks Short answer Secure Software Architecture (Year 12) Race conditions
NESA HSC Software Engineering Sample Examination + Marking Guidelines (official, 2025)
Race conditions have been identified as a potential issue for this database. Provide an example of when a race condition may occur in this scenario and outline how secure code could be implemented to prevent it. (3 marks, max 75 words)
Marking 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.