Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

The execution timeout for AWS Step Functions is the amount of time that the service has to

complete a task before it is considered timed out. This timeout can be set by the user and is
measured in seconds. If a task does not complete within the specified timeout, then the Step
Function will move on

11. How much does it cost to run a step function?

The cost of running a step function depends on the number of state transitions that are executed.
Each state transition costs $0.025 per 100,000 executions.

12. How long will the results of a step function be available for access by clients?

The results of a step function will be available for access by clients for as long as the step
function is runnthe step function is terminated, then the results will no longer be available.

13. How do AWS Step Functions handle errors during execution?

AWS Step Functions will automatically retry an activity that fails due to an error, up to a
maximum number of times that you specify. If the activity still fails after all retries are
attempted, then AWS Step Functions will move the activity to a terminal state.

14. Can you explain the difference between Activity Timeouts and Heartbeats?

Activity timeouts are used to set a limit on how long an activity can run before it times out. This
is useful for ensuring that activities do not run for too long and end up costing more money than
necessary. Heartbeats, on the other hand, are used to check on the status of an activity and make
sure that it is still running. If an activity does not respond to a heartbeat, then it is assumed to
have timed out and will be terminated.

15. How can you avoid repetition when developing complex applications involving several step
functions?

One way to avoid repetition when developing complex applications involving several step
functions is to use AWS Lambda functions. Lambda functions can be used to encapsulate code
that needs to be executed in multiple step functions. This allows you to avoid having to duplicate
code across multiple step functions.

16. How do you monitor your step functions once deployed?

You can monitor your step functions using Amazon CloudWatch. You can create alarms to
trigger when certain events occur, and you can also view logs to see what is happening inside
your step function at any given time.
17. How should you design your app’s architecture if you have multiple steps that need to
synchronize their responses before proceeding further?

In this case, you would want to use AWS Step Functions to coordinate the different steps. This
would allow you to design your app so that each step can proceed independently, but still

You might also like