live chatMcAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Pass4Test 10%OFF Discount Code

Microsoft TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation - 070-503 Exam Questions

QUESTION NO: 1
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment. (Line numbers are included for reference only.)

When you browse to the base address of the service, you receive the following message:
"Metadata publishing for this service is currently disabled."
You debug the code and discover that the ServiceMetadataBehavior behavior was previously nonexistent.
You need to enable metadata publishing.
What should you do?
Correct Answer: D
QUESTION NO: 2
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to ensure that you can customize the behavior of the ClientRuntime class and the DispatchRuntime class. You must achieve this goal without altering the behavior of the service.
What should you do?
Correct Answer: D
QUESTION NO: 3
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be hosted in a Console application.
You need to configure the service by using a configuration file other than the default app.config file.
Which code segment should you use?
Correct Answer: D
QUESTION NO: 4
You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. Client applications that run on different platforms access the WCF service.
These applications transmit confidential data to the WCF service. You write the following binding configuration.
....
<binding name="TransportSecurity" >
<security mode="Transport" />
</binding>
...
You need to configure the service for optimum interoperability and optimum security.
Which code fragment should you use?
Correct Answer: B
QUESTION NO: 5
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service contains the following code segment.

You need to ensure that the service instance is recycled when the transaction is complete.
Which line of code should you insert at line 07?
Correct Answer: A
QUESTION NO: 6
You are creating a Windows Communication Foundation service by using Microsoft .NET
Framework 3.5. The service will be hosted in a Windows Service environment.
You need to create a Windows Service class that instantiates a service host.
Which code segment should you use?
Correct Answer: A
QUESTION NO: 7
You create a Windows Communication Foundation (WCF) application by using Microsoft .NET Framework 3.5. The desktop client calls the WCF service to query its status. The call can take up to 10 seconds to complete.
The client application must remain responsive when querying the service. You need to generate the required proxy.
What should you do?
Correct Answer: C
QUESTION NO: 8
You are creating a distributed application by using Microsoft .NET Framework 3.5. The application uses Windows Communication Foundation.
The client applications require the users to provide a user name and a password.
You need to ensure that the server authenticates the client applications by verifying user names and passwords.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: C,D
QUESTION NO: 9
You create a Windows Communication Foundation client application by using Microsoft .NET Framework 3.5. The client application communicates with an existing Web service that requires custom HTTP headers. You need to ensure that all messages sent to the service include the headers. Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: A,B
QUESTION NO: 10
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You add the following code fragment to the app.config file for the service.

You need to enable personal identifiable information (PII) logging for the second trace source.
What should you do?
Correct Answer: C
QUESTION NO: 11
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.

You create a new service named IMyServiceVI 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?
Correct Answer: D
QUESTION NO: 12
You are creating a remote database management application by using Microsoft Windows Forms and Microsoft .NET Framework 3.5. You use the Windows Communication Foundation model to create the application.
You write the following code segment. (Line numbers are included for reference only.)

You need to ensure that each time a client application calls the Open() method, a new service instance is created.
Which code segment should you insert at line 03?
Correct Answer: D
QUESTION NO: 13
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to publish metadata programmatically.
Which two code segments should you use? (Each correct answer presents a complete solution. Choose two.)
Correct Answer: B,D
QUESTION NO: 14
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. You want to add endpoints to the service.
You need to ensure that all endpoints use the same base address.
Which code fragment should you use?
Correct Answer: B
QUESTION NO: 15
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment.

You need to ensure that when the MyMethod method is called, the service is the root of a transaction.
Which code segment should you insert at line 08?
Correct Answer: C