正解:C
Basic Concept: This question tests task automation for database administration, including which Azure or SQL mechanism can run repeatable maintenance and configuration work.
Why C is Correct: Run the sp_configure command. can participate in administration workflows, but automation questions require the mechanism that can execute repeatable tasks with the correct scope and schedule. This fits the case because the requested outcome is: You need to enable SQL Agent Job email notifications. The selected feature addresses that outcome directly rather than relying on a workaround.
Why A is Wrong: Use the Agent XPs option. can participate in administration workflows, but automation questions require the mechanism that can execute repeatable tasks with the correct scope and schedule. It would leave too much manual work or would operate at the wrong scope for the requested automation.
Why B is Wrong: SQL Server Agent schedules and runs SQL Server jobs; in Azure SQL Database, Elastic Jobs or Azure Automation are often used instead. It does not provide the required repeatable execution, scheduling, or deployment automation requirement, so it would not complete the administrative workflow reliably.
Why D is Wrong: Run the sp set_agent properties command. can participate in administration workflows, but automation questions require the mechanism that can execute repeatable tasks with the correct scope and schedule. It would leave too much manual work or would operate at the wrong scope for the requested automation.