Exam 12: Clientserver Database and Distributed Database

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

In a network environment, a centralized database provides local autonomy over the data.

Free
(True/False)
4.8/5
(45)
Correct Answer:
Verified

False

Consider the following relational database for Grand Travel Airlines. Grand Travel Airlines has to keep track of its flight and airplane history. A flight is uniquely identified by the combination of a flight number and a date. Every passenger who has flown on Grand Travel has a unique passenger number. For a particular passenger who has taken a particular flight, the company wants to keep track of the fare that she paid for it and the date that she made the reservation for it. Clearly, a passenger may have taken many flights (he must have taken at least one to be in the database) and every flight has had many passengers on it. A pilot is identified by a unique pilot (or employee) number. A flight on a particular date has exactly one pilot. Each pilot has typically flown many flights but a pilot may be new to the company, is in training, and has not flown any flights, yet. Each airplane has a unique serial number. A flight on a particular date used one airplane. Each airplane has flown on many flights and dates, but a new airplane may not have been used at all, yet. News flash!!! Grand Travel Airlines has decided to reconfigure its database as a distributed database among its four "hub" airport locations: Boston (which is also its headquarters city), Seattle, Nashville, and Columbus, Ohio. Distributed and replicated among these four locations, the tables have the following characteristics: Basically, all of these tables are accessed by all four locations on a fairly equal basis, except that processing at the Boston headquarters tends to be heavier than at the other three hubs. Replication is used primarily for availability purposes in case one of the sites crashes and the replicated copies are dispersed to avoid creating a bottleneck at any one site. Pilot Pilot Date of Date of Number Narne Birth Hire PILOT Relation Flight Departure Arrival Pilot Airplane Number Date Time Time Number Number FLIGHT Relation Passenger Passenger Telephone Number Name Address Number PASSENGER Relation Flight Passenger Reservation Number Date Number Fare Date RESERVATION Relation Airplarne Passenger Year Number Model Capacity Built Marufacturer AIRPLANE Relation PILOT consists of 2,000 records and is located in Boston and Nashville. FLIGHT consists of 1,500 records and is located in Columbus and Seattle. PASSENGER consists of 250,000 records and is located in Columbus and Seattle. RESERVATION consists of 1,500,000 and is located in Boston and Nashville. AIRPLANE consists of 450 records and is located only at headquarters in Boston. Assume that the telecommunications costs among the cities are all about the same. Develop and justify a plan for solving the following queries. a. A query is issued from Nashville to list the names and addresses of the passengers who have reservations for a particular flight on a particular date one month from now. b. A query is issued from Nashville to get a list of the serial number, model, and passenger capacity of the airplanes used on a particular flight (a flight that operates daily) during the last two months. c. A query is issued from Boston to get a list of the serial number, model, and passenger capacity of the airplanes used on a particular flight (a flight that operates daily) during the last two months.

Free
(Essay)
4.8/5
(35)
Correct Answer:
Verified

a. This query requires the PASSENGER and RESERVATION tables. The RESERVATION table is in Nashville, where the query was issued. Since there is only one flight involved and a passenger can have only one reservation on a given flight on a given date, the same number of records of the PASSENGER and RESERVATION tables will be involved. Clearly, the RESERVATION table in Nashville, where the query was issued, will be accessed first to find the passenger numbers of the passengers on the flight. That data will then be shipped to either Columbus or Seattle to get the passenger details and then the results will be sent back to Nashville.

b. In this case, neither of the two tables needed, AIRPLANE and FLIGHT are at the query-issuing city, Nashville. Furthermore, there is no single city on the network that has both tables. About sixty FLIGHT records are involved (one per day for two months) and then up to a maximum of sixty (but probably fewer) AIRPLANE records are involved. The best solution would be to start at the FLIGHT table in either Columbus or Seattle, pull the sixty flight records, get a list of the airplanes used on the flights, ship that information to Boston where the airplane detail data resides, and send the results back to Nashville.

c. This is the same situation as in query b above, except that the query is issued from Boston where the AIRPLANE table is located. Thus Boston can query the FLIGHT table in either Columbus or Seattle, pull the sixty flight records, bring them back to Boston, and complete the query on site.

In the database server approach to client/server database, when a client computer on the LAN needs to query, update, or otherwise use a file on the server, the entire file must be sent from the server to that client.

Free
(True/False)
4.9/5
(39)
Correct Answer:
Verified

False

If the nature of the distributed replicated data and of the applications that use it can tolerate retrieved data not necessarily being up-to-the-minute accurate then a(n) ____ approach to updating replicated data can be used.

(Multiple Choice)
4.7/5
(37)

In a two-tiered client/server arrangement, data can be found on each PC's hard drive and data can be in a database at the server.

(True/False)
4.9/5
(42)

If in a distributed database network, a copy of the entire database is kept at the headquarters site and each table is replicated exactly once at any one of the other sites, the application environment can continue to function even if the headquarters site goes down.

(True/False)
4.9/5
(31)

The purpose of partitioning a table on a distributed network is to locate records of the table at sites at which they are most frequently used.

(True/False)
4.9/5
(36)

A distributed join is never necessary ____.

(Multiple Choice)
4.8/5
(40)

All of the following are true of a centralized database on a network, except ____.

(Multiple Choice)
4.8/5
(41)

The two phases of the two-phase commit process are ____ and commit.

(Multiple Choice)
4.9/5
(33)

Compared to the file server approach, the database server approach to client/server database _____.

(Multiple Choice)
4.8/5
(32)

The two-phase commit process can be used when the ____ approach to updating distributed replicated data is required.

(Multiple Choice)
4.9/5
(42)

The two-phase commit process is used for replicated data that can tolerate having its table copies not being up-to-date all of the time.

(True/False)
4.8/5
(27)

In one use of the term three-tier approach to client/server database the three tiers are the client PCs, servers known as "application servers" and other servers known as "database servers."

(True/False)
5.0/5
(28)

Horizontal partitioning is advisable on a distributed database network ____.

(Multiple Choice)
4.8/5
(31)

The commit phase is the first phase of the two-phase commit process.

(True/False)
4.9/5
(38)

One use of the term three-tier approach to client/server database is that data sought from one of the client PCs can be on any one of a succession of three other PCs on the LAN.

(True/False)
4.9/5
(39)

Partitioned tables in a distributed database network tend to decrease local autonomy over data.

(True/False)
4.9/5
(36)

All of the following are principles of data replication in a distributed database network, except ____.

(Multiple Choice)
4.8/5
(37)

In a three-tier approach to client/server database ____.

(Multiple Choice)
4.8/5
(29)
Showing 1 - 20 of 56
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)