Spring Cloud Gateway MCQs with answers Page - 4

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. Which predicate matches request headers?

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

A

Arogya • 850 Points
Hero

Q. Which predicate routes based on query parameter?

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

A

Arogya • 850 Points
Hero

Q. What does RewritePath filter do?

  • (A) Deletes database
  • (B) Changes request URL path
  • (C) Stops service
  • (D) Restarts gateway

A

Arogya • 850 Points
Hero

Q. Gateway can forward request to service using:

  • (A) lb://SERVICE-NAME
  • (B) db://DATABASE
  • (C) file://SYSTEM
  • (D) ftp://SERVER

A

Arogya • 850 Points
Hero

Q. Which HTTP status indicates rate limit exceeded?

  • (A) 200
  • (B) 404
  • (C) 429
  • (D) 500

A

Arogya • 850 Points
Hero

Q. Spring Cloud Gateway can act as:

  • (A) Reverse Proxy
  • (B) Database Server
  • (C) Compiler
  • (D) IDE

A

Arogya • 850 Points
Hero

Q. Which configuration enables service discovery routing?

  • (A) spring.cloud.gateway.discovery.locator.enabled=true
  • (B) server.discovery=true
  • (C) gateway.routing=true
  • (D) spring.discovery.route=true

A

Arogya • 850 Points
Hero

Q. Gateway can perform authentication using:

  • (A) JWT tokens
  • (B) Only sessions
  • (C) Database triggers
  • (D) HTML forms only

A

Arogya • 850 Points
Hero

Q. Which feature helps reduce latency for clients?

  • (A) Response caching
  • (B) Manual routing
  • (C) Restarting services
  • (D) Database locking

A

Arogya • 850 Points
Hero

Q. Gateway helps hide:

  • (A) Internal microservice URLs
  • (B) Database tables
  • (C) Java classes
  • (D) Frontend pages

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