A query suddenly got slow. What could it be?
+
The usual suspects are stale statistics, a bad plan cached through parameter sniffing, a table that grew or another transaction holding a lock. The actual execution plan usually tells you which one it is.
Will adding more indexes fix it?
+
Not always. Each index speeds up some reads, but slows down inserts and updates and takes up space. The goal is to have the indexes the important queries use and drop the ones nobody reads.
How do you deal with deadlocks?
+
I capture the deadlock graph to see which queries fought over which resources and fix the cause: table access order, a transaction that runs too long, a missing index or an unsuitable isolation level.
Do you need full access to the server?
+
For the diagnosis, read access to DMVs and execution plans is usually enough. Any change goes through staging first and is agreed with you before it reaches production.
Do you only work with SQL Server?
+
No. SQL Server is where I have the most mileage, but I also work with PostgreSQL, MySQL, MariaDB and SQLite. The reasoning about indexes and execution plans is similar across them.