[ Pobierz całość w formacie PDF ]
.This callback delegate is supplied to the client when the asynchronous operation is initiated.The event handlerreferenced by AsyncCallback contains program logic to finish processing the asynchronous task for the client.Reference:Leading the way in IT testing and certification tools, www.testking.com- 61 -070 - 310.NET Framework General Reference, Asynchronous Programming Design Pattern [Visual Basic].NET Framework Class Library, AsyncCallback Delegate [Visual Basic]Incorrect AnswersA, B: Asynchronous operation is not set up.D: We must use the AsyncCallback delegate.QUESTION NO: 59You are creating an XML Web service named TKWebService.Callers must be authenticated by usingcredentials passed in the SOAP header of each Web service call.You want to use role-based security to secure each method on TKWebService.The roles that users areassigned are stored in a custom database table.You need to write code that will allow you to dynamicallychange which roles can execute specific methods at run time.What should you do?A.Create a WindowsIdentity object and a WindowsPrincipal object.Then implement declarative role-based security.B.Create a WindowsIdentity object and a WindowsPrincipal object.Then implement imperative role-based security.C.Create a GenericIdentity object and a GenericPrincipal object.Then implement declarative role-based security.D.Create a GenericIdentity object and a GenericPrincipal object.Then implement imperative role-based security.Answer: DExplanation: The GenericIdentity class in conjunction with the GenericPrincipal class to create anauthorization scheme that exists independent of a Windows NT or Windows 2000 domain.Furthermore, weshould use imperative role-based security to allow dynamic permissions that are decide at runtime.Reference:.NET Framework Developer's Guide, Creating GenericPrincipal and GenericIdentity Objects[Visual Basic]Incorrect AnswersA, B: WindowsPrincipal allows code to check the Windows group membership of a Windows user.However,in this scenario we are creating a customized security scheme and have no use of WindowsPrincipal objects.C: Declarative role-based security would not allow dynamic permissions that are decide at runtime.QUESTION NO: 60Leading the way in IT testing and certification tools, www.testking.com- 62 -070 - 310You are developing a Windows-based application that requires the use of a calculation function namedCalculateValue.This function includes the following signature:Calculate Value(x As Integer) As IntegerCalculateValue is located in an unmanaged DLL named TestKingFunctions.dll, and is not part of a COMinterface.You need to be able to use CalculateValue in your application.Which action or actions should you take? (Choose all that apply)A.Use Regsvr32.exe to register TestKingFunctions.dll.B.Use Visual Studio.NET to add a reference to TestKingFunctions.dll.C.To your application, add the following code segment:Imports TestKingFunctionsD.To your application, add the following code segment:Declare Function CalculateValue_Lib TestKingFunctions.dll (x AsInteger)Answer: B, DExplanation:B: We must add a reference to the dll.D: We must identify the function we want to use in the unmanaged dll.Reference:.NET Framework Developer's Guide, Consuming Unmanaged DLL Functions.NET Framework Developer's Guide, A Closer Look at Platform InvokeIncorrect AnswersA: Regsrv32 is not required in Visual Studio.NET.Regsrv32 was used in Visual Basic 6.0, Visual C++ 6.0C: We are not using the NameSpace of the unmanaged dll.QUESTION NO: 61You are creating an XML Web service named myWebService.This service will be used to exchangehighly confidential information over the Internet with your company s business partner named TestKing,Inc.You want only callers from TestKing, Inc., to be able to access myWebService.You do not want to haveto accept a user name and password from callers.Once callers are authenticated, you want to use Windows user accounts to authorize access to the Webmethods exposed by the Web service.You set up two Windows user accounts named TestKingAssociateand TestKingManager.You need to configure myWebService to meet these security requirements.Which type of authentication should you use?A.BasicB.DigestLeading the way in IT testing and certification tools, www.testking.com- 63 -070 - 310C.AnonymousD
[ Pobierz całość w formacie PDF ]