SPB 2304 - Database Administration Year III Semester I 2019
SPB 2304 - Database Administration Year III Semester I 2019
UPDATE customer
SET discount discount+0.03
WHERE customerArea = Kisumu"
COMMIT;
i. Explain the meaning of a database transaction and give two of its functions.
(3marks)
ii. Describe the output of the above transaction. (3 marks)
iii. Assume the UPDATE fails to COMMIT and is unable to fully complete its
execution. Explain the effect this might have on database integrity, assuming
there were no concurrency control mechanisms (3 marks)
b. Using examples explain how database transactions can be
i.Blocked. (2 marks)
ii.Deadlocked (2 marks)
c. Describe two main techniques that can be used to counter or minimise the
impact of deadlocks in a highly concurrent system. (4 marks)
d. Describe an appropriate database security control for each of the following
security threats:
i. SQL injection. (2 marks)
ii. An employee making mistakes while entering data. (2 marks)
iii. A hacker intercepting data sent over the internet. (2 marks)
Page 1 of 3
e. Using examples from the realm of distributed databases, explain the terms
'replication' and 'fragmentation '. (4 Marks)
f) Discuss three main technical challenges that a database Administrator face (3 Marks)
b. Consider the phrase 'OLAP'. Explain what the term means, the underlying
Page 2 of 3
concepts involved, any associated benefits or limitations, typical applications
and features along with any additional technical or implementation points
you think appropriate to mention. You should support your discussion with
suitable diagrams and/or examples. (5 Marks)
c. Suppose there are four indexes as follows:
• Indexl (empID)
• Index2 (firstName)
• Index3 (lastName)
• Index4 (salary)
i. Select two indexes from the above list, that if built and available, will
resulting improved performance. Explain you answer (6 marks)
ii. Describe three disadvantages of using indexes (3 marks)
A firm runs a telephone sales service for concert tickets. The service is outsourced to a
number of call centres all of which access the same database. Database integrity must be
maintained and customers' personal details must be kept secure.
a) Explain two reasons why customers' personal details must be kept secure. (2 marks)
b) Identify three ways that unauthorized access to a customer's record might occur.
(3marks)
c) Explain two ways how this (in b above) unauthorized access might be prevented.
(4marks)
d) Explain what is meant by Database Integrity (2marks)
e) Concurrent (simultaneous) access to a data item by more than one transaction
can cause problems. Outline four problems that might be caused by concurrent
access. (4marks)
f) Describe how the locking mechanism works in a database (5marks)
Page 3 of 3