Microsoft Microsoft Visual Studio 2012

Microsoft 70-513 Test,Most Reliable Microsoft 70-513 Certificate With The Knowledge And Skills

GOOD NEWS: All the new Microsoft 70-513 exam questions and answers can get in VCE and PDF format for free on Flydumps.com With Flydumps Microsoft 70-513 practice tests, you will pass the exam easily! Free download Microsoft 70-513 exam questions vce player all the time.

Exam A
QUESTION 1
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?

Correct Answer: A QUESTION 2
You have an existing Windows Communication Foundation (WCF) service. You need to ensure that other services are notified when the service is started. What should you do?
A. Add the following standard endpoint to the service. <endpoint name=”udpAnnouncementEndpoint” kind=”udpDiscoveryEndpoint” />
B. Add the following standard endpoint to the service.
<endpoint name=”udpDiscoveryEndpoint”
kind=”udpAnnouncementEndpoint” />
C. Add a service behavior with the following element. <serviceDiscovery> <announcementEndpoints> <endpoint kind=”udpDiscoveryEndpoint” /> </announcementEndpoints> </serviceDiscovery>
D. Add a service behavior with the following element. <serviceDiscovery> <announcementEndpoints> <endpoint kind=”udpAnnouncementEndpoint” /> </announcementEndpoints> </serviceDiscovery>

Correct Answer: D
QUESTION 3
You develop a Windows Communication Foundation (WCF) service. You enable all performance counters and run multiple calls to the service.
The service must isolate session data for each user.
You need to monitor the instancing behavior used in the service.
Which performance counter should you monitor?
A. ServiceModelService 4.0.0.0\Calls
B. ServiceModelService 4.0.0.0\Instances
C. ASP.NET State Service\State Server Sessions Active
D. ASP.NET State Service\State Server Sessions Total
Correct Answer: B
QUESTION 4
You develop a Windows Communication Foundation (WCF) service.
You name the service MovieService in the Movie namespace. The service is hosted in Microsoft Internet Information Services (IIS).
You copy the assembly containing the service to the bin folder in the virtual directory path.
You need to set up the URI that is mapped to the service.
What should you do?
A. Add the following code segment to the web.config file. <serviceHostingEnvironment> <serviceActivations> odd relativeAddress=”./Movie” service=”Movie.MovieService”/> </serviceAct ivations> </serviceHostingEnvironment>
B. Add a Movie.svc file in the root of the virtual path with the following line. <%8ServiceHost language=”C#” Service=”MovieService”*>
C. Add the following code segment to the web.config file. <serviceHostingEnvironment> <serviceActivations> odd relativeAddress=” . /Movie, svc” service=”Hovie.MovieService”/> </serviceActivations> </serviceHostingEnvirorunent>
D. Add a Movie.svc file in the root of the virtual path with the following line. <%8ServiceHost language=”C#” Service=”MovieService.svc”%>
Correct Answer: B Exam B

QUESTION 1
A Windows Communication Foundation (WCF) service that handles corporate accounting must be changed to comply with government regulations of auditing and accountability.
You need to configure the WCF service to execute under the Windows logged-on identity of the calling application.
What should you do?
A. Within the service configuration, add a serviceAuthorization behavior to the service, and set impersonateCallerForAllOperations to true.
B. Within the service configuration, add a serviceAuthenticationManager behavior to the service, and set serviceAuthenticationManagerType to Impersonate.
C. Within the service configuration, add a serviceSecurityAudit behavior to the service, and set serviceAuthorizationAuditLevel to SuccessOrFailure.
D. Within the service configuration, add a serviceCredentials behavior to the service, and set type to Impersonate.
Correct Answer: A
QUESTION 2
A Windows Communication Foundation (WCF) solution uses the following contract to share a message across its clients. (Line numbers are included for reference
only.)

