nerdexam
Microsoft

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.

Configure and maintain an analysis services database

Question

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 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

(37 responses)
  • A
    11% (4)
  • B
    8% (3)
  • C
    78% (29)
  • D
    3% (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.

Ascan for Startup Procs

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.

BAllow Triggers to Fire Others

'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.

CEnable Contained DatabasesCorrect

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.

DOptimize for Ad hoc Workloads

'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

#SQL Server memory#optimize for ad hoc workloads#plan cache#server advanced options

Community Discussion

No community discussion yet for this question.

Full 70-466 Practice