Define data model.
View model answerHide model answer
Concept of Data Model
A data model is an abstract mathematical and conceptual framework that defines how data is structured, stored, organized, related, and manipulated within a Database Management System (DBMS). It provides the formal blueprint and grammar for database design.
Core Components of a Data Model:
- Structural Component: Defines the organization of data objects, record types, data types, and inter-entity relationships (e.g., tables, rows, columns, foreign keys).
- Integrity Component: Defines rules, constraints, and business logic that enforce data validity (e.g., Primary Key uniqueness, Entity Integrity, Referential Integrity, NOT NULL).
- Manipulative Component: Defines the operational language and set of operations used to query, insert, update, and retrieve data (e.g., Relational Algebra, Structured Query Language - SQL).
Common Categories of Data Models:
- Relational Model (Codd, 1970): Represents data in two-dimensional tables (relations) of rows and columns (e.g., Oracle, MySQL, PostgreSQL).
- Entity-Relationship (E-R) Model: High-level conceptual model visualizing entities, attributes, and relationships.
- Hierarchical & Network Models: Legacy tree and graph-based pointer structures.
- NoSQL / Document Models: Schema-less JSON/BSON structures used in distributed big-data systems (e.g., MongoDB).
Explain any three roles and responsibilities of Database Administrator.
View model answerHide model answer
Roles and Responsibilities of a Database Administrator (DBA)
A Database Administrator (DBA) is the primary technical custodian responsible for the architecture, performance, security, operational integrity, and disaster recovery of an enterprise’s database systems:
1. Schema Definition and Physical Database Design:
- Translates logical entity-relationship schemas into optimal physical database structures.
- Defines table storage parameters, partition strategies, file placement on storage arrays (SAN/NAS), data types, and primary/foreign key constraints.
2. Performance Tuning and Optimization:
- Continuously monitors database resource utilization (CPU, memory, buffer cache hit ratio, disk I/O bottlenecks).
- Analyzes execution plans of slow-running SQL queries, builds appropriate B-Tree or Hash indexes, defragments tablespaces, and tunes SQL statements to minimize query response latency.
3. Security Enforcement, User Authorization, and Access Control:
- Creates user accounts, assigns role-based permissions (RBAC) via GRANT/REVOKE commands, and ensures strict data confidentiality.
- Implements transparent data encryption (TDE) for sensitive financial and identity records, conducts security audits, and prevents unauthorized data breaches.
4. Backup, Disaster Recovery, and High Availability:
- Establishes automated daily backup schedules (full, differential, and transaction log backups).
- Tests disaster recovery protocols, implements database mirroring/clustering (e.g., Oracle Data Guard, MySQL Replication), and guarantees minimal Recovery Time Objective (RTO) and Recovery Point Objective (RPO) during system failures.
Define database.
View model answerHide model answer
Definition of Database
A database is an organized, structured collection of logically related data, stored electronically in a computer system, designed to be easily accessed, managed, updated, and queried by multiple concurrent users and software applications while ensuring data integrity, minimal redundancy, and high security.
List any two advantages of using centralized database.
View model answerHide model answer
Two Advantages of Using a Centralized Database
- Elimination of Data Redundancy and Enhanced Consistency:
- Because all enterprise data is stored and managed at a single central physical server location, duplicate data entry is avoided, ensuring all departments access a single version of truth.
- Simplified Security and Unified Administration:
- Implementing security policies, user privilege controls, software updates, and automated disaster backups is straightforward since the entire database resides in a single, well-defended data center.
- Elimination of Data Redundancy and Enhanced Consistency:
Define data independence.
View model answerHide model answer
Concept of Data Independence
Data independence is the capacity of a database system to modify a schema definition at one level of the Three-Schema Architecture (Physical, Logical, View) without requiring alterations to schemas at higher levels.
Two Levels of Data Independence:
- Logical Data Independence: The ability to modify the logical schema (e.g., adding or deleting a column or table) without having to alter external views or rewrite existing application programs.
- Physical Data Independence: The ability to modify the physical storage structures (e.g., changing file formats, switching from HDD to SSD, adding B-Tree indexes) without impacting the logical conceptual schema.
List and explain different database users.
View model answerHide model answer
Classification of Database Users
Database Management Systems serve diverse user groups with varying technical proficiencies and operational requirements:
1. Database Administrator (DBA):
- The primary technical custodian of the database.
- Responsible for physical database design, user account provisioning, role-based authorization, performance monitoring, tuning, and disaster backup/recovery.
2. Database Designers (Architects):
- Design the conceptual and logical schemas before the database is implemented.
- Identify enterprise entities, relationships, attributes, primary keys, and integrity constraints, normalizing tables up to 3NF/BCNF.
3. Application Programmers (Software Engineers):
- Write application software (in Python, Java, C#, PHP) that interacts with the DBMS through APIs and embedded SQL (JDBC, ODBC).
- Develop user interfaces and execute transactions for business operations.
4. Sophisticated Users (Data Analysts & Business Intelligence Pros):
- Engineers, data scientists, and business analysts who thoroughly understand SQL and relational algebra.
- Write complex, ad-hoc analytical queries to extract operational insights without using pre-packaged graphical interfaces.
5. Naive / Parametric End Users:
- Everyday operational staff (bank tellers, supermarket cashiers, customer care agents) who interact with the database exclusively through graphical user interface (GUI) forms and buttons without knowing underlying SQL syntax.
Define Instance and schema in dbms.
View model answerHide model answer
Concept of Schema and Instance in DBMS
In database theory, Schema and Instance represent the fundamental distinction between the structural blueprint of a database and its operational data contents:
Comparison Basis Database Schema Database Instance Definition The overall structural design, blueprint, and skeleton of the database, defining tables, column data types, and integrity constraints. The actual collection of data, records, and tuples stored in the database at a specific moment in time. Frequency of Change Defined during the initial system design phase; changes very rarely (only during formal database schema migrations). Changes continuously as users insert, update, or delete records in real time. Programming Analogy Analogous to a Class or Variable Type declaration in programming (e.g., defining a Struct). Analogous to the specific variable values held in memory at runtime. Example Schema: Student (RollNo INT, Name VARCHAR(50), GPA FLOAT) Instance: (101, ‘Suman’, 3.85) and (102, ‘Pooja’, 3.92) on September 10 at 10:00 AM.
IT 232
Database Management System
TU BBM · Semester 6 · BBM curriculum effective from 2021
Chapter-wise questions
30 past questions across 6 units
Open a chapter to study questions grouped by unit and syllabus topic, with step-by-step solutions.
chapter-wise questions loaded.