← 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?
- A.The call fails with an error
- B.Feign adds the field at runtime
- C.The extra field is ignored and the DTO is filled with the fields it has
- 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 →