Bird
0
0

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:
  1. Step 1: Recall AWS API Gateway setup

    API Gateway requires defining resources and methods that connect to backend services like Lambda or HTTP endpoints.
  2. 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.
  3. Final Answer:

    Configure an API Gateway resource and method, then integrate with backend. -> Option D
  4. Quick Check:

    API Gateway setup = resource + method + backend integration [OK]
Quick Trick: API Gateway needs resource and method setup, not direct Lambda calls [OK]
Common Mistakes:
  • Calling Lambda directly without API Gateway
  • Using EC2 IP as API endpoint without API Gateway
  • Confusing S3 URLs with API endpoints

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes