SAP-C02 exam dumps

SAP-C02 practice question 283 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 283

Select 3

An e-commerce company is building a serverless order processing system. The system involves the following steps:

  1. Customers place an order, which is sent to an Amazon SQS queue.
  2. A Lambda function retrieves messages from the queue and processes the orders.
  3. After processing, the Lambda function sends a notification to a customer service team via Amazon SNS if the order fails.
  4. The company also needs to ensure that failed messages from the SQS queue are automatically retried up to 5 times before being sent to a dead-letter queue (DLQ).

Which of the following steps should you take to meet the company's requirements?

  1. A

    Configure a redrive policy on the Amazon SQS queue with a maximumReceiveCount of 5 and link it to the DLQ.

  2. B

    Subscribe the customer service team's email address to the Amazon SNS topic.

  3. C

    Use an AWS Step Functions workflow to orchestrate the Lambda function and message retries.

  4. D

    Set up an Amazon SNS topic and configure a filter policy to forward only failed order messages to the customer service team.

  5. E

    Enable SQS long polling in the Lambda event source mapping to efficiently retrieve messages from the queue.

Show answer and explanation

Correct answers: A, B, D

Explanation

To meet the requirements, you need to configure a redrive policy on the SQS queue to manage retries and send failed messages to the DLQ. The customer service team must be subscribed to the Amazon SNS topic to receive notifications. Additionally, using an SNS filter policy ensures that only relevant (failed order) messages are forwarded to the team. AWS Step Functions and SQS long polling are not necessary for this specific scenario.

  • A. Correct.

    Correct. A redrive policy ensures that failed messages are retried up to the specified maximumReceiveCount before being sent to the DLQ.

  • B. Correct.

    Correct. The customer service team's email address must be subscribed to the Amazon SNS topic to receive notifications.

  • C. Incorrect.

    Incorrect. AWS Step Functions is not required in this scenario since the workflow is simple and can be handled with SQS, Lambda, and SNS.

  • D. Correct.

    Correct. Configuring an SNS filter policy ensures that only failed order messages are forwarded to the customer service team.

  • E. Incorrect.

    Incorrect. While SQS long polling can improve message retrieval efficiency, it does not directly address the requirements for retries or notifications.

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