What are two possible ways to achieve this goal?
You are implementing an ASP.NET MVC 2 Web application. A controller contains the following code.
Function Edit(ByVal id As Integer) As ActionResult
Return View(SelectUserToEdit(id))
End Function
Function Edit(ByVal person As Person) As ActionResult
UpdateUser(person)
Return RedirectToAction(“Index”)
End Function
The first Edit action displays the user whose details are to be edited, and the second Edit action is
called when the Save button on the editing form is clicked to update the user details. An exception is
thrown at run time stating that the request for action Edit is ambiguous. You need to correct this
error and ensure that the controller functions as expected. What are two possible ways to achieve
this goal? (Each correct answer presents a complete solution. Choose two.)
You need to ensure that the service accesses these resources on behalf of the originating caller
You are developing a Windows Communication Foundation (WCF) service. The service
needs to access out-of-process resources. You need to ensure that the service accesses
these resources on behalf of the originating caller. What should you do?
where should you create the new BOM?
You are setting up a new bill of materials (BOM) for a new product that your company is
designing. The components for the new product already exist in Dynamics AX the finished
good item does not exist yet in Dynamics AX. From the BOM form, where should you create
the new BOM?
You need to use the menu bar in all application views
You are implementing an ASP.NET MVC 2 Web application. You create a shared user control named
MenuBar.ascx that contains the application’s menu. You need to use the menu bar in all application
views. What should you do?
You need to resolve the error so that the new view is displayed when the Index method is invoked
You create an ASP.NET MVC 2 Web application that contains the following controller class.
Public Class ProductController
Inherits System.Web.Mvc.Controller
Shared products As List(Of Product) = New List(Of Product)()
Function Index() As ActionResult
Return View()
End Function
End Class
In the Views folder of your application, you add a view page named Index.aspx that includes the
following @ Page directive.
<%@ Page Inherits=”System.Web.Mvc.ViewPage” %>
You test the application with a browser. You receive the following error message when the Index
method is invoked: # The view ‘Index’ or its master was not found.# You need to resolve the error so
that the new view is displayed when the Index method is invoked. What should you do?
What should you create?
You create a new product that has a new bill of materials (BOM). The lines for each
component are added to the BOM lines. You need to configure the BOM to prevent the line
for item 700 and the line for item 500 from both being selected in the BOM. What should
you create?
Which code segment should you use?
You are maintaining a Windows Communication Foundation (WCF) service that uses a
custom UserNamePassword class to authenticate clients. The service certificate is hosted
in the deployment server store for trusted root certificate authorities and has a Subject value
of TaxServiceKey. Other service certificates hosted on the server also use TaxServiceKey
as a Subject value. You need to ensure that the service identifies itself with a certificate
whose subject name and distinguished names are TaxServiceKey. Which code segment
should you use?
Which attribute should you add to the OutputCache directive?
You are developing an ASP.NET Web application. The application will contain a page that is
customized for various browsers. The application will use output cache to optimize performance.
You need to ensure that the page is cached by browser type and major version only. Which attribute
should you add to the OutputCache directive?
What is the maximum number of BOM versions that can be approved for the same product?
You plan to create multiple bill of materials (BOM) versions. What is the maximum number
of BOM versions that can be approved for the same product?
Which two actions should you perform?
You are developing an ASP.NET Web page that includes a text box control. The page includes a
server-side method named ValidateValue. You need to configure the page so that the text box value
is validated by using the ValidateValue method. Which two actions should you perform? (Each
correct answer presents part of the solution. Choose two.)