查看完整版本 : 最新微軟70-521CSHARP認證考題賞析

hangkiss 2010-12-20 05:04 PM

最新微軟70-521CSHARP認證考題賞析

[size=10.5pt]  Exam   :  Microsoft [b][url=http://www.examsoon.net/70-521CSHARP.htm][b]70-521CSHARP
[/b][/url][/b]   Title    :  UPG:Trans MCPD.NET Frmwk 3.5 Dev Skil to .NET 4 Wndws App De[/size]
[size=10.5pt][b][url=http://www.examsoon.net/][size=10.5pt][b]Examsoon[/b][/size][/url][/b]專業認證網站考題參考:[/size]
[size=10.5pt]1.You are creating a Windows Communication Foundation (WCF) service to process orders. The data contract for the order is defined as follows.[/size][size=10.5pt][/size]
[size=10.5pt][DataContract][/size][size=10.5pt][/size]
[size=10.5pt]public class Order[/size][size=10.5pt][/size]
[size=10.5pt]{[/size][size=10.5pt][/size]
[size=10.5pt]  …[/size][size=10.5pt][/size]
[size=10.5pt]  [DataMember][/size][size=10.5pt][/size]
[size=10.5pt]  public string CardHolderName { get; set; }[/size][size=10.5pt][/size]
[size=10.5pt]  [DataMember][/size][size=10.5pt][/size]
[size=10.5pt]  public string CreditCardNumber { get; set; }[/size][size=10.5pt][/size]
[size=10.5pt]}[/size][size=10.5pt][/size]
[size=10.5pt]You have the following requirements:[/size][size=10.5pt][/size]
[size=10.5pt]·[/size][size=10.5pt]Enable the transmission of the contents of Order from the clients to the service.[/size][size=10.5pt][/size]
[size=10.5pt]·[/size][size=10.5pt]Ensure that the contents of CreditCardNumber are not sent across the network in clear text.[/size][size=10.5pt][/size]
[size=10.5pt]·[/size][size=10.5pt]Ensure that the contents of CreditCardNumber are accessible by the service to process the order.[/size][size=10.5pt][/size]
[size=10.5pt]You need to implement the service to meet these requirements.[/size][size=10.5pt][/size]
[size=10.5pt]What should you do?[/size][size=10.5pt][/size]
[size=10.5pt]A. Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.[/size][size=10.5pt][/size]
[size=10.5pt]B. Convert the DataContract to a MessageContract and set the ProtectionLevel property to EncryptAndSign.[/size][size=10.5pt][/size]
[size=10.5pt]C. Change the data type of CreditCardNumber from string to SecureString.[/size][size=10.5pt][/size]
[size=10.5pt]D. Implement the CreditCardNumber property getter and setter. In the setter, run the value of the CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method.[/size][size=10.5pt][/size]
[size=10.5pt][b]Answer:[/b][/size][size=10.5pt] B [/size]

[size=10.5pt][/size]
[size=10.5pt][/size]
[size=10.5pt]2. A Windows Communication Foundation (WCF) client uses the following service contract. (Line numbers are included for reference only.)[/size][size=10.5pt][/size]
[size=10.5pt]01 [ServiceContract] [/size][size=10.5pt][/size]
[size=10.5pt]02 public interface IService [/size][size=10.5pt][/size]
[size=10.5pt]03 { [/size][size=10.5pt][/size]
[size=10.5pt]04 [OperationContract] [/size][size=10.5pt][/size]
[size=10.5pt]05 string Operation1();[/size][size=10.5pt][/size]
[size=10.5pt]06 [OperationContract] [/size][size=10.5pt][/size]
[size=10.5pt]07 string Operation2();[/size][size=10.5pt][/size]
[size=10.5pt]08 }[/size][size=10.5pt][/size]
[size=10.5pt]You need to ensure that all calls to Operation1 and Operation2 from the client are encrypted and signed.[/size][size=10.5pt][/size]
[size=10.5pt]What should you do?[/size][size=10.5pt][/size]
[size=10.5pt]A. Set the ProtectionLevel property in line 01 to EncryptAndSign.[/size][size=10.5pt][/size]
[size=10.5pt]B. Set the ProtectionLevel property in line 04 and line 06 to Sign.[/size][size=10.5pt][/size]
[size=10.5pt]C. Add a SecurityCriticalAttribute for each operation.[/size][size=10.5pt][/size]
[size=10.5pt]D. Add a SecuritySafeCriticalAttribute for each operation.[/size][size=10.5pt][/size]
[size=10.5pt][b]Answer:[/b][/size][size=10.5pt] A [/size]

[size=10.5pt][/size]
[size=10.5pt][/size]
[size=10.5pt]3. A WCF service code is implemented as follows. (Line numbers are included for reference only.)[/size][size=10.5pt][/size]
[size=10.5pt]01 [ServiceContract][/size][size=10.5pt][/size]
[size=10.5pt]02 [ServiceBehavior(InstanceContextMode =[/size][size=10.5pt][/size]
[size=10.5pt]03 InstanceContextMode.Single)][/size][size=10.5pt][/size]
[size=10.5pt]04 public class CalculatorService[/size][size=10.5pt][/size]
[size=10.5pt]05 {[/size][size=10.5pt][/size]
[size=10.5pt]06 [OperationContract][/size][size=10.5pt][/size]
[size=10.5pt]07 public double Calculate(double op1, string op, double op2)[/size][size=10.5pt][/size]
[size=10.5pt]08 {[/size][size=10.5pt][/size]
[size=10.5pt]…[/size][size=10.5pt][/size]
[size=10.5pt]24 }[/size][size=10.5pt][/size]
[size=10.5pt]25 }[/size][size=10.5pt][/size]
[size=10.5pt]You need to decrease the response time of the service.[/size][size=10.5pt][/size]
[size=10.5pt]What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)[/size][size=10.5pt][/size]
[size=10.5pt]A. Change the service behavior to the following.[/size][size=10.5pt][/size]
[size=10.5pt][ServiceBehavior([/size][size=10.5pt][/size]
[size=10.5pt]  InstanceContextMode = InstanceContextMode.Single,[/size][size=10.5pt][/size]
[size=10.5pt]  ConcurrencyMode = ConcurrencyMode.Multiple)][/size][size=10.5pt][/size]
[size=10.5pt]B. Change the service behavior to the following.[/size][size=10.5pt][/size]
[size=10.5pt][ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)][/size][size=10.5pt][/size]
[size=10.5pt]C. Require the clients use threads, the Parallel Task Library, or other mechanism to issue service calls in parallel.[/size][size=10.5pt][/size]
[size=10.5pt]D. Require the clients to use async operations when calling the service.[/size][size=10.5pt][/size]
[size=10.5pt][b]Answer:[/b][/size][size=10.5pt] AB [/size][size=10.5pt][/size]

babyho 2010-12-20 09:34 PM

考果時有冇中文版:funk:
頁: [1]
查看完整版本: 最新微軟70-521CSHARP認證考題賞析