🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Feign and Circuit Breakers: all 10 questions

Quiz: Feign and Circuit Breakers · Question 7 of 10

course-api's JSON contains a seats field, but CourseDto has no such field. What happens?

course-api's JSON contains a seats field, but CourseDto has no such field. What happens?

  1. A.The call fails with an error
  2. B.Feign adds the field at runtime
  3. C.The extra field is ignored and the DTO is filled with the fields it has
  4. D.The fallback is used
Answer & explanation

Correct answer: The extra field is ignored and the DTO is filled with the fields it has

A client DTO only needs the fields it actually uses.

Can you get the rest right without peeking?

Take the timed Quiz: Feign and Circuit Breakers quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →