LyraLearn AI Learning Platform
Exams
← Back to the lesson
Module 6 Β· Quiz

Layers That Earn Their Keep

1. What is the primary responsibility of the service layer in an MVC architecture?
2. Why should controllers not directly query the database?
3. What role do view models play in the architecture described in the lesson?
4. What should a developer ensure when implementing business logic in a view?