Microsoft Microsoft Silverlight 4

Microsoft 70-519 Certification Exam, Buy Latest Microsoft 70-519 Exam Guide Are The Best Materials

Welcome to download the newest Pass4itsure 70-412 dumps:

100% Valid And Pass With latest Microsoft 70-519 exam dumps, you will never fail your Microsoft 70-519 exam. All the questions and answers are updated and added to the new version timely by our experts.Also now Microsoft 70-519 is offering free Microsoft 70-519 exam VCE player and PDF files for free on their website.

QUESTION 46
You are designing an ASP.NET Web application that displays daily sales information. The sales information is stored in a large Microsoft SQL Server database. The database information is updated each night. During the day, people use the Web application to display a set of standard sales reports based on the latest database information.
The SQL queries that are required to retrieve the database information can take from 20 to 30 seconds to execute.
You need to design the application to ensure that pages usually load in no more than 5 seconds.
Which two approaches could you recommend? (Each correct answer presents a complete solution. Choose two.)
A. Use AJAX to retrieve the database information
B. Use a service that proxies the database queries and caches the results
C. Use SQL Server replication
D. Use a control that retrieves and displays the database information

Correct Answer: AB
QUESTION 47
You are designing an ASP.NET Web application by using Microsoft Visual Studio 2010. The Web application uses dynamic HTML (DHTML).
You need to ensure that the application functions properly on multiple browser platforms without requiring the installation of a client-side component.
Which two approaches could you recommend? (Each correct answer presents a complete solution. Choose two.)
A. Use Microsoft visual Basic Scripting Edition (VBScript).
B. Use jQuery.
C. Use Microsoft Silverlight.
D. Use the ASP.NET Ajax Library.

Correct Answer: BD
QUESTION 48
You are modifying an existing ASP.NET Web application. Each page of the Web application includes a navigation bar and a print button.
You have the following requirements:
Enable users to print pages of the Web site without printing the navigation bar.

Do not create a separate version of the page formatted for printing.

Leverage the existing print button on each page.
You need to recommend an approach that meets the requirements.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. Add an OnClientClick event handler to the print button to call the window.print() function.
B. Add an Onclick event handler to the print button to set the Response.ContentType property to style/ print.
C. Add the PrintingPermission attribute to the code-behind page class.
D. In the header, add a style sheet tag that sets the media attribute to print.

Correct Answer: AD
QUESTION 49
You are designing an ASP.NET Web application. Each page of the Web application will have a common master page and derive from a common base page class.
You have the following requirements:
Support multiple languages for user interface labels.

Enable automatic detection of language based on browser language settings. You need to recommend an approach to support localization.
What should you recommend?
A. In the Web.config file, add a globalization element with the uiCulture attribute set to auto.
B. In the code-behind for the master page, override the OnInit() method. Set the Thread.CurrentThread.currentUICulture property based on the value of the Request.Browser.Capabilities[“preferredLanguage”] dictionary entry.
C. In the Web.config file, add a globalization element with the responseEncoding attnbute set to auto.
D. In the code-behind for the base page, override the InitializeCulture() method. Set the Thread.CurrentThread.CurrentUICulture property based on the value of the ViewState[“Accept-Longuage”J dictionary entry.

Correct Answer: A
QUESTION 50
You have a Web application that has been migrated from ASP.NET 3.5 to ASP.NET 4.
While testing the migrated Web application, developers notice that the non-input Web controls with the property Enabled=”false” are rendering as enabled.
You need to ensure that the controls in the migrated Web application render correctly, and that other Web applications hosted on the same Web server are not affected by the solution.
Which approach should you recommend?
A. Use the controlRenderingCompatibilityVersion element of the pages section of the machine.config file.
B. Use the controls element of the pages section of the migrated application’s web.config file.
C. Use the controlRenderingCompatibilityVersion element of the pages section of the migrated application’s web.config file.
D. Use the controls element of the pages section of the machine.config file.

Correct Answer: C
QUESTION 51
You are designing a method for collecting information regarding usage of new functionality within an
ASP.NET Web application.
You have the following requirements:

Usage data must be stored in a database for easy reporting.

The application must not include code relating to usage data.
You need to design a strategy that meets the requirements.
Which approach should you recommend?
A. Use ASP.NET tracing
B. Use the RequestStartedmethod
C. Use remote debugging
D. Use ASP.NET health monitoring

Correct Answer: D
QUESTION 52
You have an ASP.NET Web application that is deployed on multiple, identical Web servers. The Web servers retrieve data from multiple, identical Microsoft SQL Server databases. Each user maintains an active Web application session during the entire business day.
You notice that some Web servers consume 100 percent of their CPU resources and return timeout errors, while other Web servers are idle.
You need to design a plan to load-balance the Web application across the available Web servers.
Which approach should you recommend?
A. Use per-request load balancing with StateServer session state.
B. Use affinity load balancing with SQLServer session state.
C. Use per-request load balancing with InProc session state.
D. Use affinity load balancing with StateServer session state.

Correct Answer: A QUESTION 53
You are designing the deployment process for a new ASP.NET Web application. You need to ensure that the application is protected from modification after deployment.
Which approach should you recommend?
A. Use the ASP.NET Compilation tool.
B. Use a Web Deployment project.
C. Use the Web Deployment tool.
D. Use MSDeploy.

Correct Answer: A QUESTION 54
You are designing an ASP.NET Web application that will be deployed both to a server that runs IIS 6 and to a server that runs IIS 7.0.
The Web application must meet the following requirements:
Log all unhandled exceptions.

Write exception details to a custom error log.

When an exception occurs, write the user credentials to a custom error log.
You need to recommend an approach for handling errors.
What should you recommend?
A. Create an error handler for the HttpApplication.LogRequest event.
B. In the customErrors element of the Web.config file, set the defaultRedirect attribute to errors.htm.
C. In the customErrors element of the Web.config file, set the mode attribute to On.
D. Create an error handler for the Application_Error event.

Correct Answer: D QUESTION 55
You are reviewing an ASP.NET Web application that uses dynamic SQL. The Web application validates user credentials against a Microsoft SQL Server 2008 database by using Forms authentication and hashing the password. You need to recommend an approach for testing whether users can gain elevated access to the Web application.
What should you recommend?
A. Perform SQL injection tests
B. Perform penetration tests for cross-site scripting
C. Perform Web tests that supply valid and invalid passwords
D. Perform unit tests that supply valid and invalid passwords

Correct Answer: A
QUESTION 56
You are designing an ASP.NET Web application that stores data in a Microsoft SQL Server 2008 database on a remote server.
You must meet the following requirements:
Ensure that users’ actions can be traced on each server by using the security audit log.

Minimize the risk of server components executing in the user’s context.
You need to recommend an approach for accessing the database.
What should you recommend?
A. Use Basic authentication and set the Integrated Security property of the SQL Server connection string to SSPI.
B. Use Basic authentication and impersonation to configure a trusted subsystem between servers.
C. Use Windows authentication and set the Trusted Connection property of the SQL Server connection string to true.
D. Use Windows authentication and impersonation to configure constrained delegation between servers.

Correct Answer: D
QUESTION 57
You are designing an ASP.NET Web application.
The Web application must allow users to authenticate by using LDAP on a Web form.

You need to recommend an authentication model.
What should you recommend?
A. Change the authentication mode to Windows authentication, and implement a custom authentication provider.
B. Change the authentication mode to Forms authentication, and use the ClientWindowsAuthenticationMembershipProvider class.
C. Change the authentication mode to Windows authentication, and use the ActiveDirectoryMembershipProvider class.
D. Change the authentication mode to Forms authentication, and use the ActiveDirectoryMembershipProvider class.

Correct Answer: D
QUESTION 58
You are designing an ASP.NET Web Forms application. The Web application has a heavy reliance on view state.
You are designing the Web application for use in regions that have limited or low-bandwidth connectivity.
You have the following requirements:
Decrease bandwidth requirements.

Prevent any user from obtaining any part of the view state.

Do not require changes to existing pages, user controls, or code-behind files that rely on the view state.
You need to ensure that the Web application meets these requirements. Which approach should you recommend?
A. Register a custom PageAdapter class that provides a SessionStatePagePersister.
B. Register a custom PageAdapter class that stores the view state in a cookie.
C. Configure IIS to use HTTP compression.
D. Configure IIS to use SSL.

Correct Answer: A QUESTION 59
You are designing an ASP.NET Web application.
The Web application must instruct proxy servers between the server and the browser to not cache content.
You need to recommend an approach for instructing the proxy servers.
What should you recommend?

A. Use the Response.Cache.SetCacheability() method with a value of HttpCacheability.ServerAndPrivate.
B. Use the Response.Cache.SetVaryByCustom() method with a value of no-proxy.
C. Use the Response.Cache.SetNoTransforms() method.
D. Use the Response.Cache.AppendCacheExtensionQ method with a value of no-proxy.

Correct Answer: A QUESTION 60
You are designing an ASP.NET Web application.
You need to ensure that users can display the content of the application in a language that they select.
Which two approaches should you recommend? (Each correct answer presents part of the solution.

Choose two.)

A. Use language-specific master pages.
B. Use CurrentUICulture.
C. Use CurrentCulture.
D. Use language-specific resource files.

Correct Answer: BD QUESTION 61
You are designing an ASP.NET Web application. A page of the Web application will contain a databound ListView control.
You need to recommend a strategy for accessing individual rows within the ListView control from client-side script based on the value in a specific data field.
What should you recommend?
A. On the ListView control, set the ClientIDMode property to Static and set the ClientIDRowSuffix property to the name of the data field.
B. On the @ Page directive, set the SmartMavigation property to True and set the ClientIDMode property to AutoID.
C. On the ListView control, set the ClientIDMode property to Predictable and set the ClientIDRowSuffix property to the name of the data field.
D. On the @ Page directive, set the AspCompat property to True and set the ClientIDMode property to

Predictable. Correct Answer: C QUESTION 62
You are designing an ASP.NET Web application. You have the following requirements:
Relational database tables must automatically map to .NET classes.

The data access layer must be able to target database engines other than Microsoft SQL Server.
You need to recommend a data access technology.
Which technology should you recommend?
A.
direct ADO.NET calls
B.
Entity Framework 4
C.
LINQ to SQL
D.
.NET Framework Data Provider for OLE DB
Correct Answer: B QUESTION 63
You are designing an ASP.NET Web application.
The Web application must meet the following requirements:

Support REST without implementing custom URI templates.

Allow CRUD functionality.
You need to recommend a data access strategy.
What should you recommend?
A.
Use ASP.NET Web Services.
B.
Use SQL Server Service Broker.
C.
Use WCF Data Services.
D.
Use WCF Services.
Correct Answer: C QUESTION 64
You are designing a Windows Communication Foundation (WCF) service. The WCF service will support a common data access strategy for an ASP.NET 1.1 Web application and an ASP.NET 4 Web application.
You have the following requirements:
Ensure that the WCF service complies with WS-* standards.

Enable backward-compatibility for clients that can consume only ASMX Web Services.
You need to recommend an endpoint and binding strategy for the WCF service.
What should you recommend?
A. multiple endpoints using BasicHttpBinding and WSHttpBinding
B. multiple endpoints using NetTcpBinding and WSHttpBinding
C. a single endpoint using NetMsmqBinding
D. a single endpoint using NetTcpBinding

Correct Answer: A QUESTION 65
You are designing an ASP.NET Web application that will be accessed by local intranet users. The Web application will store temporary data files locally. The Web server is running IIS 7.5.
You have the following requirements:
Temporary data file ownership must be set to the user account.

Temporary data files stored locally must be accessible only to the authenticated user.
You need to recommend an approach for securing the temporary data files.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. Set the default role provider to the WindowsTokenRoleProvider class.
B. Enable Windows authentication.
C. Set the Load User Profile setting to True in the application pool configuration.
D. Enable ASP.NET impersonation.

Correct Answer: AB QUESTION 66
You are designing an ASP.NET MVC 2 Web application. The Web application will include a controller named AdminController.
You need to recommend an approach for ensuring that the action methods of the AdminController controller are available only to the local Windows Administrator account.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. Add the Authorize attribute to each action method in the AdminController controller.
B. Read role information from the AuthorizationContext object.
C. In the Web.config file, add an authorization element for the Web application.
D. Read role information from the ConfigurationManager object.

Correct Answer: AD QUESTION 67
You deploy a medium-trust ASP.NET Web application to a Web server that runs IIS 7.0. The Web server
hosts multiple Web sites.
Web applications hosted on the Web server must not have access to the local resources of other Web
applications hosted on the Web server.

You need to recommend a deployment strategy. What should you recommend?
A. Deploy each Web application in a separate application pool. Use the built-in ApplicationPoolIdentity account.
B. Deploy each Web application in a separate application pool. Create and use a single custom account.
C. Deploy all the Web applications in the built-in DefaultAppPool application pool. Set the Managed Pipeline Mode setting to Classic.
D. Deploy all the Web applications in a single custom application pool.

Correct Answer: A QUESTION 68
You plan to upgrade a medium-trust Web application from ASP.NET 2.0 to ASP.NET 4. The Web application is hosted on a Web server that is running IIS 7.0.
You have the following requirements:
Support multiple permission sets in a single application domain.

Honor the machine-level code access security policy.
You need to recommend an approach for preparing the Web application for the upgrade.
What should you recommend?
A. In the Web.config file, set the legacyCasModel attribute of the trust element to true.
B. In the application pool settings, set the Load User Profile setting to True.
C. In the application pool settings, set the Managed Pipeline Mode setting to Classic.
D. In the Web.config file, set the processRequestlnApplicationTrust attribute of the trust element to true.

Correct Answer: A
QUESTION 69
You are planning a deployment process for a set of interrelated Web services.
You need to ensure maximum availability of the Web services in the event of a hardware or software failure.
Which approach should you recommend?
A. Run each distinct service on a separate virtual machine (VM).
B. Run each distinct service on two separate physical machines.
C. Run each distinct service on two virtual machines (VMs) hosted on one physical machine.
D. Run each distinct service on a separate physical machine.

Correct Answer: B
QUESTION 70
You are designing the deployment strategy for an ASP.NET Web application that consists of multiple pages. The Web application will be deployed to a server that hosts multiple ASP.NET applications.
The Web application design includes:
Error pages named LoginErrors.htm and GenericErrorPage.htm.

A subdirectory named Login that contains only the Login.aspx page.

You have the following requirements:
Display the LoginErrors.htm page for all unhandled errors that are generated from the Login.aspx page.

Display the GenericErrorPage.htm page for all other unhandled errors.
You need to recommend an approach for displaying the error pages. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. Add the following XML element to the Machine.config file in the .NET Framework installation folder: <customErrors defaultRedirect=”LoginErrors.htm” />
B. Add the following XML element to the Machine.config file in the .NET Framework installation folder: <customErrors defaultRedirect=”GenericErrorPage.htm” />
C. Add the following XML element to the Web.config file in the Login directory: <customErrors defaultRedirect=”LoginErrors.htm” />
D. Add the following XML element to the Web.config file in the root application directory: <customErrors defaultRedirect=”GenericErrorPage.htm” />

Correct Answer: CD
QUESTION 71
You are designing a health monitoring strategy for an ASP.NET Web application. The Web application must raise failure events to correspond with key business process failures.
You need to recommend an approach for ensuring that failure events can be consumed by the ASP.NET Health Monitoring framework.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. Create a custom event class derived from the WebErrorEvent class.
B. Create a custom event class derived from the WebFailureAuditEvent class.
C. In the Web.config file, add an entry to the healthMonitoring/providers collection for the custom event class.
D. In the Web.config file, add an entry to the healthMonitoring/eventMappings collection for the custom event class.

Correct Answer: AD QUESTION 72
You are designing the deployment strategy for an ASP.NET Web application. The database configuration string varies depending on the target environment.
You have the following requirements:
Deploy the application by using Web Deploy.

Replace the connection string named AppDb with the appropriate value for each environment.
You need to recommend an approach for updating the AppDb connection string when deploying the application to the staging environment.
Which two attributes should you add to the AppDb connection string entry in the Web.staging.config file? (Each correct answer presents part of the solution. Choose two.)
A. xdt:Transform with the value “XPath(configuration/connectionStrings[@name=’AppDb’])”
B. xdt:Locator with the value “XPath(configuration/connectionStrings[@name=’AppDb’])”
C. xdt:Locator with the value “Replace”
D. xdt:Transform with the value “Replace”

Correct Answer: BD QUESTION 73
You are modifying an ASP.NET Web application that uses session state. The Web application is deployed to a Web farm.
You have the following requirements:
Provide a reliable failover mechanism for session state data.

Provide persistent storage of session state data.
You need to recommend a session state mode that meets the requirements.
What should you recommend?
A. Use In-Process mode.
B. Use SQL Server mode with a network load balanced Microsoft SQL Server database.
C. Use State Server mode.
D. Use SQL Server mode with a clustered Microsoft SQL Server database instance.

Correct Answer: D QUESTION 74
An ASP.NET Web application contains a class named Money. The Money class has properties named Value and Currency.
The Locals window of the Microsoft Visual Studio 2010 IDE currently displays the Value and Currency
properties only when the Money object is expanded.
You have the following requirements:
Display the Value and Currency property values in the Locals window.

Display the property values without requiring the developer to expand the Money object.
You need to recommend an approach for modifying the Money class to meet the requirements.
What should you do?
A. Apply the DebuggerDisplay attribute to the class.
B. In the constructor, create a new instance of the LocalsItemDescription class for each of the Value and Currency properties.
C. In the Value and Currency property setters, call the Debug.WriteLine() method.
D. Modify the class to inherit from the LocalVariableInfo class. Override the IsPinned property to return true.

Correct Answer: A
QUESTION 75
An ASP.NET Web application connects to a Microsoft SQL Server 2008 database. Multiple users access the database. The Web.config file includes a database connection string. The Web application uses Windows authentication and impersonation. Anonymous access is turned off.
You need to recommend an approach for pooling database connections between users.
Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)
A. In the connection string, set the Integrated Security parameter to true.
B. In the connection string, specify a user name and password.
C. Do not explicitly close connections.
D. Explicitly close connections.

Correct Answer: AC
QUESTION 76
An ASP.NET Web application hosted on a remote server throws MullReferenceException exceptions that are not handled. The stack trace does not include line numbers. The Microsoft Visual Studio 2010 remote debugging tools are installed on the remote server. You need to recommend an approach for identifying the line of code that is causing the exception.
What should you recommend?
A. Deploy the PDB files for the assemblies to the remote server. Inspect the Application event log.
B. Set the project-level Enable Code Analysis on Build property to true. Inspect the Application event log.
C. In the Web.config file, set the debug value to true. Attach the debugger to the remote worker process.
D. Set the project-level Optimize code property to false. Attach the debugger to the remote worker process.

Correct Answer: A
QUESTION 77
You are designing an exception-handling strategy for an ASP.NET Web Forms application. The Web application will use Windows authentication.
The Web application must meet the following requirements:
Display a user-friendly error message to users.

Display a detailed error message to server administrators.
You need to recommend an approach for handling exceptions.
What should you recommend?
A. Add a HandleError attribute to each controller class.
B. On the assembly, add a SecureRules attribute with the security rule set configured to level 2.
C. In the Application_Error event handler, wrap the exception in an ExternalException exception. Re-throw the exception if the user is not a member of the Administrators group.
D. In the customErrors element of the Web.config file, set the mode attribute to remoteOnly.

Correct Answer: B QUESTION 78
An existing ASP.NET Web application uses third-party server controls.
The third-party vendor releases a new version of the server controls.
You need to recommend an approach for testing whether the new versions of the server controls break the

existing Web application.
What should you recommend?

A. Performance testing on the third-party server controls
B. Load testing on the third-party server controls
C. Component testing on the Web application
D. Regression testing on the Web application

Correct Answer: D QUESTION 79
You are designing an ASP.NET Web application that will be developed by using Microsoft Visual Studio 2010. The application will interact with a Microsoft SQL Server database.
The data access layer of the application must meet the following requirements:
Support rapid application development techniques.

Allow the underlying database schema to change without affecting the object model.

Contain strongly typed data objects.
You need to develop the data access layer.
Which data access technology should you recommend?
A. ADO.NET DataTables
B. ADO.NET DataSet
C. Entity Framework
D. WCF Data Services

Correct Answer: A QUESTION 80
You are designing an ASP.NET MVC 2 Web application that requires each user to register a user name and password before accessing restricted content.
You have the following requirements for user registration:
When the focus leaves the user name input field, validate that the user name does not already exist.

Display validation results before submitting the form.
You need to recommend a data validation strategy.
What should you recommend?
A. Use jQuery to access server-side validation code.
B. Use the Required attribute to annotate the user name property of the model. Call the Html.EnableClientValidation() method from the view.
C. Use an UpdatePanel control to access server-side validation.
D. Implement the IValidator interface on the model.

