0% found this document useful (0 votes)
364 views9 pages

Dba Questions

The document contains questions asked in interviews for various SQL Server roles at different companies like Wipro, Capegemini, Xiorant Software Solutions, Copco, William 'O' Neil, Sonata, Dell, Microsoft and Genpact. The questions cover a wide range of topics including database concepts, high availability and disaster recovery technologies like replication, mirroring and log shipping, backup and restore, performance tuning, troubleshooting etc.

Uploaded by

mahesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
364 views9 pages

Dba Questions

The document contains questions asked in interviews for various SQL Server roles at different companies like Wipro, Capegemini, Xiorant Software Solutions, Copco, William 'O' Neil, Sonata, Dell, Microsoft and Genpact. The questions cover a wide range of topics including database concepts, high availability and disaster recovery technologies like replication, mirroring and log shipping, backup and restore, performance tuning, troubleshooting etc.

Uploaded by

mahesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 9

Wipro

ACID PORPERTIES
DIFF BETWEEN DBCC & DMV'S
PER-REQUISITES FOR CONFIGURING REPLICATION
TYPES OF BACKUPS & RECOVERY MODELS
HOW MANY AGENTS AVAILABLE IN REPLICATION
HOW MANY AGENTS AVAILABLE IN DISTRIBUTOR AND SUBSCRIBE
HOW MANY ERROR LOGS ARE AVAILABLE IN SQL SERVER DEFAULT

CAPEGEMINI

ROLES AND RESPONSIBILITES


WAIT TYPES
DATABASE ISSUE
WHAT COUNTER USES TO CHECK USUALLY

XIORANT SOFTWARE SOLUTIONS

WHAT IS MEANT BY LOGSHIPPING


DIFF BETWEEN LOG SHIPPING AND MIRRORING
IF A LONG QUERY IS RUNNING HOW WILL U FIND OUT IF THERE ARE NO BLOCINGS ON PROD
SERVER

Recently faced issues


Replication
If u want to launch one application which high availability you choose.
DMV's which are used frequently used in environment
How do you get alerts if a long query is runing.
If any blockings occurs in replication on them how do you notice

COPCO

Diff between incident ticket and problamatic ticket


Diff between procedures and functions
Diff between mirroing and replication
What is meant by SQL Profiler
If you are running a query for 2 to 3 hrs how you will find the issue
How you will find the issues when log shipping fails for five hours around

WILLIAM 'O' NEIL

Specific features in 2005 and 2012


Diff between simple recovery & Full recovery model.
Diff between Logshipping ,Mirroing & Replication.
If installation fails in running where you will check,what is the path.
If index not performing well what you will check,How you will check.
How blocking issue comes,how you will find ,How you create the jobs

How do you know that stats are out of date


How will you configure the DB mail and how you will get the alerts
On which servers you are installaing the montioring tool in development or
production servers?
Diff between users and Logins

What are the tools you are using for performance tunning.
What is the use of activity monitor
Out of Re-build and Re-organise what you will prefer

Backup starategy
Types of indexes and what is meant by Clustered and Non-clustered index

Sonata

Role of profiler
How will take the logins backup from 2005 to 2012
How can you migarte the data from 2012 to 2005,what are various ways
Diff between locks and dead locks
If we have no monitoring alert then how will u find out if there is any blockings

CAPEGEMINI

How will you work if there is RFC


Migration and Upgradation
Steps to follow in Migration

Which monitoring tools and Ticketing tools.


Ticketing priority description
Diff between HA and DR
Diff b\w SLA's and OLA's
How do you take the master DB backup
How you will do the patching
Have you worked on scripting installation
Third party Backup tools

If some data is missing in Replication how you will find


Is it possible to add the database in primary server in log shipping
Is it possible to add a user or db in mirroring server in mirroring
What are the wait types and what is their use
If the performance of the server is slow then how do you come to know
Are you running the profiler on the production
Which version you are using
What is meant by Orphand users?How will you fix it?

Dell

How many CPU cores you have


What is max size of the database
What is meant by maxdoop
Size of buffer pool
In db mirroing if you wnat to add a data file in mirror server how will you add
without distrubing configuraton
Is full backup contains log files.
How can you add the secondary file to the mirror server in mirroring configuration
How many instances are having in your servers
How much time you take to take the backup of 1TB

----------------------
Performance tunning
Mirroring configuration setup
DB Creation
Diff between 2005,2008,2008R2,2012
Checkpoint
DBCC Commands
Wait stats
Recovery Models

If TempDB is full what you will do


Diff between Re-build and Re-Organise
Diff between sysadmin and server admin
what is Tuff file where it is created

Server roles
How can you identify the failover on mirroring with out witness server
How can you add a drive to the existing drive
What are the Ticketing and Monitoring Tools

What do you meant by Service account


What is Link server

Recovery models and Diff b\w full and Bulk Recovery model
WHat is meant by tail log backup
What are the mirroing operating modes
If witness server is not there how you will monitor
what are the modes and per-requisites are for log shipping
If a query is running slow ,how will you find it
If blockings are present how will you find
What is the use of non-clustered index
What is the command for Tail log backup
Capacity Planning

What is meant by SQL Browser


What is the Port no is used to connect to the sql server
What is BCP
What is CTE
How do you find slow running queries
Diff between recovery models
What is the use of Clustering?What is the difference between active-Active,Active-
passive clustering
How do resolve deadlock issues
Of execution plan is different then actual rows and estimated rows are different
what you will do
What is execution plan
Types of alerts you are getting.

How will you restore master DB


How will you restore model db
How will tou start your instance without tempdb
-----------------
Topic Wise

Backup's and Restores


Recovery Models
Security Audits
Migration and Automation
HA & Dr
Log shipping
Mirroring
Replication
Clustering
Always on

Performance tunning

Blockings
DeadLocks
SLow running queries
Long running queries
Server Slow
CPU issues
I\O Issues
Fragmentation issues
T-log related & Temp Db full
Password reset

What is Fill factor


What is meant by ISalive and alive

-------------------------------------------
1. Why can�t we take a backup of a database which is in standby or in recovery
mode?
2. How to move a database which is acting as a publisher in transactional
replication?
3. What is CROSS APPLY?
4. How to find and remove duplicates from a table which is having 10 million rows?
5. Which is better a CTE or a subquery? Why?
6. Can you tell me replication monitoring tables?
7. How to apply service packs on Active Active cluster?
8. Best practices in applying security patches
9. What is a log reader agent?
10. What is PULL and PUSH subscriptions?

-------------------------------------------------------------------------------

1. How to rebuild a master database? Ho to restore a master database?


2. Any alternative to triggers?
3. What are the counters to monitor CPU usage?
4. Top 5 performance tuning tools
5. What events need to be added to capture execution plan in sql profiller?
6. How to add memory to sql server 2005?
7. Which locks are held at the time of snapshot in log shipping?
8. What is the new lock escalation in sql 2008?
9. How to check the log file location for service pack 4 in sql server 2005?
10. What is a filtered index?
------------------------------------------------------------------------
?1. On which basis merge replication works on?
??2. How to give a user to run a sql agent job??

3. Can we install SQL Server using a configure file?

4. What are the top performance counters to be monitor in Performance Monitor?

5. How do you know how much memory has been allocated to sql server using AWE?
-----------------------------------------------------

Microsoft

1. What happens when a transaction runs on SQL server? Let�s say simple update
statement �Update Table set col1 = value where col2 = value�
??Ans:

?It issues an update lock and upgrades it to Exclusive Lock

The corresponding page would be captured from disk to memory

The modified page will be modified at Memory

The operation �Update *******� will be written to LDF.


Check point happens and the modified page will be written back to Disk and the
operation at LDF marked as committed.

Lazy writer is responsible for cleaning the committed transactions from LDF.

2. What is fragmentation? How it happens?

3. See we have a full backup on Sunday 8 PM, Diff and every day : 8 PM and log bkp
on every 15 min. DB Crashed on Saturday afternoon 2:55 PM. How to rebuild the
database? If suppose the last Sunday full backup is corrupted then how can you
restore the database in current in time?

