位置:首页 > 题库频道 > 其它分类 > 计算机其它 > 微软MCAD 70-310 实战百题

手机扫码关注微信
随时随地刷题

微软MCAD 70-310 实战百题

推荐等级:
  • 卷面总分:100分
  • 试卷类型:模拟试题
  • 测试费用:¥5.00
  • 试卷答案:有
  • 练习次数:0
  • 作答时间:0分钟

试卷介绍

微软MCAD 70-310 实战百题

试卷预览

  • 11You create an XML Web service named YourService. You must ensure that this service meets the following URL authorization requirements .0 Anonymous access must be disabled for YourService.® An authenticated user named Userl cannot access YourService. 0 All other authenticared users can access YourService.You configure Internet Information Services(IIS) to meet these requirements. You now need to configure the authorization section in the Web.config file to properly authorize the users.Which code segment should you use?

    A.

    B.

    C.

    D. 开始考试练习点击查看答案

  • 12You have a .NET Remoting object named BatchOrder. The BatchOrder class allows remote client applications to submit orders in batches .Each BatchOrder object holds state information that is specific to each remote client application. The BatchOrder class has overloaded constructors for initializing an object.You want to develop a server application to host BatchOrder objects. What should you do?

    A.Create a Windows service, and register BatchOrder as a client- activated object

    B.Create a Windows service, and register BatchOrder as a server- activated Singleton object

    C.Host BatchOrder in Internet Information Services (IIS) and create a Web.config file to register BatchOrder as a server- activated SingleCall object

    D.Host BatchOrder in Internet Information Services (IIS) and create a Web.config file to register BatchOrder as a server- activated object with an infinite lease

    开始考试练习点击查看答案
  • 13You are creating a .NET Remoting object named Dealer for automobile dealership. Dealer exposes a method named SaveSales that saves sales information for the dealership.Dealer is configured to use Integrated Windows authentication to authenticate its callers . You musL ensure that all users of SaveSales are members of the Manager group before allowing the code within SaveSales to run.Which code segment should you use?

    A.Public Function SaveSales(ByVal _ sales As DataSet) As DataSet 'Code to save sales data goes here.End Function

    B.Public Function SaveSales(ByVal _ sales As DataSet) As DataSet 1 Code to save sales data goes here.End Function

    C.〈PrincipalPermission(SecurityAction.InheritanceDemand, Role="Manager")>Public Function SaveSales (ByVal __ sales As DataSet) As DataSet 'Code to save sales data goes here.End Function

    D.Public Function SaveSales(ByVal _ sales As DataSet) As DataSet Dim role As String = "Manager"PrincipalPermission perm = NewPrincipalPermission(Nothing, role)'Code to save sales data goes her

    E.End Function

    开始考试练习点击查看答案
  • 14You are creating an XML Web service named LegalService. This serviceexposes two Web methods named Send Message and ReceiveMessage.SendMessage is used to send highly confidential messages to its customers. ReceiveMessage is used to receive highly confidential messages from its customers and to process these messages for future use.You need to ensure that these messages cannot be intercepted and viewed by anyone other than LegalService and the customers who access LegalService.Which security mechanism should you use?

    A.SSL

    B.Authorization

    C.Authentication

    D.Impersonation

    开始考试练习点击查看答案
  • 15You develop an application named YourApp that uses a Windows Form, a Microsoft SQL Server database, and several database components. You want to restrict users from writing their own applications to access YourApp's database components.You need to configure your database component assemblies to accomplish this goal.What should you do?

    A.Apply the StrongNameldentityPermission attribute, and specify SecurityAction . LinkDemand . Set the Public-Key property to the public key of the key file you use to sign your application's assemblies

    B.Apply the StrongNameldentityPermission attribute, and specify SecurityAct ion . RequestMinimum. Set the PublicKey property to the public key of the key file you use to sign your application 's assemblies

    C.Apply the PublisherldentityPermission attribute, and specify SecurityAction.Deny

    D.Apply the Publisherldent ityPermission attribute, and Specify SecurityAction.RequestMinimum

    开始考试练习点击查看答案
  • 16You are creating an XML Web service named InventoryService for a nationwide clothing retailer company. The service provides near real-time inventory information to individual store managers by using a virtual private network(VPN).InventoryService exposes a Web method named Retrievelnventory that returns inventory information to the caller. You configure Internet Information Services(IIS) and InventoryService to use Integrated Windows authentication.You need to write code in InventoryService to ensure that only members of the Manager group can access Retrievelnventory.

    A.To the 〈authorization〉 section of the We

    B.config file, add the following element:Callow roles="Manager" />B.To the 〈authorization〉 section of the Web.config file, add the following element:

    C.In Retrievelnventory, add the following code segment: If User.Identity.Name.Equals("Manager") Then'Code to retrieve inventory data goes here.End If

    D.In Retrievelnventory, add the following code segment: If User.Identity.AuthenticationTyp

    E.Equals("Manager”} Then1Code to retrieve inventory data goes here.End If

    开始考试练习点击查看答案
  • 17As a software developer at your company, you are creating an XML Web service named HousingService that exposed two Web methods name Search House and BuyHouses. Prior to deploying the service, you want to customize the default template that is displayed when a customer makes a request through the browser.You create a Web Form named HousingServiceDescription.aspx that is a customized version of the default template. You place the Web Form in the bin directory of the HousingService project.The Web Form needs to override the default template when a request is made. You need to ensure that customers who request HousingService though a browser view HousingServiceDescription.aspx.What should you do?

    A.Create a SOAP extension to redirect the user to HousingServiceDescription .aspx

    B.Set the Namespace property of the WebService attribute to the location of HousingServiceDescription.aspx

    C.In the Web.config file, enable tracing and the set TraceMode node to binHousingServiceDescription.aspx

    D.In the Web.config file, set the HRef property of the wsdlHelp- Generator node to binHousingServiceDescription.aspx

    开始考试练习点击查看答案
  • 18You are creating an XML Web service named Tracker to track orders for your company. Tracker includes a Web method named OrderStatus for tracking the status of individual orders. You anticipate that many client applications will use the service.You want administrators of Tracker to be able to monitor the requests per second for OrderStatus.Which code segment should you use?

    A.Dim counter As New PerformanceCounter("Tracker_ "OrderStatus req/sec", False)

    B.PerformanceCounterCategory.Create("Tracker","category", "OrderStatus req/sec", "req/sec”)C . Dim counterData() As CounterCreationData =_{New CounterCreationData("OrderStatus req/sec","help", PerformanceCounterType.RateOfCountsPerSecond32)} Dim collection As New_CounterCreationDataCollection(counterData) PerformanceCounterCategory.Create("Tracker", _"Tracker performance counters", collection)D. Dim counterData() As CounterCreationData =_{New CounterCreationData("Int32", "second",_PerformanceCounterType.AverageTimer32)}Dim collection As New_CounterCreationDataCollection(counterData) PerformanceCounterCategory.Create("OrderStatus", _ "requests per second", collection)}

    开始考试练习点击查看答案
  • 19You create a . NET Remo ting object named AdminService, which is hosted in Internet Information Services(IIS) . The object uses an HttpChannel and a BinaryFormatter. AdminService is in an assembly named Ad- minService.dll. The URL for AdminService is http://LocalHost/ AdminService/AS.rem.You write a test console application named Tester.exe to test the AdminService interface. Tester.exe includes the following code segment:Module Tester Sub Main ()Dim service As New AdminService ()'Code to exercise the service object.End Sub End ModuleYou write a configuration file for Tester.exe. The configuration file is named Tester.exe.config and includes the following code segment:Cconfiguration〉〈system•runtime.remoting>〈application〉<client><wellknown url="http://LocalHost/ AdminService/AS.rem" type="AdminService, AdminService"/></client> </application〉〈/system.runtime.remoting></configuration>You run Tester.exe. The application immediately throws a Sys- tem.NullReferenceException. The exception includes the following message: "Object reference not set to an instance of an object.,’You need to resolve this exception.What should you do?

    A.To the application element of theTester.exe.config file, add the following code segment:〈channel ref=,'http">〈formatter ref="binary,,/>

    B.Replace the use of the AdminService constructor in Tester.exe with the following code segment:Dim service As AdminService =CType(Activator.Createlnstance (GetType(AdminService)), AdminService)

    C.At the beginning of the Main method in Tester.exe, add the following line of code:RemotingConfiguration.Configure("Tester.exe.config")

    D.Rename the configuration file from Tester.ex

    E.config to Tester.config

    开始考试练习点击查看答案
  • 20You create a serviced component named Yourltem that implements an interface named Interface Item. You want to ensure that calls to the serviced component through Interfaceltem are queued.What should you do?

    A.To Yourltem, add the following attribute: cinterfaceQueuing(true, Interface="lnterfaceltem")>

    B.To Yourltem, add the following attribute:〈Transaction(TransactionOption.Disabled,Isolation = TransactionlsolationLevel.Serializable)>

    C.To the Yourltem assembly, add the following attribute: 〈assembly:ApplicationQueuing(Enables=true, QueueListenerEnabled=true)>

    D.In the Yourltem implementation, override the Activate method from the Serviced Component class. In the Activate method, add the following code segment:Dim q As New Queue() q.Enqueue(Me)

    开始考试练习点击查看答案
 2/10   首页 上一页 1 2 3 4 5 6 下一页 尾页
返回顶部