您好,欢迎来到江浙沪招生考试网 !

设为首页|加入收藏|联系我们|网站地图|

江浙沪招生考试网

您现在的位置: test4exam >> 历年真题 >> it认证题库 >> 正文

最新70-519题库下载

日期:2013/12/2 10:37:50 来源:本站原创 访问量:

最新70-519题库下载:

1. you are planning to migrate an ASP NET 3.5 Web application to ASP.NET 4. The following elements must be optimized for search engines “URLs within the Web application “HTML rendered by the Web application You need to design a solution for loading data dynamically into a Data List by using the current URL Which approach should you recommend?

A. Use Web Forms routing and set the Repeat Layout Property to Table on all list controls

B. Use Web Forms routing and set the Render Outer table property to false on all Form View controls

C. Use permanent redirect and set the Repeat Layout property to Table on all list controls

D. Use permanent redirect and set the Render Outer table property to false on all Form View controls

Answer: B

 

2. You are designing an ASP.NET MVC 2 application. You need to centralize the logic for handling and logging unhandled exceptions. Which approach should you recommend?

A. Use try and catch on every method.

B. Override the One Exception method of each controller.

C. Decorate all controllers with a custom Handle Error attribute

D. Decorate all controllers with the default Handle Error attribute,

Answer: C

 

3 .You are designing an ASP.NET Web application that contains both publicly accessible pages and administrative pages.You need to handle errors differently for publicly accessible pages and administrative pages, and you must use common code for each type of page. Which approach should you recommend?

A. Use the Application_Error method in the Global.asax.cs file.

B. Use subclasses of System.Web.UL.Page with Page_Error methods.

C. Use the Page_Error method in each of the master pages.

D. Use the Page_Error method in each of the publicly accessible pages and administrative pages.

Answer: B

 

4. you are designing a class library that will be used by all of your company’s ASP.NET Web applications.

A specific variable in a helper class within the library holds very sensitive information.

You need to ensure that the variable is not visible to developers when they are debugging any of the Web applications.

Which two actions should you recommend (Each correct answer presents part of the solution. Choose two.)

A. Make the variable private

B. Make the variable protected

C. Use the Debugger Display attribute

D. Use the Debugger Brows able attribute

Answer: AD

 

5. You are designing an ASP. NET Web application The Web application uses a Menu control to display either a menu of public and private pages to authorized users or a menu of only public pages to visitors You need to ensure that the menu options and URLs of the private pages are not available to unauthorized users Which approach should you recommend?

A. Use the Page_lnit method to add to the Menu control only pages that the user is authorized to view

B. Use the Page_Load method to add to the Menu control only pages that the user is authorized to view

C. Use a JavaScript window.onload event handler to hide the private pages from the list of pages shown on the menu

D. Use a JavaScript document ready event handler to hide the private pages from the list of pages shown on the menu

Answer: B

 

6. You are designing an ASP. NET Web Forms application.

The application supports thousands of concurrent users.

A Web form in the application enables users to send personalized e-mail messages to thousands of recipients. You need to design the application to optimize performance.

Which approach should you recommend?

A. Use a separate process from the On Click method of the form.

B. Use a Background Worker class from the On Click method of the form.

C. Use the classes in the System.Web.Mail namespace from the On Click method of the form.

D. Use the classes in the System.Net.Mail namespace from the On Click method of the form. 

Answer: A

 

7. You are designing an ASP.NET Web application for online image editing.

Users can upload images to the Web application and edit those images by using utilities provided by the application.Some utilities are processor intensive and should be offloaded to a Graphics Processing Unit (GPU). Other utilities require the use of proprietary algorithms that must be

performed on the server. You need to design a solution for minimizing bandwidth usage and Web server response times during image processing, while providing a responsive application.

Which two approaches should you recommend? (Each correct answer presents part of the solution. Choose two.)

A. Perform server-side image processing on the Web server

B. Perform server-side image processing on a dedicated server.

C. Perform client-side image processing by using ASP.NET AJAX.

D. Perform client-side image processing by using Microsoft Silver light.

Answer: BD

 

8. You need to design a solution to ensure that data caching and session state will be maintained.

Which approach should you recommend?

A. Use distributed caching and out-of-process session state.

B. Use distributed caching and in-process session state.

C. Use output caching and out-of-process session state.

D. Use output caching and in-process session state.

Answer: A

 

9. You need to design a deployment solution for the rewritten Web application.Which approach should you recommend?

A. Deploy the rewritten Web application to the same file path on each server in the Web farm.

B. Compile the rewritten Web application and deploy the compiled library to the global assembly cache.

