You need to enable message logging and include all security information such as tokens and nonces in logged me
Your Windows Communication Foundation (WCF) client application uses HTTP to
communicate with the service. You need to enable message logging and include all security
information such as tokens and nonces in logged messages. What should you do?
Which control should you use?
You are developing as ASP.NET Web application that will display a list of values. The application must
display the values in a tabular format in columns from top to bottom. You need to choose a control
that can be bound directly to the list to render this display. Which control should you use?
Which code segment should you use?
You are developing an ASP.NET web page that includes a Panel Control that has ID ContentSection.
You need to add a text box control to the Panel control. Which code segment should you use?
What are two possible ways to achieve this goal?
A Windows Communication Foundation (WCF) solution uses the following contracts. (Line
numbers are included for reference only.) When the client calls GetMessage on the service
interface, the service calls GetName on the client callback. In the client, the class
NameService implements the callback contract. The client channel is created as follows.
You need to ensure that the service callback is processed by the instance of NameService.
What are two possible ways to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)
You need to ensure that the application shows the Order and Customer entities and hides all other entities
You are deloping an ASP.NET Dynamic Data Web application. The application uses entities from a
global library named Entities. The Application_Start event contains the following code segment:
DefaultModel.RegisterContect(typeof)(
Entities.MyDBDataContext), new ContextConfiguration() {
ScaffoldAllTables = false });
You need to ensure that the application shows the Order and Customer entities and hides all other
entities. What should you do?
You need to ensure that the page generates the appropriate database query
You are developing an ASP.NET web page.
The page includes the following EntityDataSource control:
<asp:EntityDataSource ID=”EntityDataSource1″ runat=”server”
ConnectionString=”name=AdventureWorksEntities”
DefaultContainerName=”AdventureWorksEntities” EnableFlattening=”False”
EntitySetName=”Products” />
The page must filter the data that is displayed in a grid on a query string parameter named
ProductPrefix. The grid must display products whose ProductName starts with the query string
value. You need to ensure that the page generates the appropriate database query. What should
you do?
Which code segment should you insert at line 03?
You are developing a client application that uses the following code to consume a Windows
Communication Foundation (WCF) service. (Line numbers are included for reference only.)
01 Dim myBinding As BasicHttpBinding = New BasicHttpBinding() 02 Dim
myEndpointAddress As EndpointAddress = New EndpointAddress(
“http://contoso.com/TaxService.svc”) 03 04 Dim client As ITaxService =
channelFactory.CreateChannel() 05 Dim data As String = client.GetData(1) You need to
consume the service. Which code segment should you insert at line 03?
Which LINQ to Entities query should you use?
You are developing an ASP.NET web application. The application includes the following Entity Data
Model (EDM):
You instantiate an ObjectContext for the EDM named context. You need to find the total number of
addresses that are associated with customers that have a non-null middle name. Which LINQ to
Entities query should you use?
You need to ensure that the extender can be user to extend only text boxes and that the targetID property can
You are developing an ASP.NET AJAX extender control. The extender includes the following segment.
public class DisabledButtonExtender : ExtenderControlBase
{
[ExtenderControlProperty]
public string TargetID
{
get{…}
set{…}
}}
You need to ensure that the extender can be user to extend only text boxes and that the targetID
property can reference only buttons. What should you do?
You need to ensure that client applications can communicate with the service and discover changes to the servi
You are creating a Windows Communication Foundation (WCF) service. The service
endpoints change frequently. On the service, you add a new ServiceDiscoveryBehavior to
the Behaviors collection of the ServiceHost Description property. You need to ensure that
client applications can communicate with the service and discover changes to the service
endpoints. What should you do?