Udesh fernando

Udesh fernando

  • NA
  • 6
  • 3.1k

Help Need from MVC Code Guru

Aug 4 2015 6:59 AM
Please answer for the questions 
 
 (1)You are developing an ASP.NET MVC application in a web farm. The application has a page that accepts a customer’s order, processes it, and then redirects the browser to a page where the order is displayed along with the shipping information. The order information should be available only to the page where the order is displayed. You need to store state and configure the application

 
Store state in (1) -------------------- and set the mode attribute of the sessionState
Element in the web.config file to (2)------------------------ 
 
A) TempData  B)ViewData C)InProc D) SQLServer
 
 
(2) You are developing an application that uses many small images. When the images load, the application runs slowly. You need to improve the performance of the application. What should you do?

A. Preload all the images when the application starts to ensure that the images are cached.
B. Convert the images to ICO file format and stream all images on a single connection.
C. Host all images on a Microsoft Azure web role with multiple instances.
D. Combine all the images into a single image and use CSS to create sprites

(3)You are designing a distributed banking application that handles multiple customers. A user may log on to the site to perform activities such as checking balances, performing transactions, and other activities that must be done securely. The application must store secure information that is specific to an individual user. The data must be automatically and securely purged when the user logs off. You need to save transient information in a secure data store.

A. NET session state
B. NET profile properties
C. NET application state
D. Shared database


(4)You are designing a distributed application. The application must store secure information that is specific to an individual user. The data must be automatically purged when the user logs off. You need to save transient information in a secure data store

A. Session state
B. Database storage
C. Profile properties
D. Application state


(5)
You are developing an ASP.NET MVC application that uses forms authentication to verify that the user is logged in. Authentication credentials must be encrypted and secure so no user identity is exposed. You need to ensure that user credentials are persisted after users log on. Where should you store the credentials? (Each correct answer presents a complete solution. Choose all that apply.)
A. In Session on the server
B. In a cookie stored in the browser
C. In ViewData in the application
D. In TempData on the server


 (6)You are developing an ASP.NET MVC application. Before an action is executed, information about the action must be written to a log. After results are returned, information about the results also must be written to the log. You need to log the actions and results.

 Target 1
{
     public override void
    Target 2
    {
        Logger.Log("ActionLog",filterContext.RouteDate); 
    } 
      public override void
    Target 3
    {
        Logger.Log("ResultLog",filterContext.RouteDate);
    } 
 
find the Target 1 ,  Target 2 ,  Target 3
 
A)OnActionExecuting(ActionexecutingContext filterContext) 
B)OnActionExecuted(ActionexecutedContext filterContext)
C)OnResultExecuting(ResultexecutingContext filterContext)
D)OnResultExecuted(ResultexecutedContext filterContext)
E)public class LogActionFilter : ActionFilterAttribute
F) public class LogActionFilter :IActionFilter  
 
Plz Help me thanks