MCSD.NET - 70-310 Exam Question:

Suppose You are creating a .NET Remoting object named PropertyCache. PropertyCache will hold a
Hashtable object or name/value pairs.
A variety of remote client applications will communicate with PropertyCache to set and get
property values. You need to ensure that properties set by one client application are also
accessible to other client applications.
Which two actions should you take? (Each correct answer presents part of the solution. Choose
two)
A. Configure PropertyCache to be a client-activated object.
B. Configure PropertyCache to be a server-activated Singleton object.
C. Configure PropertyCache to be a server-activated SingleCall object.
D. Derive the PropertyCache class from MarshalByRefObject and override
InitializeLifetimeService() to return null.
E. Mark the PropertyCache class with the Serializable attribute.
Implement the ISponsor interface in the PropertyCache class.
F. Implement the ISerializable and ILease interfaces in the PropertyCache class.
Implement ILease.CurrentLeaseTime to return Int32.MaxValue.

MCSD.NET - 70-310 Exam Interview Question
MCSD.NET - 70-310 Exam Interview Question

Answer:

B. Configure PropertyCache to be a server-activated Singleton object.
D. Derive the PropertyCache class from MarshalByRefObject and override
InitializeLifetimeService() to return null.


Previous QuestionNext Question
Suppose XYZ Inc. provides a credit card processing application for its customers. The current application
supports only computers that run on a Microsoft Windows operating system.
You are asked to rewrite the current application as a .NET application. This .NET application
does not need to be backward compatible with the current application.
You must ensure that this new application meets the following requirements:
? Must support asynchronous processing.
? Must be able to pass data through firewalls.
? Must pass only SOAP-Compliant formatted data validated by using an XSD schema.
? Must not be limited to client computers running on a Microsoft operating system.
You want to accomplish this task by using the minimum amount of development effort.
Which type of .NET application should you use?
A. Windows service
B. XML Web service
C. Serviced component
D. .NET Remoting object
You create an XML Web service named TimeService. Each time TimeService is started, it checks
for the existence of an event log named TimeServiceLog. If TimeServiceLog does not exist,
TimeService creates it.
You discover that when TimeService creates TimeServiceLog, it throws a
System.Security.SecurityException. The exception includes the following message: ?Requested
registry access is not allowed?. You need to resolve this problem.
What should you do?.
A. Configure Inetinfo.exe to run as the local administrator user account.
B. Create an installer for TimeService, and create the new event log in the installer code.
C. Modify the Web.config file by adding an identity element to impersonate the LOGON user
specified by Internet Information Services (IIS).
D. Modify the permissions of the
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlog registry key to give
full control to the IUSR_computername user account.