0
0
AWScloud~20 mins

Step Functions for workflows in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Step Functions Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when a Step Function state fails without a retry?

Consider an AWS Step Function with a state that fails and has no retry configured. What is the behavior of the workflow?

AThe entire workflow immediately fails and stops execution.
BThe workflow retries the failed state automatically three times.
CThe workflow ignores the failure and continues to the next state.
DThe workflow pauses and waits for manual intervention.
Attempts:
2 left
💡 Hint

Think about what happens if no retry or catch is set for a failing state.

Architecture
intermediate
2:00remaining
Which Step Function state type is best for running a Lambda function asynchronously?

You want to run an AWS Lambda function asynchronously within a Step Function workflow. Which state type should you use?

AChoice state directing to Lambda.
BWait state before calling Lambda.
CPass state with Lambda ARN.
DTask state with 'InvocationType' set to 'Event'.
Attempts:
2 left
💡 Hint

Consider how to invoke Lambda asynchronously in Step Functions.

security
advanced
2:30remaining
How to securely pass sensitive data to a Step Function without exposing it in logs?

You need to pass sensitive information (like passwords) to a Step Function execution but want to avoid exposing it in CloudWatch logs. What is the best practice?

AStore sensitive data in AWS Secrets Manager and reference it in the Step Function using parameters.
BInclude sensitive data directly in the input JSON of the Step Function execution.
CEncrypt sensitive data manually and pass as plain text in input.
DSend sensitive data as environment variables in Lambda functions only.
Attempts:
2 left
💡 Hint

Think about AWS services designed for secrets management and integration with Step Functions.

Configuration
advanced
2:00remaining
What is the effect of setting 'HeartbeatSeconds' in a Task state?

In an AWS Step Function Task state, you set 'HeartbeatSeconds' to 30. What happens if the task does not send a heartbeat within 30 seconds?

AThe Step Function pauses and waits indefinitely.
BThe task automatically retries without failure.
CThe Step Function marks the task as failed due to timeout.
DThe task continues running without interruption.
Attempts:
2 left
💡 Hint

HeartbeatSeconds is related to task health checks.

Best Practice
expert
3:00remaining
How to design a Step Function workflow to handle partial failures and continue processing?

You have a Step Function workflow that processes multiple independent tasks. You want the workflow to continue even if some tasks fail, collecting success and failure results. Which design approach achieves this?

AUse Wait states between tasks to avoid failures.
BUse Parallel state with Catch blocks on each branch to handle failures and continue.
CUse Choice states to skip failed tasks without capturing errors.
DUse a single Task state without error handling; failures stop the workflow.
Attempts:
2 left
💡 Hint

Think about how to isolate failures in parallel branches.