Fiegn Client MCQs with answers Page - 1

Here, you will find a collection of MCQ questions on Fiegn Client. 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 Feign Client in Spring Boot microservices?

  • (A) A database tool
  • (B) A declarative REST client
  • (C) A messaging broker
  • (D) A logging framework

A

Arogya • 850 Points
Hero

Q. Which dependency is required for Feign Client?

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

A

Arogya • 850 Points
Hero

Q. Which annotation enables Feign Clients in a Spring Boot application?

  • (A) @EnableFeignClients
  • (B) @EnableDiscoveryClient
  • (C) @EnableJpaRepositories
  • (D) @ComponentScan

A

Arogya • 850 Points
Hero

Q. Which annotation is used to define a Feign interface?

  • (A) @FeignClient
  • (B) @RestController
  • (C) @Service
  • (D) @Repository

A

Arogya • 850 Points
Hero

Q. Feign Client primarily communicates using:

  • (A) HTTP REST APIs
  • (B) FTP
  • (C) SMTP
  • (D) WebSockets only

A

Arogya • 850 Points
Hero

Q. Feign Client works with which service discovery tool?

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

A

Arogya • 850 Points
Hero

Q. Which annotation maps HTTP GET request in Feign?

  • (A) @GetMapping
  • (B) @RequestBody
  • (C) @PathVariable
  • (D) @Autowired

A

Arogya • 850 Points
Hero

Q. Feign Client reduces the need for:

  • (A) Writing RestTemplate code
  • (B) Database queries
  • (C) Controllers
  • (D) Service layer

A

Arogya • 850 Points
Hero

Q. Which load balancer does Feign use with Spring Cloud?

  • (A) Spring Cloud LoadBalancer
  • (B) Oracle LB
  • (C) Hardware Router
  • (D) FTP balancer

A

Arogya • 850 Points
Hero

Q. What is a fallback method in Feign?

  • (A) Backup database
  • (B) Method executed when remote service fails
  • (C) Security check
  • (D) Logging feature

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