Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.
Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).
All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!
API Gateways MCQs Solution
Course Path: Microservices/GATEWAYS/API Gateways
All Question of the Quiz Present Below for Ease Use Ctrl + F to find the Question.
Suggestion: If you didn't find the question, Search by options to get a more accurate result.
Quiz on API Gateway Pattern
1.An API proxy can act as an API gateway.
True
False
Answer: 1)True
2._____ does not add anything new, it just re-exposes the existing API with some additional capabilities.
API Proxy
API Gateway
Answer: 1)API Proxy
3.An API call will be received by the gateway and will be routed to the appropriate microservice.
True
False
Answer: 1)True
4. Ideally, an application should use _____ protocols.
HTTP
None of the options
Websocket
Both the options
Answer: 4)Both the options
5.Gateway is capable of exposing a client to different APIs based on the devices.
False
True
Answer: 2)True
6.A variation of regular Gateway pattern is ______.
Backend for frontend
Frontend for backend
Answer: 1)Backend for frontend
7._____ helps in reducing latency during service calls.
Circuit Breaker
Client-side discovery
Server-side discovery
None of the options
Answer: 1)Circuit Breaker
8.Which service discovery requires an additional router?
Server-side discovery
Client-side discovery
Answer: 1)Server-side discovery
Quiz on API Gateway - Architecture
1.The communication between the gateway and key management happens through a _____ call.
SOAP
HTTP
none of the options
Thrift
Answer: 4)Thrift
2.DoS attacks are prevented using _______.
Publisher
Traffic management
Key management
Store
Answer: 2)Traffic management
3.Which one of the following is an API consumer lifecycle?
Publish
Manage
Develop
Explore
Answer: 4)Explore
4.To avoid the gateway from making calls to key management frequently, caching can be used.
False
True
Answer: 2)True
5.The following are API developer/manager lifecycles, except _______.
Develop
Publish
Manage
Explore
Answer: 4)Explore
6.API creation and management is done in ______.
API Publisher
API Store
API Creator
API Gateway
Answer: 1)API Publisher
7.The following are functions of analytics, except ________
Enforce Rate Limiting Policy
Alert on unusual activities
Statistical Graph
Log analyzer
Answer: 1)Enforce Rate Limiting Policy
Quiz on API Gateway - Throttling
1._____ is identified using _____.
Resource, Endpoints
Endpoint, Resource
Answer: 1)Resource, Endpoints
2.The following are all HTTP methods, except ________.
PUT
DELETE
CONNECT
UPDATE
Answer: 4)UPDATE
3.All requests will be proxied through Gateway using their ______.
API Key
Endpoint
None of the options
Application Name
Answer: 4)Application Name
4.Rate limiting based on the HTTP header is possible.
True
False
Answer: 1)True
5._____ is a URL that communicates with the API.
Both the options
Resource
None of the above options
Endpoint
Answer: 1)Both the options
6.Bandwidth is one of the reasons to enforce Rate-Limiting.
True
False
Answer: 1)True
7.A single service can have multiple endpoints.
True
False
Answer: 1)True
8.The following are rate-limiting types, except _______.
Bandwith Specific Rate Limit
Regional Rate Limit
Server Rate Limiting
User Specific Limiting
Answer: 1)Bandwith Specific Rate Limit
Quiz on API Gateway Documentation
1.API Documentation can be added using ______.
API Publisher
API Store
Answer: 1)API Publisher
2.X-API-Version: 2 is _____ type of versioning.
Parameter
Media type
Custom Header
Domain
Answer: 3)Custom Header
3.Which of the core modules of Swagger helps in creating Interactive documentation?
Swagger Editor
None of the options
Swagger UI
Swagger codegen
Answer: 3)Swagger UI
4.It is possible to test an API without subscribing.
True
False
Answer: 1)True
5.The following are API life cycles, except ______.
Subscribed
Deprecated
Prototype
Retired
Answer: 1)Subscribed
6.Deprecated API can still be used.
False
True
Answer: 2)True
7.Swagger UI creates documentation based on API parameters.
False
True
Answer: 2)True
8.Which of the following is a type of documentation?
All the options
URL
Static
Dynamic
Answer: 2)URL
API Gateways - Final Assesment
1.The default burst limit in AWS gateway is _____.
1000
5000
2000
10000
Answer: 2)5000
2.REST architecture treats every content as a _____.
Assert
Capital
Resource
Source
Answer: 3)Resource
3.Which one of the following is an API consumer lifecycle?
Explore
Publish
Manage
Develop
Answer: 1)Explore
4.The following are API life cycles, except ______.
Deprecated
Retired
Prototype
Subscribed
Answer: 4)Subscribed
5.The following are API developer/manager lifecycles, except _______.
Manage
Explore
Develop
Publish
Answer: 2)Explore
6.Oauth uses ____ to authenticate the users.
tokens
index
badges
cards
Answer: 1)tokens
7.Which of the following parameters is taken by Token APIs to generate tokens?
Both the options
Grant type
Scope
None of the options
Answer: 1)Both the options
8.WSO2 store is a ______.
Both the options
None of the options
Web application
Key manager
Answer: 3)Web application
9.The tool that is used to develop API documentation is _____.
Hystrix
Ribbon
Turbine
Swagger
Answer: 4)Swagger
10.Monetization is one of the reasons for Rate limiting.
False
True
Answer: 2)True
11.______ is a process of storing server response at the client-end.
Traffic management
Client side discovery
All the options
Catching
Answer: 3)All the options
12.Role based authentication is done using _____ setting.
Roll
Authentication
Visibility
Access
Answer: 3)Visibility
13.Who manages the API lifecycle?
Subscriber
Creator
Admin X
Publisher
Answer: 3)Admin
14._____ is a URL that communicates with the API.
None of the options
Both the option
Resource
Endpoint
Answer: 4)Endpoint
15.The following are Netflix open software services, except __________
Ribbon
Hystrix
Turbine
Kubernetes
Answer: 4)Kubernetes
16.A single API cannot be subscribed multiple times with many SLA levels.
False
True
Answer: 1)False
17.What does the HTTP Status Code 401 indicate?
BAD REQUEST
UNAUTHORIZED
INTERNAL SERVER ERROR
NOT FOUND
Answer: 2)UNAUTHORIZED
18.WSO2 API publisher can be accessed through the address ________.