Microsoft
70-457 · Question #89
You are developing a database application by using Microsoft SQL Server 2012. An application that uses a database begins to run slowly. You discover that a large amount of memory is consumed by…
The correct answer is G. Enable the optimize for ad hoc workloads option. See the full explanation below for the reasoning.
Question
You are developing a database application by using Microsoft SQL Server 2012. An application that uses a database begins to run slowly. You discover that a large amount of memory is consumed by single-use dynamic queries. You need to reduce procedure cache usage from these statements without creating any additional indexes. What should you do?
Options
- AAdd a HASH hint to the query.
- BAdd a LOOP hint to the query.
- CAdd a FORCESEEK hint to the query.
- DAdd an INCLUDE clause to the index.
- EAdd a FORCESCAN hint to the Attach query.
- FAdd a columnstore index to cover the query.
- GEnable the optimize for ad hoc workloads option.
- HCover the unique clustered index with a columnstore index.
- JInclude a SET STATISTICS PROFILE ON statement before you run the query.
How the community answered
(44 responses)- A16% (7)
- B7% (3)
- E2% (1)
- F2% (1)
- G73% (32)
Community Discussion
No community discussion yet for this question.