THE UNIVERSITY OF TRINIDAD & TOBAGO



Similar documents
THE UNIVERSITY OF TRINIDAD & TOBAGO FINAL ASSESSMENT/EXAMINATIONS DECEMBER 2012

THE UNIVERSITY OF TRINIDAD & TOBAGO

FINAL ASSESSMENT/EXAMINATION JULY 2015 PLEASE READ ALL INSTRUCTIONS CAREFULLY BEFORE YOU BEGIN THIS EXAMINATION

THE UNIVERSITY OF TRINIDAD & TOBAGO

THE UNIVERSITY OF TRINIDAD & TOBAGO

Transactions. SET08104 Database Systems. Napier University

City University of Hong Kong. Information on a Course offered by Department of Computer Science with effect from Semester A in 2014 / 2015

Lecture 7: Concurrency control. Rasmus Pagh

Introduction to Database Management Systems

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur

Goals. Managing Multi-User Databases. Database Administration. DBA Tasks. (Kroenke, Chapter 9) Database Administration. Concurrency Control

Transactions and the Internet

Database Tuning and Physical Design: Execution of Transactions

Comp 5311 Database Management Systems. 16. Review 2 (Physical Level)

Module Contact: Dr. Beatriz de la Iglesia, CMP Copyright of the University of East Anglia Version 1

Transactions and Concurrency Control. Goals. Database Administration. (Manga Guide to DB, Chapter 5, pg , ) Database Administration

Transaction Management Overview

Concepts of Database Management Seventh Edition. Chapter 7 DBMS Functions

Part I: Entity Relationship Diagrams and SQL (40/100 Pt.)

DATABASE MANAGEMENT SYSTEMS. Question Bank:

Scheme G. Sample Test Paper-I

How To Write A Computer System Design Assignment

B2.2-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

Database Sample Examination

Database Systems. Lecture Handout 1. Dr Paolo Guagliardo. University of Edinburgh. 21 September 2015

Course Content. Transactions and Concurrency Control. Objectives of Lecture 4 Transactions and Concurrency Control

Northeastern University Online College of Professional Studies Course Syllabus

Relational Database Basics Review

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

Exam day checklist 1. Before the exam starts and

Ursuline College Accelerated Program

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Chapter 6 The database Language SQL as a tutorial

The ConTract Model. Helmut Wächter, Andreas Reuter. November 9, 1999

Transactional properties of DBS

Developing Microsoft SQL Server Databases (20464) H8N64S

Introduction to Databases

Transactions and Recovery. Database Systems Lecture 15 Natasha Alechina

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

1.264 Lecture 15. SQL transactions, security, indexes

Homework 8. Revision : 2015/04/14 08:13

Principles of Distributed Database Systems

b. Examine the following histories. Draw their serialization graph and identify which of them is serializable given reasons.

Data Management in the Cloud

Transactions, Views, Indexes. Controlling Concurrent Behavior Virtual and Materialized Views Speeding Accesses to Data

DETAILED RISK ASSESSMENT REPORT

Chapter 3 - Data Replication and Materialized Integration

Transaction Management in Distributed Database Systems: the Case of Oracle s Two-Phase Commit

New method for data replication in distributed heterogeneous database systems

Information and Communications Technology Courses at a Glance

Transactions: Definition. Transactional properties of DBS. Transactions: Management in DBS. Transactions: Read/Write Model

MSc Information Technology - E521

20464C: Developing Microsoft SQL Server Databases

Database Management. Chapter Objectives

Oracle Architecture, Concepts & Facilities

Database Replication Techniques: a Three Parameter Classification

Definition of SOA. Capgemini University Technology Services School Capgemini - All rights reserved November 2006 SOA for Software Architects/ 2

Concurrency Control. Module 6, Lectures 1 and 2

Data Reporting and Presentation using Advanced Excel ( 30 Hrs)

INTERNATIONAL ENGLISH LANGUAGE TESTING SYSTEM