Correct Answer: A QUESTION 81
You are designing a data validation strategy for an ASP.NET Web application. A page of the Web application includes multiple Panel controls. Each panel contains input controls, validator controls, and a Submit button.
When a user clicks a Submit button, the Web application must validate only the values of the input controls on the panel containing that Submit button.
You need to recommend an approach for validating the values.
What should you recommend?
A. Change each Panel control to an UpdatePanel control. Set a PostBackTrigger for the Submit button on the panel.
B. Change each Panel control to an EditorZone control.
C. For each panel, set the ValidationGroup property on all the validator controls and the Submit button to a unique value for the panel.
D. For each panel, set the ValidationGroup property on the Submit button to a unique value and add a ValidationSummary control with the same value.

Correct Answer: C QUESTION 82
You are designing a data access strategy for an ASP.NET Web application.
You plan to expose an existing data source by using WCF Data Services.
You need to recommend an approach to ensure that CRUD operations are possible.
What should you recommend?

A. Implement the IQueryable and IUpdatable interfaces on data source entities.
B. Implement the IEnumerable and IEditableObject interfaces on data source entities.
C. Implement the ILookup and IUpdatable interfaces on data source entities.
D. Implement the IContainer and IEditableObject interfaces on data source entities.

Correct Answer: A QUESTION 83
You are designing an ASP.NET Web application. Pages of the Web application will share a common layout. Different business logic will be executed based on user input.
You have the following requirements:
Use view state to maintain data between postbacks.

Reuse presentation logic across multiple pages.
You need to recommend an approach that meets the requirements. What should you recommend?
A. Use ASP.NET MVC 2.
B. Use an ASP.NET Web Forms-based framework.
C. Use an ASP.NET Web Services application.
D. Use ASP.NET AJAX.

