PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are developing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.

You plan to use Microsoft Sync Framework to synchronize the data stored in a local Microsoft SQL Server Compact Edition database with the data stored in a centralized SQL Server 2008 database.

Four columns are added to each table involved in the synchronization process to track changes to the database.

You add the following four columns to the database table.

Users report that the synchronization process is not always successful.

You need to ensure that the application synchronizes data successfully.

What should you do?

What should you do?

You are developing a Windows Communication Foundation (WCF) service to replace an existing ASMX Web service.
The WCF service contains the following code segment. (Line numbers are included for reference only.)

01 [ServiceContract()]
02
03 public interface IEmployeeService
04 {
05 [OperationContract()]
06 EmployeeInfo GetEmployeeInfo(int employeeID);
07
08 }
09
10 public class EmployeeService : IEmployeeService
11 {
12
13 public EmployeeInfo GetEmployeeInfo(int employeeID)
14 {
15 …
16 }
17 }
18
19
20 public class EmployeeInfo
21 {
22 …
23 public int EmployeeID { get; set; }
24 public string FirstName { get; set; }
25 public string LastName { get; set; }
26
27 }

The existing Web service returns the EmployeelD as an attribute of the Employeelnfo element in the response XML.
You need to ensure that applications can consume the service without code changes in the client. What should you do?

Which header and request type should you use in the application?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication Foundation (WCF) Data Services service.
You discover that when an application submits a PUT or DELETE request to the Data Services service, it receives an error.
You need to ensure that the application can access the service. Which header and request type should you use in the application?

Which deployment technology should you use?

You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.

The application contains a COM component.

You plan to deploy the application to several client computers by using read-only media.

You need to ensure that the COM component is registered during deployment of the application.
Which deployment technology should you use?

Which approach should you recommend?

You have an ASP.NET Web application that displays charts that are generated daily from data in a Microsoft SQL Server database.
Each chart is implemented as a user control that displays data retrieved from the database.
Data retrieval and chart generation consume a significant amount of resources.
Users of the Web application generate unique reports that contain one or more chart controls.
Each chart is common to many reports.
You need design a solution to improve the performance of the Web server.
Which approach should you recommend?

What should you do?

You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.

[ServiceContract()]
public interface IPaymentService
{
[OperationContract()]
void RecordPayments(Person person);
}

public class Person
{ … }
public class Employee : Person
{ … }
public class Customer : Person
{ … }

You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object.
What should you do?

Which two actions should you perform?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication Foundation (WCF) Data Services service.
The service connects to a Microsoft SQL Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 server.
You need to ensure that applications authenticate against user information stored in the database before the application is allowed to use the service.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What should you create?

You are designing a Windows client application by using Microsoft NET Framework 4 and Microsoft Visual Studio 2010.
The application will read and write data that is stored in a mainframe application A hardware device that is located between the application and the mainframe removes all XML-formatted messages.
You need to ensure that the application can request and receive data from the mainframe application.
What should you create?