PrepAway - Latest Free Exam Questions & Answers

Category: 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 used to accept connections over a binary inter-process communication (IPC) channel. You make use of a configuration file to configure the remote host application for .NET Remoting. The component works as expected when you test the component from a client application after you have done the configuration. You then implement an event to notify client implications about any changes to the state of the component. The delegate that declares the event specifies an EventArgs-derived class named StateChangeEventArgs as its second parameter. This now results in a SecurityException instance being invoked when a client application attempts to attach a delegate to the event. This SecurityException instance is thrown with the following message:
Type System.DelegateSerializationHolder and the types derived from it (such as SystemDelegateSerializationHolder) are not permitted to be serialized at this security level.
You need to prevent this exception from being thrown.

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 creation, configuration and deployment of Remoting applications form part of your responsibilities at Domain.com.
You have just completed developing a Microsoft.NET Remoting component that will be used by applications within Domain.com. Microsoft Internet Information Services (IIS) 6.0 will be hosting the component. You need to specify a channel and formatter to use so that successful communication can take place between the applications and the remote component.

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 development and deployment of Microsoft.NET Remoting components forms part of your responsibilities at Domain.com. You have just completed developing and deploying a Microsoft.NET Remoting component to a server computer. Microsoft Internet Information Services (IIS) 6.0 is hosting the component. The component runs in an application pool that is configured with the default identity. You received instruction to debug the remote component. You want to do so from your development computer.

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 creation, configuration and deployment of Remoting applications form part of your responsibilities at Domain.com.
You are currently developing a Microsoft.NET Remoting component that will allow all Domain.com employees to send messages and receive messages to each other. To this end you implement the message functionality in an assembly named Messenger.dll. Messenger.dll contains the remotable types. You further implement a host application to host the remotable types and a client application that will provide the user interface.
The Messenger.dll assembly must be private to the application and thus you use both client and server configuration files to configure .NET Remoting. Keep in mind that you are not using any custom .NET Remoting extensions, i.e. custom formatters or custom channels. You thus need to configure the application so that you can use strongly-typed instances of the remotable types in the client 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 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?


Page 4 of 43« First...23456...102030...Last »