PrepAway - Latest Free Exam Questions & Answers

Author: admin

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 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 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?