70-465 · Question #102
You have a SQL Server instance on a server named Server1. You need to recommend a solution to perform the following tasks every week: - Rebuild the indexes by using a new fill factor. - Run a custom…
The correct answer is C. A maintenance plan. SQL Server Maintenance Plans provide a built-in, wizard-driven framework for scheduling recurring database administration tasks including index rebuilds, custom T-SQL execution, and backups.
Question
Options
- AA trigger
- BAn alert
- CA maintenance plan
- DWindows PowerShell
- EA system policy
How the community answered
(36 responses)- A17% (6)
- B3% (1)
- C69% (25)
- D3% (1)
- E8% (3)
Why each option
SQL Server Maintenance Plans provide a built-in, wizard-driven framework for scheduling recurring database administration tasks including index rebuilds, custom T-SQL execution, and backups.
Triggers fire in response to DML or DDL events on database objects, not on a scheduled time basis, so they cannot be used to perform weekly scheduled maintenance tasks.
SQL Server Alerts respond to specific error conditions or performance thresholds and are not designed to schedule or execute recurring maintenance tasks like index rebuilds or backups.
A SQL Server Maintenance Plan is specifically designed to automate and schedule recurring DBA tasks on a defined schedule (e.g., weekly). It natively supports index rebuild tasks with configurable fill factors, an 'Execute T-SQL Statement' task for custom commands, and database backup tasks - all orchestrated through SQL Server Agent jobs, making it the most purpose-built and integrated solution for this scenario.
While PowerShell scripts could technically perform these tasks, they would require additional scheduling infrastructure (e.g., Task Scheduler) and are not a native, integrated SQL Server solution, making them less optimal than a Maintenance Plan.
SQL Server Policy-Based Management system policies are used to enforce configuration standards and compliance conditions on SQL Server objects, not to schedule or execute recurring maintenance operations.
Concept tested: SQL Server Maintenance Plans for scheduled database administration
Source: https://learn.microsoft.com/en-us/sql/relational-databases/maintenance-plans/maintenance-plans
Topics
Community Discussion
No community discussion yet for this question.