Spring Cloud Gateway MCQs with answers Page - 1

Here, you will find a collection of MCQ questions on Spring Cloud Gateway. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Arogya • 850 Points
Hero

Q. What is Spring Cloud Gateway?

  • (A) A database management system
  • (B) An API Gateway for routing requests to microservices
  • (C) A frontend framework
  • (D) A logging tool

A

Arogya • 850 Points
Hero

Q. Spring Cloud Gateway is built on:

  • (A) Servlet API
  • (B) Spring MVC only
  • (C) Spring WebFlux and Project Reactor
  • (D) JSP

A

Arogya • 850 Points
Hero

Q. Which dependency is required for Spring Cloud Gateway?

  • (A) spring-cloud-starter-gateway
  • (B) spring-boot-starter-jpa
  • (C) spring-boot-starter-security
  • (D) spring-boot-starter-test

A

Arogya • 850 Points
Hero

Q. What is the primary function of an API Gateway?

  • (A) Database queries
  • (B) Routing and filtering requests
  • (C) Compiling code
  • (D) UI rendering

A

Arogya • 850 Points
Hero

Q. Spring Cloud Gateway supports which type of programming model?

  • (A) Blocking
  • (B) Reactive non-blocking
  • (C) Offline
  • (D) Manual threading

A

Arogya • 850 Points
Hero

Q. Which feature allows modifying requests and responses?

  • (A) Filters
  • (B) Controllers
  • (C) Repositories
  • (D) Entities

A

Arogya • 850 Points
Hero

Q. Spring Cloud Gateway can integrate with which service discovery?

  • (A) Eureka
  • (B) MySQL
  • (C) MongoDB
  • (D) Hibernate

A

Arogya • 850 Points
Hero

Q. Which predicate is used to match URL path?

  • (A) Path Predicate
  • (B) SQL Predicate
  • (C) Loop Predicate
  • (D) Thread Predicate

A

Arogya • 850 Points
Hero

Q. What is rate limiting in API Gateway?

  • (A) Increasing database size
  • (B) Limiting number of requests from a client
  • (C) Stopping server
  • (D) Deleting API

A

Arogya • 850 Points
Hero

Q. Which filter is used to add headers?

  • (A) AddRequestHeader filter
  • (B) SQLFilter
  • (C) ThreadFilter
  • (D) BeanFilter