C. Add the rewritten Web application to an application pool that contains only ASP.NET?4 Web applications.

D. Add the rewritten Web application to the same application pool as Web applications written in ASP.NET 2.0, ASP.NET 3.0, and ASP NET 3.5.

Answer: C

 

10. You are designing an ASP.NET Web application to manage and display sensitive information stored in a Microsoft SQL Server database.The database also provides authorization information for users.All Web pages that display sensitive information require an authenticated login. There is no visitor access to these pages. You have the following requirements:

Separate authorization logic from the application.

Prevent the application from directly accessing the database server.

You need to design a data access and authorization solution.

Which approach should you recommend?

A. Use a WCF service.

B. Use a separate library.

C. Use SQL XML Services.

D. Use stored procedures.

Answer: A

 

11. You are designing a solution for sharing information among employees located in a main office and several branch offices.

The solution will consist of the following elements:

An ASP.NET Web application that accesses and manipulates large amounts of data

Web services used by the Web application for data access

A Microsoft SQL Server database

Data displayed to users is never more than one day old.

You need to plan a deployment strategy that minimizes bandwidth requirements.

Which deployment strategy should you recommend?

A. Deploy the Web application, Web services, and database to the main office, and use browser caching.

B. Deploy the Web application, Web services, and database to each branch office, and use SQL Server Replication.

C. Deploy the Web services and database to the main office deploy the Web application to each branch office, and use output caching.

D. Deploy the database to the main office. Deploy the Web application and Web services to each branch office, and use caching at the Web service level.

Answer: D

 

12. You are designing an ASP.NET Web application. You have the following requirements:

Perform rapid development.

Maintain cross-browser compatibility.

Do not require client-side installations.

You need to recommend a client-side technology that meets the requirements.

Which two technologies could you recommend? (Each correct answer presents a complete solution. Choose two.)

A. jQuery

B. ASP.NET AJAX

C. Microsoft Silverlight

D. Microsoft Visual Basic Scripting Edition (VBScript)

Answer: AB

 

13. You need to design a solution for calling a server-side method of the code-behind file from JavaScript.

Which approach should you recommend?

A. Use Page Methods.

B. Use an Update Panel control.

C. Use an Update Progress control.

D. Configure the server-side method to return a JsonResult.

Answer: A       

 

14. You are designing an ASP.NET Web application.

You have the following requirements:

The application must be usable in partially connected scenarios.

Data that is entered into the application offline must be synchronized with the server the next time the application is online.

You need to design the application to meet the requirements.

What should you use2

A. jQuery

B. ASP.NET AJAX

C. WCF Data Services

D. Microsoft Silvertight

Answer: D

 

15. You need to design a solution for programmatically adding reusable user-interface code to views and allowing the user-interface code to be rendered from the server side.

Which approach should you recommend?

A. Create a jQuery library plug-in.

B. Create an HtmlHelper extension method.

C. Create a controller that returns an Action Result.

D. Create a Web Form server control that stores values in View State.

Answer: B

 

16. You are designing an ASP. NET MVC 2 Web application. The view content will be composed of user controls.You have the following requirements:

Deliver content that is provided by user controls to the browser.

Select the appropriate user controls to render within the controller.

You need to ensure that your design meets the requirements.

Which approach should you recommend?

A. Use the Html. Render Partial extension method.

B. Use the Html. Render Action extension method.

C. Use the Partial View Result class.

D. Use the Content Result class.

Answer: B

 

17. 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. Configure llS to use SSL.

B. Configure llS to use HTTP compression.

C. Register a custom Page Adapter class that stores the view state in a cookie.

D. Register a custom Page Adapter class that provides a Session State Page Per sister.

Answer: D

 

18. You are designing an ASP.NET Web Forms application. You expect the application to have high traffic. You plan to use a Web farm to balance the application load across several Web servers. You have the following requirements:

Use round-robin load balancing.

Do not use persistent storage for session data.

You need to ensure that your design meets the requirements.

Which configuration should you recommend

A. Use cookieless session state.

B. Use the lnProc session state mode.

C. Use the SQLServer session state mode.

D. Use the StateServer session state mode.

Answer: D

 

19. You are designing a RESTful ASP.NET Web application. You have the following requirements:

Retain state between requests.

Associate a request with a session.

Do not require the use of cookies.

You need to ensure that your design meets the requirements.

Which approach should you recommend?

A. Disable View State by using the @ Page directive

B. Configure the application to use cookieless session state

C. Configure the application to use the lnProc session state mode

D. Register a custom Page Adapter class that provdes a Session State Page Per sister.