01 <ServiceContract()>
02 Public Interface ITeamMessageService
03
04 <OperationContract()>
05 Function GetMessage() As String
06
07 <OperationContract()>
08 Sub PutMessage(ByVal message As String)
09 End Interface
The code for the service class is as follows.
10 Public Class TeamMessageService
11 Implements ITeamMessageService
12
13 Dim key As Guid = Guid.NewGuid()
14 Dim message As String = “Today s Message”
15
16 Public Function GetMessage() As String _
17 Implements ITeamMessageService.GetMessage
18
19 Return String.Format(“Message:{0}. Key:{1}”, message, key)
20 End Function
21
22 Public Sub PutMessage(ByVal message As String) _
23 Implements ITeamMessageService.PutMessage
24
25 Me.message = message
26 End Sub
27
28 End Class
The service is self-hosted. The hosting code is as follows.
29 Dim host As ServiceHost =
New ServiceHost(GetType(TeamMessageService))
30 Dim binding As BasicHttpBinding =
New BasicHttpBinding(BasicHttpSecurityMode.None)
31 host.AddServiceEndpoint(
“MyApplication.ITeamMessageService”, binding,
“http://localhost:12345”)
32 host.Open()
You need to ensure that all clients calling GetMessage will retrieve the updated string if the message is updated by any client calling PutMessage.

What should you do?

A. Add the following attribute to the TeamMessageService class, before line 10. <ServiceBehavior(InstanceContextMode:=InstanceContextMode.Single)>
B. Add the following attribute to the TeamMessageService class, before line 10002E <ServiceBehavior(InstanceContextMode:= InstanceContextMode.PerSession)>
C. Pass a service instance to the instancing code in line 29, as follows. Dim host As ServiceHost = New ServiceHost(New TeamMessageService())
D. Redefine the message string in line 14, as follows. Shared message As String = “Today s Message”
E. Then change the implementation of PutMessage in lines 22-26 to the following. Public Sub PutMessage(ByVal message As String) _ Implements ITeamMessageService.PutMessage TeamMessageService.message = message End Sub
Correct Answer: A
QUESTION 3
You are creating a Window s Communication Foundation (WCF) service application. The application needs to service many clients and requests simultaneously.
The application also needs to ensure subsequent individual client requests provide a stateful conversation.
You need to configure the service to support these requirements.
Which attribute should you add to the class that is implementing the service?
A. [ ServiceBehavior ( InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Single )]
B. [ ServiceBehavior ( InstanceContextMode = InstanceContextMode.PerCall,
ConcurrencyMode = ConcurrencyMode.Reentrant )]
C. [ ServiceBehavior ( InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Multiple )]
D. [ ServiceBehavior ( InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple )]
Correct Answer: C
QUESTION 4
You are configuring services to be discoverable. The services must be discoverable without relying on a central server. Client applications that consume the
services are on a network segment that is separate from the network segment that the services are located on.
A firewall blocks all TCP ports between the two network segments, but allows other protocols to pass through.
You need to ensure that the client applications can discover the services.
What should you do?

A. Use ad-hoc discovery mode over HTTP.
B. Use ad-hoc discovery mode over UDP.
C. Use managed discovery mode over HTTP.
D. Use managed discovery mode over UDP.
Correct Answer: B QUESTION 5
You need to modify a client application that consumes a Windows Communication Foundation (WCF) service.
The service metadata is no longer available.
You need to modify the previously generated proxy to include asynchronous calls to the service.
What should you do?

A. Update the service reference with the Generate asynchronous operations option.
B. Create a partial class for the previously generated proxy and include the new asynchronous methods.
C. Create a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy.
D. Create a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy.

Correct Answer: B QUESTION 6
You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an intranet application and is currently unsecured.
You need to ensure that the service meets the following requirements:
The service now must be exposed as an Internet application. The service must be secured at the transport level. Impersonation and delegation cannot be enabled.
What should you use?

A. wsHttpBinding and HTTPS
B. basicHttpBinding and Kerberos
C. basicHttpBinding and HTTP
D. wsHttpBinding and Kerberos

Correct Answer: A QUESTION 7
You are developing a Windows Communication Foundation (WCF) service.
You need to enable security auditing for all events.
What should you do?

A. Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.
B. Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.
C. Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.
D. Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.

Correct Answer: C QUESTION 8
You are developing a Windows Communication Foundation (WCF) service. You enable logging in the configuration file. The opening tag is defined as follows.

You need to ensure that logging is implemented so that only messages with SOAP headers are logged. What should you add to the filters element of the application configuration file?
Correct Answer: C QUESTION 9
You develop a Windows Communication Foundation (WCF) service. You enable all performance counters and run multiple calls to the service.
The service must isolate session data for each user.
You need to monitor the instancing behavior used in the service.
Which performance counter should you monitor?

A. ServiceModelService 4.0.0.0\Calls
B. ServiceModelService 4.0.0.0\Instances
C. ASP.NET State Service\State Server Sessions Active
D. ASP.NET State Service\State Server Sessions Total

Correct Answer: B QUESTION 10
A service implements the following contract. (Line numbers are included for reference only.)

The service is implemented as follows.

ContosoService uses NetMsmqBinding to listen for messages. The queue was set up to use transactions for adding and removing messages.
You need to ensure that OperationOne and OperationTwo execute under the same transaction context when they are invoked in the same session.
What should you do?
A. Insert the following attribute to OperationOne on IContosoService. <TransactionFlow(TransactionFlowOption.Mandatory)> Insert the following attribute to OperationTwo on IContosoService. <TransactionFlow(TransactionFlowOption.Mandatory)>
B. Insert the following attribute to OperationOne on ContosoService. <OperationBehavior( TransactionScopeRequired:=True, TransactionAutoComplete:=False)> Insert the following attribute to OperationTwo on ContosoService. <OperationBehavior (TransactionScopeRequired:=True, TransactionAutoComplete:=True)>
C. Add the following XML segment to the application config file in the system.serviceModel/bindings configuration section. <netMsmqBinding> <binding name=”contosoTx” durable=”true” receiveContextEnabled=”true” /> </netMsmqBinding> Then use the NetMsmqBinding named contosoTx to listen for messages from the clients.
D. Add the following XML segment to the application config file in the system.serviceModel/bindings configuration section. <customBinding> <binding name=”contosoTx”> <transactionFlow /> <binaryMessageEncoding /> <msmqTransport durable=”true” /> </binding> </customBinding> Then use the CustomBinding named contosoTx to listen for messages from the clients.

Correct Answer: B
QUESTION 11
You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.
The Windows Service class will inherit from ServiceBase.
You need to ensure that the WCF service starts when the Windows Service is restarted.
What should you do in the Windows Service class?
A. Create a public method named Main. Create a new ServiceHost in the Main method. Override the OnShutdown method and close the ServiceHost.
B. Override the OnStart method and create and open a new ServiceHost. Override the OnStop method and close the ServiceHost.
C. Override the OnPowerEvent method and open a new ServiceHost. Override the OnShutdown method and close the ServiceHost.
D. Override the OnContinue method and open a new ServiceHost. Override the OnStop method and close the ServiceHost.
Correct Answer: B
QUESTION 12
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?

Correct Answer: C
QUESTION 13
You are modifying a Windows Communication Foundation (WCF) service that allows customers to update financial data. The service currently requires a transaction from the client application and is working correctly. The service contract is defined as follows. (Line numbers are included for reference only.)

The service must be modified so that client applications do not need to initiate a transaction when calling the operation. The service must use the client
application’s transaction if one is available. Otherwise it must use its own transaction.
You need to ensure that the service operation is always executed within a transaction.
What should you do?
Correct Answer: D QUESTION 14
You have a Windows Communication Foundation (WCF) service.

The service has issues with performance when it receives messages on a specific endpoint. The service must collect the minimum number of performance
counters to diagnose the message issues.
You need to configure the service.
In the web.config file for the service, what should you do?

A. In the service configuration diagnostics section, set the value of the performancCounters property to All.
B. Enable message logging for the endpoint.
C. Enable the Windows Management Instrumentation (WMI) provider.
D. In the service configuration diagnostics section, set the value of the performanceCounters property to ServiceOnly.

Correct Answer: A QUESTION 15
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
{

[DataMemberl
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 SignAndEncrypt
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

Correct Answer: B QUESTION 16
You are hosting a Windows Communication Foundation (WCF) service at http://www.contoso.com for a law enforcement agency. The agency adds operations to
support sending biometric fingerprint data via non-buffered streaming. The service data is not routed between intermediaries.
The WCF binding you are using by default does not support encryption.
You need to ensure that fingerprint data is not disclosed when it is passed over the network.
What should you do?

A. Use basicHttpBinding with message security to https://www.contoso.com.
B. Use basicHttpBinding over transport security at https://www.contoso.com.
C. Use wsHttpBinding over message security at https://www.contoso.com.
D. Use wsHttpBinding over transport security at http://www.contoso.com.

Correct Answer: B QUESTION 17
You create a service and deploy it on a network in a building named Building1. You will deploy the service to Building2.
The service in Building1 is configured using the following discovery scopes.
<scopes>
<add
scope=”http://contoso.com/Chicago/Building1″/>
<add
scope=”ldap:///ou=Building1,ou=Chicago,o=contoso,c=us”/>
</scopes>
The service in Building2 will be configured using the following discovery scopes.
<scopes>
<add
scope=”http://contoso.com/Chicago/Building2″/>
<add
scope=”ldap:///ou=Building2,ou=Chicago,o=contoso,c=us”/>
</scopes>
You need to ensure that the client application can discover the service in Building1 or the service in Building2.
Which scopes should you add to the client configuration file?

A. <scopes> <add scope=”http://contoso.com/Chicago/*”/> </scopes>
B. <scopes> <add scope=”http://contoso.com/Chicago”/> </scopes>
C. <scopes> <add scope=”ldap:///ou=Building,ou=Chicago,o=contoso,c=us”/> </scopes>
D. <scopes> <add scope=”ldap:///ou=*,o=contoso,c=us”/> </scopes>

Correct Answer: B QUESTION 18
A Windows Communication Foundation (WCF) service only accepts messages that are signed and encrypted a client application is not receiving expected responses from the service.
You need to enable logging to verity that the messages from the client are signed and encrypted.
You also need to see what each message looks like before the message body is deserialized into a
NET object what should you do?
A. Configure the System Service Model trace source in the system diagnostics configuration section. In the system service Model configuration add the following xML segment <diagnostics> <message Logging log Entire Messages” true logMessagesAtServiceLeveIetrue” logMessagesAtTransportLeveletrue” /> </diagnostics>
B. Configure the System. Service Model trace source in the system diagnostics configuration section. In the system.serviceModel configuration, add the following XML segment, <diagnostics> <message Logging log Entire Message=” true log Messages t Service LeveI-true’ Is <diagnostics>
C. Configure the System. Service Model Message Logging trace source in the system diagnostics configuration sectionIn the system. service Model configuration, add the following XML segment. <diagnostics> <message Logging log Entire Message=’ true Iog Messages At Service LeveI true” log Messages At Transport Level=true” I> <Idiagnostics>
D. Configure the System. Service Model Message Logging trace source in the system. diagnostics configuration section. In the system service Model configuration, add the following xML segment <diagnostics> <message Logging Iog Messages At Service Levele true” log Messages At Transport Levele”true” 1> </diagnostics>

Correct Answer: C
QUESTION 19
You are modifying a Windows Communication Foundation (WCF) service that allows customers to update financial data. The service currently requires a transaction from the client application and is working correctly. The service contract is defined as follows. (Line numbers are included for reference only.)

The service must be modified so that client applications do not need to initiate a transaction when calling the operation. The service must use the client application’s transaction if one is available. Otherwise it must use its own transaction.
You need to ensure that the service operation is always executed within a transaction.
What should you do?
A. Replace line 05 with the following code. <TransactionFlow( TransactionFlowOption.NotAliowed)>
B. Replace line 13 with the following code. <OperationBehavior( TransactionScopeRequired:”False, TransactionAutoComplete:-True)>
C. Replace line 05 with the following code. <TransactionFlow( TransactionFlowOption.Allowed) >
D. Replace line 13 with the following code.
<OperatlonBehavior(
TransaetionScopeRequired:”False,
TransactionAutoComplete:”False)>
Correct Answer: B
QUESTION 20
You are developing a Windows Communication Foundation (WCF) service. You enable message logging, trace listeners, activity propagation, and tracing on the trace sources.
You have the following code segment in the client application. (Line numbers are included for reference only.)

You encounter errors when your client application consumes the service. You need to ensure that your client application can correlate tracing information with the service.
Which code segment should you add at line 04?
Correct Answer: C

Get certified Microsoft 70-513 is a guaranteed way to succeed with IT careers.We help you do exactly that with our high quality Microsoft 70-513 Certification Certified Information Systems Security Professional training materials.

microdess
We are a team that focuses on tutoring Microsoft series certification exams and is committed to providing efficient and practical learning resources and exam preparation support to candidates. As Microsoft series certifications such as Azure, Microsoft 365, Power Platform, Windows, and Graph become more and more popular, we know the importance of these certifications for personal career development and corporate competitiveness. Therefore, we rely on the Pass4itsure platform to actively collect the latest and most comprehensive examination questions to provide candidates with the latest and most accurate preparation materials. MICROSOFT-TECHNET not only provides the latest exam questions, but also allows candidates to find the required learning materials more conveniently and efficiently through detailed organization and classification. Our materials include a large number of mock test questions and detailed analysis to help candidates deeply understand the test content and master the answering skills, so as to easily cope with the test. In addition, we have also specially launched exam preparation materials in PDF format to facilitate candidates to study and review anytime and anywhere. It not only contains detailed analysis of exam questions, but also provides targeted study suggestions and preparation techniques so that candidates can prepare more efficiently. We know that preparing for exams is not just about memorizing knowledge points, but also requires mastering the correct methods and techniques. Therefore, we also provide a series of simulation questions so that candidates can experience the real examination environment in the simulation examination and better adapt to the examination rhythm and atmosphere. These simulation questions can not only help candidates test their preparation results, but also help candidates discover their own shortcomings and further improve their preparation plans. In short, our team always adheres to the needs of candidates as the guide and provides comprehensive, efficient and practical test preparation support to candidates. We believe that with our help, more and more candidates will be able to successfully pass the Microsoft series certification exams and realize their career dreams.