+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

Top 15 Most Asked SQL Server Architecture Interview Questions and Answers

Thu, 2017-08-03 17:44
SQL Server Architecture Interview Questions

Are you preparing for SQL Server Architecture job interview and wondering what questions you might be asked? In this blog we have hand-picked the questions you are likely to be asked in SQL Server Architecture job interview and provided to-the-point answers to each one of them so as to help you prepare better for SQL Server Architecture job interviews.

Always keep in the mind that, only academic knowledge is not enough to crack an interview. Employers expects from the candidate to have practical knowledge and hands-on experience as well. This SQL Server Architecture Interview Questions designed by industry expert will help you to gain practical knowledge of SQL Server.

SQL Server Architecture Interview Questions and Answers

  1. What is RAID and what are different types of RAID configurations?
  2. Answer: RAID stands for Redundant Array of Independent Disks. RAID defines data storage schemes to divide and replicate data among various disks so that data reliability and I/O performance can be increased.
    The basic configurations of RAID are:
    LEVEL 0 : Striped set without parity/Non-Redundant Array
    LEVEL 1 : Mirrored set without parity
    LEVEL 2 : Redundancy through Hamming code
    LEVEL 3 : Striped set with dedicated parity/Bit interleaved parity
    LEVEL 4 : Block level parity
    LEVEL 5 : Striped set with distributed parity
    LEVEL 6 : Striped set with dual distributed Parity

  1. What is database architecture?
  2. Answer: Database architecture describes the design of the database. It explains how the data is stored. The data of the server is stored in databases. This database is further split into one or more discs. The database can be considered to have two layers. Physical layer, which is a transparent layer for the database administrators to work on. Other users typically work on the user view layer. Tables, views, procedures forms this view

  1. What are pages and Extents?
  2. Answer: A page is a unit of data storage in SQL. The size of a page is 8Kb. A page has a header and a body. Different types of pages are: Date, text, index , page free space etc. The data rows are put on the page serially after the header.
    Extents are units in which space is allocated to tables and indexes. An extent is 8 continuous pages. SQL Server has two types of extents: uniform and mixed extent. For efficient allocation, the SQL server does not allocate whole extents to tables with small amounts of data

  1. What do you know about system database?
  2. Answer: The system database contains information/metadata for all database present on an SQL Server instance. The system database stores information regarding logins, configuration settings, connected servers etc. It also holds various extended stored procedures to access external processes and applications.
    Major system databases :

    • Master: Core system database to mange Sql Server instance.
    • Resource: Responsible for physically storing all system objects.
    • TempDB: This is a temporary database used to store temporary, tables, cursors, indexes, variables etc.
    • Model: This acts as a template database for all user created databases.
    • MSDB: Database to manage SQL Server agent configurations.
    • Distribution: Database primarily used for SQL Server replication.
    • ReportServer: Main database for reporting services to store metadata and other object definitions.
    • ReportServerTempDB: Acts as a temporary storage for reporting services.
  1. What are Page Splits?
  2. Answer: When there is not enough room on a page for a new row, a Server splits the page, allocates a new page, and moves some rows to the new page

  1. Explain what are the database objects?
  2. Answer: Database objects such as tables, primary key, and foreign key describe the structure of the content of a database. These objects also represent the properties of a server. Server side objects are objects that reside on the server but not in the database. Typical examples of server side objects include, logins, user defined error messages etc. The database objects are contained in the database project while the server objects are contained in the server project. These objects are defined in a .sql file. Most of these objects are defined in a separate file depending on the scenario. E.g it is necessary to specify columns in the same file where the table is defined

  1. Illustrate physical database architecture in brief.
  2. Answer: The physical database architecture describes how the database and files are organized in a SQL server.
     

    • Pages and extents:-these describe how the data is stored
    • Physical Database Files and File groups: - describes the operating system files used to store data and logs.
    • Space Allocation and Reuse: - Describes the algorithms used for space allocation.
    • Table and Index Architecture: - Describes the way pages for tables can be indexed
  1. What is Model Database?
  2. Answer: It is a template database used in the creation of new database.

  1. Explain logical database components.
  2. Answer: The logical components are usually used to connect to the database. Any object that a user can use to access or connect to the database is a logical component. Triggers, tables, procedures, views, keys etc are typical examples

  1. What is TEMPDB Database?
  2. Answer: It stores temporary objects like temporary tables and temporary stored procedure.

  1. What is the difference between CUBE operator and ROLLUP operator?
  2. Answer: CUBE generates a result set that represents aggregates for all combinations of values in the selected columns.
    ROLLUP generates a result set that represents aggregates for a hierarchy of values in the selected columns.

  1. What is MSDB Database?
  2. Answer: It stores information related to database backups, DTS packages, Replication, SQL Agent information, SQL Server jobs.

  1. Do you know what are the restrictions applicable while creating views?
  2. Answer:
    Views can be created referencing tables and views only in the current database.
    A view name must not be the same as any table owned by that user.
    You can build views on other views and on procedures that reference views.
    Rules or DEFAULT definitions can't be associated with views.
    Only INSTEAD OF triggers can be associated with views.
    The query that defines the view cannot include the ORDER BY, COMPUTE, or COMPUTE BY clauses or the INTO keyword.
    You cannot define full-text index definitions for views.
    You cannot create temporary views
    You cannot create views on temporary tables.

  1. What is Master Database?
  2. Answer: Master database is system database. It contains information about server’s configuration. It is a very important database and important to backup Master database. Without Master database, server can't be started.

  1. Explain what are the restrictions that views have to follow?
  2. Answer:
    Since a view is a virtual table – columns of the view cannot be renamed. To change anything in the view, the view must be dropped and create again.
    The select statement on the view cannot contain ORDER BY or INTO TEMP
    When a table or view is dropped, any views in the same database are also dropped.
    It is not possible to create an index on a view
    It is not possible to use DELETE to update a view that is defined as a join.

Use Full Link for SQL Training and Certification

Hitesh Patel
 
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US