InterviewHubPRO
Section Overview
Q35

Question 35 of 65

Part 3: Compute, Containers & Serverless (21 - 35)

54%
AWS Cloud Architecture•Part 3: Compute, Containers & Serverless (21 - 35)

AWS Step Functions: Standard vs Express Workflows.

In Simple Words:

  • Standard Workflows: For long-running orchestration (up to 1 year). Exactly-once execution and complete audit history persisted.
  • Express Workflows: For high-volume, short event processing (up to 5 minutes). At-least-once execution; handles 100,000+ events/second at lower cost.
json
// Step Functions Amazon States Language (ASL) snippet:
{
  "Comment": "Order Fulfillment State Machine",
  "StartAt": "ProcessPayment",
  "States": {
    "ProcessPayment": {
      "Type": "Task",
      "Resource": "arn:aws:states:::lambda:invoke",
      "Parameters": { "FunctionName": "ProcessPaymentFunction" },
      "Next": "ShipOrder"
    },
    "ShipOrder": {
      "Type": "Task",
      "Resource": "arn:aws:states:::lambda:invoke",
      "Parameters": { "FunctionName": "ShipOrderFunction" },
      "End": true
    }
  }
}