2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com!
100% Free Download! 100% Pass Guaranteed!
GreatExam dumps for 70-513 exam are written to the highest standards of technical accuracy, provided by our certified subject matter experts and published authors for development. We guarantee the best quality and accuracy of our products. We hope you pass the exams successfully with our practice test. With our Microsoft 70-513 practice test, you will pass your exam easily at the first attempt. You can also enjoy 365 days free update for your product.
Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)
QUESTION 281
You are creating a Windows Communication Foundation (WCF) service that implements the following service contract.
<ServiceContract()>
Public Interface IOrderProcessing
<OperationContract()>
Sub ApproveOrder(ByVal id As Integer)
End Interface
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.PossessProperty 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 282
You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.
The ServiceHost instance is created in the Form Constructor.
You need to ensure that the service is not blocked while the UI thread is busy.
What should you do?
A. Decorate the service implementation class with the following line of code
[ServiceBehavior(UseSyncronizationContext = false)]
B. Decorate the service implementation class with the following line of code
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
C. Call the Invoke method of the form and supply a delegate.
D. Call the BeginInvoke method of the form and supply a delegate.
Answer: A
QUESTION 283
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 284
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
QUESTION 285
You develop a Windows Communication Foundation (WCF) service that uses basic authentication for client credentials.
This service is currently configured to use message security.
The service is hosted on a server in workgroup mode.
Users report that their passwords are stolen when they use public computers.
You need to ensure that messages are secure and users are authenticated.
You prevent the service from being called over HTTP through Microsoft Internet Information Services (IIS) configuration.
What should you do next?
A. Use the transportWithMessageCredential security mode and specify Basic for the transport
client credential type.
B. Use the message security mode and specify Basic for the transport client credential type.
C. Use the transport security mode and specify None for transport client credential type.
D. Use the transportWithMessageCredential security mode and specify None for the transport
client credential type.
Answer: B
QUESTION 286
You are developing a Windows Communication Foundation (WCF) service that returns location information for authorized law enforcement agencies.
The service contract is as follows.
Users are authenticated and impersonated.
The system uses ASP.NET roles.
The members of law enforcement are members of the LawEnforcement role.
You need to ensure that only members of the LawEnforcement role can call these methods.
What are two possible ways to achieve this goal (Each correct answer presents a complete solution. Choose two.)
A. Add a PrincipalPermissionAttribute to each method that should be available only to members
of law enforcement.
Set its SecurityAction to Demand and set the role equal to LawEnforcement.
B. Use the CurrentPrincipal property of the thread.
Call the IsInRole method specifying LawEnforcement as a parameter.
C. Create a GenericPrincipal specifying Thread.CurrentPrincipal.Identity as the
IIdentityParameter and LawEnforcement as the only value for the Roles parameter.
D. At the beginning of each method, enumerate each ClaimSet in a new WindowsClaimSet.
Use the FindClaims method to locate a claim type named Role with a right named
LawEnforcement.
Answer: AB
QUESTION 287
You are developing a Windows Communication Foundation (WCF) service named CalculatorService, which implements the ICalculatorService contract.
The service is configured to be discoverable through UDP.
CalculatorService contains multiple endpoints.
One of the endpoints is configured with the following behavior.
You need to log all the endpoint metadata information that is added by the service host.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Part 3 – Mixed Questions
QUESTION 288
A Windows Communication Foundation (WC9 service implements a contract with one-way and requestreply operations.
The service is exposed over a TCP transport Clients use a router to communicate with the service.
The router is impemented as follows. (Line numbers are included for reference only.)
01 Dim host As ServiceHost =
02 New ServiceHost(GetType(RoutingService))
03 hostAddServiceEndpoint(
04 GetType(lSimplexDatagramRouter),
05 New NetTcpBinding0, “net.tcp://localhostlRouter”
06)
07 Dim lep As List(Of ServiceEndpoint) =
08 New List(Of SenviceEndpointx)
09 lepAdd(
10 New ServiceEndpoint(
11 CortractDescription.GetContract(
12 GetType(lSimplexDatagramRouter)
13)1
14 New NetTcpBinding0,x
15 New EndpointAddressf’nettcp://localhost:8080/Logger’)
16)
17)
18 Dim rc As RoutingConfiguration = New RoutingConfiguration()
19 rc . FitterTable.Add(New Matctf4llMessageFilter0, lep)
20 host. Description. Behaviors.Add(New RoutingBehavior(rc)) Request-reply operations are failing.
You need to ensure that the router can handle one-way and request-reply operations.
What should you do?
A. Change line 04 as follows.
Get Type(lRequestReplyRouter),
B. Change line 04 as follows
Get Type(lDuplexSessionRouter),
C. Change line 12 as follows
GetType(lRequestReplyRouter)
D. Change line 12 as follows.
Get Type(IDuplexSessionRouter)
Answer: B
QUESTION 289
You want to debug the Windows Communication Foundation (WCF) client and server interaction through message and application tracing.
You need to correlate traces generated on the client and the server.
Which XML segment should you add to the system.diagnostics configuration element in the client and server application configuration file?
A. <sources>
<source propagateActivity=”true”
name=”System.ServiceModel”
switchValue=”Warning, ActivityTracing”>
<listeners>
<add name=”ServiceModelTraceListener” />
</listeners>
</source>
</sources>
B. <sources>
<source name=”System.ServiceModel.MessageLogging”
switchValue=”Verbose”>
<listeners>
<add name=”ServiceModelTraceListener” />
</listeners>
</source>
</sources>
C. <sources>
<source name=”System.ServiceModel.MessageLogging”
propagateActivity=”true” switchValue=”Warning,
ActivityTracing”>
<listeners>
<add name=”ServiceModelTraceListener” />
</listeners>
</source>
</sources>
D. <sources>
<source name=”System.ServiceModel”
switchValue=”VerboseActivityTracing”>
<listeners>
<add namee”ServiceModelTraceListener” />
</listeners>
</source>
</sources>
Answer: A
QUESTION 290
The following is an example of a SOAP envelope.
<s:Envelope xmlns:s=”http://schemas.xmlsoap.org/soap/envelope”>
<s:Header>
<h:StoreId xmlns:h=”http://www.contoso.com”>6495</h:StoreId>
</s:Header>
<s:Body>
<CheckStockRequest xmlns=”http://www.contoso.com”>
<ItemId>2469<ItemId>
</CheckStockRequest>
</s: Body>
</s:Envelope>
You need to create a message contract that generates the SOAP envelope.
Which code segment should you use?
A. [MessageContract(WrapperName=”http://www.contoso.com”)]
public class CheckStockRequest
{
[MessageHeader(Namespace=”http://www.contoso.com”)]
public int StoreId { get; set; }
[MessageBodyMember(Namespace=”http://www.contoso.com”)]
public int ItemId { get; set; }
}
B. [MessageContract(WrapperNamespace=”http://www.contoso.com”)]
public class CheckStockRequest
{
[MessageHeader(Namespace=”http://www.contoso.com”)]
public int StoreId { get; set; }
[MessageBodyMember(Namespace=”http://www contoso.com”)]
public int ItemId { get; set; }
}
C. [MessageContract(WrapperNamespace=”http://www.contoso.com”)]
public class CheckStockRequest
{
[MessageHeader(Namespace=”http://www.contoso.com”)]
public int StoreId { get; set; }
public int ItemId { get; set; }
}
D. [MessageContract(WrapperNamespace=”http://www.contoso.com”)]
public class CheckStockRequest
{
[MessageHeader(Namespace=”http://www.contoso.com”)]
public int StoreId { get; set; }
[MessageBodyMember]
public int ItemId { get; set; }
}
Answer: B
We offer standard exam questions of Microsoft 70-513 practice test. The standard exams are important if you have never taken a real exam. The accuracy of the Q&As are fully guaranteed and the number is enough to impact you passing the exam.
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!!!]