Roadmap DB Sys. Design & Impl. Detailed Roadmap. Paper. Transactions - dfn. Reminders: Locking and Consistency

Dr. Z. A. Usmani, Mohsin,Diksha,Husainali,AbdulKadir Page 15

Note: Non JCQ awarding bodies have their own reporting forms and these would be used where appropriate.

Distributed Architectures. Distributed Databases. Distributed Databases. Distributed Databases

PostgreSQL Concurrency Issues

HP Application Lifecycle Management (ALM)

SAMPLE FINAL EXAMINATION SPRING SESSION 2015

Mark: Moderated Final

Malpractice Policy BMAT

THE CHARTERED INSURANCE INSTITUTE. Read the instructions on page 3 carefully before answering any questions.

(Pessimistic) Timestamp Ordering. Rules for read and write Operations. Pessimistic Timestamp Ordering. Write Operations and Timestamps

MS-40074: Microsoft SQL Server 2014 for Oracle DBAs

Database Security. The Need for Database Security

Document 12. Open Awards Malpractice and Maladministration Policy and Procedures

How to Setup SQL Server Replication

BCS Higher Education Qualifications. Database Systems Syllabus

UNIVERSITY OF MANITOBA I.H. ASPER SCHOOL OF BUSINESS DEPARTMENT OF MARKETING FUNDAMENTALS OF MARKETING MKT2210-A03 WINTER 2014

SQL Server Database Coding Standards and Guidelines

A Shared-nothing cluster system: Postgres-XC

Online Basic Statistics

MOC 20462C: Administering Microsoft SQL Server Databases

Oracle Database Links Part 2 - Distributed Transactions Written and presented by Joel Goodman October 15th 2009

Integrated Network Vulnerability Scanning & Penetration Testing SAINTcorporation.com

THE BCS PROFESSIONAL EXAMINATIONS Professional Graduate Diploma. Advanced Database Management Systems

VOIP Attacks On The Rise

Simulations of the implementation of primary copy two-phase locking in distributed database systems

ITEC Malpractice & Maladministration Policy

Architecting Disconnected Mobile Applications

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

VIDEO intypedia007en LESSON 7: WEB APPLICATION SECURITY - INTRODUCTION TO SQL INJECTION TECHNIQUES. AUTHOR: Chema Alonso

TYPICAL QUESTIONS & ANSWERS

Unit 5.1 The Database Concept

Pronto: High Availability for Standard Off-the-shelf Databases

Course Outline. Fall Session 2015 A03

Transcription:

THE UNIVERSITY OF TRINIDAD & TOBAGO FINAL ASSESSMENT/EXAMINATIONS SEPTEMBER/DECEMBER 2014 Course Code and Title: DBST5001 - Advanced Databases Programme: Masters of Science (MSc.) in Information and Communications Technology (ICT) Date and Time: Duration: 3 hours PLEASE READ ALL INSTRUCTIONS CAREFULLY BEFORE YOU BEGIN THIS EXAMINATION Instructions to Candidates 1. This paper has five (5) pages and three (3) sections. 2. You are required to answer only three (3) questions in Section A. Only the first three (3) responses will be marked. 3. You are required to answer all questions in Section B. 4. You are required to answer only one (1) question in Section C. Only the first response will be marked. 5. Use the answer booklet for all answers. 6. Write your Student ID in the space provided at the top of each page Key Examination Protocol 1. Students please note that academic dishonesty (or cheating) includes but is not limited to plagiarism, collusion, falsification, replication, taking unauthorized notes or devices into an examination, obtaining an unauthorized copy of the examination paper, communicating or trying to communicate with another candidate during the examination, and being a party to impersonation in relation to an examination. 2. The above mentioned and any other actions which compromise the integrity of the academic evaluation process will be fully investigated and addressed in accordance with UTT s academic regulations. 3. Please be reminded that speaking without the Invigilator s permission is NOT allowed. Page 1 of 5