Correct Answer: B QUESTION 84
You are designing an ASP.NET MVC 2 Web application. When the Web application is accessed through the . . . /Products/Categories URL, it will display a list of products sorted by category.
You have the following requirements:
The Web application design must be loosely coupled.

The Web application must support unit testing of the data layer code.
You need to recommend a location for the code that maps and retrieves products from the data store.
Which location should you recommend?
A. A View class named ProductCategory
B. A Controller class named ProductsController
C. A Controller class named Products
D. A Model class named ProductCategory

Correct Answer: D QUESTION 85
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?
A. Use an asynchronous method.
B. Implement the IHttpAsyncHandler interface on the models for the views.
C. Implement the IAsyncResult interface on the models for the views.
D. Use AJAX to asynchronously call the third-party services and display information.

Correct Answer: A QUESTION 86
You are designing an ASP.NET MVC 2 Web application. A page of the Web application will display data retrieved from a Web service.
The Web service performance is unpredictable.
You have the following requirements:
Display a progress indicator while retrieving data.

Display data in the same page from which it is retrieved.
You need to recommend a solution that meets the requirements.
What are two possible solutions you could recommend? (Each answer presents a complete solution. Choose two.)
A. Derive the controller from the AsyncController class.
B. In the view, set the Page directive Async attribute to true.
C. Use the jQuery.ajax() function.
D. Use the Ajax.BeginForm() method.

Correct Answer: AB QUESTION 87
You are conducting an architectural review of an existing ASP.NET Web application. The Web application
uses only full-page postbacks, which degrades its performance.
You have the following requirements:

Extend existing controls by using AJAX functionality.

Reduce the size of postbacks without modifying the existing controls.
You need to recommend an approach for meeting the requirements.
What should you recommend?
A. Create a user control that implements the IExtenderProvider interface.
B. Create a server control derived from the ExtenderControl class.
C. Create a user control that implements the IAsyncActionlnvoker interface.
D. Create a server control derived from the Substitution class.

Correct Answer: B QUESTION 88
You are designing an ASP.NET Web application that will support multiple display languages. You have the following requirements:
Change server control settings based on the selected language.

Enable strongly typed access to the resource objects.
You need to recommend a strategy for localizing server control properties.
Which strategy should you recommend?
A.
Add the Localizable attribute to the control definitions in the code-behind. In the App_LocalResources folder, create a resource file that contains localized values with keys named according to the <ControlId>.<PropertyName> format.

B.
Use implicit resource expressions and store the resource file in the App_LocalResources folder.

C.
Use explicit resource expressions and store the resource file in the App_GlobalResources folder.

D.
Wrap localized server controls with a Localize server control. In the App_GlobalResources folder, create a resource file that contains localized values with keys named according to the <LocalizeId>.<ControlId>.<PropertyName> format.

Correct Answer: C
QUESTION 89
You are designing an ASP.NET Web application that targets multiple browsers and form factors.
Some devices do not support the markup produced by a third-party server control. You cannot modify the
third-party server control.
You need to recommend an approach for providing the correct markup for the problematic devices.
What should you recommend?

A. Derive a class from the third-party server control. In the new server control, override the TemplateSourceDirectory property to return a value pointing to a file containing the device- specific markup.
B. Create an ASP.NET theme specific to each problematic device. In the page PreRender event, set the Theme property to the custom theme based on the value of the Request.Browser.Type property.
C. In the page PreRender event, call the Response.WriteSubstitution() method with a delegate. In the delegate, populate the page with device-specific markup based on the value of the Request.Browser.Type property.
D. Derive a class from ControlAdapter that produces device-specific markup. In the browser definition file, add an entry in the controlAdapters collection for each of the problematic devices. In the entry, point to the third-party server control and adapter type.

Correct Answer: D
QUESTION 90
You are designing an ASP.NET Web application. A page of the Web application will use the ASP.NET Calendar server control. Users will select the type of calendar from a drop-down list named CalendarType. The CalendarType list contains cultural preferences.
You need to recommend an approach for rendering the calendar control based on the selected cultural preference.
What should you recommend?
A. Create a div element and set its lang attribute to the selected CalendarType value. Put the calendar control inside the div element.
B. Create a Localize control and set its Mode attribute to Transform. Put the calendar control inside the Localize control.
C. In the page code-behind, override the InitializeCulture() method and set the thread’s CurrentUICulture property to a new instance of the Culturelnfo class. Set the value of the DateTimeFormatlnfo.Calendar property based on the Request.Form collection.
D. In the page code-behind, override the OnInit() method and set the thread’s CurrentUICulture property to a new instance of the Culturelnfo class. Set the value of the DateTimeFormatlnfo.Calendar property based on the ViewState dictionary.

