
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 company's web application consists of an Amazon API Gateway API in front of an AWS Lambda function and an Amazon DynamoDB database. The Lambda function handles the business logic, and the DynamoDB table hosts the data. The application uses Amazon Cognito user pools to identify the individual users of the application. A solutions architect needs to update the application so that only users who have a subscription can access premium content.
Which solution will meet this requirement with the LEAST operational overhead?
A
Enable API caching and throttling on the API Gateway API.
B
Set up AWS WAF on the API Gateway API. Create a rule to filter users who have a subscription.
C
Apply fine-grained IAM permissions to the premium content in the DynamoDB table.
D
Implement API usage plans and API keys to limit the access of users who do not have a subscription.
Explanation:
Correct Answer: D - Implement API usage plans and API keys to limit the access of users who do not have a subscription.
Why this is the correct answer:
API Gateway Usage Plans are specifically designed to control access to API methods based on subscription levels. They allow you to:
Least Operational Overhead: This solution leverages existing API Gateway capabilities without requiring:
Integration with Cognito: API Gateway can work with Cognito user pools for authentication, and then use usage plans to control access based on subscription status.
Analysis of other options:
A. Enable API caching and throttling on the API Gateway API.
B. Set up AWS WAF on the API Gateway API. Create a rule to filter users who have a subscription.
C. Apply fine-grained IAM permissions to the premium content in the DynamoDB table.
Key AWS Services Involved:
Implementation Approach: