AZ-204 · Question #353
A CRON expression is a string that consists of six fields that represent a set of times. The order of the six fields in Azure is: {second} {minute} {hour} {day} {month} {day of the week}. Suppose…
The correct answer is B. *. To specify 'every day' in the {{day of the week}} position of an Azure CRON expression, the asterisk (*) special character is used.
Question
Options
- A/
- B
- C,
- D
How the community answered
(28 responses)- A7% (2)
- B75% (21)
- C14% (4)
- D4% (1)
Why each option
To specify 'every day' in the {{day of the week}} position of an Azure CRON expression, the asterisk (*) special character is used.
The forward slash (/) is used to specify increments (e.g., */5 for every 5 units).
In CRON expressions, the asterisk (*) character is a wildcard that signifies 'every' or 'any' value for a particular field, meaning it will match every day of the week. Therefore, placing an asterisk in the {{day of the week}} field schedules the job to run daily.
The comma (,) is used to specify a list of values (e.g., MON,WED,FRI).
The hyphen (-) is used to specify a range of values (e.g., MON-FRI).
Concept tested: CRON expression wildcard character
Source: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=in-process&pivots=programming-language-csharp#ncrontab-expressions
Topics
Community Discussion
No community discussion yet for this question.