Q1 — AWS SAA-C03 Ch.12

Question 1 of 100 | ← Chapter 12

Q801. A company is building a new application that uses serverless architecture. The architecture will consist of an Amazon API Gateway REST API and AWS Lambda functions to manage incoming requests.The company wants to add a service that can send messages received from the API Gateway REST API to multiple target Lambda functions for processing. The service must offer message filtering that gives the target Lambda functions the ability to receive only the messages the functions need.Which solution will meet these requirements with the LEAST operational overhead?

Correct Answer: B. Send the requests from the API Gateway REST API to Amazon EventBridge. Configure EventBridge to invoke the target Lambda functions.

Explanation

To meet the requirements of sending messages received from the API Gateway REST API to multiple target Lambda functions for processing, with message filtering capability and the least operational overhead, the recommended solution is:B. Send the requests from the API Gateway REST API to Amazon EventBridge. Configure EventBridge to invoke the target Lambda functions.Amazon EventBridge is a serverless event bus service that allows you to route events from various sources to targets for processing. By sending the requests from the API Gateway REST API to EventBridge, you can configure EventBridge rules to route the messages to the target Lambda functions based on specified filtering criteria. This provides the desired message filtering capability without the need for additional services.Here's why the other options are not the best fit for the given requirements:A. Sending requests to an SNS topic and subscribing SQS queues to the topic: While this option allows for decoupling and asynchronous processing, it introduces additional services (SNS and SQS) and requires the target Lambda functions to poll the SQS queues. This adds operational overhead and complexity compared to the EventBridge solution.C. Sending requests to Amazon MSK and configuring it to publish messages to the target Lambda functions: Amazon MSK is a managed Apache Kafka service, which may be an over-engineered solution for this scenario. It introduces additional complexity and operational overhead compared to using EventBridge.D. Sending requests to multiple SQS queues and configuring the target Lambda functions to poll these queues: This option introduces additional services (SQS) and requires the target Lambda functions to handle the polling of multiple queues. It adds operational overhead and complexity compared to the EventBridge solution.Therefore, the recommended solution that meets the requirements of sending messages received from the API Gateway REST API to multiple target Lambda functions with message filtering capability and the least operational overhead is:B. Send the requests from the API Gateway REST API to Amazon EventBridge. Configure EventBridge to invoke the target Lambda functions.