You are developing an ASP.NET Web application.
Application data is stored in a Microsoft SQL Server 2008 database.
You configure a connection string named cnnContoso.
The application must cache the data that is returned from the database by using this connection string.
You need to ensure that the application checks the database every 10 seconds.
What should you do?
A.
Add the following configuration to the <system.web> section of the web.config file.
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name=”cnnContoso” duration=”10″ />
</outputCacheProfiles>
</outputCacheSettings>
</caching>
B.
Add the following configuration to the <system.web> section of the web.config file.
<caching>
<sqlCacheDependency enabled=”true” pollTime=”10000″>
<databases>
<add name=”ContosoDatabase” connectionStringName=”cnnContoso” />
</databases>
</sqlCacheDependency>
</caching>
C.
Add the following @ Page directive to pages that query the database.
<%@ OutputCache Duration=”10″ VaryByParam=”cnnContoso” %>
D.
Add the following @ Page directive to pages that query the database.
<%@ OutputCache Duration=”10000″ VaryByParam=”cnnContoso” %>