Skip to content

Interview Questions & Answers

Curated collection of technical interview questions

Answer

Data Files

These files contain the actual data records, organized in tables for RDBMS. Each row in a table corresponds to a data record, and each column represents an attribute of the data.

Index Files

Index files are used to improve data retrieval performance. They store references to the location of data within data files based on specific column values. This helps in faster data retrieval during queries.

Transaction Log Files

Transaction log files record all changes made to the database. They are essential for maintaining data consistency, recovery, and ensuring that the database can be restored to a specific point in time.

System Catalog or Metadata Files

These files store information about the structure of the database itself. They contain details about tables, columns, indexes, constraints, and other database objects. This information is crucial for query optimization and database maintenance.

Backup Files

Backup files store copies of the database to safeguard against data loss or corruption. They can be used to restore the database to a previous state in case of a disaster.

Temporary Files

Temporary files are used to store intermediate results during query processing or sorting operations. They are typically deleted or cleaned up after their purpose is served.

Configuration Files

Configuration files store settings and parameters that control the behavior of the DBMS or RDBMS, such as memory allocation, security settings, and access controls.

Audit Trail Files

Audit trail files track and record user activities and database operations for security and compliance purposes. They help in monitoring and auditing database access.

Practice Question

What type of files are used to store actual data records in a Relational Database Management System (RDBMS)?

Answer

DBMS stands for Database Management System. It allows users to create, retrieve, update, and manage data. DBMS doesn't require data to be structured in tables but can manage data in files or other formats. RDBMS, or Relational Database Management System, is a type of DBMS that organizes data into structured tables. These tables are related to each other based on predefined relationships. RDBMS uses SQL for querying and maintaining the database. In summary, the main difference is that RDBMS deals with structured relational data tables, while DBMS can handle various data formats.

Practice Question

What is the main difference between DBMS and RDBMS?

Answer

Relational Databases

Relational databases store data in organized tables using SQL and ensure data integrity through ACID principles. They are good at managing complex relationships but struggle with unstructured or rapidly changing data. Examples are MySQL, PostgreSQL, and Oracle.

Non-Relational Databases

NoSQL databases deals with flexible and scalable data, it stores and handle unstructured or semi-structured data without a rigid schema. It prioritize performance and scalability, often at the expense of ACID compliance. Examples are MongoDB and Redis.

Practice Question

What defines the structure of data in relational databases?

Answer

SQL stands for Structured Query Language. It is a standard programming language specifically designed for managing data held in relational database management systems (RDBMS). It includes a variety of functions that allow for querying, inserting, updating, and deleting data, as well as creating and modifying schemas (structures that define the organization of data), and controlling access to data.

Practice Question

What does SQL stand for?

Someone from India subscribed to Premium recently

845 online
Feedback