You need to ensure that the client sends a SOAP body that is accepted by the service
Which LINQ to Entities query should you use?
You are developing an ASP.NET Web application. The application includes the following Entity Data
Mmodel (EDM)
You instantiate an ObjectContext for the EDM named context You need to find the total number of
addresses that are assosiated with customers that have a nonull mode. Which LINQ to Entities query
should you use?
Which two actions should you perform?
You are debugging an ASP.NET web page.
The page includes the following method:
[WebMethod]
public string GetServerString()
{
…
}
The page also includes the following markup:
<asp:ScriptManager ID=”sm1″ runat=”server” />
The following JavaScript code is used to call the GetServerString method:
function GetString()
{
PageMethods.GetServerString(callbackMethod);
}
function callbackMethod(str)
{
…
}
The AJAX calls to the GetServerString method are failing. You need to ensure that the AJAX call to
the GetServerString method succeeds. Which two actions should you perform? (Each correct answer
presents part of the solution. Choose two.)
You need to configure logging so that you can read the contents of the messages
You are debugging a Windows Communication Foundation (WCF) service. The service
uses signed and encrypted messages. You need to configure logging so that you can read
the contents of the messages. What should you do?
Which event should you handle?
You are developing an ASP.NET Web page. The page includes a DropDownList control. You need to
call a client-side function when the user changes the value of the control. Which event should you
handle?
You need to ensure that the application can retrieve images from the database without blocking IIS worker proc
You are developing an ASP.NET web application that you will deploy to an Internet Information
Services (IIS) 7.0 server. The application will run in Integrated pipeline mode. The application
contains a photo gallery of images that are stored in a Microsoft SQL Server database. You need to
ensure that the application can retrieve images from the database without blocking IIS worker
process threads. What should you do?
Which type of exception should the client catch?
You are developing a client application that consumes a Windows Communication
Foundation (WCF) service. The operation contract is as follows. [OperationContract]
[FaultContract(typeof(SalesFault))] string GetSales(string saleld); The service configuration
file contains the following line in the serviceBehaviors section. <behavior> <serviceDebug
inc1udeExceptionDetoillnFauIts-“True”/> </behavior> A divide-by-zero exception is not
being handled by the service. You need to ensure that the exception is caught in the client
application. Which type of exception should the client catch?
Which two actions should you perform?
You are adding new capabilities to an ASP.NET Web site. The site currently connects to a Microsoft
SQL database by using the…. of the CONTOSO\AppIdentity account, which has been granted access
to only objects within the database. The application requires the following implementation.
• Database objects that support ASP.NET roles must be added to the existing database.
• The CONTOSO\AppIdentity user must be granted only the minimum privileges that are required to
support all features of ASP.NET…….
You need to add the ASP.NET roles support. Which two actions should you perform?
You need to dynamically add values to the end of the drop-down list
You are implementing an ASP.NET page that includes the following down list.
<asp:PlaceHolder ID=”dynamicControls” runat=”server”>
<asp:DropDownList ID=”MyDropDown” runat=”server”>
<asp:ListItem Text=”abc” value=”abc” />
<asp:ListItem Text=”def” value=”def” />
</asp:DropDownList>
</asp:PlaceHolder>
You need to dynamically add values to the end of the drop-down list. What should you do?
Which hosting environment should you choose?
You are developing an application that performs file backups in the background. The
background application will host a Windows Communication Foundation (WCF) service and
must be active as soon as the machine is running. The background application will not have
a user interface. A frontend application will consume the WCF service and will provide the
user interface. You need to choose a host environment for the WCF service. Which hosting
environment should you choose?