Microsoft Certified: Azure AI Engineer AssociatePlan and manage an Azure AI solutionHard

An energy company is building an Azure AI solution to analyze sensor data from wind turbines for anomaly detection. The solution uses Azure Stream Analytics to process real-time data and Azure Cognitive Services for anomaly detection. They need to ensure that the AI solution can process data even if there are intermittent network issues or temporary service unavailability, without losing any data or requiring manual restarts. Which design pattern should they incorporate?

  1. ACircuit Breaker pattern.
  2. BRetry with Exponential Backoff pattern.
  3. CBulkhead pattern.
  4. DSaga pattern.
Show answer & explanation

Correct answer: B. Retry with Exponential Backoff pattern.

The Retry with Exponential Backoff pattern is crucial for transient fault handling. It automatically retries failed operations with progressively longer delays, allowing the service to recover from intermittent issues without data loss or manual intervention, which is essential for real-time data processing.

Why the other options are wrong

  • A. The Circuit Breaker pattern prevents an application from repeatedly trying to invoke a failing service, but it doesn't solve the problem of automatically recovering from intermittent issues by retrying.
  • C. The Bulkhead pattern isolates elements of an application into separate pools to prevent a failure in one part from affecting others, which is about resilience, but not specifically retry logic for transient faults.
  • D. The Saga pattern manages distributed transactions to ensure data consistency across microservices, which is unrelated to transient fault handling for AI services.

Retry with Exponential Backoff

A transient fault handling pattern where an application automatically retries failed operations with progressively longer delays between retries.

  • Handles temporary network issues and service unavailability.
  • Prevents overwhelming the service with constant retries.
  • Crucial for robust, self-recovering distributed systems.

Memory trick: Retry backoff patiently waits for AI to recover.

More Plan and manage an Azure AI solution questions