AWS Certified Developer Associate · Free Practice Question Medium
Question 25
An IT automation architecture uses many AWS Lambda functions invoking one another as a large state machine. The coordination of this state machine is legacy custom code that breaks easily.
Which AWS Service can help refactor and manage the state machine?
-
A
AWS CloudFormation
-
B
AWS Step Functions
-
C
AWS CodePipeline
-
D
AWS CodeBuild
Reveal correct answer
Correct answer: B
Explanation
AWS Step Functions lets you coordinate multiple AWS services into serverless workflows so you can build and update apps quickly. Using Step Functions, you can design and run workflows that stitch together services, such as AWS Lambda, AWS Fargate, and Amazon SageMaker, into feature-rich applications.
Workflows are made up of a series of steps, with the output of one step acting as input into the next. Application development is simpler and more intuitive using Step Functions, because it translates your workflow into a state machine diagram that is easy to understand, easy to explain to others, and easy to change.
Step Functions automatically triggers and tracks each step, and retries when there are errors, so your application executes in order and as expected. With Step Functions, you can craft long-running workflows such as machine learning model training, report generation, and IT automation.
Therefore, AWS Step Functions is the best AWS service to use when refactoring the application away from the legacy code.
CORRECT: "AWS Step Functions" is the correct answer.
INCORRECT: "AWS CloudFormation" is incorrect as CloudFormation is used for deploying resources no AWS but not for ongoing automation.
INCORRECT: "AWS CodePipeline" is incorrect as this is used as part of a continuous integration and delivery (CI/CD) pipeline to deploy software updates to applications.
INCORRECT: "AWS CodeBuild" is incorrect as this an AWS build/test service.
References:
https://aws.amazon.com/step-functions/
Save time with our AWS cheat sheets:
https://digitalcloud.training/aws-application-integration-services/
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
