显示标签为“070-521-Csharp”的博文。显示所有博文
显示标签为“070-521-Csharp”的博文。显示所有博文

2014年7月8日星期二

070-521-Csharp 070-417 70-496 dernières questions d'examen certification Microsoft et réponses publiés

Pass4Test est un bon site d'offrir la facilité aux candidats de test Microsoft 070-521-Csharp. Selon les anciens test, l'outil de formation Microsoft 070-521-Csharp est bien proche de test réel.

Les produits de Pass4Test sont recherchés par les experts de Pass4Test qui se profitent de leurs connaissances et leurs expériences dans l'Idustrie IT. Si vous allez participer le test Microsoft 070-417, vous devez choisir Pass4Test. La Q&A de Pass4Test peut vous aider à préparer mieux le test Microsoft 070-417 avec sa grande couiverture des questions. En face d'un test très difficile, vous pouvez obtenir le Certificat Microsoft 070-417 sans aucune doute.

Le test certification Microsoft 70-496 est une bonne preuve de connaissances professionnelles et la techniques. Dans l'Industrie IT, beaucoiup de humains ressource font l'accent de lesquels certificats que les volontiers obtiennent. C'est clairement que le certificat Microsoft 70-496 puisse augmenter la compétition dans ce marché.

Le temps est tellement précieux dans cette société que une bonn façon de se former avant le test Microsoft 070-417 est très important. Pass4Test fait tous efforts à assurer tous les candidats à réussir le test. Aussi, un an de mise à jour est gratuite pour vous. Si vous ne passez pas le test, votre argent sera tout rendu.

Code d'Examen: 070-521-Csharp
Nom d'Examen: Microsoft (UPG:Trans MCPD.NET Frmwk 3.5 Dev Skil to .NET 4 Wndws App De)
Questions et réponses: 108 Q&As

Code d'Examen: 070-417
Nom d'Examen: Microsoft (Upgrading Your Skills to MCSAWindows Server 2012)
Questions et réponses: 146 Q&As

Code d'Examen: 70-496
Nom d'Examen: Microsoft (Administering Visual Studio Team Foundation Server 2012)
Questions et réponses: 73 Q&As

La Q&A de Pass4Test vise au test Certificat Microsoft 070-417. L'outil de formation Microsoft 070-417 offert par Pass4Test comprend les exercices de pratique et le test simulation. Vous pouvez trouver les autres sites de provider la Q&A, en fait vous allez découvrir que c'est l'outil de formation de Pass4Test qui offre les documentaions plus compètes et avec une meilleure qualité.

70-496 Démo gratuit à télécharger: http://www.pass4test.fr/70-496.html

NO.1 Your network contains an Active Directory domain named contoso.com. The domain contains
two
member servers named Server1 and Server2 that run Windows Server 2012. You log on to Server1.
You
need to retrieve the IP configurations of Server2.
Which command should you run from Server1?
A. winrs r:server2 ipconfig
B. dsquery * -scope base attr ip,server2
C. winrm get server2
D. ipconfig > server2.ip
Answer: A

Microsoft examen   70-496   70-496   certification 70-496   70-496 examen

NO.2 You are creating a Windows Store app by using JavaScript.
The app includes the following code segment:
01 function openChannel() {
02 var channel;
03
var chanOpt = Windows.Networking.PushNotifications
04
.PushNotificationChannelManager
05
06 return chanOpt.then (function (chan) {
07 channel = chan;
08},
09 errorHandler)
10}
You need to ensure that the app can receive push notifications from a calling app.
Which code segment should you insert at line 05?
A. createPushNotificationChannelForSecondaryTileAsync(id);
B. createPushNotificationChannelForApplicationAsync();
C. createPushNotificationChannelForSecondaryTileAsync();
D. createPushNotificationChannelForApplicationAsync(id);
Answer: B

certification Microsoft   70-496 examen   certification 70-496   certification 70-496

