70-515 Exam Details

  • Exam Code
    :70-515
  • Exam Name
    :TS: Web Applications Development with Microsoft .NET Framework 4
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :285 Q&As
  • Last Updated
    :Jan 26, 2022

Microsoft 70-515 Online Questions & Answers

  • Question 61:

    You deploy an ASP.NET application to an IIS server.

    You need to log health-monitoring events with severity level of error to the Windows application event log.

    What should you do?

    A. Run the aspnet_regiis.exe command.
    B. Select the Treat all warnings as errors option in the project properties and recompile.
    C. Add the following rule to the healthMonitoring section of the web.config file.
    D. Add the following rule to the healthMonitoring section of the web.config file.

  • Question 62:

    You are implementing an ASP.NET Web site. The root directory of the site contains a page named Error.aspx.

    You need to display the Error.aspx page if an unhandled error occurs on any page within the site. You also must ensure that the original URL in the browser is not changed. What should you do?

    A. Add the following configuration to the web.config file.
    B. Add the following configuration to the web.config file.
    C. Add the following code segment to the Global.asax file.void Application_Error(object sender, EventArgs e){Response.Redirect("~/Error.aspx");}
    D. Add the following code segment to the Global.asax file.void Page_Error(object sender, EventArgs e) {Server.Transfer("~/Error.aspx");}

  • Question 63:

    You are deploying an ASP.NET Web application to a remote server. You need to choose a deployment method that will ensure that all IIS settings, in addition to the Web content, will deploy to the remote server.

    Which deployment method should you choose?

    A. the XCOPY command-line tool
    B. the Copy Web Site tool
    C. the Web Deployment tool
    D. the Publish Web Site utility

  • Question 64:

    You create a new ASP.NET MVC 2 Web application. The following default routes are created in the Global.asax.cs file. (Line numbers are included for reference only.)

    01 public static void RegisterRoutes(RouteCollection routes) 02 {

    03 routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

    05 routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } );

    06 }

    You implement a controller named HomeController that includes methods with the following signatures.

    public ActionResult About()

    public ActionResult Index()

    public ActionResult Details(int id)

    You need to ensure that the About action is invoked when the root URL of the site is accessed.

    What should you do?

    A. At line 04 in the Global.asax.cs file, add the following line of code.routes.MapRoute("Default4Empty", "/", new {controller = "Home", action ="About"});
    B. At line 04 in the Global.asax.cs file, add the following line of code.routes.MapRoute("Default", "", new {controller = "Home", action = "About"});
    C. Replace line 05 in the Global.asax.cs file with the following line of code.routes.MapRoute ("Default4Empty", "{controller}/{action}/{id}", new {controller ="Home", action = "About", id = ""});
    D. Replace line 05 in the Global.asax.cs file with the following line of code.routes.MapRoute("Default", "{controller}/{action}", new {controller = "Home",action = "About"});

  • Question 65:

    You are implementing an ASP.NET page. You add and configure the following ObjectDataSource.

    The page will be called with a query string field named pid.

    You need to configure the ObjectDataSource control to pass the value of the pid field to GetProductsByProductId method.

    What should you do?

    A. Replace the asp:Parameter with the following declaration.
    B. Replace the asp:Parameter with the following declaration.
    C. Add the following event handler to the Selecting event of the ObjectDataSource control.protected void odc_Selecting(object sender,ObjectDataSourceSelectingEventArgs e){
    D. InputParameters["p id "] = Request.QueryString["p roductId "]; }
    E. Add the following code segment to the pages code-behind.protected void Page_Load(object sender, EventArgs e) {odc.SelectParameters.Add("productId", Request.QueryString["p i d"]); }

  • Question 66:

    You are preparing to deploy an ASP.NET application to a production server by publishing the application in Release configuration. You need to ensure that the connection string value that is stored in the web.config file is updated to the

    production server's connection string value during publishing.

    What should you do?

    A. Add the following code to the web.config file.
    B. Add the following code to the web.config file.
    C. Add the following code to the web.release.config file.
    D. Add the following code to the web.release.config file.

  • Question 67:

    You are developing an ASP.NET web application that you will deploy to an Internet Information Services (IIS) 7.0 server.

    The application will run in Integrated pipeline mode.

    The application contains a photo gallery of images that are stored in a Microsoft SQL Server database. You need to ensure that the application can retrieve images from the database without blocking IIS worker process threads.

    What should you do?

    A. create a synchronous HttpHandler that is registered in the HttpHandler section in the web config file
    B. asynchronous HttpHandler that is registered in the section under system.webserver in the web.config file
    C. Create a custom HttpModule that is registered in the section in the web.config file
    D. Create an asynchronous HttpHandler that is registered in the section in the web.config file

  • Question 68:

    You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids cross-site scripting. Which code segment should you use?

  • Question 69:

    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0.

    The application has an ASP.NET page.

    The page contains a method named GetCustomerOrderData that returns a DataSet.

    GetCustomerOrderData contains two DataTable objects named CustomerDetails and OrderDetails, respectively.

    You are required to display the data in OrderDetails in a DetailsView named ViewDetail. Choose the appropriate steps in the correct order to accomplish this.

    Select and Place:

  • Question 70:

    You create a Web page that contains drop-down menus that are defined by using div tags in the following code.

    You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title.

    Which code segment should you use?

    A. $(".dropdown-menu").hover(function () {$(".menu-items"). slideDown (100);},function () {$ (".menu- items"). slideUp (100);});
    B. $(".dropdown-menu").hover(function () {$(".menu-items", this). slideDown (100);},function () {$ (".menu- items", this). slideUp (100);});
    C. $(".dropdown-menu").hover(function () {$(this). slideDown (100);.},function () {$(this). slideUp (100);});
    D. $(".dropdown-menu").hover(function () {$(this, ".menu-title"). slideDown (100);},function () {$ (this, ".menu-title"). slideUp (100);});

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-515 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.