You have a C# Azure Functions app that uses an HTTP-triggered function with an Azure SQL input binding to query dbo.Employee.
You are adding a second function that will react to row changes in dbo.Employee and write structured logs.
You need to configure AdventureWorksDB and the app to meet the following requirements:
• Changes to dbo.Employee must trigger the new function within five seconds.
• Each invocation must processes no more than 100 changes.
Which two database configurations should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
Show answerHide answer
Correct answer: C, D Enable change tracking on the dbo. Employee table.Enable change tracking at the database level.
Explanation
Explanation:This question tests the database prerequisites for an Azure SQL trigger in Azure Functions. The trigger detects INSERT, UPDATE, and DELETE changes by using SQL Server change tracking. Change tracking must be enabled first at the database level and then on the specific monitored table.
✔️ Correct Option:
✔️ C — Enable change tracking on the dbo.Employee table.
The Azure SQL trigger monitors changes to a specific table through SQL change tracking. Enabling change tracking on dbo.Employee allows the trigger to identify inserted, updated, and deleted rows and pass those changes to the function. This is mandatory for the new function to react to row changes in the table.
✔️ D — Enable change tracking at the database level.
Change tracking must be enabled for AdventureWorksDB before it can be enabled for dbo.Employee. The database-level setting maintains the change-tracking infrastructure and retention policy, while the table-level setting specifies the table monitored by the Azure SQL trigger. Both settings are required database configurations.
❌ Incorrect Options:
❌ A — Create an AFTER trigger on dbo.Employee for DML.
A traditional DML trigger runs inside the database when a change occurs, but it is not the mechanism used by the Azure Functions SQL trigger. The Azure SQL trigger specifically relies on SQL change tracking, not an AFTER INSERT, UPDATE, or DELETE trigger.
❌ B — Set Sql_Trigger_MaxBatchSize to 100.
This controls the maximum number of changes sent to the function in one trigger iteration, but it is an Azure Functions application/host configuration setting, not a database configuration. Also, 100 is already the default value, so it is not one of the required database changes.
❌ E — Set Sql_Trigger_PollingIntervalMs to 5000.
This setting controls the delay between polling cycles and is configured in the Azure Functions app, not in the SQL database. A value of 5,000 ms would mean up to a five-second delay between polls, but it is not a database configuration and is unnecessary because the default polling interval is already 1,000 ms.
❌ F — Enable change data capture (CDC) for dbo.Employee table changes.
Change Data Capture captures detailed row changes for consumption, but the Azure SQL trigger for Functions is documented as using SQL change tracking, not CDC. Enabling CDC does not satisfy the required change-tracking configuration for this trigger.
🔧 Reference:
→ Azure SQL trigger for Functions — Microsoft Learn — Confirms that the trigger uses SQL change tracking and requires it at both database and table level.
→ Manipulate data in Azure SQL Database with Azure Functions — Microsoft Learn — Shows the required ALTER DATABASE ... SET CHANGE_TRACKING = ON and ALTER TABLE ... ENABLE CHANGE_TRACKING steps.






