Cambridge AS Level Computer Science 9618 · 8.3 Data Definition Language (DDL) and Data Manipulation Language (DML)

Q22 · 9618/13/O/N/23 Q3

Worked solution from the Databases Paper 1 Theory Fundamentals booklet, Part 2 of 2.

Q229618/13/O/N/23original Q3Structured · 18 marks
Question 3 from 9618/13/O/N/23

Worked solution

(a)(i)

Give two reasons (any two of these; only two marks are available):

The courses must be available to anyone who wants to follow them [1]

The courses must be available on the internet [1]

The company is willing to share infrastructure with other companies (public cloud)

...which is more economic for the company

(a)(ii)

Describe two disadvantages, each with its reason:

Loss of control of the data [1]

...because it is stored on someone else's infrastructure and the company relies on them for tasks such as backups and security [1]

Needs a reliable internet connection [1]

...to reach the data; a LAN server is easier to reach [1]

Increased recurring costs (provider charges against a one-off LAN cost) is also accepted.

(a)(iii)

Write one use for each:

Firewall: monitors incoming and outgoing traffic and blocks traffic that does not meet its rules [1]

Encryption: if data is intercepted it cannot be understood without the decryption key [1]

Passwords: only users with the correct password can get in, which stops unauthorised access [1]

(b)(i)

Draw both lines with the crow's foot at COURSE_SCHEDULE:

COURSE_SCHEDULE M : 1 TUTOR COURSE_SCHEDULE M : 1 COURSE_INFORMATION

Both 1:M relationships drawn correctly [1]

(b)(ii)

Count CourseID in COURSE_SCHEDULE where the start date is after 9 September 2023, and name the result.

SELECT COUNT(CourseID) AS NumOfCourses
FROM COURSE_SCHEDULE
WHERE DateStarted > "09/09/23";

SELECT COUNT(CourseID) [1]

AS NumOfCourses (any suitable field name) [1]

FROM COURSE_SCHEDULE [1]

WHERE DateStarted > "09/09/23" [1]

(c)

Write two verification methods, each with how it works:

Visual check: the officer checks by eye [1]

...that the tutor ID typed matches the ID on the original document [1]

Double entry: the officer (or a second person) types the ID a second time [1]

...and the system compares it with the first entry [1]

KEY IDEAVerification checks data was copied correctly, by a visual check or by double entry.
TOTAL 18 marks

Official mark scheme

Mark scheme for 9618/13/O/N/23 question 3
VIDEO
▶ Starts at Q3 (8:47)

Starts at Q3 (8:47) · by Pseudocode Pro. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.