70-467 · Question #129
You have a database for a mission-critical web application. The database is stored on a SQL Server 2012 instance and is the only database on the instance. The application generates all T-SQL…
The correct answer is C. Enable Contained Databases. To maximize memory available for data caching on a single-database instance running only dynamic T-SQL, Enable Contained Databases reduces memory consumed by cross-database system resource dependencies.
Question
You have a database for a mission-critical web application. The database is stored on a SQL Server 2012 instance and is the only database on the instance. The application generates all T-SQL statements dynamically and does not use stored procedures. You need to maximize the amount of memory available for data caching. Which advanced server option should you modify?
Options
- Ascan for Startup Procs
- BAllow Triggers to Fire Others
- CEnable Contained Databases
- DOptimize for Ad hoc Workloads
How the community answered
(30 responses)- A17% (5)
- B3% (1)
- C73% (22)
- D7% (2)
Why each option
To maximize memory available for data caching on a single-database instance running only dynamic T-SQL, Enable Contained Databases reduces memory consumed by cross-database system resource dependencies.
Scan for Startup Procs controls whether SQL Server executes stored procedures at instance startup, but since the application uses no stored procedures, disabling this option has no effect on available data cache memory.
Allow Triggers to Fire Others governs nested trigger execution, but because the application generates all T-SQL dynamically without triggers or stored procedures, this setting does not influence memory allocation for the buffer pool.
Enabling Contained Databases moves user authentication, metadata, and catalog management into the database itself rather than relying on shared master database structures, reducing the memory footprint of system-level inter-database dependencies. On a single-database instance with no stored procedures, this isolation limits overhead in shared system memory regions, leaving more of the SQL Server buffer pool available for data page caching.
Optimize for Ad hoc Workloads reduces plan cache bloat from single-use queries by storing only a small compiled plan stub on first execution, which reclaims plan cache memory but does not directly maximize the buffer pool memory available for data caching.
Concept tested: SQL Server advanced server configuration memory options
Source: https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/server-configuration-options-sql-server
Topics
Community Discussion
No community discussion yet for this question.