AZ-204 Quiz

Functions

Question:

You are working on a project that requires automatic clean-up of older records in a database every day at a specific time. The clean-up task should be an Azure function that gets triggered at the specified time. The target database has high-throughput transactional capacity, and tunable consistency levels, can you delineate a solution for this task? Please provide the triggers and bindings in the given code.

[FunctionName("CleanUpOldRecords")]
public static void Run(
    /* Triggers and Bindings here */

    ILogger log)
{
    // Loop over oldRecords
    // For each record, mark it for deletion or update it as per your logic
    // Add the updated records to database
}


Report a problem
Exam revision: April 11, 2025