MCSD.NET - 70-310 Exam Interview Preparation Guide Download PDF
MCSD.NET - 70-310 Exam Frequently Asked Questions in various MCSD.NET - 70-310 Exam Interviews asked by the interviewer. So learn MCSD.NET - 70-310 Exam with the help of this MCSD.NET - 70-310 Exam Interview questions and answers guide and feel free to comment as your suggestions, questions and answers on any MCSD.NET - 70-310 Exam Interview Question or answer by the comment feature available on the page.
19 MCSD.NET - 70-310 Exam Questions and Answers:
Table of Contents:
3 :: 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.
B. Configure PropertyCache to be a server-activated Singleton object.
D. Derive the PropertyCache class from MarshalByRefObject and override
InitializeLifetimeService() to return null.
D. Derive the PropertyCache class from MarshalByRefObject and override
InitializeLifetimeService() to return null.
5 :: Suppose You create an XML Web service named WeatherService. This service contains a Web method
named RetrieveWeather. RetrieveWeather takes as input a city named and returns the current
weather conditions for that city.
You need to provide callers of this service with the URL they need to issue an HTTP-GET against
WeatherService.
Which URL should you use?
A. http://XYZSrv/AppPath/WeatherService.asmx/cityname=somecity
B. http://XYZSrv/AppPath/WeatherService.asmx/RetrieveWeather?cityname=somecity
C. http://XYZSrv/AppPath/WeatherService/RetreieveWeather.asmx?cityname=somecity
D. http://XYZSrv/AppPath/WeatherService/RetrieveWeather?cityname=somecity
B. http://XYZSrv/AppPath/WeatherService.asmx/RetrieveWeather?cityname=somecity
6 :: How to create a serviced component named SessionDispenser. This computer is in the XYZ.Utilities
assembly and is registered in a COM+ server application. SessionDispenser has multiple callers.
You discover that there are logic problems in the Create New Session method. You want to
debug any calls to this method.
What should you do?
A. Open the SessionDispenser solution.
Set a breakpoint on the CreateNewSession method.
Start the debugger.
B. Attach the debugger to the client process.
Set a breakpoint on the SessionDispenser.CreateNewSession method.
C. Attach the debugger to the XYZ.Utilites.exe process.
Set a breakpoint on the CreateNewSession method.
D. Attach the debugger to a Dllhost.exe process.
Set a breakpoint on the CreateNewSession method.
D. Attach the debugger to a Dllhost.exe process.
Set a breakpoint on the CreateNewSession method.
Set a breakpoint on the CreateNewSession method.
9 :: You have a DataSet object named myDataSet. This object contains two DataTable objects
named Customers and Orders. Customers has a column named CustomerID, which is unique to
each customer.
Orders also has a column named CustomerID. You want to use the GetChildRows method of the
DataRow object to get all orders for the current customers.
What should you do?
A. Add a foreign key constraint on CustomerID of Orders between Customers and Orders.
B. Add a data relation to myDataSet on OrderID between Customers and Orders.
C. Create a unique constraint on CustomerID of Customers..
D. Create a primary key on CustomerID of Customers.
B. Add a data relation to myDataSet on OrderID between Customers and Orders.
10 :: You are creating an XML Web service named XYZService. This service has a function named
WriteMessage that writes messages to a flat file in the C:EXServiceLog directory..
You want to implement security for WriteMessage so that WriteMessage and all the code it calls
can write messages only to the EXServiceLog directory.
Which code segment should you use?
A. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.Demand()
B. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.Deny()
C. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.PermitOnly()
D. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.Assert()
C. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.PermitOnly()
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.PermitOnly()
13 :: You create a .NET Remoting object named EXPatientinfo that exposes medical patient
information.
Because of the confidential nature of the information, you must ensure that the data remains
secure.
You want client applications to connect to EXPatientinfo over a secure communication channel.
You want to accomplish this task by writing the minimum amount of code.
What should you do?
A. Create your own host application and use a TcpChannel and BinaryFormatter.
B. Create your own host application and use an HttpChannel and a SoapFormatter.
C. Install EXPatientinfo in an Internet Information Services (IIS) virtual directory.
Configure EXPatientinfo to use a TcpChannel and a BinaryFormatter.
Configure IIS to use SSL.
D. Install EXPatientinfo in an Internet Information Services (IIS) virtual directory.
Configure EXPatientinfo to use an HttpChannel and a SoapFormatter.
Configure IIS to use SSL.
D. Install EXPatientinfo in an Internet Information Services (IIS) virtual directory.
Configure EXPatientinfo to use an HttpChannel and a SoapFormatter.
Configure IIS to use SSL.
Configure EXPatientinfo to use an HttpChannel and a SoapFormatter.
Configure IIS to use SSL.
16 :: Suppose You are creating an XML Web service named ListBoxService. This service provides content,
such as states, countries, and geographical regions, for use in drop-down list boxes.
ListBoxService contains a Web method named RetrieveRegionsListBox. This method runs a
DataSet object that contains every geographical region in the world.
RetrieveRegionsListBox calls a Microsoft SQL Server database to load the DataSet object with
region data. You want to minimize the amount of time the method takes to return to the caller.
What should you do?
A. Use a stored procedure to return the data.
B. Store each DataSet object by using the Session object.
C. Set the BufferResponse property of the WebMethod attribute to false.
D. Set the CacheDuration property of the WebMethod attribute to an interval greater than zero.
D. Set the CacheDuration property of the WebMethod attribute to an interval greater than zero.
17 :: Suppose You create a serviced component named Scheduler. Scheduler is registered in a library
application. The Scheduler methods parse String objects into Date Time objects.
You write a console application named EXCoverage.exe to test each method in Scheduler. You
want Coverage.exe to test Scheduler for multiple cultures to verify its globalization support.
What should you do?
A. Create a CultureInfo object for each culture locale before calling the Scheduler methods.
B. Create a RegionInfo object for each culture locale before calling the Scheduler methods.
C. Set the current thread?s CurrentCulture property to each culture locale before calling the
Scheduler methods.
D. Create a EXCoverage.exe.config file and add a <location> element to the configuration file for
each culture locale.
C. Set the current thread?s CurrentCulture property to each culture locale before calling the
Scheduler methods.
Scheduler methods.
18 :: Suppose You are planning to create a DataSet object named EXDataSet to be used in a bond-trading
application.
Several developers will need to write code to manipulate EXDataSet, and you want to ensure that
myDataSet is easy for them to use. You decide to create EXDataSet as a strongly typed data set.
Which two actions should you take? (Each correct answer presents part of the solution. Choose
two)
A. Create an XSD schema that defines EXDataSet.
B. Create an XDR schema that defines EXDataSet.
C. Create a class for EXDataSet that is based on the schema and that inherits from the DataSet
class.
D. Create a class for EXDataSet that is based on the schema and that inherits from the
XmlSchema class.
E. Create a key pair for EXDataSet by using the Strong Name tool (Sn.exe).
A. Create an XSD schema that defines EXDataSet.
C. Create a class for EXDataSet that is based on the schema and that inherits from the DataSet
class.
C. Create a class for EXDataSet that is based on the schema and that inherits from the DataSet
class.