Assess your understanding of the core features, capabilities, and basic concepts within AWS API Gateway. This quiz focuses on endpoint types, integration options, key terminology, and essential security features, offering a foundational review for cloud and API beginners.
Which of the following best describes the primary function of an API Gateway?
Explanation: API Gateways act as a central entry point for APIs, handling security, traffic management, and request routing to back-end services. They do not store data like a storage service, nor are they limited to serverless use cases. Additionally, they are not used as database systems; their main role is API traffic control and management.
Which protocol is most commonly supported for API Gateway endpoints to allow clients to connect?
Explanation: API Gateways normally use HTTP because it is the standard for web APIs, supporting RESTful and WebSocket communications. FTP is a file transfer protocol and not designed for API calls. SMTP is used for sending emails, and SSH is meant for secure remote shell access, neither of which are suited for APIs.
Which feature of API Gateway helps restrict access to certain API methods based on user identity?
Explanation: Authorization helps ensure only permitted users can access or execute specific API methods, often by evaluating authentication tokens or credentials. Caching improves performance, throttling manages request rates, and monitoring observes usage and errors, but none of these directly regulates user access.
If an API Gateway forwards a client's request to a Lambda function for processing, which integration type is being used?
Explanation: Lambda integration allows the API Gateway to trigger serverless functions in response to incoming requests, enabling managed and scalable logic processing. Database and direct SQL integration refer to data storage, and FTP integration is unrelated to API calls or endpoint triggers.
What is the main purpose of throttling in an API Gateway configuration?
Explanation: Throttling is used to prevent any single client or user from overloading the API by capping request rates. It does not block all requests, nor is it used for encryption or file storage. Encryption secures data, and storage of large files is not handled by API Gateways.
Which of the following are major endpoint types supported by most API Gateways?
Explanation: These are the core endpoint types, allowing users to choose between serving requests close to specific regions, through global edge locations, or within a private network. The other options include inaccurate or generic terms that do not match standard endpoint typologies in API Gateway.
Given the URL 'https://api.example.com/users/123', what does 'users/123' represent in API Gateway terminology?
Explanation: The section 'users/123' is a resource path that maps to a particular resource or endpoint within the API. HTTP method refers to actions like GET or POST, API integration connects to back-end logic or services, and Authorizer relates to access control, not the path structure.
What is a primary benefit of enabling caching for an API Gateway endpoint?
Explanation: Caching speeds up responses by keeping copies of popular responses, reducing the need to process each request from scratch. It does not increase authorization checks, send unnecessary alerts, or require updates for every request, which would defeat the purpose of caching.
Which purpose do mapping templates serve in an API Gateway configuration?
Explanation: Mapping templates are used to convert or reformat incoming or outgoing data as it passes through the gateway, enabling compatibility with different backends or client needs. They do not manage scaling, reset limits, or provide encryption functions.
What kind of information can API Gateway monitoring tools help visualize?
Explanation: Monitoring tools in API Gateway allow observation of API usage and performance metrics such as request rates, error frequencies, and response times. They do not display information about server operating systems, client-side interfaces, or physical network hardware.