Top 50 API Gateway Multiple Choice Questions (MCQ)

What does the HTTP Status Code 401 indicate?

a) UNAUTHORIZED

b) NOT FOUND

c) BAD REQUEST

d) INTERNAL SERVER ERROR

Ans : UNAUTHORIZED

Q.2 Role based authentication is done using _ setting.

a) Visibility

b) Access

c) Authentication

d) Roll

Ans : Visibility

Q.3 A single API cannot be subscribed multiple times with many SLA levels.

a) True

b) False

Ans : False

Q.4 An API call will be received by the gateway and will be routed to the appropriate microservice.

a) True

b) False

Ans : True

Q.5 Which one of the following is an API consumer lifecycle?

a) Publish

b) Explore

c) Manage

d) Develop

Ans : Explore

Q.6 Which of the following parameters is taken by Token APIs to generate tokens?

a) Scope

b) Grant type

c) Both the options

d) None of the options

Ans : Both the options

Q.7 WSO2 API publisher can be accessed through the address __.

a) https://localhost:9442/publisher

b) https://localhost:9444/publisher

c) https://localhost:9445/publisher

d) https://localhost:9443/publisher

Ans : https://localhost:9443/publisher

Q.8 Oauth uses __ to authenticate the users.

a) cards

b) index

c) badges

d) tokens

Ans : tokens

Q.9 The default burst limit in AWS gateway is _.

a) 5000

b) 1000

c) 2000

d) 10000

Ans : 5000

Q.10 WSO2 store is a __.

a) Key manager

b) Web application

c) Both the options

d) None of the options

Ans : Web application

Q.11 The tool that is used to develop API documentation is _.

a) Turbine

b) Ribbon

c) Hystrix

d) Swagger

Ans : Swagger

Q.12 _ does not add anything new, it just re-exposes the existing API with some additional capabilities.

a) API Gateway

b) API Proxy

Ans : API Proxy

Q.13 Is there any relation between Instance & AMI?

a) Yes

b) No

Ans : Yes

Q.14 Which of the following is correct about resource representation in REST?

a) REST uses various representations to represent a resource where text, JSON, XML.

b) XML and JSON are the most popular representations of resources.

c) Both of the above.

d) None of the above.

Ans : Both of the above.

Q.15 What URI stands for?

a) Unit Resource Identifier

b) Uniform Resource Identifier

c) Uniform Representation Identifier

d) None of the above.

Ans : Uniform Resource Identifier

Q.16 Which of the following directive of Cache Control Header of HTTP response provides indication to server to revalidate resource if max-age has passed?

a) must-revalidate

b) Private

c) no-cache/no-store

d) max-age

Ans : must-revalidate

Q.17 Which of the following HTTP Status code means NOT MODIFIED, used to reduce network bandwidth usage in case of conditional GET requests?

a) 200

b) 201

c) 204

d) 304

Ans : 304

Q.18 What JAX-RS stands for?

a) Just API for RESTful Web Services

b) Joint API for RESTful Web Services.

c) JAVA API for RESTful Web Services.

d) None of the above.

Ans : JAVA API for RESTful Web Services.

Q.19 Which of the following annotation of JAX RS API states the HTTP Request type?

a) @DELETE

b) @HEAD

c) @Produces

d) @Consumes

Ans : @Consumes

Q.20 A RESTful web service usually defines a URI, Uniform Resource Identifier a service, provides resource representation such as JSON and set of HTTP Methods.

a) True

b) False

Ans : True

Q.21 POST opearations should be idempotent.

a) True

b) False

Ans : False

Q.22 _ helps in reducing latency during service calls.

a) Client-side discovery

b) Circuit Breaker

c) Server-side discovery

d) None of the options

Ans : Circuit Breaker

Q.23 The following are API developer/manager lifecycles, except _.

a) Develop

b) Explore

c) Publish

d) Manage

Ans : Explore

Q.24 A variation of regular Gateway pattern is __.

a) Backend for frontend

b) Frontend for backend

Ans : Backend for frontend

Q.25 Gateway is capable of exposing a client to different APIs based on the devices.

a) True

b) False

Ans : True

Q.26 An API call will be received by the gateway and will be routed to the appropriate microservice.

a) True

b) False

Ans : True