4. I have an instance on which there are databases in both FULL and SIMPLE recovery
models. If I restart the sql service, what is the difference between these
databases in recovering or what happens while restarting the services?

5. I have a log file which is of 250 GB. Log is full. We don�t have a disk space on
any other drive for creating .ndf, auto growth is ON, and essentially there are no
options to allocate new space for the file. What�s your action plan?

6. Can we do replication with mirroring? If yes what are the limitations?

7. Can we perform a tail log backup if .mdf file is corrupted?

8. Task manager is not showing the correct memory usage by SQL Server. How to
identify the exact memory usage from SQL Server?

9. What is the option�Lock Pages in Memory�?

10. How to apply service pack on Active / Passive cluster on 2008 and 2012?

11. Can we configure log shipping in replicated database?

12. How to configure replication on cross domain instances?

13. Let�s say we have a situation. We are restoring a database from a full backup.
The restore operation ran for 2 hours and failed with an error 9002 (Insufficient
logspace). And the database went to suspect mode. How do you troubleshoot this
issue?

14. Consider a situation where publisher database log file has been increasing and
there there is just few MB available on disk. As an experienced professional how do
you react to this situation? Remember no disk space available and also we can�t
create a new log file on other drive

15. Can we add an article to the existing publication without generating a snapshot
with all articles?

--------------------------------------------------------
Genpact
1. Difference between 32 bit and 64 bit

2. How B-Tree formed for Clustered and non clustered indexes?

3. How B-Tree forms for indexes with included column?

4. Does alzebrizer tree stores in memory for stored procedures, views and
constraints?

5. What is WOW and WOW64?

6. How to design TempDB files? And what is the limit?

7. What are the different queues of CPU?

8. Write a query to show what�s happening on instance with description?

9. How VLF�s created for tempDB?

10. When the checkpoint can happen? What it exactly do?

11. When the lazywriter happens and what it�ll do?


12. What is total server memory and target server memory?

13. What is memory grant in SQL Server?

14. Why resourceDB introduced?

15. How to move master database?

16. How to rebuild master database and what are the considerations?

17. What is a boot page?

18. What is fragmentation?


19. What is edition limitation in sql server 2008 for database mirroring with
asynchronous mode?

20. Do you know why SQL Browser is?

21. How to upgrade SSRS reports?


22. How do you know that log shipping break down?

23. What is the difference between push and pull subscription?

-----------------------------------------------------
E & Y

1. Can we truncate a table which is participating in transactional replication?

2. How to identify log filling issue and can we issue shrink with truncate on
publisher database?

3. How to filter the nested stored procedure or a command from profiler?

4. Can we add articles to the existing publication without initialization of the


snapshot?
5. How MAXDOP impacts SQL Server?

6. How distributed transactions works in SQL Server?

7. Full back up size is 300 GB, usually my diff backup size varies between 300 MB
and 5 GB, one day unfortunately diff backup size was increased to 250 GB? What
might be the reason any idea?

8. What is .TUF file? What is the significance of the same? Any implications if the
file is deleted?

------------------------------------------------------------------------------
INFOSYS

1. ?Are tables locked during generating the snapshot?


2. Does Truncate Works in replication? What are the limitations of Truncate
command?
??3. ??Causes for slow replication?

4. How to add articles to existing publication without generating a full snapshot?


5. Can we add only new articles to merger publication?

6. What is re-initialization in replication and how it works?


?7. What is the difference between lazy writer and checkpoint?
8. How to move master database?
9. What are the different shrink options?
10. Can you explain the log file architecture?

---------------------------------------------------------------------
POLARIS

1. ??What the issues you find in migrating databases


2. ??What is the schedule frequency of your transactional replication?
???3. How do check the application compatibility with sql server??

4. ?How do you know whether statistics are latest or expired??

5. ??How to run distributed transactions in sql server? What are the config
changes has to be made?

6. How to give linked server usage permissions to specified logins only?

7. What kind of information that SQL Server keeps in memory?