SECTION A ( 30 marks ) Provide brief explanation, description, or discussion. State any assumptions you might have to avoid overly lengthy answers. Choose only three (3) questions. Only the first three responses will be marked. 1. Discuss the terms two-phase locking and Serializability. Give examples and/or diagrams to illustrate your answer (hint: discuss the two distinct phases of two-phase locking and the role of serial and interleaved schedules). 2. Describe the potential problems that may occur in a multi-user database if concurrency control techniques are not fully implemented (hint: how data may be damaged or lost, supported by a time-line diagram of two transactions accessing the same database). Give simple examples and/or diagrams to illustrate your answer. 3. Explain each of the following transaction management terms. As examples write a single sentence explaining the key idea. Each is worth two (2) marks (hint: you are writing very brief two (2) sentence description for each). a. Schedule b. Cascaded rollback c. Optimistic locking d. Pessimistic locking e. Checkpoint 4. Describe the term database transaction, explain what the ACID properties are and how they affect the behaviour of database transactions. Give simple examples and/or diagrams to illustrate your answer. Page 2 of 5

Answer all questions. SECTION B ( 45 marks ) Question 1 The following database contains Information about actors, plays, and roles performed. Customer(custID, firstname, midinit, lastmame, dob, email, phone) Vehicle (RegNum, type, Model, DateManufactured) Registration (custid, RegNum, Date) Repair(InvoiceNum, custid, RegNum, Date, Cost) 1. Write the SQL statements that define the relational schema (tables) for this database. Identify all appropriate keys. 2. Write the equivalent SQL query statements for the following: a. π Type(Vehicle) b. COUNT RegNum( Date < "01/01/06" (Registration)) c. RegNum COUNT InvoiceNum(Repair) d. π CustID, InvoiceNum(Registration X Repair) e. π CustID( MAX Cost (Repair)) f. π RegNum, Date(Repair= RegNum=RegNum Vehicle) 3. Give the relational algebra for the following: [12 marks] a. List all customer's names and phone numbers. b. List the registration number and manufacturer date of all vehicles that have been registered. c. List the registration numbers of all vehicles that have been repaired at least twice. d. List the names of all customers who have registered a vehicle that was manufactured after 01/01/2005. [8 marks] Page 3 of 5

4. Write an SQL query to find the customer name and phone numbers for all customers who have repaired their vehicles at least twice. Then, give a relational algebra query plan drawn as a tree that correctly computes this query. Question 2 Provide a graph and tree representation for the following case: Produce a wait-for-graph (WFG) for the following transaction scenario in a centralized database system. [3 marks] Transaction Data items locked by transaction Data items that transaction is waiting for T 1 x 2 x 1, x 3 T 2 x 3, x 10 x 7, x 8 T 3 x 8 x 4, x 5 T 4 x 7 x 1 T 5 x 1, x 5 x 3 T 6 x 4, x 9 x 6 T 7 x 6 x 5 Determine whether deadlock exists for the scenario above. [2 marks] Page 4 of 5

SECTION C ( 25 marks ) Provide a well formed explanation, description, or discussion. State any assumptions you might have to avoid overly lengthy answers. Answer only one (1) question. Only the first response will be marked. Question 1 a. Describe the different methods & tools that an end-user may use to interact with a data warehouse, briefly highlighting the primary purpose of each. b. Explain the interest in Data warehouses today? c. The term Big Data is trending today, compare and contrast the terms big data and data warehouse. d. It has been said that when producing a data model for a Data Warehouse, it is not so useful to go through the process of normalization and that in many cases achieving only First Normal Form is appropriate. Comment on these remarks showing reasons why such statements have been made. e. Explain the characteristics, associated techniques and typical applications for database segmentation. Question 2 Security is a major concern in database systems. a. Responsibility and Confidentiality are two concerns when dealing with data warehouse security, explain what these mean and why. b. Describe the two (2) firewall techniques. c. Using examples, discuss how Triggers can contribute to the security of a database, before and after a security breach. d. Describe two (2) mechanisms for guarding against SQL injection. e. Explain the SET (Secure Electronic Transactions) protocol. ----THE END--- Page 5 of 5