Introduction to Database Testing Interview Questions and Answer
If you are looking for a job that is related to Database Testing, you need to prepare for the 2019 Database Testing Interview Questions. Though every Database Testing Interview is different and the scope of a job is also different, we can help you out with the top Database Testing Interview Questions and Answers, which will help you take the leap and get you success in your interview. Keeping this in mind we have designed the most common Database Testing Interview Questions and Answers to help you get success in your interview.
Below is the list of Top 2019 Database Testing Interview Questions That are asked mostly in an interview, This list is divided into two parts are as follows:
Part 1 – Database Testing Interview Questions (Basic)
This first part covers basic Database Testing interview questions and answers
1. What is database testing?
It will Check all objects schema, trigger, procedure, function. It Checks data integrity and consistency.
2. What are the different types of testing?
Structural database testing
It involves validation of all elements/object, which is primarily used for data storage. Which are not directly exposed to end user? And validation of database server i.e severe configuration is also a very important part of database testing.
Functional database testing
The functional database testing involves the requirement of specifications which are needs for user transaction. As input or output.
It involves null values handle, length of a column, a data type of column. It will also check the derived output tables or column should be available. All the field name should follow the standard naming convention as per business requirement.
Non-functional database testing
In this context, multiple testing involves multiple categories like stress testing, security testing, usability testing and compatibility testing. Stress and load testing are involved in performance testing only.
Let us move to the next Database Testing Interview Questions
3. What is structural database testing?
This is the frequently asked Database Testing Interview Questions It involves the structure of a database which depends on a schema, tables, procedure, function, trigger, and database server testing.
The main aspects of schema testing are, exact schema name should be a map between frontend and backend. There are some important checkpoints as following
Validation of Schema format is very important because sometimes table format of a schema is different from the business requirement or front-end application.
It also involves verification of unmapped tables /views /columns.
It involves table name and column testing. Columns are mapped to front-end and back-end should be the same. Size and data type of column should be as per business requirement and should be mapped to the front end application. It also involves constraint testing like what is a primary key, foreign key, what are auto identity columns, what are partitions as per business requirement. In tables testing one important thing is an index, need to check clustered index or non clustered index has been created or not.
Procedure and function testing
There is a list of important things which are involved in the procedure and function testing.
•The development team did follow the requirements. That involves Coding standard, the proper coding indentation will be easier for other developers to understand, the proper naming convention for variables, remove unnecessary variables and comments which are used by a developer.
•Check whether a developer has been built the code as per business requirement.
•What are the parameters for input and output variables?
•Check whether a developer has built the code to Handel all exception. Like arithmetic exception, null value Handel exception.
•Check whether procedure and function are inserting data into tables that should be proper with name, data type, length and it should be trim.
For this testing rules are the same as procedure and function testing. Add on to this need to check whether the trigger is executing on specific requirement event.
Need to check the database server configuration. Execution processing capacity, RAM, and storage capacity should capable of output as per business requirement.
4. What are the different types of join?
There are 6 type joins as follow:-
1.Inner join – Will Match exact column data.
2.Left outer join – Will show all the data from the left table which are the match and unmatched.
3.Right outer join – Will show all the data from a right table which are the match and unmatched.
4.Full Outer join – Will show all the data from both table which are a match and unmatched.
5. Cross join – Will show the product of both tables.
6.Union and Union All – Will combine the data from both.
5. What is the index? What are the different types of index?
An index is a database object which is created in a table column. An index will perform query faster which are frequently executed. There are 6 types of an index as follow:-
6. In database testing how do you know that whether a trigger is fired or not?
We need to enable the audit log. Using that we are able to see whether the trigger is fired or not.
Part 2 – Database Testing Interview Questions (Advanced)
Let us now have a look at the advanced Database Testing Interview Questions.
7. What are the steps involved in Data Loading test in Database testing?
For Data Loading test in Database testing are as follow:
•Source data should be known
•Target data should be known
•Compatibility between a source and target data
•Need to check the source and target columns.
•Number of effective rows from source and target.
•Need to check the effect of a target after any changes in source.
•Need to check Null and garbage value.
8. What is the SQL command can be used to manipulate data and table?
To manipulate the data we can use select, insert, update, delete and for table Create a table, alter table, drop table.
9. How do you test load/stress testing?
Need to check load or stress test by processing a large set of data in minimum time. It will check the system response, load testing is done. If the load exceeds the user’s process it is known as load/stress testing. Examples of load/stress testing are downloading the set of data, executing multiple applications on a single computer.
Let us move to the next Database Testing Interview Questions
10. How to test the database manually?
Manually database testing involves checking the data from the backend side when the addition of data has been added, updated or deleted from front end side.
11. How many cluster index we can create on a single table?
We can create only one cluster index which will refer to primary index on a single table. This is the most asked Database Testing Interview Questions.
12. How to check a number of database object has been created?
We can check the required database object has been created on not using 2 ways.
1.Using object explorer we can see the database object like schema, table, procedure, function, trigger, index etc.
2.Using sys or master table which are store the all metadata about of all database object.
13. If we have more than 1000 line of procedure, how will we test or where it was failing at the time of testing?
We can test for this specific condition using the following approach
1.At the time compilation
2. Making proper comments on before or after each execution, which will give the hint about what process is going on and where we are stuck.
This has been a guide to List Of Database Testing Interview Questions and Answers so that the candidate can crackdown these Database Testing Interview Questions easily. This is the most useful and valuable post on Database Testing Interview Questions and Answers You may also look at the following articles to learn more –