PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which of the following attributes can be a primary key in the Task table?

You work as a Database Designer for Hitech Inc. Youare designing a database named Project. The company
takes projects from outside and divides them into tasks (design, coding, etc.). Each task is assigned to only
one employee. You want to use a primary key constraint to uniquely define each row in a table named Task.
The tables are given below:

Which of the following attributes can be a primary key in the Task table?

What data type should you use?

You manage a database named Exams accessed via a website. The website is regularly accessed by users in
different countries. You are redesigning a table named History that records when users have purchased and
taken online exams. You need one of the columns in the History table to record what time of day that auser
has taken an exam. Additionally, you need this column to have time zone awareness. What data type should
you use?

which normal form?

You are designing a database for a sports hostel. There are three types of buildings for which a fixedfee is
charged on per room basis. No player can take two accommodations. You design the following table:

Considering that the P_ID is the primary key, the table is in which normal form? Each correct answer
represents a complete solution. Choose all that apply.

Which of the following normal forms will you use to represent these relationships in the tables?

You work as a Database Administrator for Dowtech Inc. A table named StudentInformation exists in a
database. The table has columns named student_names, student_marks, and student_courses. Some
students who have opted for various courses have got different marks in them. This implies that the table has
two many-to-many relationships. You have to ensure that these two relationships are not represented ina
single table and that the student_name column exists in both tables. Which of the following normal forms will
you use to represent these relationships in the tables?

Which of the following steps will you take to recover the corrupted InnoDBtables?

You work as the Database Administrator for a MySQL database server. In an hour or so, you are able to bring
a corrupted server online. You execute the CHECK TABLE command and find that some of the InnoDB tables
need to be repaired. You restart the server and discover that auto-recover has failed. Which of the following
steps will you take to recover the corrupted InnoDBtables?