A company launched a signup portal where users provide email addresses to get product updates. A developer built an AWS Lambda function (deployed with AWS SAM) that writes these emails to DynamoDB. The developer must expose the Lambda over HTTP as a REST endpoint with the LEAST extra configuration. Which of the following will meet this requirement? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Expose the Lambda function by creating a Lambda function URL., Expose the Lambda function using Amazon API Gateway..
Why this is the answer
Lambda function URLs provide a dedicated HTTP endpoint for a Lambda function, offering the least configuration overhead for direct HTTP invocation. This is a straightforward way to expose a Lambda function as a REST endpoint without needing additional services. Amazon API Gateway is also a correct solution. It is a fully managed service that allows developers to create, publish, maintain, monitor, and secure REST, HTTP, and WebSocket APIs at any scale. While it offers more advanced features than a direct function URL (like throttling, caching, and custom domains), it is still a common and relatively simple way to expose a Lambda function over HTTP. Gateway Load Balancers and Network Load Balancers are designed for network-level traffic distribution and are not suitable for exposing a serverless function via HTTP. AWS Global Accelerator is used for improving global application performance and availability by routing traffic to optimal endpoints, not for directly exposing a Lambda function as a REST endpoint.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed