A company uses Azure SQL Managed Instance. They need to automate index maintenance for all databases in the instance. The solution must minimize administrative overhead and use built-in Azure features. What should you do?
Trap 1: Use Azure Automation with a PowerShell runbook that connects to…
This requires custom scripting and additional management, not minimizing overhead.
Trap 2: Configure a SQL Agent job on the instance to run index maintenance…
SQL Agent job runs on a single database, not all databases.
Trap 3: Use Azure Data Factory to schedule a stored procedure execution for…
Data Factory is not optimized for database maintenance tasks and adds complexity.
- A
Use Azure Automation with a PowerShell runbook that connects to each database and runs index maintenance.
Why wrong: This requires custom scripting and additional management, not minimizing overhead.
- B
Configure a SQL Agent job on the instance to run index maintenance on the master database.
Why wrong: SQL Agent job runs on a single database, not all databases.
- C
Create an elastic job agent with a T-SQL script for index maintenance targeting all databases.
Elastic job agent is designed for automating tasks across databases in a managed instance with minimal overhead.
- D
Use Azure Data Factory to schedule a stored procedure execution for each database.
Why wrong: Data Factory is not optimized for database maintenance tasks and adds complexity.