PrepAway - Latest Free Exam Questions & Answers

Category: 70-569

Exam 70-569: UPGRADE: Transition your MCPD Enterprise Application Developer Skills to MCPD Enterprise Application Developer 3.5, Part 2

What should you do?

You are designing a component for a Windows Forms application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The component will process a long-running business transaction. You plan to provide the status of completion of the transaction to the users. You need to ensure that the application displays a progress bar that reports the percentage of completion of the transaction. You need to achieve this goal without using the polling method.
What should you do?

What should you do?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted in a managed Console application. The service endpoint has an address that is relative to the base address of the service. You need to programmatically add the base address to the service. What should you do?

Which code segment should you use?

You are creating an endpoint for a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the endpoint by using a custom binding. You write the following code segment.

BasicHttpBinding binding=new BasicHttpBinding();
binding.Security.Message.ClientCredentialType=
BasicHttpMessageCredentialType.Certificate;
binding.Security.Mode=BasicHttpSecurityMode.Message; CustomBinding cb=new CustomBinding(binding);
BindingElementCollection bec=cb.CreateBindingElements();

You need to prevent the custom binding from making a persistent connection to the service endpoint.
Which code segment should you use?

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application includes a data tier component that communicates with multiple databases. Some databases are hosted on Microsoft SQL Server 2008. Other databases are hosted on third- party database servers. The data tier component receives custom business objects from client application components. You need to ensure that the data tier component saves property values from the business objects to the databases. What should you do?

You need to ensure that the ProcessString method can be invoked from a Web browser by using the URL http://loc

You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.)

01 public interface IMyService
02 {
04 string ProcessString(string name);
05 }

You create a host for the WCF service.
You also create a service endpoint at http://localhost:8080/service.
You add an instance of the HttpTransferEndPointBehavior class to the host.
You need to ensure that the ProcessString method can be invoked from a Web browser by using the URL http://localhost:8080/service/process?name=value
Which code segment should you insert at line 03?

Which code segment should you use?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service contains the following code segment.

[DataContract]
public class Person
{
??
}
[DataContract]
public class Customer : Person
{
??
}

You need to create a service contract that meets the following requirements:
The service contract must have an operation contract named GetPerson that returns an object of type Person.
The GetPerson operation must be able to return an object of type Customer.
Which code segment should you use?

Which code segment should you insert at line 04?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment for the service implementation. (Line numbers are included for reference only.)

01 public void PutMessage(Message msg)
02 {
03 string value=null;
05 }

You need to retrieve the content from the received message body and store it in the variable named value. Which code segment should you insert at line 04?

Which code segment should you use?

You have created a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The existing service interface is named IMyService, and contains the following code segment.

[ServiceContract(Name=”SvcOrder”,
Namespace=”http://contoso.com/services”)]
public interface IMyService
{
[OperationContract]
void DoSomething();
}

You create a new service named IMyServiceV1 that contains an operation named DoSomethingElse. You need to ensure that existing client applications are still able to access the

IMyService.DoSomething
method without modifying client code.

Which code segment should you use?


Page 12 of 14« First...1011121314