Final answer:
The three ways to add access controls or authorizers for a REST API in Amazon API Gateway are Lambda authorizer, VPC endpoint policy, and Cognito User Pool. The correct answer is B.
Step-by-step explanation:
Lambda authorizer, VPC endpoint policy, and Cognito User Pool. These are three ways to add access controls or authorizers for a REST API in Amazon API Gateway.
- Lambda Authorizer: This is a custom authorization function that you can create using AWS Lambda. It allows you to implement custom authorization logic for your API.
- VPC Endpoint Policy: This is a policy that allows you to control access to your API Gateway from resources within your Amazon Virtual Private Cloud (VPC).
- Cognito User Pool: This is a fully managed user service that can handle user registration, sign-in, and access control for your API. It integrates with API Gateway to provide authentication and authorization capabilities.
Therefore the correct answer is B.