NO.3 Drag and Drop
You develop a Windows Store app that uses several new user interface features. You need to
declare
capabilities in the application manifest so that you can submit the app to the Windows Store.
How should you complete the relevant markup? (To answer, drag the appropriate markup segments
to the
correct locations in the answer area. Each markup segment may be used once, more than once, or
not at
all. You may need to drag the split bar between panes or scroll to view content.)
A. Name="internetClient" />
B. Name="bookmarksLibrary /
C. Name="networkConnectivity" />
D. Name="webcam" />
E. Name="mediaStream" />
Answer: AD

certification Microsoft   certification 70-496   70-496 examen

NO.4 Drag and Drop
You are developing a Windows Store style app by using JavaScript. The app will send and receive
encoded information and will display the encoded information to the user in a decrypted and
recognizable
state. You need to appropriately decrypt the encoded information.
How should you complete the relevant code? (To answer, drag the appropriate code segments to
the
correct locations in the answer area. Each code segment may be used once, more than once, or not
at all.
You may need to drag the split bar between panes or scroll to view content.)
A. decodeFromBase64String (stringToDecrypt);
B. decrypt (symmetricKey, inputDataBuffer, ivBuffer);
C. decrypt (stringToDecrypt, algNameString);
D. extractKey (keyMaterial, inputDataBuffer, stringToDecrypt);
E. toString (stringToDecrypt);
Answer: AB

Microsoft examen   certification 70-496   70-496 examen   certification 70-496

NO.5 You need to attach the background task.
Which code segment should you insert at line BG09?
A. var task = builder.register(this);
B. var task = builder.setTrigger(this);
C. var task = builder.register();
D. var task = builder.setTrigger();
Answer: C

Microsoft   70-496   certification 70-496   70-496 examen

NO.6 You need to complete the code to start the background task.
Which code segment should you insert at line BG07.?
A. Windows.ApplicationModel.Background.SystemTriggerType.sessionConnected, true
B. Windows.ApplicationModel.Background.SystemTriggerType.internetAvailable, false
C. Windows.ApplicationModel.Background.SystemTriggerType.networkStateChange, false
D. Windows.ApplicationModel.Background.SystemTriggerType.connectedStateChange, true
Answer: B

Microsoft examen   certification 70-496   70-496   70-496

NO.7 You are developing a Windows Store app that uses Windows Push Notification Services
(WNS).
The app includes the following code:
01 var notifications = Windows.UI.Notifications;
02 var startDate = new Date ();
03 var polledUrl = "http://contoso.cloudapp.net/";
04 var uri = new Windows.Foundation.Uri (polledUrl);
05 The app must poll a notification service every 30 minutes and update the app tile with new
content.
You need to initiate polling.
Which code segment should you insert at line 05?
A. var recurrence = 1800; notifications.TileUpdateManager.createTileUpdaterForApplication (uri,
startDate, recurrence);
B. var recurrence = notifications.PeriodicUpdateRecurrence.halfHour;
notifications.TileUpdateManager.createTileUpdaterForApplication ().startPeriodicUpdate (uri,
startDate,
recurrence);
C. var recurrence = 1800; notifications.TileUpdateManager.startPeriodicUpdate (uri, startDate,
recurrence);
D. var recurrence = notifications.PeriodicUpdateRecurrence.halfHour;
notifications.TileUpdateManager.createTileUpdaterForApplication ().Update (uri, startDate,
recurrence);
Answer: B

certification Microsoft   70-496 examen   70-496 examen   70-496 examen   certification 70-496

NO.8 You need to handle the location-detection problem.
What should you do?
A. Insert an else statement immediately before line LO09. In the else statement, display a
notification that
the device does not support location.
B. At line LO08, change the positionchanged argument to statuschanged.
C. At line LO06, change the Geolocator class to locator.
D. Insert a try statement immediately after line LO05 and a catch block immediately before line
LO09.
Handle the exception in the catch block.
Answer: A

Microsoft examen   70-496   certification 70-496   70-496 examen   certification 70-496

2013年11月13日星期三

Dernières Microsoft 070-521-Csharp examen pratique questions et réponses

Pass4Test vous permet à réussir le test Certification sans beaucoup d'argents et de temps dépensés. La Q&A Microsoft 070-521-Csharp est recherchée par Pass4Test selon les résumés de test réel auparavant, laquelle est bien liée avec le test réel.

