Microsoft Azure Developer Associate AZ-204 Practice Question

You use a C# timer-triggered Azure Function with the CRON expression '0 0 */4 * * *' so it runs every four hours. The function must also execute once immediately when the function app starts. Which configuration change accomplishes this?

  • Add the parameter RunOnStartup = true to the TimerTrigger attribute.

  • Create an application setting named WEBSITE_TIME_TRIGGER with the value Startup.

  • Set useMonitor to false for the timer extension in host.json.

  • Enable the AlwaysOn setting on the Function App in Azure portal.

Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot