Microsoft
70-519 · Question #152
You are designing an ASP.NET MVC 2 Web application. The Web application will display information from remote third-party Windows Communication Foundation (WCF) services on each page. You have the…
The correct answer is A. Use an asynchronous method. See the full explanation below for the reasoning.
Question
You are designing an ASP.NET MVC 2 Web application. The Web application will display information from remote third-party Windows Communication Foundation (WCF) services on each page. You have the following requirements:
- Retrieve information from the WCF services.
- Specify a timeout period while retrieving information from third-
party services.
- Cache responses from the third-party services for retrieval by
multiple users. You need to recommend an approach for retrieving information from the WCF service. What should you recommend?
Options
- AUse an asynchronous method.
- BImplement the IHttpAsyncHandler interface on the models for the views.
- CImplement the IAsyncResult interface on the models for the views.
- DUse AJAX to asynchronously call the third-party services and display information.
How the community answered
(40 responses)- A85% (34)
- B3% (1)
- C5% (2)
- D8% (3)
Community Discussion
No community discussion yet for this question.