AWS Certified Developer – Associate (DVA-C02) — Question 385
A company launched an online portal to announce a new product that the company will release in 6 months. The portal requests that users enter an email address to receive communications about the product. The company needs to create a REST API that will store the email addresses in Amazon DynamoDB.
A developer has created an AWS Lambda function that can store the email addresses. The developer will deploy the Lambda function by using the AWS Serverless Application Model (AWS SAM). The developer must provide access to the Lambda function over HTTP.
Which solutions will meet these requirements with the LEAST additional configuration? (Choose two.)
Answer options
- A. Expose the Lambda function by using function URLs.
- B. Expose the Lambda function by using a Gateway Load Balancer.
- C. Expose the Lambda function by using a Network Load Balancer.
- D. Expose the Lambda function by using AWS Global Accelerator.
- E. Expose the Lambda function by using Amazon API Gateway.
Correct answer: A, E
Explanation
Lambda function URLs provide a dedicated HTTP(S) endpoint for a Lambda function with minimal setup, making them ideal for simple single-function APIs. Amazon API Gateway is a fully managed service that easily integrates with Lambda to create robust REST APIs and is natively supported by AWS SAM with minimal configuration. Network Load Balancers, Gateway Load Balancers, and AWS Global Accelerator require significantly more infrastructure configuration, such as VPC networking, target groups, and routing rules, which do not meet the 'least configuration' requirement.