Answer: B

 

20. You need to design session state management for the rewritten Web application.

Which approach should you recommend?

A. Use a persistent cookie to store the authentication ticket.

B. Use a third-party cookie to store the authentication ticket.

C. Use different machine key element attributes and values across all three servers.

D. Use the same machine key element attributes and values across all three servers.

Answer: D

 

21. During application testing, developers notice that the Temp Data property contents no longer persist between requests.

You need to advise the developers of the requirements for ensuring that the Temp Data property contents persist between requests.

Which should you advise?

A. View State must be enabled at the page level.

B. View State must be enabled in the Web application configuration.

C. Session State must be enabled in the Web application configuration.

D. In Proc session state must be enabled in the Web application.

Answer: C

 

22. 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 controls 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 control Rendering Compatibility Version element of the pages section of the machine config file.

D. Use the control Rendering Compatibility Version element of the pages section of the migrated application’s web.config file

Answer: D       

 

23. You need to design a solution for implementing holiday-specific site changes Which approach should you recommend?

A. Create a single master page, and change its images and styles dynamically in the code-behind file

B. Create one master page for each holiday. In each master page, reference the styles and images for the specific holiday.

C. For each holiday, create a theme that contains the related images and styles. Include a skin file, and reference the images within the master page with a SkinID .

D. For each holiday, create a theme that contains the related images and styles. Include a skin file, and reference all images within the Web application with a SkinID .

Answer: D

 

24. You need to design a solution for accessing the shopping cart controls by using JavaScript.

Which configuration should you recommend?

A. Use <% control.ID %>.

B. Use <% control.ClientlD %>.

C. Use ClientlDMode=”AutolD”.

D. Use ClientlDMode=”Predictable”.

Answer: D

 

25. 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 user controls 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.master page that contains the header and footer and inherits from your site’s master page, and then use the master page in each sales page.

Answer: D

 

26.. You are designing the user interface for an ASP.NET Web application.

The Web application allows several departments to personalize the style of their sections of the Web application. All departmental section styles derive from the core styles of the Web application and can only append to the Web application’s core styles. The departmental master pages inherit from the Web application’s master page. You need to ensure that core CSS styles appear En all pages of the Web application. Which approach should you recommend?

A. Add a master.css file containing the CSS styles to the Web application.

B. Add a Content Place Holder containing the CSS styles to the Web application’s master page

C. Link from the Web application’s master page to a .css file containing the CSS styles.

D. Link from the Web application’s master page to a css.ascx file containing the CSS styles.

Answer: C

 

27. You are designing an ASP.NET Web application for display on desktop computers and on mobile devices. You have the following requirements.

Present a full-featured interface to users of desktop computers that include many interaction options and graphical buttons.

Present a simple interface to users of mobile devices that do not include bandwidth-intensive elements.

You need to design the Web application to meet the requirements.

Which two approaches should you recommend7 (Each correct answer presents part of the solution? Choose two.)

A. Create two separate skins for desktop and mobile user interfaces

B. Create two separate themes for desktop and mobile user interfaces

C. In the PreRender method of the Web application’s master page, test Request. Browser Mobile Device Model and switch to the appropriate interface.

D. Create a System.Web.Ul.Page subclass that all Web application pages inherit from. In the Page_Prelnit method, test Request Browser Is Mobile Device and switch to the

appropriate interface

Answer: BD

 

28. 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 jQuery.

B. Use Microsoft Silverlight.

C. Use the ASP.NET Ajax Library.

D. Use Microsoft Visual Basic Scripting Edition (VBScript).

Answer: AC

 

29. You are designing an ASP.NET Web application for content management. You have the following requirements:

Support multiple browsers.

Display a specific interface for browsers that have display dimensions of less than 640 x 480 pixels. You need to design a solution for identifying the display dimensions of

the requesting browser. Which approach should you recommend?

A. Use Current UlCutture.

B. Use the HttpUtility class.

C. Use the Http Worker Request class.

D. Use the Http Browser Capabilities class.

Answer: D

 

30. You are designing an ASP.NET Web Forms application.

You have the following requirements:

Make use of exclusive features in a newly released Web browser.

Do not change existing code files.

You need to design the application to meet the requirements. Which approach should you recommend?

A. Use a .browser file.

B. Use the Http Worker Request class.

C. Use the Web application’s master page.

D. Parse the User Agent string in Page_Load.

Answer: A

 

31. 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 CurrentCulture.

B. Use CurrentUlCulture.

C. Use language-specific master pages.

D. Use language-specific resource files.

Answer: BD

 

32. You are designing an ASP.NET Web application for content management.

You have the following requirements: wSupport multiple languages.

Support dynamic changes to site content.

Provide the ability to add content to the site without making changes to files within the application directory. You need to recommend the application’s source for retrieving content.

Which source should you recommend?

A. a database based on CurrentUlCulture

B. a master page based on CurrentUlCutture

C. local resources based on CurrentCutture

D. global resources based on CurrentCulture

Answer: A

 

33. You need to design a solution that supports the end user display requirements for data and graphics.

Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

A. Use a language-specific master page

B. Replicate each page once for each supported language

C. Create a local resource file for each page and for each language.

D. Populate the database with data in each language, and retrieve the data in the user’s language.

Answer: CD

 

34. You need to design a solution that supports the end user display requirements for dates, numbers, and prices. Which two approaches should you recommend7 (Each correct answer presents part of the solution. Choose two.)

A. Use CurrentCutture.

B. Use CurrentUlCulture.

C. Display all dates, numbers, and prices by using the Stnng.format() property of the controls.

D. Display all dates, numbers, and prices by using the ToString(tormat) method of the reference and value types.

Answer: AC

 

35. You need to incorporate a data access layer to meet the requirements.

Which solution should you recommend?

A. an Entity Data Model created by using the Entity Framework within the Web project

B. a class that is stored in the app_code folder of the Web project. uses ADO.NET, and returns DataSets

C. a separate data access project that includes an Entity Data Model created by using the Entity Framework

D. a separate data access project that queries the database by using ADONET and returns DataSets

Answer: C

 

36. You are designing a data access service backed by Microsoft SQL Server.

Other developers will use your service as a third-party service.

You have the following requirements:

To reduce maintenance cost, you must write the minimal amount of code required for fulfilling the goals.

The service must function with Microsoft and non-Microsoft technologies.

The service must implement the WS-Security standards.

You need to design the service to meet the requirements.

Which approach should you recommend?

A. Use an ASP.NET Web service.

B. Use SQL Server XML Web services.

C. Use a WCF service with multiple bindings.

D. Use an .ashx file to return an XML response over HTTPS.

Answer: C

 

37. 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. Entity Framework

B. WCF Data Services

C. ADO.NET DataSet

D. ADONET DataTables

Answer: A

 

38. You are designing an ASP.NET Web application. The application must provide a data access method that supports HTTP, MTOM, SOAP, and TCP. You need to ensure that customers can integrate their applications with the data sources and business rules for your Web application

Which data access technology or technologies should you recommend?

A. Entity Framework

B. Windows Communication Foundation

C. ADO.NET DataSets and ASP.NET Web Services

D. ADO NET DataTables and ASPNET Web Services

Answer: B

 

39. You need to recommend appropriate technologies for designing Web forms for entry and retrieval of news items. Which technologies should you recommend? (Each correct answer presents a complete solution. Choose two.)

A. ASMX and SOAP

B. WCF Data Services and jQuery

C. ASP.NET MVC 2 and Microsoft AJAX

D. Entity Framework and Microsoft Silverhght

Answer: BC

 

40. You need to design the application to support the news feature.

Which approach should you recommend?

A. Use the File Result class and return the result as a plain text file.

B. Use the View Resutt class and bind the items to an HTML.TextArea HTML Helper.

C. Use a custom Action Result class and return the output stream as the return value.

D. Use a custom Action Result class and bind the items to an HTML.TextArea HTML Helper.

Answer: C

 

41. You are adding functionality to an ASP.NET MVC 2 Web application.

You have the following requirements when passing form data to the server:

Provide a simple way to map posted form values to a custom class object. “Control the deserialization of custom class objects that are passed to the server. You need to design the application to meet the requirements. Which approach should you recommend?

A. Implement model binding.

B. Use ASP.NET Dynamic Data.

C. Implement AJAX data templates.

D. Use a built-in HtmlHelper extension method.

Answer: A

 

42. You are designing an internal Web application You have the following requirements:

Use an existing data layer built on the Entity Framework

Ensure that additional Entity Framework entities can be supported without additional coding.

You need to design the Web application so that users can add, edit, and delete data.

Which approach should you recommend?

A. Create an ASPNET Dynamic Data project.

B. Create an ASP.NET MVC 2 project and use the Entity Framework data layer as your model.

C. Create an ASP.NET Web Forms application and set the Data Source ld for each Grid View to an Entity Data Source control.

D. Create an ASP.NET Web Forms application and set the Data Source ld for each Grid View to an Object Data Source control.

Answer: A

 

43. You are designing an ASP.NET MVC 2 Web application.

You have the following requirements:

Type safety must be validated at compile time.

Code must not require explicit run-time type casting.

You need to pass data between the controllers and the views within the Web application. Which approach should you recommend?

A. Use the View Data Dictionary class.

B. Use the Temp Data Dictionary class.

C. Use strongly typed view model classes.

D. Use dynamic object view model classes.

Answer: C

 

44. 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 Update Panel control.

B. Use the Ado Net Data Context 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.

Answer: B

 

45. You have an ASP.NET Web Forms application for processing orders.

Many users of the application submit their order forms multiple times due to incorrectly formatted credit card information. You need to plan for validation of the length and format of data in the credit card field on the client side prior to processing each transaction. Which approach should you recommend?

A. Use a Custom Validator control in the Page_Load method.

B. Use a Custom Validator control in the On Server Validate method

C. Use a Required Field Validator control and a Compare Validator control.

D. Use a Required Field Validator control and a Regular Expression Validator control.

Answer: D

 

46. You are designing an ASP.NET Web application.

You have the following requirements:

Users must be allowed to save their work in progress on one computer and to continue the work on another computer. “Data that is submitted for processing must be valid, and invalid data must be rejected.

Primary key constraints within the database must be enabled at all times

The application must store only data that is entered by the user

You need to design data validation to support the requirements

Which two approaches should you recommend (Each correct answer presents part of the solution. Choose two.)

A. Store temporary form data as XML in a database table.

B. Use validators to verify the data when the user submits a form.

C. Add an is Temporary column to each database table, and set all columns to allow null values

D. Provide default values for the database columns, and submit the form with user-entered values when the user saves the form.

Answer: AB

 

47. You are designing an ASRNET Web application that allows users to specify a file to be uploaded by entering the URL of the file. Only files that contain information in a specific internal metadata field are

allowed. You need to design a solution to reject URLs of disallowed files.

Which two approaches could you recommend? (Each correct answer presents a complete solution. Choose two.)

A. Use an On Click method.

B. Use an on Submit Java Script handler.

C. Use a Regular Expression Validator control.

D. Use a custom validator control.

Answer: AD

 

48. You are designing an ASP.NET Web application that allows users to type a value in a text box The application must function with JavaScript disabled. You need to design a method for using a Web service to validate the user-typed value before the form is processed. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

A. Use a Custom Validator control.

B. Use a Dynamic Validator control.

C. Use an On Server Validate method.

D. Use a Client Validation Function method.

Answer: AC

 

49. You are designing an ASP NET 4 Web application that will integrate third-party components.

You need to minimize the security risks of using these components.

Which approach should you recommend?

A. Apply role-based security with declarative checks.

B. Store the components in the global assembly cache.

C. Use the third-party components on a separate server.

D. Use an appropriately permitted App Domain for each component.

Answer: D

 

50. An ASP.NET Web application stores data in a Microsoft SQL Server database that runs on a separate server. The company requires all database access to be performed under the identity of the user that is connected to the application. The Web application uses integrated security in the database string. During testing, the Web application is unable to authenticate to the database as the connected user.

You need to design an authentication strategy.

Which approach should you recommend?

A. Run the Web application under the System account.

B. Run the Web application under the Network Service account.

C. Configure the Web application for constrained delegation.

D. Set the identity element of the Web application configuration to impersonate=”true’.

Answer: C

 

51. You need to design a solution for incorporating NTFS permissions in the Web application.

Which two approaches should you recommend? (Each correct answer presents part of the solution. Choose two.)

A. Grant the Network Service account only Read permission to the root directory.

B. Grant Read permission and Write permission to the root directory.

C. Grant the Network Service account Full Control permission to the Upload folder.

D. Grant the Network Service account Read permission and Write permission to the Upload folder.

Answer: AD

 

52. You need to plan for authentication and authorization of Web application users.

Which approach should you recommend?

A. Use the Membership API.

B. Use the Personalization API.

C. Use the Local Security Policy.

D. Use the Group Policy Manager.

Answer: A

 

53. You need to design a solution for ensuring that only users with the Administrators role have access to the Admin area of the Web application. Which approach should you recommend? A. Allow only the local computer Administrator account to have NT?permissions on the files contained in the Admin area.

B. Choose to include the Login View control within each file in the Admin area.

C. Establish an authorization section in each location section in the Web application configuration files for each area that needs to be secured.

D. Ensure that each Action Result returned to the Admin area contains the Authorize attribute and the appropriate properties.

Answer: D

 

54. You are designing an ASP.NET Web application

You are implementing the ASP NET membership and profile providers to do the following:

Support retrieval of user passwords within the ASP NET Web application

Access profile data that is stored in two or more Microsoft SQL Server tables

You need to ensure that the Web application is property configured to interact with the providers

Which approach should you recommend?

A. Use encrypted passwords, and develop a custom profile provider.

B. Use encrypted passwords and the built-in Sql Profile Provider.

C. Use hashed passwords, and develop a custom profile provider.

D. Use hashed passwords and the built-in Sql Prolile Provider.

Answer: A

 

55. You need to design a solution for the protection of the pages in the Secured folder.

Which approach should you recommend?

A. Use Code Access Security.

B. Use the Personalization API.

C. Use Software Restriction Policies.

D. Use the Authorization element of web.config.

Answer: D

 

56. You need to ensure that unauthorized users do not have access to the administration pages

Which approach should you recommend?

A. Check whether the user has access in the Page_Load method of every administration page by using the User, lslnRole(”Admin”) method.

B. Override the OnInit event of the Custom Page class, and then check whether the user has access.

C. Override the On Load event of the Custom Page class, and then check whether the user has access.

D. Decorate the Custom Management Page class with the Principal Permission attribute, demanding access for the Admin role.

Answer: D

 

57. You are designing an ASP.NET MVC 2 Web application for a customer’s extranet site.

You need to allow only requests that originate from the customers intranet IP address range to access the application, and you must redirect other access requests to the

customers Web site. Which approach should you recommend?

A. Configure the llS Request Filter module to filter requests.

B. Configure IIS to reject requests from outside the specified IP address range.

C. Configure the llS URL Rewrite module to redirect requests from outside the specified IP address range to the public Web site.

D. Design the default controller and action to check the IP address and to redirect requests from outside the specified IP address range to the public Web site.

Answer: C

 

58. You are designing an ASP.NET Web application. Some Web application users prefer to turn off cookie support in their browsers. You need to secure the Web application against session spoofing when cookieless sessions are used. Which approach should you recommend

A. Use the Http Utility class.

B. Use Session ID regeneration.

C. Use SSL for the Web application.

D. Use a custom Session id Manager class.

Answer: D

 

59. You are designing a user input form that is part of an ASP NET Web Forms application.

You need to ensure that users cannot attack the Web server by submitting invalid data.

Which approach should you recommend?

A. Install a certificate on the Web server, and force all Web traffic to use SSL.

B. Write an on Submit Java Script handler that validates all form input

C. Write an on Submit JavaScript handler that URL-encodes all data that is passed to the server.

D. Write an On Click method for the Submit button that rejects form submissions that contain invalid data

Answer: D

 

60. You are designing an ASP.NET Web Forms application that uses a database containing user names and hashed passwords for authentication.

The Web application includes a login form in which users type their user names and passwords.

You need to design a strategy to ensure that the user’s login credentials cannot be stolen through a man-in-the-middle attack. Which approach should you recommend?

A. Install a certificate on the Web server, and force the login form to use SSL.

B. Write an on Submit JavaScript handler that hashes the password before the password is submitted to the server.

C. Write an On Click method for the Submit button that hashes the password before the password is compared with the password value that is stored in the database.

D. Write an on Submit JavaScript handler that URL-encodes the password before the password is passed to the server.

Answer: A

 

61. You are designing an ASP.NET Web application form that allows the user to submit queries to a Microsoft SQL Server database. You need to minimize the success of submitting corrupt client data to the form as a security attack against your Web application. Which two approaches should you recommend7 (Each correct answer presents part of the solution. Choose two.)

A. Use the Enable View State Mac property.

B. Use SQL parameters for database access.

C. Use an on Submit Java Script handler for the form

D. Use Regular Expression Validator and Range Validator controls.

Answer: BD

 

62. You are designing a testing methodology for an ASP NET MVC 2 Web application. You have the following application testing requirements:

Verify that security issues are identified as early within the request as possible.

Verify that the effectiveness of input corruption is minimized.

You need to meet the application testing requirements.

Which methodology should you recommend?

A. Design tests against the model.

B. Design tests against the controllers.

C. Design tests against the client browser.

D. Design tests against the data access layer.

Answer: B

 

63. You are designing a testing methodology for an ASP.NET MVC 2 Web application.

The application has a rich domain model that represents the logic and the data of the business.

A fa’?ade over the domain model provides a simplified API that is used by the controllers.

A data access layer beneath the domain model is used by the domain model to handle data storage and retrieval. You have the following requirements:

Centralize business rules.

Directly validate the accuracy of the business rules.

You need to design tests against the appropriate layer to meet the requirements.

Which layer should you recommend

A. the controllers

B. the domain model

C. the data access layer

D. the domain model fa?ade

Answer: B

 

64. You are designing a testing methodology for an ASP.NET MVC 2 Web application.

The application has a simple domain model that provides a thin wrapper over a data access layer.

Controllers interact with the domain model directly and use methods on repository objects to save and retrieve objects from the data access layer You have the following

requirements:

Centralize data operations.

Directly validate data access rules.

You need to design tests against the appropriate layer to meet the requirements.

Which layer should you recommend?

A. the controllers

B. the domain model

C. the data access layer

D. the repository objects

Answer: D

 

65. You need to design a solution for capturing an exception. Which approach should you recommend?

A. Use a Page_Error method.

B. Use a HandleError attribute.

C. Use a customErrors element.

D. Use an Application_Error method.

Answer: B

 

66. You need to design an exception-handling strategy for the Web application.

Which approach should you recommend?

A. Add a customErrors section in the configuration file, with mode=”On” and default Redirect=”/error.aspx”.

B. Add a customErrors section in the configuration file, with mode=”RemoteOnly” and defauftRedirect=’/error.aspx”.

C. Catch all unhandled exceptions in the Page_Error event of each page, send an e-mail message containing the exception details, clear all errors, and redirect the user to a

generic error page.

D. Catch all unhandled exceptions in the Application_Error event of the Global.asax file, send an e-mail message containing the exception details, clear all errors, and redirect

the user to a generic error page.

Answer: D

 

67. You need to recommend a debugging strategy for JavaScript code on the shopping cart page.

Which approach should you recommend?

A. use of the Microsoft Script Debugger

B. use of the Internet Explorer Developer Tools

C. attaching a debugger to the Internet Explorer process

D. attaching a debugger to the Web development server process

Answer: C

 

68. 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 and display 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 SQL Server replication.

B. Use AJAX to retrieve the database information.

C. Use a control that retrieves and displays the database information.

D. Use a service that proxies the database queries and caches the results.

Answer: BD

 

69. You have an ASP.NET Web application that displays charts that are generated daily from data in a Microsoft SQL Server database.

Each chart is implemented as a user control that displays data retrieved from the database. Data retrieval and chart generation consume a significant amount of resources.

Users of the Web application generate unique reports that contain one or more chart controls.

Each chart is common to many reports.

You need design a solution to improve the performance of the Web server.

Which approach should you recommend?

A. Use page caching.

B. Use fragment caching.

C. Use the application cache.

D. Use SQL cache dependency.

Answer: B

 

70. You are designing a plan to scale an ASP.NET Web application to support up to 20,000 concurrent users. Application usage statistics indicate that many queries against the database retrieve data that does not change frequently. You need to reduce database round trips for static data. Which approach should you recommend?

A. Use session state.

B. Use the application cache.

C. Use SQL Server replication.

D. Use multiple active result sets.

Answer: B

 

71. You have an ASP.NET Web application.

The Web application displays frequently changing data.

As application usage increases, more queries are issued. And the database response time increases.

You need to design a strategy for improving database query response time.

Which approach should you recommend?

A. Use the application cache.

B. Use SQL Server replication.

C. Use network load balancing.

D. Use multiple active result sets

Answer: B

 

72. 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 MSDeploy.

B. Use the Web Deployment tool.

C. Use a Web Deployment project.

D. Use the ASP.NET Compilation tool.

Answer: D       

Answer: D

 

73. You are designing a deployment process for a new ASP.NET Web application.

The company requires the application to be compiled to a single DLL for deployment.

You need to design a deployment process that meets the requirement.

Which approach should you recommend?

A. Use MSDeploy.

B. Use the Web Deployment tool.

C. Use a Web Deployment project.

D. Use the ASP.NET Compilation tool.

Answer: C

 

74. You need to design a deployment solution for the rewritten Web application.

Which approach should you recommend?

A. Use MSDeploy and FTP.

B. Use DB Deployment and FTP.

C. Use MSDeploy and One-Click Publishing.

D. Use DB Deployment and One-Click Publishing.

Answer: C

 

75. You are designing a process for deploying an ASP.NET MVC 2 Web application to llS 6.0.

You need to ensure that the Web application properly handles Web requests.

Which approach should you recommend?

A. Configure IIS to map all requests to aspnet_isapi.dll by using a wildcard script map.

B. Configure lIS to map all requests to aspnet_wp.exe by using a wildcard script map.

C. Modify the Web application to route all requests to an Http Handler class.

D. Modify the Web application to route all requests to an Http Module class.

Answer: A

 

76. You need to design an automation solution for the final-release build process. Which approach should you recommend?

A. Use Web application configuration file transforms.

B. Create a custom configuration section for each build configuration value.

C. Append the Config Source attribute to each application configuration section.

D. Duplicate each configuration section for the debug build configuration, and modify the settings for the release build configuration.

Answer: A

 

77. You are implementing additional functionality within an existing ASP.NET 4 Web Forms Web site project by using ASP. NETMVC2. You need to design a Web site project configuration that supports Web Forms and ASP. NET MVC 2 in the same Microsoft Visual Studio 2010 project.

Which two approaches should you recommend? (Each correct answer presents part of the solution. Choose two.)

A. Convert the Web site project to a Web application.

B. Convert the Web site project to an ASP. NET MVC 2 application.

C. Modify the T4 templates to support ASP.NET Web Forms.

D. Reference the ASP.NET MVC 2 assemblies in the application configuration file.

Answer: AD

 

78. You are designing an ASP.NET Web application in Microsoft Visual Studio 2010.

You plan to deploy the application to multiple branch offices within your company.

Each branch office requires different settings for SQL Server connections.

You need to centrally manage the automatic configuration for each branch deployment.

Which two approaches could you recommend? (Each correct answer presents a complete solution. Choose two.)

A. Use a separate web.config file for each branch office.

B. Store the connection strings in the database.

C. Use configuration transformations.

D. Use MSDeploy.

Answer: CD

 

79. 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 physical machine.

B. Run each distinct service on two separate physical machines.

C. Run each distinct service on a separate virtual machine (VM).

D. Run each distinct service on two virtual machines (VMs) hosted on one physical machine.

Answer: B

 

80. 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 affinity load balancing with SQLServer session state.

B. Use affinity load balancing with StateServer session state.

C. Use per-request load balancing with lnProc session state.

D. Use per-request load balancing with StateServer session state.

Answer: D        

 

81. You need to design a solution for storing sessions in the application. Which approach should you recommend?

A. Use In Proc mode.

B. Use SQL Server mode.

C. Use State Server mode.

D. Use a custom mode with session data saved in the cache.

Answer: B       

 

82. You are designing an ASP.NET Web application that will queue e-mail messages in a database.

A Windows service will process the queue and send the messages.

The Web application will be hosted on a server that hosts several other applications.

The server cannot support additional processors or memory.

You estimate that the Web application usage will increase by 10 percent every month.

You need to ensure that the delivery of high-priority messages will not be delayed as the Web application usage increases.

Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

A. Process the high-priority messages first.

B. Use a shared memory connection to the database.

C. Modify the Windows service to handle multiple threads.

D. Run the Windows service on a server that is separate from the Web application host server.

Answer: AD

 

83. You are designing a monitoring plan for a multi-tier ASP.NET Web application. The Web application uses multiple Web servers and a database server. You plan to use a

dedicated monitoring server. You need to send an alert when any application server stops responding.

Which approach should you recommend?

A. Run a process on the monitoring server that periodically sends a request to each application service. Send an alert if a response is not received for any request.

B. Run a process on each Web server that logs activity to a database on the monitoring server. Run a process on the monitoring server that periodically checks the monitoring database and sends an alert if any service stops logging.

C. Use AJAX to log user actions on each Web page to a database on the monitoring server. Run a process on the monitoring server that periodically checks the monitoring

database and sends an alert if there is an interruption in Web page activity.

D. Use Microsoft Message Queuing (MSMQ) to send a message to the monitoring server in the Load event of the Web application’s master page. Run a process on the

monitoring server that polls for MSMQ messages and sends an alert if any server stops sending messages.

Answer: A       

 

84. You are supporting an ASP.NET Web application.

The Web application occasionally shuts down unexpectedly in the production environment.

You cannot reproduce the problem in your local environment.

You need to design a strategy to ensure that you can immediately diagnose the problem without affecting the performance of the production environment.

Which approach should you recommend?

A. Use ASP.NET tracing.

B. Use ASP.NET health monitoring.

C. Use local debugging against the hosting Web server process.

D. Use remote debugging against the hosting Web server process.

Answer: B

 

85. 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 remote debugging.

C. Use ASP.NET health monitoring.

D. Use the Request Started method.

Answer: C

 

相关阅读

Copyright ©2013-2015 江浙沪招生考试网 All Rights Reserved.
地址: 苏州市姑苏区阊胥路483号(工投创业园)  电话:0512-85551931 邮编: 214000
邮箱: [email protected] 版权所有:苏州迈峰教育科技有限公司 苏ICP备15050684号-2