70-466 · Question #72
You manage 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 stateme
The correct answer is C. Enable Contained Databases. Enabling contained databases reduces instance-level system metadata overhead, freeing buffer pool memory for data caching in a single-database ad hoc workload environment.
Question
Options
- Ascan for Startup Procs
- BAllow Triggers to Fire Others
- CEnable Contained Databases
- DOptimize for Ad hoc Workloads
How the community answered
(37 responses)- A11% (4)
- B8% (3)
- C78% (29)
- D3% (1)
Why each option
Enabling contained databases reduces instance-level system metadata overhead, freeing buffer pool memory for data caching in a single-database ad hoc workload environment.
Disabling 'scan for Startup Procs' prevents stored procedures from running at startup, which has negligible impact on buffer pool memory since the application already uses no stored procedures.
'Allow Triggers to Fire Others' controls whether triggers can cascade to fire additional triggers and has no effect on memory allocation or data cache size.
A contained database stores user authentication credentials and metadata within the database itself, reducing the need for SQL Server to cache system database pages from master and other system databases in the buffer pool. With only one database on the instance and no stored procedures, eliminating cross-database metadata dependencies maximizes the buffer pool memory available for caching application data pages.
'Optimize for Ad hoc Workloads' reduces plan cache usage for single-use queries, but with a single database and no stored procedures the dominant memory gain comes from reducing system metadata dependencies via contained databases rather than plan cache management.
Concept tested: SQL Server contained databases and buffer pool memory optimization
Source: https://learn.microsoft.com/en-us/sql/relational-databases/databases/contained-databases
Topics
Community Discussion
No community discussion yet for this question.