Which of the following is the correct way to define an API Gateway endpoint in AWS?
easy📝 Syntax Q12 of 15
AWS - API Gateway
Which of the following is the correct way to define an API Gateway endpoint in AWS?
ACreate a Lambda function and call it directly from the client.
BUse S3 bucket URL as the API endpoint.
CSet up an EC2 instance and expose its IP as the API endpoint.
DConfigure an API Gateway resource and method, then integrate with backend.
Step-by-Step Solution
Solution:
Step 1: Recall AWS API Gateway setup
API Gateway requires defining resources and methods that connect to backend services like Lambda or HTTP endpoints.
Step 2: Evaluate options
Configure an API Gateway resource and method, then integrate with backend. correctly describes configuring API Gateway resources and methods. Others describe unrelated or incorrect setups.
Final Answer:
Configure an API Gateway resource and method, then integrate with backend. -> Option D