Q62 — AWS SAP-C02 Ch.3
Question 62 of 75 | ← Chapter 3
Q287. A company has automated the nightly retraining of its machine learning models by using AWS Step Functions. The workflow consists of multiple steps that use AWS Lambda. Each step can fail for various reasons, and any failure causes a failure of the overall workflow A review reveals that the retraining has failed multiple nights in a row without the company noticing the failure.A solutions architect needs to improve the workflow so that notifications are sent for all types of failures in the retraining process. Which combination of steps should the solutions architect take to meet these requirements? (Select THREE.)
- A. Create an Amazon Simple Notification Service (Amazon SNS) topic with a subscription of type "Email" that targets the team's mailing list. ✓
- B. Create a task named "Email" that forwards the input arguments to the SNS topic ✓
- C. Add a Catch field to all Task, Map, and Parallel states that have a statement of "ErrorEquals": [ "states.ALL" ] and "Next": "Email". ✓
- D. .Add a new email address to Amazon Simple Email Service (Amazon SES).Verify the email address
- E. Create a task named "Email' that forwards the input arguments to the SES email address
- F. Add a Catch field to all Task,Map, and Parallel states that have a statement of "Errorequals": ["states.Runtime" ] and "Next": "Email".
Correct Answer: A. Create an Amazon Simple Notification Service (Amazon SNS) topic with a subscription of type "Email" that targets the team's mailing list., B. Create a task named "Email" that forwards the input arguments to the SNS topic, C. Add a Catch field to all Task, Map, and Parallel states that have a statement of "ErrorEquals": [ "states.ALL" ] and "Next": "Email".
Explanation
Steps A, B, and C are necessary to create and configure an SNS topic that sends email notifications to the team's mailing list whenever any step of the AWS Step Functions workflow fails. This approach allows for comprehensive error notifications in case of any failure, including errors that may not be caught by specific error codes. Option D is incorrect because creating a new email address in Amazon SES and verifying it is not necessary for this solution. Option E is incorrect because creating a separate task for SES email forwarding is unnecessary since the SNS topic can already forward email notifications. Option F is incorrect because adding a Catch field with a statement of "ErrorEquals": ["states.Runtime"] only catches errors related to runtime errors, not all types of failures. D - No -SES doesn't seem a good fit for this use case E - No - Same as above F - No - May miss failures