8. Customer asked to break the mirroring and failover to mirror database. What are
the steps to be taken other than a manual failover?

9. Can you give some examples for One to One, One to Many and Many to Many
relationships?
----------------------------------------------------------------
CA
?1. How to find the tempdb contention?

2. What is the sparse file?

3. What is the redo file in log shipping?

4. What are the queues in sql server?


5. How to capture a trace from production without any impact on performance?

6. How to capture the long running queries?

7. What is the migration plan to move 300 databases to a new data centre? We can
have an hour downtime.

8. In mirroring a connection failure happened between principal and mirror and


principal server started filling log space (send queue), how do you troubleshoot?

9. What are the phases a database needs to be gone through while restoring?

10. What is the recovery interval?

11. You have any idea on Table Partitions?


-------------------------------------------------------------
MICROSOFT
1. ?We have a log shipping environment. New data file has been added at primary
server, what happens and how do you resolve it?

2. See we have a view which is getting data from different tables. One day it�s
starts executing infinitely. I have seen no blocking, no bulk operation happened. I
have stopped all jobs and maintenance plans on the server. No one is connected to
the database but still it�s been taking longer time. What might be the possible
reasons?

3. You have got a request to execute a query which is an �Update� query. That
update is updating 5 million rows, after an hour it�s still executing and you are
getting lot of requests from report users that their things are getting slow down.
What�s your action plan?

4. See I have an environment, Sunday night full backup, everyday night diff backup
and every 45 min a transactional backup. Disaster happened at 2:30 PM on Saturday.
You suddenly found that the last Sunday backup has been corrupted. What�s your
recovery plan?

5. Full backup size is 300 GB, usually my diff backup size varies between 300 MB
and 5 GB, one day unfortunately diff backup size was increased to 250 GB? What
might be the reason any idea?

6. What is .TUF file? What is the significance of the same? Any implications if the
file is deleted?

7. What are the ITIL basic standards? What are all the phases of ITIL? Explain
about incident management, problem management, change management etc?

8. Can you explain sql server transaction log architecture?

9. What are the phases of sql server database restore process??

----------------------------------------
PYTHIAN
1. How many IP�s required configuring a 2 node cluster?

2. How many MSDTC required for a 2 node cluster?

3. What is the basic difference between 2005 and 2008 in clustering?

4. What�s the use of quorum in clustering?


5. Your customer complained that one of the reports is not working, what is your
action plan? Note: You just know the database server not anything else about that
report.

6. How could you give full access on a database to a user from �Operations-Team�.
Remember the user should have all rights except write permission. But our company
policy is not to give DB_OWNER rights to any user from �Operations-Team�

??7. I wanted to know what are the maximum worker threads setting and active worker
thread count on sql server. Can you tell me how to capture this info? What�s the
default value for max thread count?

8. What are the all possibilities that cause the tempdb full issue?

9. What is version store?

10. What is the best configuration for Tempdb?

11. We have a procedure which is running fine till today afternoon. Suddenly it
started taking long time to execute and there of it leads to a timeout error from
application. What might be happening? How you troubleshoot?

12. Do you have any idea about sparse column?

13. Have you ever done any automation in your database environment?

14. What are the critical issues you faced in your career?

15. Did you ever handle any missed SLA�s?

16. How to change the port number for SQL Server?

17. Any idea about capacity planning?

----------------------------------------------------------------

Azure Questions

What is Azure & Diff between IAAS,PAAS


What is subscription
How to create Azure VM's using Quick create,Gallery & Powershell.
How to cerate virtual networks
What is an affinity group
---------------------
Experience in working with Azure
Experience in Creating Azure VM's using Gallery and Powershell.
Experience in creating virtual networks and cloud services in Azure.
Experience in creating Virtual Hard disk(VHD's) in Azure.
Involved in Creating SQl Server & configuring Firewall setting in Azure.
Experience in creating database and performing database backup & restores in Azure.
Experience in Configuring Services Tiers & DTU's,EDT'S in Azure.
Having knowledge in Migrating Sql server data from On-Premises to Cloud.

You might also like