ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

Service · Networking and Content Delivery · CLF-C02 အပေါ် ဆက်လေ့လာရန်

Amazon API Gateway

Pick the API type and endpoint type, then add authorizers, throttling, caching and a private path to the backend.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Cloud Practitioner မှ သင်သိပြီးသားများ

  • API Gateway is a managed front door for APIs, in front of Lambda, EC2 or any web backend.
  • It supports REST, HTTP and WebSocket APIs.
  • It checks callers, throttles requests and records what happened.
Cloud Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • Best for

    REST
    Full-featured APIs
    HTTP
    Simple, low-cost proxy
    WebSocket
    Chat, live updates
  • Caching, usage plans, validation

    REST
    Yes
    HTTP
    No
    WebSocket
    No
  • Authorizers

    REST
    IAM, Cognito, Lambda
    HTTP
    IAM, JWT, Lambda
    WebSocket
    IAM, Lambda
  • Endpoint types

    REST
    Edge, Regional, Private
    HTTP
    Regional
    WebSocket
    Regional
  • Price

    REST
    Higher
    HTTP
    Lower
    WebSocket
    Messages and connection time
The three API types side by side.

1 / 2

  • Best for

    REST
    Full-featured APIs
    HTTP
    Simple, low-cost proxy
    WebSocket
    Chat, live updates
  • Caching, usage plans, validation

    REST
    Yes
    HTTP
    No
    WebSocket
    No
  • Authorizers

    REST
    IAM, Cognito, Lambda
    HTTP
    IAM, JWT, Lambda
    WebSocket
    IAM, Lambda

2 / 2

  • Endpoint types

    REST
    Edge, Regional, Private
    HTTP
    Regional
    WebSocket
    Regional
  • Price

    REST
    Higher
    HTTP
    Lower
    WebSocket
    Messages and connection time
The three API types side by side.
Client
API Gateway
CognitoLambda
VPC link
Load Balancingcheck token
Authorize at the gate, then call Lambda or a private load balancer.

ဘာလဲ

REST APIs have the most features: usage plans and API keys, request validation, caching, resource policies and private endpoints. HTTP APIs are simpler, cheaper and faster, with built-in JWT authorizers, but they lack those extras. WebSocket APIs keep a two-way connection open for chat or live dashboards. For “lowest cost” with simple proxying, choose an HTTP API. If the question names caching, API keys or request validation, choose a REST API.

ဘာလဲ

Endpoint types: edge-optimized sends requests through CloudFront edge locations, for clients around the world (REST APIs only). Regional serves clients in the same Region. Private is reachable only from a VPC, through an interface VPC endpoint.

ဘာလဲ

Control who calls with IAM authorization (signed requests), a Cognito user pool authorizer (users who sign in), or a Lambda authorizer (your own token logic). Throttling is 10,000 requests per second per Region and account by default, with a burst of 5,000. You can also set limits per stage, per method and per usage plan. The stage cache keeps responses for 300 seconds by default (up to 3,600). The integration timeout is 29 seconds by default. A VPC link lets API Gateway reach a load balancer in a private subnet.

မှတ်ထားရန်

  • REST: full features. HTTP: cheaper and simpler. WebSocket: two-way, long-lived connections.
  • Endpoint types: edge-optimized, Regional or Private. Private needs an interface VPC endpoint.
  • Authorizers: IAM, Cognito user pool, Lambda authorizer. HTTP APIs also have JWT authorizers.
  • Throttling: 10,000 requests per second per Region by default. Usage plans with API keys limit each customer.

မှတ်ထားရန်

  • Stage cache: default TTL 300 seconds, up to 3,600.
  • Integration timeout: 29 seconds by default. Payload limit: 10 MB.

စာမေးပွဲမှာ

  • “Limit each paying customer to a number of requests” points to a usage plan with API keys.
  • “The backend runs on instances in a private subnet” points to a VPC link.
  • “Clients around the world need low latency to the API” points to an edge-optimized endpoint.
  • “Cache API responses to reduce backend calls” points to API Gateway stage caching.