Après une longue attente, les documentations de test Microsoft 070-521-Csharp qui combinent tous les efforts des experts de Pas4Test sont finalement sorties. Les documentations de Pass4Test sont bien répandues pendant les candidats. L'outil de formation est réputée par sa haute précision et grade couverture des questions, d'ailleurs, il est bien proche que test réel. Vous pouvez réussir le test Microsoft 070-521-Csharp à la première fois.

070-521-Csharp est un test de Microsoft Certification, donc réussir 070-521-Csharp est le premier pas à mettre le pied sur la Certifiction Microsoft. Ça peut expliquer certiainement pourquoi le test Microsoft 070-521-Csharp devient de plus en plus chaud, et il y a de plus en plus de gens qui veulent participer le test 070-521-Csharp. Au contraire, il n'y a que pas beaucoup de gens qui pourrait réussir ce test. Dans ce cas, si vous vous réfléchissez étudier avec une bonne Q&A?

Pass4Test est un catalyseur de votre succès de test Microsoft 070-521-Csharp. En visant la Certification de Microsoft, la Q7A de Pass4Test avec beaucoup de recherches est lancée. Si vous travillez dur encore juste pour passer le test Microsoft 070-521-Csharp, la Q&A Microsoft 070-521-Csharp est un bon choix pour vous.

Beaucoup de gens trouvent difficile à passer le test Microsoft 070-521-Csharp, c'est juste parce que ils n'ont pas bien choisi une bonne Q&A. Vous penserez que le test Microsoft 070-521-Csharp n'est pas du tout autant dur que l'imaginer. Le produit de Pass4Test non seulement comprend les Q&As qui sont impressionnées par sa grande couverture des Questions, mais aussi le service en ligne et le service après vendre.

Si vous vous inscriez le test Microsoft 070-521-Csharp, vous devez choisir une bonne Q&A. Le test Microsoft 070-521-Csharp est un test Certification très important dans l'Industrie IT. C'est essentielle d'une bonne préparation avant le test.

Vous allez choisir Pass4Test après essayer une partie de Q&A Microsoft 070-521-Csharp (gratuit à télécharger). Le guide d'étude produit par Pass4Test est une assurance 100% à vous aider à réussir le test Certification Microsoft 070-521-Csharp.

Code d'Examen: 070-521-Csharp
Nom d'Examen: Microsoft (UPG:Trans MCPD.NET Frmwk 3.5 Dev Skil to .NET 4 Wndws App De)
Questions et réponses: 108 Q&As

070-521-Csharp Démo gratuit à télécharger: http://www.pass4test.fr/070-521-Csharp.html

NO.1 You are moving a Windows Communication Foundation (WCF) service into production.
You need to be able to monitor the health of the service. You only want to enable all performance counter
instances exposed by the ServiceModelService 4.0.0.0 counter group.
Which element should you add to the system.serviceModel section in the application configuration file?
A. <diagnostics performanceCounters="ServiceOnly" />
B. <diagnostics wmiProviderEnabled="true" performanceCounters="Off" />
C. <diagnostics performanceCounters="All" />
D. <diagnostics wmiProviderEnabled="true" />
Answer: A

certification Microsoft   070-521-Csharp   070-521-Csharp examen   certification 070-521-Csharp   070-521-Csharp examen

NO.2 You are creating a Windows Communication Foundation (WCF) service. You do not want to expose the
internal implementation at the service layer.
You need to expose the following class as a service named Arithmetic with an operation named Sum.
public class Calculator
{
public int Add(int x, int y)
{
}
}
Which code segment should you use?
A. [ServiceContract(Namespace="Arithmetic")]
public class Calculator
{
[OperationContract(Action="Sum")]
public int Add(int x, int y)
{
}
}
B. [ServiceContract(ConfigurationName="Arithmetic")]
public class Calculator
{
[OperationContract(Action="Sum")]
public int Add(int x, int y)
{
}
}
C. [ServiceContract(Name="Arithmetic")]
public class Calculator
{
[OperationContract(Name="Sum")]
public int Add(int x, int y)
{
}
}
D. [ServiceContract(Name="Arithmetic")]
public class Calculator
{
[OperationContract(ReplyAction="Sum")]
public int Add(int x, int y)
{
}
}
Answer: C

Microsoft   070-521-Csharp   certification 070-521-Csharp

NO.3 A Windows Communication Foundation (WCF) application uses a data contract that has several data
members.
You need the application to throw a SerializationException if any of the data members are not present
when a serialized instance of the data contract is deserialized.
What should you do?
A. Add the KnownType attribute to the data contract. Set a default value in each of the data member
declarations.
B. Add the KnownType attribute to the data contract. Set the Order property of each data member to
unique integer value.
C. Set the EmitDefaultValue property of each data member to false.
D. Set the IsRequired property of each data member to true.
Answer: D

certification Microsoft   070-521-Csharp   070-521-Csharp examen   070-521-Csharp examen

NO.4 A Windows Communication Foundation (WCF) service is responsible for transmitting XML documents
between systems. The service has the following requirements:
It must minimize the transmission size by attaching the XML document as is without using escape
characters or base64 encoding.
It must interoperate with systems that use SOAP but are not built on the .NET platform.
You need to configure the service to support these requirements.
Which message encoding should you use?
A. Binary message encoding
B. MTOM (Message Transmission Optimization Mechanism) message encoding
C. Text message encoding with message version set to none
D. Text message encoding with message version set to SOAP 1.2
Answer: B

Microsoft   070-521-Csharp examen   070-521-Csharp examen   070-521-Csharp

NO.5 A Windows Communication Foundation (WCF) service has a callback contract. You are developing a
client application that will call this service.
You must ensure that the client application can interact with the WCF service.
What should you do?
A. On the OperationContractAttribute, set the AsyncPattern property value to true.
B. On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the
client.
C. On the client, create a proxy derived from DuplexClientBase<TChannel>.
D. On the client, use GetCallbackChannel<T>.
Answer: C

Microsoft   070-521-Csharp   070-521-Csharp   certification 070-521-Csharp

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

Microsoft   070-521-Csharp examen   certification 070-521-Csharp   certification 070-521-Csharp

NO.7 Your Windows Communication Foundation (WCF) client application uses HTTP to communicate with
the service.
You need to enable message logging and include all security information such as tokens and nonces in
logged messages.
What should you do?
A. In the application configuration file, add the logKnownPii attribute to the message logging diagnostics
source and set the value of the attribute to true.
Generate the ContosoService class using the Add Service Reference wizard.
Add a reference to System.ServiceModel.Routing.dll.
Add the following code segment.
ContosoService client = new ContosoService();
SoapProcessingBehavior behavior = new SoapProcessingBehavior();
behavior.ProcessMessages = true;
client.Endpoint.Behaviors.Add(behavior);
B. In the application configuration file, add the following XML segment to the system.serviceModel
configuration section group.
<diagnostics>
<messageLogging logMessagesAtTransportLevel="true"
logEntireMessage="true" />
</diagnostics>
C. In the machine configuration file, add the following XML segment to the system.serviceModel
configuration section.
<machineSettings enableLoggingKnownPii="true" />
Generate the ContosoService class using the Add Service Reference wizard.
Add the following code segment.
ContosoService client = new ContosoService();
client.Endpoint.Behaviors.Add(new CallbackDebugBehavior(true));
D. In the machine configuration file, add the following XML segment to the system.serviceModel
configuration section.
<machineSettings enableLoggingKnownPii="true" />
In the application configuration file, add the logKnownPii attribute to the message logging diagnostics
source and set the value of the attribute to true.
In the application configuration file, add the following XML segment to the system.serviceModel
configuration section group.
<diagnostics>
<messageLogging logMessagesAtTransportLevel="true"/>
</diagnostics>
Answer: D

certification Microsoft   certification 070-521-Csharp   070-521-Csharp   certification 070-521-Csharp

NO.8 You are developing a Windows Communication Foundation (WCF) service that reads messages from
a public non-transactional MSMQ queue.
You need to configure the service to read messages from the failed-delivery queue.
Which URI should you specify in the endpoint configuration settings of the service?
A. net.msmq://localhost/msmq$;FailedMessages
B. net.msmq://localhost/msmq$;DeadLetter
C. net.msmq://localhost/system$;DeadXact
D. net.msmq://localhost/system$;DeadLetter
Answer: D

Microsoft examen   070-521-Csharp   070-521-Csharp examen   070-521-Csharp

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

Microsoft   070-521-Csharp   070-521-Csharp   070-521-Csharp   070-521-Csharp

NO.10 You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding.
New audit requirements dictate that callers must be authenticated on every call to ensure that their
credentials have not been revoked.
You need to ensure that the service will not cache the security request token.
What should you do?
A. Apply a ServiceBehavior attribute to the service implementation class with the InstanceContextMode
property set to Single.
B. In the message security configuration, change clientCredentialType from IssuedToken to UserName.
C. In the message security configuration, set establishSecurityContext to false.
D. At the end of every operation, call the SessionStateUtility.RaiseSessionEnd method.
Answer: C

Microsoft   certification 070-521-Csharp   certification 070-521-Csharp   070-521-Csharp examen

NO.11 You are developing an application to update a user ¯ s soc i a l s t a t us . You need t o consu m e t he se r v i ce
using Windows Communication Foundation (WCF).
The client configuration is as follows.
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="SocialConfig">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic"
?realm="Social API" />
</security>
</binding>
</webHttpBinding>
</bindings>
<client>
<endpoint address="http://contoso.com"
binding="webHttpBinding"
bindingConfiguration="SocialConfig"
contract="ISocialStatus"
name="SocialClient" />
</client>
</system.serviceModel>
The service contract is defined as follows.
[ServiceContract]
public interface ISocialStatus
{
[OperationContract]
[WebInvoke(UriTemplate =
"/statuses/update.xml?status={text}")]
void UpdateStatus(string text);
}
Which code segment should you use to update the social status?
A. using (WebChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>("SocialClient"))
{
factory.Credentials.UserName.UserName = user.Name;
factory.Credentials.UserName.Password = user.Password;
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
B. using (ChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>(typeof(ISocialStatus)))
{
factory.Credentials.UserName.UserName = user.Name;
factory.Credentials.UserName.Password = user.Password;
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
C. using (ChannelFactory<ISocialStatus> factory =
new ChannelFactory<ISocialStatus>("POST"))
{
factory.Credentials.Windows.ClientCredential.UserName =
user.Name;
factory.Credentials.Windows.ClientCredential.SecurePassword.
SetAt(0, Convert.ToChar(user.Password));
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
D. using (WebChannelFactory<ISocialStatus> factory =
new WebChannelFactory<ISocialStatus>(typeof(ISocialClient)))
{
factory.Credentials.Windows.ClientCredential.UserName =
user.Name;
factory.Credentials.Windows.ClientCredential.SecurePassword.
SetAt(0, Convert.ToChar(user.Password));
ISocialStatus socialChannel = factory.CreateChannel();
socialChannel.UpdateStatus(newStatus);
}
Answer: A

Microsoft   070-521-Csharp   070-521-Csharp   070-521-Csharp examen   certification 070-521-Csharp

NO.12 You are building a client for a Windows Communication Foundation (WCF) service.
You need to create a proxy to consume this service.
Which class should you use?
A. ChannelFactory<TChannel>
B. ServiceHost
C. ClientRuntime
D. CommunicationObject
Answer: A

certification Microsoft   certification 070-521-Csharp   070-521-Csharp

NO.13 A Windows Communication Foundation (WCF) service has the following contract.
[ServiceContract(Namespace="http://contoso.com")]
public interface IShipping
{
[OperationContract]
string DoWork(int id);
}
This is one of several service contracts hosted by your application. All endpoints use SOAP 1.2 bindings
with WS-Addressing 1.0. The System.ServiceModel.MessageLogging trace source in the
system.diagnostics configuration section is configured with one listener.
You need to make sure that only the messages that are returned from the DoWork operation are logged.
Which XML segment should you add to the system.serviceModel/diagnostics/messageLogging/filters
configuration element?
A. <add xmlns:addr="http://www.w3.org/2005/08/addressing">
//addr:Action[text() =
'http://contoso.com/IShipping/DoWorkResponse']
</add>
B. <add xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
//soap:Action[text() =
'http://contoso.com/IShipping/DoWorkResponse']
</add>
C. <add xmlns:addr="http://www.w3.org/2005/08/addressing">
//addr:Action[text() =
'http://contoso.com/IShipping/DoWork']
</add>
D. <add xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
//soap:Action[text() =
'http://contoso.com/IShipping/DoWork']
</add>
Answer: A

