Spring Cloud Gateway MCQs with answers Page - 3

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 a predicate in Spring Cloud Gateway?

  • (A) A database query
  • (B) A condition used to match incoming requests
  • (C) A logging format
  • (D) A controller method

A

Arogya • 850 Points
Hero

Q. Which predicate matches HTTP request method?

  • (A) Method Predicate
  • (B) SQL Predicate
  • (C) Loop Predicate
  • (D) Port Predicate

A

Arogya • 850 Points
Hero

Q. Which predicate matches host name?

  • (A) Host Predicate
  • (B) Path Predicate
  • (C) Header Predicate
  • (D) Body Predicate

A

Arogya • 850 Points
Hero

Q. Which filter removes part of URL path?

  • (A) StripPrefix
  • (B) AddRequestHeader
  • (C) Retry
  • (D) CircuitBreaker

A

Arogya • 850 Points
Hero

Q. Which filter retries failed requests?

  • (A) Retry filter
  • (B) AddResponseHeader
  • (C) StripPrefix
  • (D) Host filter

A

Arogya • 850 Points
Hero

Q. What is a global filter?

  • (A) Filter applied to a single route
  • (B) Filter applied to all routes
  • (C) Database filter
  • (D) UI filter

A

Arogya • 850 Points
Hero

Q. Spring Cloud Gateway supports which security integration?

  • (A) Spring Security
  • (B) Only database authentication
  • (C) Manual login only
  • (D) No security support

A

Arogya • 850 Points
Hero

Q. Which feature allows monitoring gateway health?

  • (A) Spring Boot Actuator
  • (B) Hibernate
  • (C) JSP
  • (D) Servlet API

A

Arogya • 850 Points
Hero

Q. What is the purpose of CircuitBreaker filter?

  • (A) Restart server
  • (B) Prevent repeated calls to failing service
  • (C) Delete logs
  • (D) Increase memory

A

Arogya • 850 Points
Hero

Q. Gateway can modify response using:

  • (A) Gateway filters
  • (B) Database triggers
  • (C) Repositories
  • (D) Entities

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