2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com!
100% Free Download! 100% Pass Guaranteed!
You can prepare for Microsoft 70-513 exam with little effort because GreatExam is now at your service to act as a guide to pass Microsoft 70-513 exam. Our Microsoft 70-513 braindumps are rich in variety. We offer Microsoft 70-513 PDF dumps and Microsoft 70-513 VCE. Both are the newest version.
Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)
QUESTION 121
You are hosting a Windows Communication Foundation (WCF) service under Microsoft Interent Information Services (IIS) 7.0.
You have set up a web site in IIS Manager.
The physical path is c:\wwwroot\Calendar.
There is a Calendar.svc file in the c:\wwwroot\Calendar folder.
It contains the following directive:
<% @ServiceHost Language=”C#” Debug=”true” Service=”Calendar.Calendar” CodeBehind=”CalendarSvc.cs” %>
The CalendarSvc.cs file contains the source for the Calendar class in the Calendar namespace.
You compile this code into the Calendar.dll file.
You need to deploy your service to the web site.
What should you do?
A. Copy the Calendar.dll file to the c:\wwwroot\Calendar\code folder
B. Copy the Calendar.dll file to the c:\wwwroot\Calendar\bin folder
C. Copy the Calendar.svc.cs file to the c:\wwwroot\Calendar\bin folder
D. Copy the Calendar.svc.cs file to the c:\wwwroot\Calendar\code folder
Answer: B
QUESTION 122
You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started.
The message is defined as follows:
[MessageContract]
public class Agent
{
public string CodeName { get; set; }
public string SecretHandshake { get; set; }
}
You have the following requirements:
– The CodeName property must be sent in clear text.
– The service must be able to verify that the property value was not changed after being sent by the client.
– The SecretHandshake property must not be sent in clear text and must be readable by the service.
What should you do?
A. Add a MessageBodyMember attribute to the CodeName property and set the
ProtectionLevel to Sign.
Add a MessageBodyMember attribute to the SecretHandshake property and set the
ProtectionLevel to EncryptAndSign.
B. Add a DataProtectionPermission attribute to the each property and set the ProtectData
property to true.
C. Add an xmlText attribute to the CodeName property and set the DataType property to Signed.
Add a PasswordPropertyText attribute to the SecretHandshake property and set its value to
true.
D. Add an ImmutableObject attribute to the CodeName property and set its value property to true.
Add a Browsable attribute to the SecretHandshake property and set its value to false.
Answer: A
QUESTION 123
You implement a Windows Communication Foundation (WCF) service.
You must process all of the valid SOAP messages that the service receives.
What should you do?
A. On the OperationContractAttribute, call the Match method.
B. Call the Message.CreateMessage static method.
Pass the value MessageVersion.Default as a parameter.
C. On the OperationContractAttribute of a method, set the value of the Action and ReplyAction
properties to *.
D. On the OperationContractAttribute of a method, set the value of the Action and ReplyAction
properties to ?.
Answer: A
QUESTION 124
You are creating a Windows Communication Foundation (WCF) service that implements the following service contract.
[ServiceContract]
public interface IOrderProcessing
{
[OperationContract]
void ApproveOrder(int id);
}
You need to ensure that only users with the Manager role can call the ApproveOrder method. What should you do?
A. In the method body, check the Rights PosessesProperty property to see if it contains
Manager
B. Add a PrincipalPermission attribute to the method and set the Roles property to Manager
C. Add a SecurityPermission attribute to the method and set the SecurityAction to Demand
D. In the method body, create a new instance of WindowsClaimSet.
Use the FindClaims method to locate a claimType named Role with a right named Manager
Answer: B
QUESTION 125
You are implementing a Windows Communication Foundation (WCF) service contract named lContosoService in a class named ContosoService.
The service occasionally fails due to an exception being thrown at the service.
You need to send the stack trace of any unhandled exceptions to clients as a fault message. What should you do?
A. In the application configuration file on the client, add the following XML segment to the
system.serviceModel/behaviors configuration section group.
<endpointBehaviors>
<behavior name=”debug”>
<callbackDebug includeExceptionDetaillnFaults=”true” />
</behavior>
</endpointBehaviors>
Associate the debug behavior with any endpoints that need to return exception details.
B. In the application configuration file on the service and all the clients, add the following
XML segment to the system.diagnostics/sources configuration section group.
<source name=”System.ServiceModel”
switchValue=”Error” propagateActivty=”true”>
<listeners>
<add name=”ServiceModelTraceListener”
initializeData=”appntracelog.svclog”
type=”System.Diagnostics.XmlWriterTraceListener” />
</listeners>
</source>
C. Apply the following attribute to the ContosoService class.
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
D. For each OperationContract exposed by lContosoService, apply the following attribute.
[FaultContract(typeof(Exception))]
Answer: C
QUESTION 126
A Windows Communication Foundation (WCF) solution uses two services to manage a shopping cart.
Service A processes messages containing line items that total between $0 and $500.
Service B processes messages containing line items that total more than $500.
All messages are of equal importance to the business logic.
You need to route incoming messages to the appropriate services by using WCF routing.
Which two message filters should you add to the router? (Each correct answer presents part of the solution. Choose two.)
A. a message filter with a priority of 100 that will forward messages that total between $0 and
$500 to Service A
B. a message filter with a priority of 0 that will forward messages that total between $0 and
$500 to Service A
C. a message filter with a priority of 0 that will forward all messages to Service B
D. a message filter with a priority of 100 that will forward all messages to Service B
Answer: AC
QUESTION 127
You develop a Windows Communication Foundation (WCF) service that contains the following code segment. (Line numbers are included for reference only.)
You need to ensure that all service endpoints are available to client applications.
Which code segment should you insert at line 04?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
QUESTION 128
Drag and Drop Question
You are preparing to deploy a Windows Communication Foundation (WCF) service to a production environment.
The service must not be vulnerable to a man-in-the-middle attack.
You need to configure the service to use X.509 certificate security.
Which four actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Answer:
QUESTION 129
You are developing a Windows Communication Foundation (WCF) service.
The service configuration file has a <System.Diagnostics> element defined.
You need to ensure that all security audit information, trace logging, and message logging failures are recorded.
Which configuration segment should you add to the <System.Diagnostics> element?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
QUESTION 130
You are creating a client application and configuring it to call a Windows Communication Foundation (WCF) service.
When the application is deployed, it will be configured to send all messages to a WCF routing service.
You need to ensure that the application can consume the target service after the application is deployed.
What should you do?
A. In the client application, add a service reference to the router service.
In the client binding configuration, specify the address of the router service.
B. In the client application, add a service reference to the target service.
In the client binding configuration, specify the address of the target service.
C. In the client application, add a service reference to the router service.
In the client binding configuration, specify the address of the target service.
D. In the client application, add a service reference to the target service.
In the client binding configuration, specify the address of the router service.
Answer: D
Microsoft Certification 70-513 certificate are those engaged in IT industry’s dream. You need to choose the professional training by GreatExam Microsoft 70-513 practice test. GreatExam will be with you, and to ensure the success wherever you may increase pursuit your career. Let GreatExam take all your heart, let the dream to reality!
2016 Microsoft 70-513 exam dumps (All 341 Q&As) from GreatExam:
http://www.greatexam.com/70-513-exam-questions.html [100% Exam Pass Guaranteed!!!]