What should you recommend?
You are designing an ASP.NET Web application.
Each page of the Web application will have a common master page and derive from a common base page class. You have the following requirements:
– Support multiple languages for user interface labels.
– Enable automatic detection of language based on browser language settings.
You need to recommend an approach to support localization.
What should you recommend?
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 saleId);
The service configuration file contains the following line in the serviceBehaviors section.
<behavior>
<serviceDebug includeExceptionDetailInFaults=”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 object type should you use to store data from the database tables?
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 over the network. The application uses data from multiple related database tables.
You need to ensure that the application can be used if the connection is disconnected or unavailable.
Which object type should you use to store data from the database tables?
Which two actions should you recommend?
You are modifying an existing ASP.NET Web application.
Each page of the Web application includes a navigation bar and a print button. You have the following requirements:
– Enable users to print pages of the Web site without printing the navigation bar.
– Do not create a separate version of the page formatted for printing.
– Leverage the existing print button on each page.
You need to recommend an approach that meets the requirements.
Which two actions should you recommend?
(Each correct answer presents part of the solution. Choose two.)
What should you do?
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?
What should you do to ensure that the client sends a SOAP body that is accepted by the service?
You have a Windows Communication Foundation (WCF) service that accepts the following message contract.
[MessageContract(WrapperNamespace=”http://www.movies.com”, ProtectionLevel=ProtectionLevel.None)]
public class Ticket
{
[MessageBodyMember(Namespace=”http://www.movietheater.com”, Order=1)]
public DateTime ShowTime = DateTime.Now;
[MessageBodyMember(Namespace=”http://www.movietheater.com”)]
public string ReservationName = “Smith”;
[MessageBodyMember(Namespace=”http://www.movietheater.com”)]
public int NumberOfSeats = 0;
}
You need to ensure that the client sends a SOAP body that is accepted by the service.
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 manage customer and related order records.
You add a new order for an existing customer. You need to associate the Order entity with the Customer entity.
What should you do?
What should you recommend?
You are designing an ASP.NET Web application.
The Web application must instruct proxy servers between the server and the browser to not cache content.
You need to recommend an approach for instructing the proxy servers.
What should you recommend?
Which code segment should you use?
You are creating an application that consumes a Windows Communication Foundation (WCF) service.
The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback.
You need to ensure that a client proxy is created that can communicate with the service over a duplex channel.
Which code segment should you use?
Which two actions should you perform?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a multi-tier application.
You use Microsoft ADO.NET Entity Data Model (EDM) to model entities.
The model contains entities named SalesOrderHeader and SalesOrderDetail.
For performance considerations in querying SalesOrderHeader, you detach SalesOrderDetail entities from ObjectContext.
You need to ensure that changes made to existing SalesOrderDetail entities updated in other areas of your application are persisted to the database.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)