Microsoft   070-521-Csharp   070-521-Csharp   certification 070-521-Csharp

NO.14 You are creating a Windows Communication Foundation (WCF) service that implements operations in
a RESTful manner. You need to add a delete operation.
You implement the delete method as follows.
void DeleteItems(string id);
You need to configure WCF to call this method when the client calls the service with the HTTP DELETE
operation.
What should you do?
A. Add the WebInvoke(UriTemplate = "/Items/{id}", Method="DELETE") attribute to the operation.
B. Add the HttpDelete attribute to the operation.
C. Replace the string parameter with a RemovedActivityAction parameter.
D. Replace the return type with RemovedActivityAction.
Answer: A

Microsoft   070-521-Csharp   070-521-Csharp   070-521-Csharp

NO.15 You are creating a Windows Communication Foundation (WCF) service that is implemented as follows.
(Line numbers are included for reference only.)
01 [ServiceContract]
02 [ServiceBehavior(IncludeExceptionDetailsInFaults = true)]
03 public class OrderService
04 {
05 [OperationContract]
06 public void SubmitOrder(Order anOrder)
07 {
08 try
09 {
10
11 }
12 catch(DivideByZeroException ex)
13 {
14
15 }
16 }
17 }
You need to ensure that the stack trace details of the exception are not included in the error information
sent to the client.
What should you do?
A. Replace line 14 with the following line.
throw;
B. Replace line 14 with the following line.
throw new FaultException<Order>(anOrder, ex.ToString());
C. After line 05, add the following line.
[FaultContract(typeof(FaultException<Order>))]
Replace line 14 with the following line.
throw ex;
D. After line 05, add the following line.
[FaultContract(typeof(FaultException<Order>))]
Replace line 14 with the following line.
throw new FaultException<Order>(anOrder, "Divide by zero exception");
Answer: D

Microsoft   070-521-Csharp examen   certification 070-521-Csharp

NO.16 You are consuming a Windows Communication Foundation (WCF) service in an ASP.NET Web
application. The service interface is defined as follows.
[ServiceContract]
public interface ICatalog
{
[OperationContract]
[WebGet(UriTemplate = "/Catalog/Items/{id}",
ResponseFormat = WebMessageFormat.Json)]
string RetrieveItemDescription(int id);
}
The service is hosted at /Catalog.svc.
You need to call the service using jQuery to retrieve the description of an item as indicated by a variable
named itemId.
Which code segment should you use?
A. $.get(String.format("/Catalog.svc/Catalog/Items/?id={0}", itemId)
null,
function (data) {
},
"javascript");
B. $.get(String.format("/Catalog.svc/Catalog/Items/{0}", itemId),
null,
function (data) {
},
"json");
C. $.get(String.format("/Catalog.svc/Catalog/Items/{0}", itemId),
null,
function (data) {
},
"xml");
D. $.get(String.format("/Catalog.svc/Catalog/Items/id={0}", itemId),
null,
function (data) {
},
"json");
Answer: B

Microsoft   certification 070-521-Csharp   070-521-Csharp   070-521-Csharp   certification 070-521-Csharp   070-521-Csharp

NO.17 </serviceBehaviors>

NO.18 You are adding a Windows Communication Foundation (WCF) service to an existing application. The
application is configured as follows. (Line numbers are included for reference only.)
01?<configuration>
02 <system.serviceModel>
03 <services>
04 <service name="Contoso.Sales.StockService"
05 behaviorConfiguration="MetadataBehavior">
06 <host>
07 <baseAddresses>
08 <add
baseAddress="http://contoso.com:8080/StockService" />
09 </baseAddresses>
10 </host>
11 </service>
12 </services>
13 <behaviors>
14 <serviceBehaviors>
15 <behavior name="MetadataBehavior">
16 </behavior>

