200-901 · Question #269
Several teams at a company are developing a new CRM solution to track customer interactions with a goal of improving customer satisfaction and driving higher revenue. The proposed solution contains…
The correct answer is A. to enable multiple views of the same data to be presented to different groups of users B. to provide separation between the view and the model by ensuring that all logic is separated out. The Model-View-Controller (MVC) pattern separates an application into three components: Model (data/business logic), View (UI presentation), and Controller (intermediary). A is correct: MVC allows multiple Views to render the same Model data differently - e.g., a sales team…
Question
Several teams at a company are developing a new CRM solution to track customer interactions with a goal of improving customer satisfaction and driving higher revenue. The proposed solution contains these components:
- MySQL database that stores data about customers
- HTML5 and JavaScript UI that runs on Apache
- REST API written in Python
What are two advantages of applying the MVC design pattern to the development of the solution? (Choose two.)
Options
- Ato enable multiple views of the same data to be presented to different groups of users
- Bto provide separation between the view and the model by ensuring that all logic is separated out
- Cto ensure data consistency, which requires that changes to the view are also made to the model
- Dto ensure that only one instance of the data model can be created
- Eto provide only a single view of the data to ensure consistency
How the community answered
(29 responses)- A90% (26)
- C7% (2)
- E3% (1)
Explanation
The Model-View-Controller (MVC) pattern separates an application into three components: Model (data/business logic), View (UI presentation), and Controller (intermediary). A is correct: MVC allows multiple Views to render the same Model data differently - e.g., a sales team dashboard vs. a support team dashboard can both display the same customer data in different formats. B is correct: MVC enforces separation of concerns so the View (HTML/JS) does not contain business logic, which lives in the Model (Python REST API) - this improves maintainability. C is wrong because MVC specifically decouples the view from the model so changes to one do not force changes to the other. D is wrong - MVC does not restrict model instantiation (that's a Singleton pattern). E is wrong because MVC explicitly supports multiple views.
Topics
Community Discussion
No community discussion yet for this question.