Загрузка...

5 Cutting-Edge SQL Server Interview Questions! #SQL #AzureSQL #AdvancedSQL

1. Azure Synapse Link for SQL

Answer: Azure Synapse Link for SQL creates a change feed from your SQL Server 2022 database into Azure Synapse Analytics, enabling near-real-time analytics without affecting OLTP workloads

It uses Azure Synapse Link for SQL integration to continuously stream changes into a dedicated SQL pool for reporting and machine learning scenarios

Example:

-- No T-SQL required; configure in Azure portal under the database’s
-- “Azure Synapse Link” blade to link to a Synapse dedicated SQL pool.

2. WAIT_AT_LOW_PRIORITY in Shrink Operations

Answer: The WAIT_AT_LOW_PRIORITY option lets DBCC SHRINKFILE or DBCC SHRINKDATABASE wait for a low-priority lock, avoiding blocking schema-modifying queries until the shrink operation can safely proceed

Example:

-- Shrink data file but defer if high-priority locks exist
DBCC SHRINKFILE (MyDB_Data, TRUNCATEONLY)
WITH (WAIT_AT_LOW_PRIORITY (MAX_DURATION = 300, ABORT_AFTER_WAIT = NONE));

3. MaxDOP Feedback & Parameter Sensitive Plan (PSP)

Answer:

Maximum Degree of Parallelism Feedback: Automatically adjusts the number of threads (MaxDOP) used by a query based on prior executions’ performance metrics, reducing CPU and I/O waste

Parameter Sensitive Plan (PSP): Enhances Query Store by caching up to three different execution plans for the same query template, each optimized for a distinct range of parameter values, mitigating the “one-size-fits-all” plan problem

4. Serverless Hyperscale in Azure SQL Database

Answer: Azure SQL Database serverless Hyperscale automatically scales compute resources based on workload demand and pauses during inactivity, billing only for storage and compute used

This model suits unpredictable or intermittent workloads that need hyperscale storage without constant compute allocation.

5. BACKUP … TO URL with S3 Connector

Answer: SQL Server 2022 extends the BACKUP … TO URL syntax to support S3-compatible object storage using a REST-based S3 connector. You can now offload backups directly to S3 or S3-compatible endpoints without third-party tools

Example:

BACKUP DATABASE MyDB
TO URL = 'https://my-s3-endpoint.amazonaws.com/mybucket/MyDB.bak'
WITH CREDENTIAL = 'MyS3Credential';

#SQL #AdvancedSQL #AzureSQL #SQLServer2022 #Hyperscale #SynapseLink #QueryOptimization #BackupToURL #TechInterview #DataEngineering

Видео 5 Cutting-Edge SQL Server Interview Questions! #SQL #AzureSQL #AdvancedSQL канала CodeVisium
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять