1. Question: You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the data that the action method returns. What should you do?

    A
    Add the following <outputCacheSettings> section to the web.config file. <system.web> <caching> <outputCacheSettings> <outputCacheProfiles> <add name="ProductView" duration="60" varyByParam="*"/> </outputCacheProfiles> </outputCacheSettings> </caching> </system.web>

    B
    Add the following line of code to the controller. Cache.insert("key", "ProductView", null, DateTime.Now.AddMinutes(60),TimeSpan.Zero);

    C
    Add the following attribute to the action method [OutputCache(Duration=60)];

    D
    Add the following directive to the top of the view <%@ OutPutCache Duration="60" VaryByParam="*" %>

    Note: Not available
    1. Report
  2. Question: You are debugging an application on a test server. You have an issue on a particular page and need to get the error details. You do not want to turn on debugging for the entire site. What actions should you take? (Choose all that apply.)

    A
    In the Web.config file, set the debug attribute of the compilation element to true.

    B
    In the Web.config file, set the debug attribute of the compilation element to false.

    C
    On the page that throws the error, set the debug attribute of the @ Page directive to true.

    D
    On the page that throws the error, set the debug attribute of the @ Page directive to false.

    Note: Not available
    1. Report
  3. Question: You are deploying your application to a production environment. You want to redirect users to a default error page if they encounter any unhandled exceptions or HTTP errors within the site. You also want to indicate the user’s requested resource on the error page to help with support calls. What actions should you take? (Choose all that apply.)

    A
    Set the redirect attribute of the error element to an error page within your site.

    B
    Set the defaultRedirect attribute of the customErrors element to an error page within your site.

    C
    Use the statusCode query string parameter to retrieve the requested resource to display on the error page.

    D
    Use the aspxerrorpath query string parameter to retrieve the requested resource to display on the error page.

    Note: Not available
    1. Report
  4. Question: You are investigating an error that only occurs when the application is deployed to the development or test server. You need to debug this error remotely. What actions should you take? (Choose all that apply.)

    A
    Run the Remote Debugging Monitor (Msvsmon.exe) on the development computer that is doing the debugging. Use the tool to define connection rights to the server you want to debug.

    B
    Run the Remote Debugging Monitor (Msvsmon.exe) on the server you want to debug. Use the tool to define connection rights for the developer doing the debugging.

    C
    In Visual Studio, use the Attach To Process dialog box to attach to the ASP.NET process on the server you want to debug.

    D
    In Visual Studio, use the Attach To Process dialog box to attach to the browser process that is running the application you want to debug.

    Note: Not available
    1. Report
  5. Question: You want to identify which event in the webpage life cycle takes the longest time to execute. How can you accomplish this?

    A
    Turn on ASP.NET tracing and run the website. After that, review the trace results.

    B
    To each of the life-cycle events, add a line of code that will print the current time.

    C
    In the Web.config file, add the monitorTimings attribute and set it to true.

    D
    In the website properties, turn on the performance monitor and run the website. After that, open the performance monitor to see the timings.

    Note: Not available
    1. Report
  6. Question: You want to run a trace continuously to enable you to quickly look at the 10 most recent traces from anyone using your website, but you are concerned about filling your hard drive with excessive data. Which of the following settings will accomplish your objective?

    A
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" mostRecent="true" />

    B
    <trace enabled="true" requestLimit="10" pageOutput="true" traceMode="SortByTime" localOnly="true" mostRecent="true" />

    C
    <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" mostRecent="false" />

    D
    <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="false" mostRecent="true" />

    Note: Not available
    1. Report
  7. Question: You are interested in examining the data that is posted to the web server. What trace result section can you use to see this information?

    A
    The Control Tree section

    B
    The Headers Collection section

    C
    The Form Collection section

    D
    The Server Variables section

    Note: Not available
    1. Report
  8. Question: You want to configure ASP.NET health monitoring to log information every time a user fails to log on to the server. Which web event class should you use?

    A
    WebRequestEvent

    B
    WebAuditEvent

    C
    WebApplicationLifetimeEvent

    D
    WebAuthenticationSuccessAuditEvent

    Note: Not available
    1. Report
  9. Question: You need to add a registry entry to make your application function. In which phase of the Web Setup Project should you add the registry entry?

    A
    Install

    B
    Commit

    C
    Rollback

    D
    Uninstall

    Note: Not available
    1. Report
  10. Question: You need to make a change to an operating system–related registry entry to make your application function. You want to ensure that you remove this change if setup is cancelled or the application is removed from the computer. In which phases should you undo your registry modification? (Choose all that apply.)

    A
    Install

    B
    Commit

    C
    Rollback

    D
    Uninstall

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd