What should you do to change the security context by retaining the same component code?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application processes sales order documents. The application contains a component that retrieves the sales order documents from a FTP server and stores the data in a Microsoft SQL Server database. You need to ensure that the component meets the following requirements:
Periodically polls the FTP server to check for new order documents Executes without dependencies on other software components Executes without user interaction
Executes by using a specific security context
Allows system administrators to change the security context by retaining the same component code What should you do?
What should you do to create a custom service behavior to add a fault message handler?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. Client applications receive the original fault messages that the service generates. You need to create a custom service behavior to add a fault message handler to all channel dispatchers. What should you do?
You need to ensure that the robot receives the commands in the same order as …
The service receives automation commands for a factory robot.
You need to ensure that the robot receives the commands in the same order as they are transmitted.
What should you do to add error handling to the WCF service?
You create a client application by using Microsoft .NET Framework 3.5.
The client application uses a Windows Communication Foundation (WCF) service.
You plan to implement inspection handling on the client application and the WCF service.
You need to add error handling to the WCF service.
What should you do?
What should you do to identify the cause of the error?
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You set up tracing for the service. The tracing fails because of an error in the service configuration.
You need to identify the cause of the error. What should you do?
What should you do to ensure that only those client applications that provide credentials belonging to?
You are creating a distributed application by using Microsoft .NET Framework 3.5.
You use Windows Communication Foundation to create the application.
You plan to perform the following tasks:
Authenticate the client applications by using Microsoft ASP.NET membership provider.
Authorize the client applications by using Microsoft ASP.NET role provider.
You write the following code segment.
[ServiceContract]
public interface IService
{
[OperationContract]
void Remove(int id);
}
public class Service : IService
{
public void Remove(int id){ }
}
You need to ensure that only those client applications that provide credentials belonging to the AdminGroup role can access the Remove method.
What should you do?
What should you do to use a custom service host to host the WCF service in Windows Activation Services ?
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?
What should you do to programmatically add the base address to the service?
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?
What should you do to successfully enable message logging.?
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You want to enable message logging.
You add the following code fragment to the service configuration file.
<System.diagnostics>
<sources>
<source name="System.ServiceModel.MessageLogging">
<listeners>
<add name="messages" Type="System.Diagnostics.XmlWriterTraceListener" />
</listeners>
</source>
</sources>
</System.diagnostics>
You receive an exception.
You need to successfully enable message logging. What should you do?
What should you do to meet the following criteria can access the RemoveOrder method?
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
The WCF service will validate certificates to authorize client applications.
You write the following code segment.
class Store: IStore
{
public void RemoveOrder(int ordered){ }
}
You need to ensure that only those client applications that meet the following
criteria can access the RemoveOrder method:
"AdminUser" is the subject in the client certificate.
"1bf47e90fD0acf4c0009cda65eDaadcf1cedd592" is the thumbprint in the client certificate.
What should you do?