DP-300 · Question #411
SIMULATION You need to increase the maximum storage size of the query store on db1 to 4,000 MB. You may need to use SQL Server Management Studio and the Azure portal. Answer: How to increase the…
The correct approach is to execute 'ALTER DATABASE db1 SET QUERY_STORE (MAX_STORAGE_SIZE_MB = 4000);' via Transact-SQL in either SSMS or the Azure portal Query Editor, as this is the only supported method to modify Query Store configuration settings. The MAX_STORAGE_SIZE_MB…
Question
Explanation
The correct approach is to execute 'ALTER DATABASE db1 SET QUERY_STORE (MAX_STORAGE_SIZE_MB = 4000);' via Transact-SQL in either SSMS or the Azure portal Query Editor, as this is the only supported method to modify Query Store configuration settings. The MAX_STORAGE_SIZE_MB parameter directly controls the maximum disk space allocated to the Query Store, and setting it to 4000 satisfies the 4,000 MB requirement. There is no graphical (GUI) interface in the Azure portal that allows direct modification of Query Store storage size - T-SQL is the required mechanism for both on-premises SQL Server and Azure SQL Database.
Topics
Community Discussion
No community discussion yet for this question.