SAP-C02 exam dumps

SAP-C02 practice question 673 of 678

AWS Certified Solutions Architect - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

SAP-C02 Question 673

Select 4

A retail company is building a new order processing system on AWS. When an order is placed, it must trigger a series of actions in the following sequence: validate the order, charge the customer, update inventory, and send a confirmation email. Each step must be retried if it fails, and the entire workflow should ensure that all steps are executed in order. The company also wants to analyze events for patterns and anomalies in real time. Which combination of services should the company use to meet these requirements?

  1. A

    Amazon Step Functions to orchestrate the workflow

  2. B

    Amazon EventBridge to process real-time events

  3. C

    Amazon SNS for charging the customer and sending the confirmation email

  4. D

    Amazon SQS for decoupling the inventory update process

  5. E

    AWS Lambda for executing each step in the workflow

Show answer and explanation

Correct answers: A, B, D, E

Explanation

The solution requires a combination of services to handle sequential workflows, real-time event processing, and decoupled communication. Amazon Step Functions manages the entire workflow with retry capabilities and ensures that steps are executed in order. Amazon EventBridge enables real-time event analysis and routing. Amazon SQS ensures decoupling for the inventory update task. AWS Lambda handles the execution of individual tasks in the workflow. Amazon SNS is not suitable in this case because it is designed for pub/sub messaging rather than sequential task execution.

  • A. Correct.

    Amazon Step Functions is the correct choice for orchestrating the workflow as it is designed for managing complex, sequential workflows with retries and error handling.

  • B. Correct.

    Amazon EventBridge is suitable for processing real-time events and analyzing patterns, as it can ingest, filter, and route events to downstream consumers.

  • C. Incorrect.

    Amazon SNS is not appropriate for charging the customer or sending the confirmation email in this scenario because SNS is designed for pub/sub messaging rather than the execution of sequential tasks.

  • D. Correct.

    Amazon SQS is a good choice for decoupling the inventory update process, as it ensures reliable message delivery and allows for asynchronous processing.

  • E. Correct.

    AWS Lambda is the right choice for executing each step in the workflow because it can handle individual tasks such as validation, charging, inventory updates, and sending emails.

Timed practice exam

Take a SAP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam