Q63 — AWS SAA-C03 Ch.10
Question 63 of 100 | ← Chapter 10
Q663. A company uses an AWS Batch job to run its end-of-day sales process.The company needs a serverless solution that will invoke a third-party reporting application when the AWS Batch job is successful. The reporting application has an HTTP API interface that uses username and password authentication.Which solution will meet these requirements?
- A. Configure an Amazon EventBridge rule to match incoming AWS Batch job SUCCEEDED events.Configure the third-party API as an EventBridge API destination with a username and password. Set the API destination as the EventBridge rule target
- B. Configure Amazon EventBridge Scheduler to match incoming AWS Batch iob SUCCEEDED events.Configure an AWS Lambda function to invoke the third-party API by using a username and password.Set the Lambda function as the EventBridge rule target
- C. Configure an AWS Batch job to publish job SUCCEEDED events to an Amazon API Gateway REST API. Configure an HTTP proxy integration on the API Gateway REST API to invoke the third-party API by using a username and password
- D. Configure an AWS Batch job to publish job SUCCEEDED events to an Amazon API Gateway REST API. Configure a proxy integration on the API Gateway REST API to an AWS Lambda function.Configure the Lambda function to invoke the third party API by using a username and password ✓
Correct Answer: D. Configure an AWS Batch job to publish job SUCCEEDED events to an Amazon API Gateway REST API. Configure a proxy integration on the API Gateway REST API to an AWS Lambda function.Configure the Lambda function to invoke the third party API by using a username and password
Explanation
To meet the requirement of invoking a third-party reporting application with username and password authentication when an AWS Batch job is successful, the solution that will meet these requirements is:D. Configure an AWS Batch job to publish job SUCCEEDED events to an Amazon API Gateway REST API. Configure a proxy integration on the API Gateway REST API to an AWS Lambda function. Configure the Lambda function to invoke the third-party API using a username and password.Here's the rationale behind this solution:Option D: Configure an AWS Batch job to publish job SUCCEEDED events to an Amazon API Gateway REST API. Configure a proxy integration on the API Gateway REST API to an AWS Lambda function. Configure the Lambda function to invoke the third-party API using a username and password. This solution involves configuring the AWS Batch job to publish job SUCCEEDED events to an Amazon API Gateway REST API. The API Gateway REST API is then configured with a proxy integration to an AWS Lambda function. The Lambda function is responsible for invoking the third-party API using the provided username and password for authentication.This solution provides a serverless approach where the AWS Batch job triggers the publishing of SUCCEEDED events to the API Gateway REST API. The API Gateway acts as a proxy and forwards the requests to the Lambda function, which performs the authentication and invocation of the third-party API.Option A suggests using Amazon EventBridge, which is a powerful event-driven service, but it does not directly support username and password authentication for invoking the third-party API. EventBridge API destinations are typically used for routing events, and they do not handle authentication directly.Option B suggests using Amazon EventBridge Scheduler, which is used for scheduling events, but it does not support direct invocation of the third-party API with username and password authentication. A Lambda function would be required to invoke the third-party API, but this option does not directly address the username and password authentication requirement.Option C suggests configuring an AWS Batch job to publish job SUCCEEDED events to an Amazon API Gateway REST API. While this option includes publishing events to API Gateway, it does not address the requirement of invoking the third-party API with username and password authentication. Additionally, it suggests using an HTTP proxy integration, which does not provide the necessary authentication capabilities.Therefore, the correct solution to meet the requirements is to configure an AWS Batch job to publish job SUCCEEDED events to an Amazon API Gateway REST API, configure a proxy integration on the API Gateway REST API to an AWS Lambda function, and configure the Lambda function to invoke the third- party API using a username and password (Option D).