
Explanation:
The correct answer is B: Create an Amazon API Gateway HTTP API. Implement each webhook logic in a separate AWS Lambda function. Update the Git servers to call the API Gateway endpoint.
This solution best meets the requirements for a serverless architecture with the least operational overhead.
/webhook/push, /webhook/pull-request) to the appropriate Lambda function using simple route configurations.This closely mirrors the current setup (one entry point calling multiple backend logics) but removes all operational burden.
Option A (Lambda Function URLs):
Option C (AWS App Runner + ALB):
Option D (ECS Fargate + API Gateway REST API):
This approach gives you automatic scaling, high availability, pay-per-use pricing, and near-zero ops work—exactly what the question is testing. If you have the original webhook code, it's usually straightforward to port it into Lambda functions.
Ultimate access to all questions.
No comments yet.
A company hosts a Git repository in an on-premises data center. The company uses webhooks to invoke functionality that runs in the AWS Cloud. The company hosts the webhook logic on a set of Amazon EC2 instances in an Auto Scaling group that the company set as a target for an Application Load Balancer (ALB). The Git server calls the ALB for the configured webhooks. The company wants to move the solution to a serverless architecture. Which solution will meet these requirements with the LEAST operational overhead?
A
For each webhook, create and configure an AWS Lambda function URL. Update the Git servers to call the individual Lambda function URLs.
B
Create an Amazon API Gateway HTTP API. Implement each webhook logic in a separate AWS Lambda function. Update the Git servers to call the API Gateway endpoint.
C
Deploy the webhook logic to AWS App Runner. Create an ALB, and set App Runner as the target. Update the Git servers to call the ALB endpoint.
D
Containerize the webhook logic. Create an Amazon Elastic Container Service (Amazon ECS) cluster, and run the webhook logic in AWS Fargate. Create an Amazon API Gateway REST API, and set Fargate as the target. Update the Git servers to call the API Gateway endpoint.