Microsoft 70-503 Exam Syllabus Topics:
| Section | Objectives |
|---|---|
| Topic 1: WCF Bindings and Messaging | - Message patterns
|
| Topic 2: Configuring and Hosting WCF Services | - Hosting environments
|
| Topic 3: Client Configuration and Consumption | - Service consumption
|
| Topic 4: Designing and Developing WCF Services | - Service contracts and data contracts
|
| Topic 5: Security in WCF Services | - Secure communication
|
Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation Sample Questions:
Question #1
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. You configure the Windows Communication Foundation (WCF) service to be exposed by using the HTTP and TCP endpoints. You plan to deploy the WCF service.
You need to identify the host environment that provides the following services:
Which hosting environment should you use?
A. Microsoft Internet Information Services 6.0
B. Microsoft COM+ 1.5
C. Microsoft Windows Process Activation Service
D. Microsoft Windows Service
Question #2
You are creating a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5.
You add the following code segment to a service contract.
[ServiceContract]
interface IDocumentService
{
[OperationContract]
int DeleteDocument(int id);
}
The DeleteDocument method in the service contract takes a long time to execute.
The client application stops responding until the method finishes execution.
You write the following code segment to create an instance of a service proxy in the client application.
(Line numbers are included for reference only.)
01 static void Main() 02 {
03 DocumentServiceClient client= new DocumentServiceClient();
05 }
06 static void ProcessDeleteDocument(IAsyncResult result)
07 {
06 ...
09 }
You need to ensure that the service methods are called asynchronously.
What should you do?
A. Insert the following code segment at line 04:
client.BeginDeleteDocument(20, ProcessDeleteDocument, client);
Insert the following code segment at line 06:
int count=(result.AsyncState as Documentserviceclient).EndDeleteDocument(null);
B. Insert the following code segment at line 04:
IAsyncresult result = client.BeginDeleteDocument(20, ProcessDeleteDocument, client);
int count=client.EndDeleteDocument(result);
Insert the following code segment at line 06:
result.AsyncWaitHandle.WaitOne();
C. Insert the following code segment at line 04:
client.BeginDeleteDocument(20, ProcessDeleteDocument, client);
Insert the following code segment at line 06:
int count=(result.AsyncState as Documentserviceclient).EndDeleteDocument(result);
D. Insert the following code segment at line 04:
client.BeginDeleteDocument(20, ProcessDeleteDocument, client);
Insert the following code segment at line 06:
result.AsyncWaitHandle.WaitOne();
int count=(result as Documentserviceclient).EndDeleteDocument(result)
Question #3
You create a Windows Communication Foundation (WCF) application by using Microsoft Visual Studio 2008 and the .NET Framework 3.5. You create a WCF service by using the following code segment. (Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IContosoService
03 {
04 [OperationContract]
06 void ProcessTransaction();
07 }
09 public class ContosoService : IContosoService
10 {
11 public void ProcessTransaction() {
12 try {
13 BusinessComponent.ProcessTransaction();
14 }
15 catch (ApplicationException appEx) {
17 }
18 }
19 }
The BusinessComponent.ProcessTransaction method will only throw exceptions from the ApplicationException type. You plan to debug the WCF service. You need to ensure that the WCF service meets the following requirements:
Detailed exception information is provided to the client application. Subsequent calls can be issued to the service by using the same proxy intance after an exception is caught in the client application. What should you do?
A. Add the following code segment at line 08.
[ServiceBehavior(IncludeExceptionDetailInFaults=true)] Add the following code segment at
line 16. throw new FaultException<ApplicationException>(appEx);
B. Add the following code segment at line 05. [FaultContract(typeof(ApplicationException))]
Add the following
code segment at line 16. throw appEx;
C. Add the following code segment at line 05. [FaultContract(typeof(ApplicationException))]
Add the following code segment at line 16. throw new
FaultException<ApplicationException>(appEx);
D. Add the following code segment at line 08.
[ServiceBehavior(IncludeExceptionDetailInFaults=true)] Add the following code segment at
line 16. throw appEx;
Question #4
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will contain an enumeration named OrderState.
The OrderState enumeration will contain the following four values:
The client application must be able to set the state of an Order entity to only the following
two values:
You need to create the data contract for OrderState. Which code segment should you use?
A. Option A
B. Option D
C. Option C
D. Option B
Question #5
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. You need to use a custom service host to host the WCF service in Windows Activation Services (WAS).
What should you do?
A. Create a custom service host factory that instantiates the custom service host. Include a reference to this factory in the .svc file.
B. Add code to instantiate the custom service host from within the main procedure of the WCF service.
C. Write hosting code for the WCF service.
D. Add a reference to the custom service host in the web.config file.
Solutions:
| Question #1 Correct Answer: C | Question #2 Correct Answer: C | Question #3 Correct Answer: C | Question #4 Correct Answer: A | Question #5 Correct Answer: A |














1002 Customer Reviews
Quality and ValueITCertKing Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.
Tested and ApprovedWe are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.
Easy to PassIf you prepare for the exams using our ITCertKing testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.
Try Before BuyITCertKing offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.
