Which code segment should you use?
You are developing a Windows Communication Foundation (WCF) service that contains the following code segment.
[ServiceContract]
public interface ICustomerService
{
…
}
public class CustomerService : ICustomerService
{
…
}
The service is self-hosted in a console application. Older client applications access the service at http://contoso.com:8080/CustomerService/V1.
Newer client applications access the service at http://contoso.com:8080/CustomerService/V2.
You need to ensure that any client application can access the service at either address. Which code segment should you use?
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
You deploy a Windows Communication Foundation (WCF) Data Service to a production server.
The application is hosted by Internet Information Services (IIS).
After deployment, applications that connect to the service receive the following error message:
“The server encountered an error processing the request. See server logs for more details.”
You need to ensure that the actual exception data is provided to client computers. What should you do?
Which technology should you use?
You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application retrieves data from multiple heterogeneous data sources. The retrieved data is aggregated into a single record set
You need to ensure that the application takes advantage of new multi-core server processors.
Which technology should you use?
Which approach should you recommend?
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?
What should you do?
Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders.
The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay.
You need to ensure that the service is configured to process multiple orders in one transaction. What should you do?
Which two XML element types should you use?
You use Microsoft Visual Studio 2010 and Microsoft. NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. You use Entity SQL of the ADO.NET Entity Framework to retrieve data from the database.
You need to define a custom function in the conceptual model. You also need to ensure that the function calculates a value based on properties of the object.
Which two XML element types should you use? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You are developing an application by using Microsoft .NET Framework 4, The application will be used by all employees of your company, Local file stores on the computers are secure and inaccessible remotely.
You need to design a remote monitoring strategy to monitor the usage time of the application by each user.
What should you do?
Which approach should you recommend?
You are designing an ASP.NET MVC 2 Web application for a customers 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 customer s Web site.
Which approach should you recommend?
Which scopes should you add to the client configuration file?
You create a service and deploy it on a network in a building named Building1. You will deploy the service to Building2.
The service in Building1 is configured using the following discovery scopes.
<scopes>
<add scope=”http://contoso.com/Chicago/Building1″/>
<add scope=”ldap:///ou=Building1,ou=Chicago,o=contoso,c=us”/>
</scopes>
The service in Building2 will be configured using the following discovery scopes.
<scopes>
<add scope=”http://contoso.com/Chicago/Building2″/>
<add scope=”ldap:///ou=Building2,ou=Chicago,o=contoso,c=us”/>
</scopes>
You need to ensure that the client application can discover the service in Building1 or the service in Building2.
Which scopes should you add to the client configuration file?
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application uses the ADO.NET Entity Framework to model entities.
You need to create a database from your model. What should you do?