Q.27 The communication between the gateway and key management happens through a _ call.

a) Thrift

b) SOAP

c) HTTP

d) none of the options

Ans : Thrift

Q.28 DoS attacks are prevented using _.

a) Key management

b) Traffic management

c) Store

d) Publisher

Ans : Traffic management

Q.29 API creation and management is done in __.

a) API Gateway

b) API Store

c) API Publisher

d) API Creator

Ans : API Publisher

Q.30 _ is a URL that communicates with the API.

a) Endpoint

b) Resource

c) Both the options

d) None of the above

Ans : Endpoint

Q.31 The following are all HTTP methods, except __.

a) DELETE

b) UPDATE

c) PUT

d) CONNECT

Ans : UPDATE

Q.32 Rate limiting based on the HTTP header is possible.

a) True

b) False

Ans : True

Q.33 A single service can have multiple endpoints.

a) True

b) False

Ans : True

Q.34 Bandwidth is one of the reasons to enforce Rate-Limiting.

a) True

b) False

Ans : True

Q.35 Deprecated API can still be used.

a) True

b) False

Ans : True

Q.36 _ is identified using _.

a) Resource, Endpoints

b) Endpoint, Resource

Ans : Resource, Endpoints

Q.37 All requests will be proxied through Gateway using their __.

a) Endpoint

b) Application Name

c) API Key

d) None of the options

Ans : Application Name

Q.38 The following are rate-limiting types, except _.

a) User Specific Limiting

b) Bandwith Specific Rate Limit

c) Server Rate Limiting

d) Regional Rate Limit

Ans : Bandwith Specific Rate Limit

Q.39 X-API-Version: 2 is _ type of versioning.

a) Custom Header

b) Media type

c) Domain

d) Parameter

Ans : Custom Header

Q.40 Which of the following is a type of documentation?

a) Static

b) Dynamic

c) URL

d) All the options

Ans : URL

Q.41 The following are API life cycles, except __.

a) Deprecated

b) Retired

c) Prototype

d) Subscribed

Ans : Subscribed

Q.42 Which of the core modules of Swagger helps in creating Interactive documentation?

a) Swagger Editor

b) Swagger UI

c) Swagger codegen

d) None of the options

Ans : Swagger UI

Q.43 Swagger UI creates documentation based on API parameters.

a) True

b) False

Ans : True

Q.44 It is possible to test an API without subscribing.

a) True

b) False

Ans : True

Q.45 API Documentation can be added using __.

a) API Store

b) API Publisher

Ans : API Publisher

Q.46 Monetization is one of the reasons for Rate limiting.

a) True

b) False

Ans : True

Q.47 An API proxy can act as an API gateway.

a) True

b) False

Ans : True

Q.48 REST architecture treats every content as a _.

a) Source

b) Resource

c) Assert

d) Capital

Ans : Resource

Q.49 Who manages the API lifecycle?

a) Creator

b) Subscriber

c) Admin

d) Publisher

Ans : Admin

Q.50 __ is a process of storing server response at the client-end.

a) Catching

b) Client side discovery

c) Traffic management

d) All the options

Ans : All the options

Q.51 The following are Netflix open software services, except __

a) Hystrix

b) Kubernetes

c) Ribbon

d) Turbine

Ans : Kubernetes

SAP S/4HANA Master Data Concepts Questions & Answers
SAP S/4HANA Functional Capabilities 1909 Questions & Answer
SAP S/4HANA Technical Capabilities 1909 Questions & Answers
SAP Implementation S/4HANA Project Management Questions & Answers
SAP S/4 HANA Enterprise Management – Sales Questions Answers
SAP S/4HANA Key Concepts Overview Questions & Answers
SAP S/4HANA Enterprise Structure Questions & Answer
SAP S/4HANA Reporting and Analytics Questions & Answers
SAP S/4HANA Navigation Interview Questions and Answers
SAP S/4HANA Awareness 1909 Questions and Answers
SAP S/4HANA ‘Forecast to Stock’ Questions and Answers
SAP ERP/Concur System Landscape and Directory Questions

About Author


After years of Technical Work, I feel like an expert when it comes to Develop wordpress website. Check out How to Create a Wordpress Website in 5 Mins, and Earn Money Online Follow me on Facebook for all the latest updates.

Leave a Comment