AWS Certified Developer – Associate / Question #934 of 557

Question #934

A company is developing a webinar registration system that requires users to submit their contact information. The system uses an AWS Lambda function to process registrations and store data in Amazon DynamoDB. The Lambda function is deployed using AWS SAM, and the company needs to provide HTTP access to this function with minimal additional configuration.

Which solutions meet these requirements? (Choose two.)

A

Expose the Lambda function using function URLs.

B

Expose the Lambda function using an Application Load Balancer.

C

Expose the Lambda function using an Amazon CloudFront distribution.

D

Expose the Lambda function using AWS Direct Connect.

E

Expose the Lambda function using Amazon API Gateway.

Explanation

Answer A (Lambda Function URLs) is correct because it allows direct HTTP access to a Lambda function without additional services, requiring only enabling the URL in the Lambda configuration. Answer E (API Gateway) is correct as it is AWS's standard service for building HTTP APIs and integrates seamlessly with Lambda via SAM.

Options B (ALB) and C (CloudFront) require additional configurations like listeners, target groups, or origins, making them less minimal. Option D (Direct Connect) is unrelated to HTTP access, as it establishes private network connections. Key points: Lambda Function URLs and API Gateway are the simplest ways to expose Lambda functions over HTTP with SAM.

Answer

The correct answer is: AE