Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 515
A network engineer developed an application that performs configuration automation. The engineer used the MVC model for the application design. It has a web interface for users to interact, collect configuration directives for specific devices, and communicate with network devices through REST-based APIs. What is the advantage of the model component in MVC design in this scenario?
Answer options
- A. It contains data and responds to state queries and updates.
- B. It keeps views and controllers updated during the execution.
- C. It defines main application behavior and contains functions to run.
- D. It renders the data for easy use by the remaining parts of the design.
Correct answer: A
Explanation
The model component in MVC is responsible for managing data and responding to requests for information, which is essential for configuration automation applications. Option B is incorrect because while the model does communicate with views and controllers, its primary function is data handling. Option C is not accurate as the model does not define the application behavior; that is typically the role of the controller. Option D misrepresents the model's function since rendering data is primarily the responsibility of the view.