Correct Answer: C
QUESTION 91
You are designing an ASP.NET Web application. The Web application includes a section for sales pages.
You need to ensure that the sales pages share a specific header and a specific footer that differ from those of all other pages in the application.
Which approach should you recommend?
A. Create the specific header and footer elements in the site’s master page.
B. Create separate usercontrols for the specific header and footer, and add each of the user controls to the site’s master page.
C. Create a sales subdirectory. Add a master.aspx page that contains the header and footer to the subdirectory, and then store all the sales pages in the subdirectory.
D. Create a sales.masterpage that contains the header and footer and inherits from your site’s master page, and then use the master page in each sales page.
Correct Answer: D
QUESTION 92
You are designing an ASP.NET Web application that will be accessed only by a proprietary user agent.
The user agent is unable to read the default HTML encoding produced by the Web application.
You need to recommend an approach for allowing the user agent to process the Web application output. What should you recommend?
A. Create a class derived from System .Text. Encoder. In the Web.config file, add a pages element with the pageParserFilterType attribute set to the derived class type name.
B. Create a class derived from HttpEncoder. In the Web.config file, add an httpRuntime element with the encoderType attribute set to the derived class type name.
C. Create a class derived from HttpEncoder. In the browser definition file, add a capability element named httpEncoding, with the type attribute set to the derived class type name.
D. Create a class derived from System.Text.Encoder. In the browser definition file, add a capability element named httpEncoding, with the type attribute set to the derived class type name.

Correct Answer: B QUESTION 93
You are designing an ASP.NET Web application.
You need to recommend an approach for restricting access to internal application state information.
What should you do?

A. Set the trust level to Medium.
B. Disable tracing and debugging.
C. Install a certificate and enable SSL.
D. Deploy a P3P policy to the Web site.

Correct Answer: B QUESTION 94
You have an existing ASP.NET Web Forms application All the Create, Read, Update, and Delete (CRUD) operations are implemented by using Windows Communication Foundation (WCF).
The Web application has the following requirements:
Minimize network traffic.

Intrinsically support change tracking.

Do not use post backs.
You need to design a Web form to manage inventory.
Which approach should you recommend?
A. Use server-side events, and encapsulate all controls in an UpdatePanel control.
B. Use the AdoNetDataContext class with the Data View control of the ASP.NET Ajax Library.
C. Use HTML Controls and manipulate their content by using the API of the jQuery library.
D. Use HTML Controls and manipulate their content by using the API of the ASP.NET Ajax Library.

Correct Answer: B QUESTION 95
You have a web server farm that contains one ASP.NET web application- You configure the application to
log health monitoring events by using the SQL Server provider. The SQL Server provider uses buffering.
When the application logs a large volume of events, performance is degraded on the SQL Server.
You need to reduce the load on the SQL Server and log all events.
What should you do?

A. In the machine.config file for the server that hosts the application, modify the health monitoring profile file to limit the number of events that are logged per interval.
B. Modify the web application to enable caching.
C. In the root-level web.config file for the server that hosts the application, configure the buffer mode to flush less often.
D. In the web.config file for the application, modify the health monitoring profile file to limit the number of events that are logged per interval.

Correct Answer: D QUESTION 96
You define a testing strategy for an ASP.NET application by using code contracts.
The testing strategy has the following requirements:
Verify the internal consistency of the application.

Verify cross-boundary method calls.

Identify whether objects are modified.
You need to implement the testing strategy.
Which testing strategy should you use?
A. Pure
B. Invariants
C. Post conditions
D. Preconditions

Correct Answer: C QUESTION 97
You are designing a view for an ASP.NET MVC 2 web application.
You have the following requirements:
The view must present information by using HTML that is data driven.

You must create the HTML on the server.

You must have complete control over the generated HTML.
You need to choose an approach to generate the HTML.
Which approach should you choose?
A. HtmlHelper extension
B. jQuery library
C. Custom Web Part
D. Custom server control

Correct Answer: A QUESTION 98
HOTSPOT
The following code registers a ControlState property to maintain critical state information:
For each of the following statements, select Yes if the statement is true. Otherwise select No.

A.
B.
C.
D.

Correct Answer: QUESTION 99
You develop a website. You are asked to add a new section named Marketing to the website. You have the following requirements:
The Marketing section must be accessible only on mobile devices.

The Marketing section must scale automatically to the browser that is in use.
You need to develop the Marketing section of the website.
What should you use?
A.
The machine.config file.
B.
The UserAgent string property.

C.
The Request.Browser.IsMobileDevice property.

D.
The browser definition file.

Correct Answer: D
QUESTION 100
You have an ASP.NET Web application.
Several pages in the application must display localized content. Users report that the content is not
localized on one of the pages.
You need to ensure that the page displays localized content.

What do you do?

A. In the globalization element of the Web.Config file for the application, set the value of the UICulture and Culture attributes to auto.
B. In the page directive for the pages that are not localized, set the UICulture and Culture attributes to auto.
C. In code-behind file for the pages that are not localized, create a new thread.Set the value of the Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture properties to a regional identifier.
D. In code-behind file for the pages that are not localized, override the InitializeCulture() method. Set the value of the Page.UICulture property to a regional identifier.
Correct Answer: D
QUESTION 101
You design an ASP.NET web application. The application uses a master page and the jQuery library.
The application has the following requirements:
The jQuery library must be allowed to download concurrently with the existing content.

The latency on the web application must not increase when the jQuery library is downloaded.

A.
Option A

B.
Option B

C.
Option C

D.
Option D
You need to properly reference the jQuery library.
What should you do?
Correct Answer: C
QUESTION 102
You are asked to create a marketing research website. You have the following requirements:
Each page on the website must contain multiple charts that are animated.

The client computer must process the calculations that are required to generate the charts.

The charts must update dynamically without rendering the entire page.

The website must function on all major browsers and mobile devices.
You need to create the website.
Which two technologies should you use? (Each correct answer presents part of the solution. Choose two.)

A. JavaScript
B. VBScript
C. C#
D. Microsoft Silverlight
E. AJAX
F. C++
Correct Answer: AD QUESTION 103
You create an ASP.NET website that contains a section named Sales.
The website has the following requirements:
The Sales section must use a blue background for all pages.

All other sections must use a white background for all pages.

The Sales section must use the header and footer that are on the main website.
You need to configure the Sales section.
What should you use?
A. A nested master page
B. A master page
C. An area
D. A view

Correct Answer: A
QUESTION 104
You develop an ASP.NET MVC application. You create an attribute named MySecurityAttribute.
You have the following requirements:
The application must mitigate the impact of denial of service attacks.

MySecurityAttribute must monitor incoming requests to determine if the requests must be processed or rejected.

MySecurityAttribute must be applied to the relevant service classes or operation methods.
You need to implement MySecurityAttribute.
What should you do? (Each correct answer presents part of the solution. Choose two.)
A. Derive MySecurityAttribute from System.Web.Mvc.ActionFilterAttribute.
B. Derive MySecurityAttribute from System.Web.Mvc.ValidatelnputAttribute.
C. Override the OnAuthorization method in MySecurityAttribute. Implement a test for the conditions that indicate a potential attack.
D. Override the OnActionExecuting method in MySecurityAttribute. Implement a test for the conditions that indicate a potential attack.
E. Override the OnActionExecuted method in MySecurityAttribute. Implement a test for the conditions that indicate a potential attack.
F. Derive MySecurityAttribute from System.Web.Mvc.AuthorizeAttribute.

Correct Answer: CF
QUESTION 105
You design an ASP.NET MVC website. You have a controller named Customer-Controller that has a method named ListAsync.
ListAsync provides a list of customers from a remote SQL Server database.

For each of the following statements, select Yes if the statement is true. Otherwise select No.
Hot Area:

Correct Answer:

QUESTION 106
You monitor an application by using Windows Management Instrumentation (WMI). You add the following code segment to the application:

For each of the following statements, select True if the statement is true. Otherwise select False.
Hot Area:

Correct Answer:

QUESTION 107
The following code registers a ControlState property to maintain critical state information:

For each of the following statements, select Yes if the statement is true. Otherwise select No.
Hot Area:

Correct Answer:

QUESTION 108
You develop a custom server control that renders dynamic product data.
You must be able to reuse the data across the application.
You need to implement the control.

How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct drop target in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Select and Place:
Correct Answer:

QUESTION 109
You design a web application named Marketing that is hosted on Internet Information Services (IIS).
The application has the following requirements:
Must include the same settings that are used in the other applications that run on the same web server.

Must use an isolated application pool named Marketing.
You need to create the application pool for the Marketing application.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct drop target in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Select and Place:

We help you do exactly that with our high quality Microsoft 70-519 Certification using the above training materials.Regardless of whichever computer you have, you just need to download one of the many Microsoft 70-519 PDF readers that are available for free.

Welcome to download the newest Pass4itsure 070-412 dumps: https://www.pass4itsure.com/70-412.html