Database Systems Fundamentals
- 50Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is a database?
50 questions
- 1
What is a database?
Model answer
A database is a collection of related pieces of data that represents information about a real-world enterprise or part of one.
Explanation
The data in a database is related and organized to represent some aspect of the enterprise.
- 2
Why might a large enterprise need more than one database?
Model answer
A large enterprise may have too much or too varied information for a single database to capture all of its needs, so multiple databases may be used.
Explanation
A database may represent only a particular part or activity of an enterprise.
- 3
What determines which data belongs in a particular database?
Model answer
The data should be related to the database’s purpose and should serve the specific data-management needs of the enterprise.
Explanation
For example, weather data would not normally belong in a university database unless it served a relevant purpose.
- 4
How does a database reflect changes in an enterprise?
Model answer
As the enterprise’s activities and circumstances change, the database is continually updated to reflect those changes.
Explanation
The database supports day-to-day activities by maintaining information about the enterprise’s current state.
- 5
What kinds of information might an academic university database contain?
Model answer
It might contain information about students, faculty, courses, research laboratories, and student course registrations or enrollments.
Explanation
These are examples of information needed to track a university’s academic activities.
- 6
What is the purpose of the university database described in the example?
Model answer
Its purpose is to accurately track the university’s academic activities, rather than every aspect of the university.
Explanation
The database is scoped to the academic affairs of students and related information.
- 7
How does a database differ from a database management system (DBMS)?
Model answer
A database is the collection of related data; a DBMS is software used to create and manage databases.
Explanation
Data could be recorded in physical ledgers, but a DBMS provides software-based database management.
- 8
Why are databases generally designed to be disk-resident?
Model answer
Disk storage can retain large amounts of information for a long time, whereas primary memory is volatile and loses its contents when applications close or power is lost.
Explanation
Long-term persistence is important for database information.
- 9
Why is secondary storage central to database systems?
Model answer
It provides persistent storage for information that must remain available over time, unlike volatile primary memory.
Explanation
Databases are intended to preserve information beyond the lifetime of a running application.
- 10
What role does a DBMS play in retrieving information from a database?
Model answer
It lets users express retrieval requests as queries and returns the requested information.
Explanation
For instance, a user could query whether a student completed a particular course.
- 11
Why does a DBMS aim to execute queries efficiently?
Model answer
Efficient execution returns query results in as little time as possible, which matters especially when the database contains a large amount of data.
Explanation
The amount of stored data can affect how long it takes to retrieve a particular item.
- 12
Why is concurrent access important in a database system?
Model answer
A database often serves many users at once, and handling their requests concurrently is more efficient than answering one request at a time.
Explanation
Concurrent processing can make each user’s interaction appear individual even while the system handles many users.
- 13
What does it mean for a database system to maintain consistency during concurrent use?
Model answer
It means that simultaneous requests must not leave the data in a state that violates the rules of the particular application.
Explanation
The relevant consistency rules depend on the database’s domain.
- 14
In a railway reservation system, what consistency rule should apply to a seat on a particular route?
Model answer
A particular seat between two points on a train should not be allocated to more than one person.
Explanation
The system must enforce this rule even when many users request seats concurrently.
- 15
Why do consistency requirements differ between database applications?
Model answer
Different applications represent different real-world activities and therefore have different rules that their data must obey.
Explanation
The railway seat-allocation rule is one example of an application-specific consistency requirement.
- 16
What does guaranteed data availability in a DBMS mean?
Model answer
It means taking measures so data remains available despite system failures.
Explanation
The system should not simply lose an enterprise’s data because one component fails.
- 17
How can a DBMS protect data if a storage disk fails?
Model answer
It can use appropriate protective measures, such as keeping a replicated copy of the data in a geographically different location.
Explanation
The replication helps preserve access to data if the original storage is lost.
- 18
Why might a database be replicated at a geographically separate location?
Model answer
A remote copy can keep data available if a catastrophic event, such as a fire or storm, destroys the physical database server at the original location.
Explanation
Geographic separation protects against failures that affect an entire site.
- 19
What problem can occur if a database process crashes after making only some of its intended changes?
Model answer
Partial changes may leave the database inconsistent if they remain stored even though the process did not complete its work.
Explanation
A DBMS must handle crashes so incomplete work does not improperly affect the data.
- 20
What should happen to incomplete database changes when a process crashes?
Model answer
The system should ensure that incomplete changes are not reflected in the database.
Explanation
This prevents partially completed work from violating data consistency.
- 21
Why is failure recovery not limited to protecting against disk or site failures?
Model answer
Programs or processes can also encounter errors and crash while making changes, so the system must handle incomplete operations as well as storage failures.
Explanation
Database reliability must address several kinds of system failure.
- 22
Why can storing the same student information in separate file-based applications create a consistency problem?
Model answer
If the information is duplicated, a change must be made in every copy; otherwise, the copies may disagree about the correct value.
Explanation
For example, two files could contain different phone numbers for the same student.
- 23
Why is data redundancy a concern even when storage space is plentiful?
Model answer
The main concern is not the space used but the difficulty of keeping all copies of duplicated data consistent when a change occurs.
Explanation
More copies create more places that must be updated correctly.
- 24
How can hard-coding record structures into programs make database changes difficult?
Model answer
A change to a record structure may require changing the program definitions and recompiling the software.
Explanation
Programs that depend directly on fixed structure definitions are tightly coupled to those structures.
- 25
Why is it difficult to support many kinds of queries using only custom file-processing programs?
Model answer
Each query may require a separate program, and it is difficult to anticipate and prepare programs for every request users might make.
Explanation
Users may need new or ad hoc information that was not covered by a previously written program.
- 26
What tasks would programmers have to handle themselves when building a database system from ordinary files?
Model answer
They would need to manage duplicated data and structures, write programs for queries, coordinate concurrent access, and recover from failures.
Explanation
Handling these responsibilities independently requires substantial effort and is difficult to do reliably.
- 27
Why is managing concurrent access with custom file-processing programs particularly difficult?
Model answer
The programs must coordinate simultaneous users while preserving the application’s consistency rules, a complex responsibility compared with relying on a DBMS.
Explanation
The source compares this challenge to taking on work similar to that of an operating system.
- 28
Why does the content argue against building a full database system from a programmer’s own collection of file-processing programs?
Model answer
Doing so requires a large amount of work to provide flexible queries, structural changes, consistency, concurrent access, and failure recovery.
Explanation
A general-purpose DBMS is designed to handle these database-management responsibilities.
- 29
How does a DBMS separate data from metadata?
Model answer
It stores metadata, such as information about record types and structures, separately in a system catalog rather than embedding it directly in application programs.
Explanation
The catalog describes how the data is organized.
- 30
What is metadata in the database approach described here?
Model answer
Metadata is information describing how database data is structured, such as record types and structure definitions.
Explanation
The DBMS keeps this structural information in its catalog.
- 31
How does a program use the catalog when working with database data?
Model answer
The DBMS consults the catalog to learn how the information is stored and then uses that structural description to operate on the data.
Explanation
The program need not rely only on a structure permanently embedded in its code.
- 32
What is program-data independence?
Model answer
Program-data independence is the ability to modify data structures without requiring every program that uses the data to be rewritten or recompiled.
Explanation
Keeping metadata separately in a catalog helps provide this flexibility.
- 33
How can a DBMS support changes to database structures without modifying every data-handling program?
Model answer
The structure can be changed in the catalog, after which programs can read the updated metadata when they operate on the data.
Explanation
This approach separates programs from the details of the data’s organization.
- 34
Why is a DBMS described as general-purpose software?
Model answer
One DBMS can manage different databases, such as databases for hospital records, staff salaries, or students’ academic records.
Explanation
Each database can have its own catalog describing its organization.
- 35
What role does SQL play in database management?
Model answer
SQL is a recognized standard for expressing database queries, and a DBMS supports the standard so users can state information requests in a common way.
Explanation
The DBMS implements SQL’s constructs to process users’ queries.
- 36
How does a standard query language make ad hoc queries easier?
Model answer
Users can express different information requests using the standard language instead of requiring a new custom program for each query.
Explanation
The DBMS processes queries expressed through the language’s supported constructs.
- 37
Which formal approaches are identified as underlying or related to relational query languages?
Model answer
Tuple relational calculus and relational algebra are identified as approaches related to expressing and handling queries.
Explanation
The content describes these as concepts used within the theory behind relational databases and query languages.
- 38
How does the availability of a DBMS affect the work of database designers?
Model answer
It lets designers focus mainly on the logical design of the database and the information and queries needed, while the DBMS handles storage organization, query processing, and concurrent access.
Explanation
The DBMS provides common management functions so designers do not have to implement each one from scratch.
- 39
What is a data model?
Model answer
A data model is a collection of conceptual tools used to describe a database at a particular level of abstraction.
Explanation
Different models let people describe a database from high-level requirements through to physical implementation.
- 40
Why are different levels of abstraction useful when describing a database?
Model answer
They let people discuss requirements and logical organization without immediately dealing with low-level storage details, while still allowing those details to be specified when needed.
Explanation
Database descriptions can range from high-level concepts to detailed physical structures.
- 41
What is the main purpose of a conceptual-level data model?
Model answer
It provides a high-level description of a database that helps designers understand and gather the database’s requirements.
Explanation
It is useful when discussing what information an organization needs to track.
- 42
Why is a conceptual data model useful when gathering requirements from nontechnical stakeholders?
Model answer
Its general concepts can be explained to nontechnical people, allowing designers and stakeholders to discuss what information the database should contain.
Explanation
This supports requirements discussions without requiring detailed knowledge of computer science.
- 43
What does a representational data model describe?
Model answer
It describes the logical representation of the database while hiding the details of its physical representation.
Explanation
This allows designers to focus on how the data is logically organized.
- 44
Why does a representational data model hide physical storage details?
Model answer
Hiding those details helps designers concentrate on the logical design rather than on file and record implementation.
Explanation
A design can be assessed logically before its physical structures are specified.
- 45
What does a physical data model describe?
Model answer
It describes implementation details such as record formats, file structures, and external data structures, including how these structures relate to one another.
Explanation
This is the detailed level at which the database’s physical representation is specified.
- 46
How do conceptual, representational, and physical data models differ?
Model answer
A conceptual model describes requirements at a high level, a representational model describes logical organization, and a physical model specifies storage and implementation details.
Explanation
The three levels provide increasingly concrete ways to describe a database.
- 47
What three core concepts does the entity-relationship model provide?
Model answer
It provides the concepts of entities, relationships, and attributes.
Explanation
These concepts help describe what information is tracked, how items are associated, and what properties are recorded.
- 48
In a university database, what could be examples of entities?
Model answer
Students, faculty members, courses, and departments could be entities.
Explanation
Entities are the main kinds of things about which the database stores information.
- 49
In the entity-relationship model, what does a relationship represent?
Model answer
A relationship represents an association between entities, such as students enrolling in courses or faculty members being employed by departments.
Explanation
Relationships describe how the entities in a database are connected.
- 50
What are examples of student attributes in a university database?
Model answer
A student’s name, identifying roll number, and address are examples of attributes.
Explanation
Attributes describe properties of an entity; a roll number can distinguish one student from another.

Ask anything
We've read this whole study set, so questions about it get the best answers.