PrepAway - Latest Free Exam Questions & Answers

Tag: 70-554

Exam 70-554: UPGRADE: MCSD Microsoft .NET Skills to MCPD Enterprise Application Developer by Using the Microsoft .NET Framework: Part 2

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 and deployment of Microsoft.NET Remoting components forms part of your responsibilities at Domain.com. You are currently developing a Microsoft.NET Remoting component that will be accessed over the Domain.com local area network (LAN). To this end you create a console application named RemoteHost.exe to serve remote calls to the component. You added Remoting configuration settings in the app.config file of the console application’s project. Now you need to configure the host application to use those configuration settings that has been added in the app.config file.

What should you do? (Choose the appropriate code segment.)

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 applications forms part of your responsibilities at Domain.com. You are currently developing an application that monitors a network for changes. The application itself consists of a Microsoft ASP.NET Web application and a Microsoft .NET Remoting server component. Both of these exist on the same server but run in different processes. Policies and rules for monitoring the network are stored in a Microsoft SQL Server 2005 database. The server component contains a class named Monitor. This class contains a method named GetChanges that returns a DataSet instance. Changes to the network are represented by DataSet. When initiated the Monitor class will retrieve all policies and rules from the database. You need to code the host application for the remote component to register the Monitor class for .NET Remoting. However, you do not want the remote component to query the database each time the GetChanges method is called. This means that you should configure a certain code segment.

What should you do? (Choose the correct code segment.)

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 creation, configuration and deployment of Remoting applications form part of your responsibilities at Domain.com.
A class named ObjectManager is defined in the ManagementServer namespace in an executable named ManagementServer.exe. The ObjectManager class is derived from MarshalByRefObject. You then create a client application named Client.exe. Client.exe does not have a reference to ManagerServer.exe. You need to keep in mind that there are a few technical requirements. These are:
1. The client application must execute with restricted permissions.
2. The ObjectManager must execute with unrestricted permissions. You now need to create an instance of ObjectManager in the client application.

What should you do? (Choose the correct code segment.)

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 financial information services provider to a number of financial institutions, i.e.
banks.
You are currently developing an application that will allow interaction with the financial institutions. All these banks expose a Web service that conforms to a standard Web Services Description Language (WSDL) document. However there are some of these banks that do not support a SOAP head that will allow Domain.com to pass transaction information to the Web services. To this end you make use of Microsoft Visual Studio 2005 to generate a Web proxy service named FinancialService. The exhibit below illustrates the clss that also gets generated.

public class Transaction : SoapHeader
{
public int TransactionID;
public string TransactionState;
}

You then proceed to write the following code so as to initiate the proxy class:
01 FinancialService financialServiceProxy = new FinancialService() ;
02 financialServiceProxy.TransactionValue = New Transaction () ;
03 financialService Proxy.TransactionValue.TransactionID = 1000 ;
04 financialService Proxy.TransactionValue.MustUnderstand = true;

However, after you have written this code you discover that the financial institutions that do support SOAP heads; throw exceptions of type SoapHeaderException when the Web methods are invoked. You thus need to modify the code to prevent these exceptions from being thrown. What should you do? (Choose the line number that represents the code statement that should be modified.)

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 configuration and customization of Web Service applications forms part of your responsibilities at Domain.com. Domain.com operates as a real estate and property management company.
A class named PropertyManagement holds a shared method named ObtainProperties. ObtainProperties is configured to accept a String parameter that identifies a client and return a DataSet instance that holds all the properties that are managed by that client. The client identifier is a Microsoft Windows Active Directory user name.
You received instruction to create an Extensible Markup Language (XML) Web Service that makes use of Windows Authentication to expose this functionality to the Internet. However, you need to ensure that your solution also enhances the Web server performance. To this end you need to save the property results in memory on the Web server.

