Question 1
An organization's database administrator discovers that database query logs contain the full text of SQL queries, including WHERE clauses that specify customer email addresses and account numbers used as filter criteria. What privacy risk does this create?
- A.The logs form an unmanaged copy of personal data outside retention and access rules
- B.The logs expose the database schema, which itself counts as personal data
- C.The logs leave the WHERE clauses open to SQL injection by anyone who can read them
- D.The logs make the administrator personally liable for fines and claims that follow
Answer and explanation
Correct answer: A. The logs form an unmanaged copy of personal data outside retention and access rules
The risk is that the logs form an unmanaged copy of personal data outside retention and access rules: email addresses and account numbers from the WHERE clauses now sit in log storage that may have different retention, access and encryption settings from the database and is often missed in access requests and data mapping. Storage limitation and security under GDPR Articles 5(1)(e) and 32 apply to the logs too, so logging should omit or mask bound parameter values. Why the other options are wrong: a database schema describes tables and columns, not people, so it is not personal data. Reading a log does not open the logged queries to SQL injection, which depends on how an application builds queries from input. GDPR fines and compensation claims are directed at the organization as controller, not at the administrator personally.