MCSD.NET - 70-310 Exam

  Home  Certifications  MCSD.NET - 70-310 Exam


“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

1⟩ You are creating an XML Web service that processes highly confidential messages. The serviceexposed a Web method named RetrieveMessage that takes as input a code name and returns anencrypted message.You create a SOAP extension and override the extension?s ProcessMessage method so that youcan encrypt the message before it is sent back to the caller.You need to encrypt only the data within the RetrieveMessageResult node of the SOAPresponse. You create a function named EncryptMessage that encrypts theRetrieveMessageResult node. You need to ensure that this method gets called before sendingthe message back to the caller.During which SoapMessageStage should you call EncryptMessage?A. BeforeSerializeB. AfterSerializeC. BeforeDeserializeD. AfterDeserialize

B. AfterSerialize

 169 views

2⟩ You create a .NET Remoting object named EXPatientinfo that exposes medical patientinformation.Because of the confidential nature of the information, you must ensure that the data remainssecure.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.

 160 views

3⟩ Suppose You create a Windows service that processes XML messages placed in a MSMQ queue. Youdiscover that the service is not functioning properly.You need to debug the service to correct the program.What should you do?A. Start the Windows service.Then attach a debugger to the process.B. Attach a debugger to the Windows service.Then start the Windows service.C. Start the Windows service.Then run the .NET Services Installation tool (Regsvcs.exe).D. Place a breakpoint in the Main method of the Windows service.Then run the application within the Visual Studio .NET integrated development environment(IDE).

A. Start the Windows service.

Then attach a debugger to the process.

 196 views

4⟩ You have DataSet object named LoanCustomersDataSet that contains customers serviced by theloan department of XYZ. You receive a second DataSet that contains customers serviced by theasset management department of XYZ. Both objects have the same structure.You want to merge assetCustomersDataSet into LoanCustomersDataSet and preserve theoriginal values in loanCustomersDataSet.Which code segment should you use?A. loanCustomersDataSet.Merge (assetCustomersDataSet)B. loanCustomersDataSet.Merge (assetCustomersDataSet, True)C. assetCustomersDataSet.Merge (loanCustomersDataSet)D. assetCustomersDataSet.Merge (loanCustomersDataSet, True)

B. loanCustomersDataSet.Merge (assetCustomersDataSet, True)

 182 views

5⟩ You are creating an XML Web service named XYZService. This service has a function namedWriteMessage that writes messages to a flat file in the CEXServiceLog directory..You want to implement security for WriteMessage so that WriteMessage and all the code it callscan write messages only to the EXServiceLog directory.Which code segment should you use?A. Dim filePermission As NewFileIOPermission_(FileIOPermissionAccess.Write, ?CEXServiceLog?)filePermission.Demand()B. Dim filePermission As NewFileIOPermission_(FileIOPermissionAccess.Write, ?CEXServiceLog?)filePermission.Deny()C. Dim filePermission As NewFileIOPermission_(FileIOPermissionAccess.Write, ?CEXServiceLog?)filePermission.PermitOnly()D. Dim filePermission As NewFileIOPermission_(FileIOPermissionAccess.Write, ?CEXServiceLog?)filePermission.Assert()

C. Dim filePermission As New

FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)

filePermission.PermitOnly()

 210 views

6⟩ Suppose You are debugging a visual studio .Net application named XYZApp. The application produces anXml documents object and then consumes the same object. This object moves data in theapplication. The object has no schema, but it contains a declaration line that you must inspect.You decide to transform the XML code and its declaration into a string for easy inspection.What should you do?A. Assign the ToString method of the Xml Document object to a string variable.B. Assign the OuterXml property of the Xml document object to a string variableC. Assign the OuterXml property of the Xml document element property of the Xml documentobject to a string variable.D. Use the WriteContentTo method of the XmlDocument object to write the document into aMemoryStream object. Use the GetXml method of the DataSet object to get a string version ofthe document.

B. Assign the OuterXml property of the Xml document object to a string variable

 191 views

7⟩ Suppose You are creating an XML Web service that provides a daily quotation from literary works to itscustomers. This quotation is requested in many different languages, thousands of times everyday, and by thousands of Web sites operating many different platform.A Web method named GetEXQuotes takes a languageID as input. GetEXQuotes uses thislanguage ID to retrieve a translated version of the daily quotation from a Microsoft SQL Serverdatabase and to return that quotation to the customer.You want to minimize the time it takes to return the translated version.What should you do?A. Store each translated quotation by using the Cache object.B. Store each translated quotation 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.

A. Store each translated quotation by using the Cache object.

 182 views

8⟩ Suppose You create a serviced component named Scheduler. Scheduler is registered in a libraryapplication. The Scheduler methods parse String objects into Date Time objects.You write a console application named EXCoverage.exe to test each method in Scheduler. Youwant 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 theScheduler methods.D. Create a EXCoverage.exe.config file and add a <location> element to the configuration file foreach culture locale.

C. Set the current thread?s CurrentCulture property to each culture locale before calling the

Scheduler methods.

 182 views

9⟩ 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 aDataSet object that contains every geographical region in the world.RetrieveRegionsListBox calls a Microsoft SQL Server database to load the DataSet object withregion 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.

 177 views

10⟩ How to create a serviced component named SessionDispenser. This computer is in the XYZ.Utilitiesassembly 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 todebug 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.

 169 views

11⟩ Suppose You are planning to create a DataSet object named EXDataSet to be used in a bond-tradingapplication.Several developers will need to write code to manipulate EXDataSet, and you want to ensure thatmyDataSet 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. Choosetwo)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 DataSetclass.D. Create a class for EXDataSet that is based on the schema and that inherits from theXmlSchema 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.

 175 views

12⟩ Your company frequently receives product information from external vendors in the form of XMLdata.You receive XML document files, an .xdr schema file, and an .xsd schema file.You need to write code that will create a typed DataSet object on the basis of product information.Your code will be used in several Visual studio .NET applications to speed up data processing.You need to create this code as quickly as possible.What should you do?A. Create the code manually.B. Use XmlSerializer.Serialize to generate the code.C. Use the XmlSerializer.Deserialize to generate the code.D. Use the Xml Schema Definition tool (Xsd.exe) to generate the code.

D. Use the Xml Schema Definition tool (Xsd.exe) to generate the code.

 174 views

13⟩ You have a DataSet object named myDataSet. This object contains two DataTable objectsnamed Customers and Orders. Customers has a column named CustomerID, which is unique toeach customer.Orders also has a column named CustomerID. You want to use the GetChildRows method of theDataRow 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.

 191 views

14⟩ Suppose XYZ Inc. provides a credit card processing application for its customers. The current applicationsupports only computers that run on a Microsoft Windows operating system.You are asked to rewrite the current application as a .NET application. This .NET applicationdoes 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 serviceB. XML Web serviceC. Serviced componentD. .NET Remoting object

B. XML Web service

 195 views

15⟩ Suppose You create three Windows services named EXService1, EXService2, and EXService3. You wantto install all three services on a computer named XYZA by using the Installer tool (Installutil.exe).On the command line of XYZA, you enter and run the following commandInstallutil EXService1 EXService2 EXService3During the installation process, EXService3 throws an installation error. The installation processcompletes.How many of the three services are now installed on XYZ1?A. NoneB. OneC. TwoD. Three.

A. None

 178 views

16⟩ Suppose You create an XML Web service named WeatherService. This service contains a Web methodnamed RetrieveWeather. RetrieveWeather takes as input a city named and returns the currentweather conditions for that city.You need to provide callers of this service with the URL they need to issue an HTTP-GET againstWeatherService.Which URL should you use?A. http//XYZSrv/AppPath/WeatherService.asmx/cityname=somecityB. http//XYZSrv/AppPath/WeatherService.asmx/RetrieveWeather?cityname=somecityC. http//XYZSrv/AppPath/WeatherService/RetreieveWeather.asmx?cityname=somecityD. http//XYZSrv/AppPath/WeatherService/RetrieveWeather?cityname=somecity

B. http://XYZSrv/AppPath/WeatherService.asmx/RetrieveWeather?cityname=somecity

 186 views

17⟩ You create an XML Web service named TimeService. Each time TimeService is started, it checksfor 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 aSystem.Security.SecurityException. The exception includes the following message ?Requestedregistry 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 userspecified by Internet Information Services (IIS).D. Modify the permissions of theHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlog registry key to givefull control to the IUSR_computername user account.

B. Create an installer for TimeService, and create the new event log in the installer code.

 164 views

18⟩ Suppose You are creating a .NET Remoting object named PropertyCache. PropertyCache will hold aHashtable object or name/value pairs.A variety of remote client applications will communicate with PropertyCache to set and getproperty values. You need to ensure that properties set by one client application are alsoaccessible to other client applications.Which two actions should you take? (Each correct answer presents part of the solution. Choosetwo)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 overrideInitializeLifetimeService() 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

B. Configure PropertyCache to be a server-activated Singleton object.

D. Derive the PropertyCache class from MarshalByRefObject and override

InitializeLifetimeService() to return null.

 190 views

19⟩ Suppose You create an XML Web service named XYZService. You must ensure that this service meetsthe following URL authorization requirements.? Anonymous access must be disabled for XYZService.? An authenticated user named User1 cannot access XYZService.? All other authenticared users can access XYZService.You configure Internet Information Services (IIS) to meet these requirements. You now need toconfigure the authorization section in the Web.config file to properly authorize the users.Which code segment should you use?A. <allow users=?*? />.<deny users=?User1? />B. <allow users=??? /><deny users=?User1? />C. <deny users=?*? /><deny users=?User1? /><allow users=??? />D. <deny users=??? /><deny users=?User1? /><allow users=?*? />

D. <deny users=??? />

<deny users=?User1? />

<allow users=?*? />

 175 views