← Quiz: Spring AOP and Proxies: all 10 questions
Quiz: Spring AOP and Proxies · Question 10 of 10
Which is a cross-cutting concern?
Which is a cross-cutting concern?
- A.Calculating a course's discounted fee
- B.Mapping a Course entity to a CourseResponse DTO
- C.Logging how long every service method takes
- D.Validating that a course title is not blank
Answer & explanation
Correct answer: Logging how long every service method takes
Timing applies to many unrelated methods, so it belongs in an aspect.
Can you get the rest right without peeking?
Take the timed Quiz: Spring AOP and Proxies quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →