微软认证考试

You are implementing an ASP.NET MVC 2 Web application. The URL with path /Home/Details/{country} will return a page that provides information about the named country. You need to ensure that requests for this URL that contain an unrecognized country value

题目

You are implementing an ASP.NET MVC 2 Web application. The URL with path /Home/Details/{country} will return a page that provides information about the named country. You need to ensure that requests for this URL that contain an unrecognized country value will not be processed by the Details action of HomeController. What should you do?()

  • A、Add the ValidateAntiForgeryToken attribute to the Details action method.
  • B、Add the Bind attribute to the country parameter of the Details action method. Set the attribute’s Prefix property to Country.
  • C、Create a class that implements the IRouteConstraint interface. Configure the default route to use this class.
  • D、Create a class that implements the IRouteHandler interface. Configure the default route to use this class.
如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()

  • A、<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
  • B、<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
  • C、<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
  • D、<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>

正确答案:B

第2题:

The Company LAN is becoming saturated with broadcasts and multicast traffic. What could you do  to help a network with many multicasts and broadcasts?()

  • A、Creating smaller broadcast domains by implementing VLANs.
  • B、Separate nodes into different hubs.
  • C、Creating larger broadcast domains by implementing VLANs.
  • D、Separate nodes into different switches.
  • E、All of the above.

正确答案:A

第3题:

In your database, you want to ensure that idle sessions that are blocking active are automatically terminated after a specified period of time.How would you accomplish this?()

A. Setting a metric threshold

B. Implementing Database Resource Manager

C. Enabling resumable timeout for user sessions

D. Decreasing the value of the IDLE_TIME resource limit in the default profile


参考答案:D

第4题:

You are implementing an ASP.NET MVC 2 Web application that allows users to view and edit data. You need to ensure that only logged-in users can access the Edit action of the controller. What are two possible attributes that you can add to the Edit action to achieve this goal? ()

  • A、[Authorize(Users = "")]
  • B、[Authorize(Roles = "")]
  • C、[Authorize(Users = "*")]
  • D、[Authorize(Roles = "*")]

正确答案:A,B

第5题:

You are implementing a new frame relay network to provide connectivity between you offices. To do this, you set up the frame relay network using point-to-point subinterfaces.Which of the following does NOT need to be configured?()

  • A、The Frame Relay encapsulation on the physical interface.
  • B、The local DLCI on each subinterface.
  • C、An IP address on the physical interface.
  • D、The subinterface type as point-to-point.

正确答案:C

第6题:

You are the enterprise administrator for an Exchange Server 2010 organization. All users run Microsoft Office Outlook 2010.  You are designing a sharing solution for your organization and a partner organization. The partner organization also uses Exchange Server 2010.  You need to recommend a strategy for sharing information with the partner organization to meet thefollowing requirements: .Provide cross-organizational access to user contacts  .Provide cross-organizational access to free/busy information  What should you recommend?()

  • A、Creating cross-forest trusts
  • B、Implementing Federated Sharing
  • C、Implementing Microsoft Identify Lifecycle Manager (ILM) 2007
  • D、Running the Microsoft Exchange Inter-Organization Replication tool

正确答案:B

第7题:

You are charged with implementing a secure wireless installation which will provide Internet accessto client devices but will not allow communications between wireless clients. In addition to implementing PSPF or peer-to-peer blocking on the wireless side. Which of the following actions should you perform on the wired infrastructure?()

  • A、Implement a Cisco Secure IPS sensor.
  • B、Implement 802.1X on the switch ports.
  • C、Take no action, you have achieved your goal.
  • D、Implement a protected port on the access switches.

正确答案:D

第8题:

You work as the enterprise exchange administrator at Xxx .The Xxx network is running in a Microsoft Exchange Server 2010 environment.The Xxx network has two Mailbox servers named XXX-EX01 and XXX-EX02.You are busy implementing a database availability group (DAG). What actions must you take to guarantee mailbox databases replications on XXX-EX01 and XXXEX02?()

  • A、You must implement a custom Send connector
  • B、You must install the Active Directory Connector (ADC)
  • C、You must change the Database paths
  • D、You must change the membership list of the DAG

正确答案:D

第9题:

How can you create a listener class that receives events when the mouse is moved?()  

  • A、 By extending MouseListener.
  • B、 By implementing MouseListener.
  • C、 By extending MouseMotionListener.
  • D、 By implementing MouseMotionListener.
  • E、 Either by extending MouseMotionListener or extending MouseListener.
  • F、 Either by implementing MouseMotion Listener or implementing MouseListener.

正确答案:D

第10题:

You are implementing a Web page that displays text that was typed by a user. You need to display the user input in the Web page so that a cross-site scripting attack will be prevented. What should you do?()

  • A、Call document.write.
  • B、Call Response.Write.
  • C、Call HttpUtility.UrlEncode.
  • D、Call HttpUtility.HtmlEncode.

正确答案:D

更多相关问题