NO.19 </behaviors>
...
You need to configure the service to publish the service metadata.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following XML segment between lines 10 and 11.
<endpoint?address=""
binding="mexHttpBinding"
contract="IMetadataExchange"
/>
B. Add the following XML segment between lines 10 and 11.
<endpoint?address=""
binding="basicHttpBinding"
contract="IMetadataExchange"
/>
C. Add the following XML segment between lines15 and 16.
<serviceDiscovery>
<announcementEndpoints>
<endpoint address=""/>
</announcementEndpoints>
</serviceDiscovery>
D. Add the following XML segment between lines 15 and 16
<serviceMetadata httpGetEnabled="true"/>
Answer: AD

Microsoft   070-521-Csharp   070-521-Csharp examen   certification 070-521-Csharp   070-521-Csharp
17. Four Windows Communication Foundation (WCF) services are hosted in Microsoft Internet
Information Services (IIS). No behavior configuration exists in the web.config file.
You need to configure the application so that every service and endpoint limits the number of concurrent
calls to 50 and the number of concurrent sessions to 25.
Which XML segment should you add to the system.serviceModel configuration section of the web.config
file?
A. <behaviors>
<serviceBehaviors>
<behavior name="*">
<serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
B. <behaviors>
<serviceBehaviors>
<behavior name="default">
<serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
C. <behaviors>
<serviceBehaviors>
<behavior name="">
<serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
D. <behaviors>
<serviceBehaviors>
<behavior name="ALL">
<serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
</behavior>
</serviceBehaviors>
</behaviors>
Answer: C

Microsoft   070-521-Csharp   070-521-Csharp   070-521-Csharp   certification 070-521-Csharp
18. The endpoint of a Windows Communication Foundation (WCF) service uses basicHttpBinding for its
binding. Your company's policies have changed to require that messages not be sent in clear text.
You must ensure that all messages are encrypted when traveling across the network.
What should you do?
A. Set the ProtectionLevel property on the service contract and update the binding attribute in the
endpoint element of the configuration file to wsHttpBinding.
B. Set the ProtectionLevel property on the service contract and update the bindingConfiguration attribute
in the endpoint element of the configuration file to webHttpBinding.
C. Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the
endpoint element of the configuration file to wsHttpBinding.
D. Set the PrincipalPermissionAttribute on the service contract and update the bindingConfiguration
attribute in the endpoint element of the configuration file to wsHttpBinding.
Answer: A

Microsoft examen   070-521-Csharp examen   070-521-Csharp examen   certification 070-521-Csharp   070-521-Csharp

NO.20 You are creating a Windows Communication Foundation (WCF) service to process orders. The data
contract for the order is defined as follows.
[DataContract]
public class Order
{
[DataMember]
public string CardHolderName { get; set; }
[DataMember]
public string CreditCardNumber { get; set; }
}
You have the following requirements:
Enable the transmission of the contents of Order from the clients to the service.
Ensure that the contents of CreditCardNumber are not sent across the network in clear text.
Ensure that the contents of CreditCardNumber are accessible by the service to process the order.
You need to implement the service to meet these requirements.
What should you do?
A. Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData
property to true.
B. Convert the DataContract to a MessageContract and set the ProtectionLevel property to
EncryptAndSign.
C. Change the data type of CreditCardNumber from string to SecureString.
D. Implement the CreditCardNumber property getter and setter. In the setter, run the value of the
CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method.
Answer: B

Microsoft   070-521-Csharp   070-521-Csharp

Vous aurez le service de la mise à jour gratuite pendant un an une fois que vous achetez le produit de Pass4Test. Vous pouvez recevoir les notes immédiatement à propos de aucun changement dans le test ou la nouvelle Q&A sortie. Pass4Test permet tous les clients à réussir le test Microsoft 070-521-Csharp à la première fois.