InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are the different SQL statements that can be used for database testing? |
|
Answer» Following are the SQL statements CATEGORIES that can be used in database testing:
|
|
| 2. |
How will you know if a trigger is fired or not at the time of database testing? |
|
Answer» To know if a TRIGGER is fired, we will have to enable the AUDIT LOGS of the table. You can refer to the STEPS to access logs here. |
|
| 3. |
How is stored procedure testing done? |
|
Answer» Stored Procedures are similar to user-defined functions that are invoked using Cal PROCEDURE or Execute Procedure statements. The output of these procedures is GENERALLY in the form of result sets. The stored procedures are stored in RDBMS and are READILY available for the applications. These can be tested using the following techniques:
|
|
| 4. |
How do you validate whether the database table has been updated after you enter data from the front-end application? |
|
Answer» This depends on the front-end APPLICATION’s interface which is being used. We can test by USING the FOLLOWING ways:
|
|
| 5. |
Explain with an example how you can test the database manually? |
|
Answer» DATABASE testing can be done manually as well. This requires human effort in observing the behaviour of the application when subjected to different manual test cases drafted by the testers. This can also involve observation of the behaviour in FRONT-end applications when the backend database has changed. We can also manually check whether the record has been created, updated or deleted in the database tables post the execution of the queries. Consider an example of a database system that KEEPS track of student details. The operations RUN on the Student tables database can be validated manually by looking at the state of the RECORDS post query execution or can be validated in how the front end interface looks like. |
|
| 6. |
What do you understand by retesting and how is it different from data-driven testing? |
|
Answer» Retesting refers to the METHOD of executing the same test script using different input data every TIME. It helps in finding faults in the system when subjected to different inputs. The faults can be fixed and once again the system can be subjected to testing using the same SCRIPTS with the same or different inputs to check if it works fine. Retesting is different from data-driven testing. This is because retesting is mostly a manual process that involves using a whole new data input set. Data-driven testing is an automated testing FRAMEWORK that has the test data and the scripts take the data and run it automatically. |
|
| 7. |
What do you understand by validation of ACID properties in database testing? |
|
Answer» ACID stands for Atomicity, Consistency, Isolation and Durability. Everything refers to a property of DATABASE transactions.
|
|
| 8. |
What would be the SQL statements used for managing and manipulating the test tables? |
|
Answer» We can use the statements like INSERT, UPDATE, SELECT, DELETE for manipulating the table CONTENT. Statements like ALTER TABLE, DELETE TABLE, CREATE TABLE are used for creating and MANAGING the tables. |
|
| 9. |
What do you understand by Non-functional testing in terms of database testing? |
|
Answer» Non-functional testing in terms of testing databases INVOLVES various testing methods like stress testing, load testing, usability testing, security testing, etc that tests and validate the non-functional business requirements. It helps in the quantification of risks with regards to the database system in terms of how the system performs under HEAVY load. It addresses the following QUESTIONS which help to mitigate the risks if detected earlier:
Non-functional testing also helps in identifying what are the minimum system requirements to RUN effectively without any limitations on hardware or software. |
|
| 10. |
What do you understand by Keys and indexes Testing? |
|
Answer» The keys and indexes testing in a database is a form of database testing which ANSWERS the below questions:
|
|
| 11. |
What do you understand by database transactions? |
|
Answer» A database transaction is DEFINED as a task sequence that is to be performed on the database to achieve the REQUIRED results logically. The task can include creating, DELETING, updating the records in the database tables. The tasks upon successful completion affect the records in the database. A transaction provides 4 controls as listed below:
|
|
| 12. |
What is Database Stress Testing? |
|
Answer» Database STRESS TESTING is one of the methods used for gauging the database performance by SUBJECTING it to the heavy load that would potentially cause the system to fail at some point. This is used for identifying the breakdown points of the database application. Before performing this testing, proper planning needs to be done for avoiding the wastage of resources. This testing is also known as fatigue testing. It uses tools like LoadRunner and JMeter for accomplishing this. |
|
| 13. |
What do you understand about Trigger Testing? |
|
Answer» Trigger testing INVOLVES testing the database triggers that answers the following questions:
|
|
| 14. |
What do you understand by data-driven testing? |
|
Answer» Data-driven testing is an automation testing framework that involves testing data stored in a spreadsheet or a table and using that stored data as input values to the test scripts. This is done to avoid WRITING INDIVIDUAL test cases of the same functionalities with different inputs. The inputs to the test scripts can be stored in XML, CSV, XLS and other data formats. There are 4 main types of data-driven testing BASED on the source of test data inputs:
|
|
| 15. |
What is Database Testing? |
|
Answer» Database testing is a procedure of validating data stored in a database and its RELATED functionality and objects controlling database entities like tables, stored procedures, views, triggers and functions. This testing is widely used in applications that USE databases. With MODERN technologies and advancements in software development, databases are widely used to store data which is why checking the correctness and quality of data matters. It is divided into 4 categories such as:
|
|