API Gateway & Reverse Proxy Questions PDF
Document Details
Uploaded by DecisiveGreatWallOfChina1467
Tags
Summary
This document contains multiple choice questions and answers about API Gateways and Reverse Proxies. It covers topics such as their primary purpose, key differences, rate limiting, and load balancing. Suitable for students studying computer science or related fields.
Full Transcript
Add the following multiple choice questions and answers and explanations verbatim (DO NOT change the given wording). DON'T add any more questions than the multiple choice questions given below! New Question 1: "### 1. What is the primary purpose of an API Gateway?" Choice A: "To handle outgoing requ...
Add the following multiple choice questions and answers and explanations verbatim (DO NOT change the given wording). DON'T add any more questions than the multiple choice questions given below! New Question 1: "### 1. What is the primary purpose of an API Gateway?" Choice A: "To handle outgoing requests from microservices" Choice B: "To provide a user interface for microservices" Choice C: "To act as a single entry point for a group of microservices" Choice D: "To manage server load through horizontal scaling" Correct answer: C Explanation: "An API Gateway serves as a single entry point for a group of microservices, managing, routing, and orchestrating API calls within a microservices architecture." New Question 2: "### 7. What is one key difference between an API Gateway and a Reverse Proxy?" Choice A: "API Gateways handle data storage, while Reverse Proxies do not." Choice B: "API Gateways use caching extensively, while Reverse Proxies handle load balancing." Choice C: "Reverse Proxies aggregate results from services, while API Gateways do not." Choice D: "API Gateways manage microservices and application-specific routing, while Reverse Proxies primarily focus on general traffic management and security." Correct answer: D Explanation: "API Gateways are designed to manage microservices and handle application-specific routing, orchestration, and additional functionalities like rate limiting and protocol translation. In contrast, Reverse Proxies focus on general traffic management, load balancing, security, and caching for a wide range of applications." New Question 3: "### 6. In the context of API Gateways, what does rate limiting refer to?" Choice A: "The restriction on the data size of requests" Choice B: "The protocol used to limit network calls" Choice C: "The maximum latency allowed for a request" Choice D: "The maximum number of requests a service can handle per time period" Correct answer: D Explanation: "Rate limiting in an API Gateway controls the number of requests a service can handle over a specified time period to prevent overload." New Question 4: "### 10. How does a Reverse Proxy contribute to load balancing?" Choice A: "By preventing any client request from reaching the backend servers." Choice B: "By caching requests to eliminate load on the servers." Choice C: "By routing all traffic through a single server to reduce complexity." Choice D: "By distributing client requests across multiple servers." Correct answer: D Explanation: "A Reverse Proxy contributes to load balancing by distributing client requests across multiple servers, ensuring reliability and efficient load management." New Question 5: "### 12. What is one key advantage of caching in a Reverse Proxy?" Choice A: "It increases the redundancy of backend services." Choice B: "It ensures that all user data is encrypted." Choice C: "It reduces server load and improves performance." Choice D: "It permanently stores data on the client side." Correct answer: C Explanation: "Caching in a Reverse Proxy reduces server load by serving cached content, thereby improving system performance and response times."