nerdexam
Microsoft

70-467 · Question #122

A company runs SQL Server Database Engine and SQL Server Reporting Services (SSRS) in native mode. Reports are based on data that is cached in multiple shared datasets. Source data is archived each…

The correct answer is A. Write a script that calls the flushcache method to clear individual items from the SSRS cache. The best automated solution to purge stale SSRS cached dataset data after midnight archiving is a script that invokes the SSRS WMI FlushCache method, which clears specific cached items without restarting the service or relying on pauseable shared schedules.

Design a reporting solution

Question

A company runs SQL Server Database Engine and SQL Server Reporting Services (SSRS) in native mode. Reports are based on data that is cached in multiple shared datasets. Source data is archived each day at midnight for regulatory compliance purposes. The shared datasets may continue to cache data that should not be used in reports. Shared report schedules are often paused during nightly server maintenance windows. Reports must not return archived data. You need to create a fully automated solution to ensure that reports do not deliver archived data. What should you do? (More than one answer choice may achieve the goal. Select the BEST answer.)

Options

  • AWrite a script that calls the flushcache method to clear individual items from the SSRS cache.
  • BCreate a SQL Server Agent job that uses a Transact-SQL (T-SQL) step to truncate the dbo.
  • CCreate a SQL Server Agent job that restarts the SQL Server Reporting Services service.
  • DCreate a shared schedule.

How the community answered

(19 responses)
  • A
    58% (11)
  • B
    16% (3)
  • C
    21% (4)
  • D
    5% (1)

Why each option

The best automated solution to purge stale SSRS cached dataset data after midnight archiving is a script that invokes the SSRS WMI FlushCache method, which clears specific cached items without restarting the service or relying on pauseable shared schedules.

AWrite a script that calls the flushcache method to clear individual items from the SSRS cache.Correct

The FlushCache method exposed by the MSReportServer_ConfigurationSetting WMI class allows a script to programmatically and selectively clear cached shared dataset results for individual items; this script can be invoked by a SQL Server Agent job timed after midnight, providing a fully automated solution that targets only the stale cache without any service interruption or dependency on shared schedules that may be paused during maintenance windows.

BCreate a SQL Server Agent job that uses a Transact-SQL (T-SQL) step to truncate the dbo.

Directly truncating tables in the SSRS ReportServer catalog database bypasses the Reporting Services API entirely and can corrupt internal metadata, configuration state, and report history - this approach is unsupported by Microsoft.

CCreate a SQL Server Agent job that restarts the SQL Server Reporting Services service.

Restarting the SSRS Windows service does clear all in-memory cache but causes a service outage affecting all active report consumers and is an overly disruptive, non-targeted approach for a nightly cache invalidation requirement.

DCreate a shared schedule.

Creating a shared schedule alone has no cache-clearing effect; it only defines a timing trigger that must be explicitly attached to a cache expiration policy on individual datasets, and the scenario states shared schedules are paused during the relevant maintenance window.

Concept tested: SSRS WMI FlushCache method for automated cache invalidation

Source: https://learn.microsoft.com/en-us/sql/reporting-services/wmi-provider-library-reference/configurationsetting-method-flushcache

Topics

#SSRS cache#shared datasets#flushcache#automated maintenance

Community Discussion

No community discussion yet for this question.

Full 70-467 Practice