What should you do? (Choose the correct code segment.)

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 configuration and customization of Web Service applications forms part of your responsibilities at Domain.com.
You are currently busy developing an Extensible Markup Language (XML) Web service. This XML Web service is intended to allow the traffic department to perform driver license verifications in particular geographic areas. To this end you created the following Extensible Markup Language (XML) Web Service class definition as illustrated in the exhibit.

<WebService()> public class LicenseService : WebService
{
private LicenseVerifier _licenceVerifier;
<WebMethod()> public string GetRecentInvalidLicenseHistory()
{
ArrayList invalidLicenses = CType(MyBase.Application.Item(InvalidLicenses”), ArrayList);
return CType(invalidLicenses.ToArray(GetType(String)), String());
}
<WebMethod()> public bool VerifyLicense(string state, string licenseNumber)
bool isValid = Me._licenseVerifier.Verify(geoArea, licenseNumber)

if (! isValid)
{
ArrayList invalidLicenses = Ctype(MyBase.Application.Item(“InvalidLicenses”),ArrayList) invalidLicenses.Aff(LicenseNumber);
}
return isValid;
}
}

The VerifyLicence Web method will verify an individual’s driver license in a particular geographic area.
The ObtainRecentInvalidLicenseHistory will return a list of all the driver licenses that has been revoked regardless of geographic area. You are required to modify the two Web methods so as to prevent them from throwing exception of type NulReferenceException.

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 configuration and customization of Web Service applications forms part of your responsibilities at Domain.com.
You are currently busy developing an Extensible Markup Language (XML) Web service. This XML Web service is intended to allow the traffic department to perform driver license verifications. The traffic department will send a SOAP request similar to the one illustrated in the exhibit.
<soap:envelope>
<soap:body>
<state xmlns=”urn:gov:DOT”>GA</state>
<licenseNumber xmlns+”urn:gov:DOT”>111222333</LicenseNumber> </soap:body>
<soap:envelope>

You have created a Web method named VerifyLicense. And now you need to apply an attribute to the VerifyLicence method to enable it to support the SOAP requests which will be sent to it.
What should you do? (Choose the correct code segment.)

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 configuration and customization of Web Service applications forms part of your responsibilities at Domain.com. Domain.com operates as a taxi-cab-for-hire company. You are currently developing an Extensible Markup Language (XML) Web Service that is meant to allow Domain.com to be able to locate the taxis that it provides for its customers. With this Web service application the Domain.com Web service clients will send a SOAP request silimar to the one that is illustrated in the exhibit.

<soap:envelope>
<soap:body>
<ObtainLocation xmlns=”urn:gov:DOT”>
<mobilePhoneNumber>000-000-0000</mobilePhoneNumber> </ObtainLocation>
</soap:body>
<soap:envelope>

You have created a Web method named ObtainLocation. You then apply a SoapDocumentMethod attribute to ObtainLocation. Now you need to configure the SoapDocumentMethod attribute so as 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. The configuration and customization of Web Service applications forms part of your responsibilities at Domain.com.
You are currently busy developing an Extensible Markup Language (XML) Web service. This XML Web service is intended to allow the traffic department to perform driver license verifications. To this end you created the following Web method:

<WebMethod()>
public void VerifyLicence(string licenseNumber)
{}

You need to apply an attribute to the method to specify the parameter style and formatting that is expected from SOAP clients. You should take care that the XML Web Service that you are developing is Web Services Interoperability (WS-1) compliant.

What should you do? (Choose the correct code segment.)

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 configuration and customization of Web Service applications forms part of your responsibilities at Domain.com.
The following exhibit illustrates the class definition that currently exists for a Web Service.

WebService(), SoapRpcService()>
public class LicenseService : WebService
<WebMethod(), SoapRpcMethodAttribute()> public numeral ObtainPoints(string licenceNumber)
{
return 0;
}
<WebMethod(),SoapRpcMethodAttribute(string state, string licenseNumber)> void ValidateLicense()
{
}
}

You received instruction to apply the WebServiceBinding attribute to support the Web Service.

What should you do?


Page 1 of 4012345...102030...Last »