What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
The application will access an external Windows Communication Foundation (WCF) service by using the
following contract.
[ServiceContract(SessionMode=SessionMode.NotAllowed)]
public interface IOrderService
{
}
The service contract has multiple operations. The operations will be called by the Windows application
when required.
For a single invocation of the application, you plan to maintain the information of the application state
between subsequent method calls to the WCF service. The application state information cannot be
persisted once the application closes.
You need to ensure that the application can consume the WCF service.
What should you do?
What should you do?
You are an enterprise application developer. You are creating a client-side service component for an application. The application runs in the security context of the user. The component must store proprietary information in a secure registry store that requires system service-level access by using the ACL of the user. You need to ensure that the component meets the requirement of the application with a minimum level of security risk.
What should you do?
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The implementation of trace listeners forms part of your responsibilities at Domain.com. You are currently busy implementing a custom trace that logs errors and warnings in a Microsoft SQL Server 2005 database. The custom trace implementation must allow individual applications to determine whether errors or warnings should be logged at a given time. To this end you install the assembly that contains the trace listener in the global assembly cache (GAC) on an application server.
You need to enable all Web services on the application server to use the trace listener by default. You should ensure that your solution does not force Microsoft Windows Forms applications that run on the server to use the trace listener.
What should you do? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The development of Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com. You are currently developing an Extensible Markup Language (XML) Web Service that will allow Domain.com to locate the delivery trucks that it provides to companies. The Web service clients will send a SOAP similar to the one illustrated below:
<soap:envelope>
<soap:body>
<mobilePhoneNumber xmlns=urn:gov:DOT”>000-000-0000</mobilePhoneNumber> </soap:body>
<soap:envelope>
To this end you create a Web method named GetLocation and apply the appropriate SoapDocumentMethod attribute to this method. Now you need to configure the attribute to enable it to support the SOAP request. What should you do? (Each correct answer presents part of the solution. Choose two.)
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Domain.com operates as a credit bureau.
The development of Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com. You are currently developing an Extensible Markup Language (XML) Web Service that will allow legitimate third parties to access credit scores, pull credit records, and update credit information for customers. You need to implement a Web method named ObtainCreditScore. ObtainCreditScore should accept a String parameter and return an integer. You need to make use of Remote Procedure Call (RPC) style for this Web method; you also need to make use of the Document style for all Web methods that will be implemented. To this end you need to make use of the appropriate code segment for the Web service.
What should you do?
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The ASP.NET Web application development forms part of your responsibilities at Domain.com. You are currently developing an ASP.NET Web application that contains three Web services and eight Web pages. You further received instructions to deploy the application to a production server named Certkiller -SR03. You need to ensure that no human-readable code is stored on the Web server when you deploy the application.
What should you do?
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The Extensible Markup Language (XML) Web service development forms part of your responsibilities at Domain.com. You are currently developing an Extensible Markup Language (XML) Web Service that contains four Web methods. Each of these four methods accepts a different number of parameters and each method is configured to make use of remote procedure call (RPC) SOAP formatting. You must ensure that each of these four Web methods is capable of being exposed as a Web method by the Web service.
What should you do?
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Domain.com is a Publishing and distribution company and works in joint ventures with many book stores that carries it products.
The provision of stock on hand updates to third party companies (the book stores) forms part of your responsibilities at Domain.com. You are currently developing an Extensible Markup Language (XML) Web Service that provides stock on hand updates. To this end you created a Web method named GetStock that accesses the third party company’s XML Web service to retrieve the required information. Following are some factors that you need to keep in mind:
1. The third parties’ XML Web Service updates it information regarding stocks once every hour.
2. Domain.com is charged for each call to the third party Web service. It is thus essential that you limit the number of calls that the Domain.com Web service makes to the third party company’s Web service:
1. Thus you apply the Webmethod attribute to the GetStock method.
2. You need to configure the attribute to limit the number of calls to the third party Web service.
3. You must ensure that no cookies are required.
What should you do?
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The following exhibit illustrates the class definition for a data processing Web service:
Exhibit:
[WebService(Namespace-“urn:DataProcessingService”)] Public class DataProcessingService : Webservice
{
[WebMethod(MessageName-“ProcessDataSet”)]
Public void Process(DataSet dataset)
{
}
}
You have been instructed to apply an attribute to the Process method that will result in an immediate return to the caller without invoking a SOAP response. You need to ensure that the attribute that you apply in your solution is Web Services-Interoperability (WS-1) compliant. You thus need to make use of a code segment.
What should you do?
What should you do?
You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The access control to Web services is part of your responsibility. To this end you are currently exposing an existing class as an Extensible Markup Language (XML) Web service. You need to ensure that this Web service is accessible exclusively accessible to Web service clients within the Domain.com domain. To comply with this requirement you need to change the access modifiers on methods that must be exposed as Web methods.
What should you do?