Q28 Functions Domain 3 · 20–25% of exam Priority · Real Exam

Which constraint applies to Durable Functions orchestrator code?

  1. A It may call any API freely
  2. B It must be deterministic: no DateTime.Now, no random values, no direct I/O (correct answer)
  3. C It cannot call activities
  4. D It must complete within 5 minutes

Shortcut: Orchestrators replay their history to rebuild state, so non-deterministic operations would diverge. CurrentUtcDateTime and perform I/O inside activity functions.

Orchestrators replay their history to rebuild state, so non-deterministic operations would diverge. Use context.CurrentUtcDateTime and perform I/O inside activity functions.