
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A solutions architect needs to design a new microservice for a company's application. Clients must be able to call an HTTPS endpoint to reach the microservice. The microservice also must use AWS Identity and Access Management (IAM) to authenticate calls. The solutions architect will write the logic for this microservice by using a single AWS Lambda function that is written in Go 1.x.
Which solution will deploy the function in the MOST operationally efficient way?
A
Create an Amazon API Gateway REST API. Configure the method to use the Lambda function. Enable IAM authentication on the API.
B
Create a Lambda function URL for the function. Specify AWS_IAM as the authentication type.
C
Create an Amazon CloudFront distribution. Deploy the function to Lambda@Edge. Integrate IAM authentication logic into the Lambda@Edge function.
D
Create an Amazon CloudFront distribution. Deploy the function to CloudFront Functions. Specify AWS_IAM as the authentication type.
Explanation:
Correct Answer: B - Create a Lambda function URL for the function. Specify AWS_IAM as the authentication type.
Operational Efficiency: Lambda function URLs provide the simplest and most direct way to expose a Lambda function as an HTTPS endpoint with IAM authentication. This is a single-step configuration that doesn't require additional services.
Native IAM Support: Lambda function URLs natively support AWS_IAM authentication type, which automatically handles IAM-based authentication without requiring custom code.
Minimal Components: This solution uses only Lambda (with function URL), whereas other options require additional services like API Gateway or CloudFront.
Cost Efficiency: Lambda function URLs have no additional charges beyond Lambda execution costs, making them more cost-effective than API Gateway.
Option A (API Gateway):
Option C (Lambda@Edge):
Option D (CloudFront Functions):
For simple microservices where clients need direct access to Lambda functions with IAM authentication, Lambda function URLs are the recommended approach due to their simplicity, lower cost, and reduced operational overhead compared to API Gateway.