0
0
AWScloud~10 mins

Step Functions for workflows in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the type of the Step Function state.

AWS
"Type": "[1]"
Drag options to blanks, or click blank then click option'
AQueue
BTask
CLambda
DBucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Bucket' or 'Queue' which are AWS services but not Step Function state types.
Using 'Lambda' as a type instead of 'Task'.
2fill in blank
medium

Complete the code to specify the next state in the workflow.

AWS
"Next": "[1]"
Drag options to blanks, or click blank then click option'
AProcessData
BStartState
CEndState
DInitialize
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'EndState' which is usually a terminal state, not a next step.
Using 'StartState' which is the first state, not the next.
3fill in blank
hard

Fix the error in the state definition by completing the missing field.

AWS
"End": [1]
Drag options to blanks, or click blank then click option'
A"true"
BTrue
C"True"
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Putting true in quotes, making it a string instead of boolean.
Using capitalized True which is invalid in JSON.
4fill in blank
hard

Fill both blanks to define a Task state with a Lambda function resource and mark it as the end state.

AWS
{
  "Type": "[1]",
  "Resource": "[2]",
  "End": true
}
Drag options to blanks, or click blank then click option'
ATask
Barn:aws:s3:::mybucket
Carn:aws:lambda:us-east-1:123456789012:function:MyFunction
DChoice
Attempts:
3 left
💡 Hint
Common Mistakes
Using S3 bucket ARN as Resource instead of Lambda ARN.
Using Choice as Type which is for branching, not tasks.
5fill in blank
hard

Fill all three blanks to create a Choice state that routes based on a variable's value.

AWS
{
  "Type": "Choice",
  "Choices": [
    {
      "Variable": "[1]",
      "StringEquals": "[2]",
      "Next": "[3]"
    }
  ]
}
Drag options to blanks, or click blank then click option'
A$.status
BCompleted
CSuccessState
D$.result
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong JSON path for Variable.
Using a state name that does not exist for Next.
Putting values in wrong fields.