All fields

“Query Store” in Information Technology

40 questions across 2 technologies.

Information Technology

40 questions in 2 technologies

#QuestionTechnologyTopicLevel
1How do you force SQL Server to use a specific, previously known good execution plan for a query using Query Store? SQL Server › Query StoreSQL ServerQuery StoreIntermediate
2What is Query Store in SQL Server, and what information does it automatically capture? SQL Server › Query StoreSQL ServerQuery StoreBeginner
3How do you view the top resource consuming queries captured by Query Store? SQL Server › Query StoreSQL ServerQuery StoreBeginner
4How do you use Query Store to identify a query whose performance has regressed after a recent code deployment? SQL Server › Query StoreSQL ServerQuery StoreIntermediate
5How can Query Store data be queried directly using its underlying system views for custom analysis beyond the built-in reports? SQL Server › Query StoreSQL ServerQuery StoreAdvanced
6What is the difference between Query Store's READ_WRITE and READ_ONLY operational modes, and when does SQL Server switch between them? SQL Server › Query StoreSQL ServerQuery StoreIntermediate
7How would you configure Query Store's capture and retention settings to balance detailed monitoring with storage overhead on a very busy production database? SQL Server › Query StoreSQL ServerQuery StoreAdvanced
8How do you use the SQL Server Query Store feature to identify and address query performance regressions over time? SQL Server › Query Optimization & PlansSQL ServerQuery Optimization & PlansAdvanced
9What is an execution plan in SQL Server, and how does it help you understand query performance? SQL Server › Query Optimization & PlansSQL ServerQuery Optimization & PlansBeginner
10How do outdated or missing statistics affect the query optimizer's ability to choose an efficient execution plan? SQL Server › Query Optimization & PlansSQL ServerQuery Optimization & PlansIntermediate
11What is parameter sniffing, and how can it sometimes lead to unexpectedly poor query performance? SQL Server › Query Optimization & PlansSQL ServerQuery Optimization & PlansIntermediate
12How does SQL Server compile and cache execution plans for stored procedures, and how does this affect performance compared to ad hoc queries? SQL Server › Stored Procedures & FunctionsSQL ServerStored Procedures & FunctionsAdvanced
13What is a columnstore index in SQL Server, and how is it different from a regular index? SQL Server › Columnstore IndexesSQL ServerColumnstore IndexesBeginner
14What is the difference between a clustered columnstore index and a nonclustered columnstore index? SQL Server › Columnstore IndexesSQL ServerColumnstore IndexesBeginner
15What is a stored procedure in SQL Server, and what are the main benefits of using one? SQL Server › Stored Procedures & FunctionsSQL ServerStored Procedures & FunctionsBeginner
16What kinds of workloads benefit the most from columnstore indexes, and which workloads should avoid them? SQL Server › Columnstore IndexesSQL ServerColumnstore IndexesIntermediate
17What tools or queries can you use to monitor the health and effectiveness of a columnstore index over time? SQL Server › Columnstore IndexesSQL ServerColumnstore IndexesIntermediate
18What are the main differences between a stored procedure and a function in terms of what each one can and cannot do? SQL Server › Stored Procedures & FunctionsSQL ServerStored Procedures & FunctionsIntermediate
19What are delta stores and rowgroups in the context of columnstore indexes, and how do they affect performance over time? SQL Server › Columnstore IndexesSQL ServerColumnstore IndexesAdvanced
20How would you build a dynamic SQL statement inside a stored procedure that constructs a flexible search query based on several optional filter parameters? SQL Server › Dynamic SQLSQL ServerDynamic SQLAdvanced
21How do you store and query JSON formatted text in SQL Server? SQL Server › JSON Support in SQL ServerSQL ServerJSON Support in SQL ServerBeginner
22How do you modify a specific part of an XML document stored in a column without replacing the entire document? SQL Server › XML Data Type & QueryingSQL ServerXML Data Type & QueryingIntermediate
23How would you decide between using the XML data type and the JSON functions available in SQL Server for a new project that needs to store semi structured data? SQL Server › XML Data Type & QueryingSQL ServerXML Data Type & QueryingAdvanced
24How do you properly perform a JOIN query in sqflite to combine genuinely related data stored across two or more separate distinct tables, such as combining orders together with their own individual customer information? Flutter › SQLite & Local Databases (sqflite)FlutterSQLite & Local Databases (sqflite)Intermediate
25What are the performance considerations and limitations of querying JSON data stored as text compared to using normalized relational columns? SQL Server › JSON Support in SQL ServerSQL ServerJSON Support in SQL ServerAdvanced
26What is the difference between a scalar function and a table valued function in SQL Server? SQL Server › Stored Procedures & FunctionsSQL ServerStored Procedures & FunctionsBeginner
27What are natively compiled stored procedures, and how do they work together with memory optimized tables? SQL Server › In-Memory OLTP (Memory-Optimized Tables)SQL ServerIn-Memory OLTP (Memory-Optimized Tables)Intermediate
28How does partition elimination improve query performance for a partitioned table? SQL Server › PartitioningSQL ServerPartitioningIntermediate
29Why can calling a scalar user defined function within a query against a large table cause significant performance problems? SQL Server › User Defined FunctionsSQL ServerUser Defined FunctionsIntermediate
30How would you build a dynamic SQL query where the table or column names themselves need to change based on input, since parameters cannot be used for object names? SQL Server › Dynamic SQLSQL ServerDynamic SQLIntermediate
31How do you generate JSON formatted output directly from a SQL query's result set? SQL Server › JSON Support in SQL ServerSQL ServerJSON Support in SQL ServerIntermediate
32How would you decide between using a temporary table, a table variable, and a common table expression for a specific intermediate data processing need within a stored procedure? SQL Server › Temporary Tables & Table VariablesSQL ServerTemporary Tables & Table VariablesAdvanced
33What is a cursor in SQL Server, and why do most developers try to avoid using them? SQL Server › CursorsSQL ServerCursorsBeginner
34How do you create a basic SQL Server Agent job that runs a T-SQL script on a defined schedule? SQL Server › SQL Server Agent & Job SchedulingSQL ServerSQL Server Agent & Job SchedulingBeginner
35What does the FAST_FORWARD cursor option do, and when should you use it? SQL Server › CursorsSQL ServerCursorsIntermediate
36What is a covering index, and how does it help avoid an expensive lookup operation? SQL Server › IndexesSQL ServerIndexesIntermediate
37What is an indexed view, and how can it improve the performance of complex, frequently run queries? SQL Server › ViewsSQL ServerViewsIntermediate
38How would you rewrite a common cursor based row by row update into an equivalent, much faster set based UPDATE statement? SQL Server › CursorsSQL ServerCursorsAdvanced
39How do filtered indexes work, and what specific scenarios benefit most from using one? SQL Server › IndexesSQL ServerIndexesAdvanced
40What are the tradeoffs between implementing complex reusable business logic as a user defined function versus building it directly into application code? SQL Server › User Defined FunctionsSQL ServerUser Defined FunctionsAdvanced