2016 June Microsoft Official New Released 70-513 Q&As in GreatExam.com!
100% Free Download! 100% Pass Guaranteed!
Are you struggling for the 70-513 exam? Good news, GreatExam Microsoft technical experts have collected all the questions and answers which are updated to cover the knowledge points and enhance candidates’ abilities. We offer the latest 70-513 PDF and VCE dumps with new version VCE player for free download, and the new 70-513 practice test ensures your 70-513 exam 100% pass.
Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)
QUESTION 261
You are developing a custom service host for a Windows Communication Foundation (WCF) service.
The service host is named MovieServiceHost.
You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7.0.
What should you do?
A. Create a factory for the custom service host. Name the factory MovieServiceHostFactory.
In the web.config file, add the following attribute to the <add> element within the
<serviceActivations> element, factory=”HovieServiceHostFactory”
B. Decorate the custom service host class with the following line.
<System.ServiceModel.Activation.ServiceActivationBuildProvider()>
C. Make sure that the service class has a default constructor.
Add a public read-only property with the name ServiceHost that returns an instance of the
MovieServiceHost class.
D. Create a factory for the custom service host. Name the factory MovieServiceHostFactory.
In the .svc file, add the following line.
<%3 ServiceHost Service=”MovieServiceHostFactory” Language=”VB”%>
Answer: A
QUESTION 262
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
QUESTION 263
An existing Windows Communication Foundation (WCF) service uses basicHttpBinding.
You are releasing updates to the service and the client application.
You need to enable the client application to flow transactions to the service.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. Change to a custom binding that has the httpTransport, textMessageEndcoding, and
transactionFlow binding elements in this order.
B. Change to a custom binding that has the transactionFlow, textMessageEncoding, and
httpTransport binding elements in this order.
C. Change the binding to use wsHttpBinding.
D. Change the binding to use basicHttpContextBinding.
Answer: BC
QUESTION 264
A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log.
You need to configure a behavior and apply it to the service to support this requirement.
Which behavior should you configure and apply?
A. serviceAuthenticationManager
B. serviceAuthorization
C. serviceCredentials
D. serviceSecurityAudit
Answer: D
QUESTION 265
You are developing a Windows Communication Foundation (WCF) REST service to provide access to a library book catalog.
The following code segment defines the service contract. (Line numbers are included for reference only.)
Library patrons want the ability to search the catalog by title.
You need to ensure that the GetBookByTitle method is exposed as a service method.
Which code segment should you insert at line 04?
A. [WebGet(UriTemplate = “Book/{title}”)]
B. [WebGet(UriTemplate = “BookByTitle/{title}”)]
C. [WebGet(UriTemplate = “Book/{titleToSearch}”)]
D. [WebGet(UriTemplate = “{titleToSearch}”)]
Answer: B
QUESTION 266
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 IogKnownPii 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 IogKnownPii 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
QUESTION 267
You are developing a Windows Communication Foundation (WCF) service that will be hosted in Microsoft Internet Information Services (IIS) 7.0.
The service must be hosted in an lIS application named Info.
You need to enable this service to be hosted in llS by changing the web.config file.
Which XML segment should you add to the web.config file?
A. <serviceHostingEnvironment>
<senviceActivations>
<add relativeAddress=”Info.svc” service=”Info” />
</serviceActivations>
</serviceHostingEnvironment>
B. <serviceHostingEnvironment>
<serviceActivations>
<add relativeAddress=”Info” service=”Info.svc” />
</serviceActivations>
</serviceHostingEnvironment>
C. <serviceHostingEnvironment>
<transportConfigurationTypes>
<add name=”Info” transportConfigurationType=”Info.svc”/>
</transportConfigurationTypes>
</serviceHostingEnvironment>
D. <serviceHostingEnvironment>
<transportConfigurationTypes>
<add name=”Info.svc” transportConfigurationType=”FileNotRequired” />
</transportConfigurationTypes>
<serviceHostingEnvironment>
Answer: A
QUESTION 268
You create a Windows Communication Foundation (WCF) sen/ice.
It is deployed on Microsoft Internet Information Services (IIS) with an application pool running as Network Service.
You enable WMI tracing before launching the service.
Your IT support staff adds WMI data collection through ASP.NET WMI tracing.
You need to restrict the collection of WMI data to a privileged account.
What should you do in WMI Control in the Computer Management console?
A. Select the Root\aspnet namespace.
Remove Enable account permission for the Network Service account.
Add a custom user and grant that user Enable account permission.
B. Select the Root\aspnet namespace.
Remove Enable account permission for the Local System account.
Add a custom user and grant that user Enable account permission.
C. Select the Root\Security namespace.
Remove Enable account permission for the Local System account.
D. Select the Root\ServiceModel namespace.
Remove Enable account permission for the Network Service account.
Add a custom user and grant that user Enable account permission.
Answer: D
QUESTION 269
You are developing a Windows Communication Foundation (WCF) service to provide shopping cart support. ASP.NET compatibility mode is not enabled.
The shopping cart information must be retained across user visits to the store until the user explicitly empties the cart or submits the cart contents to order.
You need to implement the service as a DurableService.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Use basicHttpBinding for both the client application and the service.
B. Create the persistence provider database and configure the persistenceProvider element of
the service behavior to point to that database.
C. Use wsHttpContextBinding for both the client application and the service.
D. In the method to add an item to the shopping cart, serialize the shopping cart contents after
adding the current item and storing it in a Session variable.
Answer: BC
QUESTION 270
You develop a Windows Communication Foundation (WCF) service to generate reports.
Client applications call the service to initiate report generation but do not wait for the reports to be generated.
The service does not provide any status to the client applications.
The service class is defined as follows. (Line numbers are included for reference only.)
01 <ServiceContract()>
02 Public Class ReportGeneratorService
04 Private Function GenerateReports(
ByVal clientID As Integer) As Integer
05 &
06 Return 0
07 End Function
09 End Class
You need to ensure that client applications can initiate reports without waiting for status.
Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)
A. Insert the following code at line 03.
<OperationContract(IsOneWay:=True)>
B. Insert the following code at line 03.
<OperationContract(AsyncPattern:=False)>
C. At line 04, change the GenerateReports method from Private to Public.
D. Remove line 06.
At line 04, change the type of GenerateReports method to Sub.
Remove the code As Integer from the method definition.
Answer: AD
We ensure our new version 70-513 PDF and VCE dumps are 100% valid for passing exam, because GreatExam is the top IT certification study training materials vendor. Many candidates have passed exam with the help of GreatExam’s VCE or PDF dumps. GreatExam will update the study materials timely to make them be consistent with the current exam. Download the free demo on GreatExam, you can pass the exam easily.
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!!!]