2014 Latest Pass4sure&Lead2pass Microsoft 70-513 Dumps (31-40)

QUESTION 31
You are creating an ASP.NET web application that hosts several Windows Communication Foundation (WCF) services.
The services have ASP.NET Compatibility Mode enabled. Users authenticate with the Web application by using a cookie-based ASP.NET Forms Authentication model.
You add a service file named Authentication.svc that contains the following code segment:
<%@ ServiceHost Service=”System.Web.ApplicationServices.AuthenticationService”
Factory=”System.Web.ApplicationServices.ApplicationServicesHostFactory” %>
You need to ensure that users can access the WCF services without having to re-authenticate.
Which two configuration settings should you add? (Each is part of a complete solution. Choose two.)

A.    In the system web. Extensions scripting/webServices/authenticationService element, set the enabled
attribute to true.
B.    In the system web. Extensions scripting/webServices/profileService element, set the enabled attribute to true.
C.    Add a service endpoint with basicHttpBinding for the contract System.Web.ApplicationServices.
AuthenticationService.
D.    Add a custom service behavior named AuthenticationService Type Behaviors with a service
AuthenticationManager element
that has service AuthenticationManagerType set to System.Web.Security.SQL Membership Provider

Answer: AC

QUESTION 32
A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP binding with a custom principal permission mode.
The binding requires users to provide their Windows logon credentials. You need to retrieve the identity of the caller.
What are two possible properties you can use to achieve this goal? (Each correct answer presents a complete solution Choose two)

A.    Thread.CurrentPrincipal.Identity.Name
B.    HttpContext.Current.User.Identity.Name
C.    ServiceSecurityContext.Current.PrimaryIdentity.Name
D.    OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name

Answer: CD

QUESTION 33
You are creating a Windows Communication Foundation (WCF) service that accepts claims-based tokens.
You need to ensure that the service can use claims from trading partners even though there are variations on naming for the same elements.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    Register a custom Service Authorization Manager that implements Check Access.
In this method, use System.Convert.ChangeType to transform the incoming claim set to a
WindowsClaimSet type.
B.    Apply a PrincipalPermission attribute on the operation with the required claims listed in the Roles property.
C.    Within the operation, verify the presence of the required claims in the current AuthorizationContext.
D.    Register an AuthorizationPolicy that maps external claims to an internal ClaimSet.

Answer: CD

QUESTION 34
A Windows Communication Foundation (WCF) service uses a list of application-defined roles for operations.
These roles are stored in a database. You need to authorize calls against the list of roles retrieved from the database.
Which service behavior should you use to authorize the calls?

A.    <serviceAuthorization principalPermissionMode=”None” roleProviderName=”SqlProvider” />
B.    <serviceAuthorization principalPermissionMode=”None” roleProviderName=”SqlProvider” />
C.    <serviceAuthorization principalPermissionMode=”None” roleProviderName=”SqlProvider” />
D.    <serviceAuthorization principalPermissionMode=”None” roleProviderName=”SqlProvider” />

Answer: B

QUESTION 35
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 36
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 verify 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.ServiceModel trace source in the system.diagnostics configuration section.
In the system.serviceModel configuration, add the following XML segment:
<diagnostics>
<messageLogging logEntireMessage=”true” logMessagesAtServiceLeveI=”true”
logMessagesAtTransportLevel=”true” />
</diagnostics>
B.    Configure the System.ServiceModel trace source in the system.diagnostics configuration section.
In the system.serviceModel configuration, add the following XML segment:
<diagnostics>
<messageLogging logEntireMessage=”true” logMessagesAtServiceLeveI=”true” />
</diagnostics>
C.    Configure the System.ServiceModel.MessageLogging trace source in the system.diagnostics configuration
section. In the system.serviceModel configuration, add the following XML segment:
<diagnostics>
<messageLogging logEntireMessage=”true” logMessagesAtServiceLeveI=”true”
logMessagesAtTransportLevel=”true” />
</diagnostics>
D.    Configure the System.ServiceModel.MessageLogging trace source in the system.diagnostics configuration
section.
In the system.serviceModel configuration, add the following XML segment:
<diagnostics>
<messageLogging logMessagesAtServiceLevel=”true” logMessagesAtTransportLevel
=”true” />
</diagnostics>

Answer: C

QUESTION 37
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 38
You are using tracing to diagnose run-time issues.When you look at the traces for the service in SvcTraceViewer.exe, you see what is shown in the exhibit:

image
The exception trace is selected in SvcTraceViewer.exe. You need to interpret the trace results to determine where the error occurred and what to do next.
What should you do?

A.    This issue occurred in the ServiceHost during ServiceHost.Open().
Enable WMI by adding the following configuration to the system.serviceModel configuration section in
the application configuration file
<diagnostics wmiProviderEnabled=”true”/>
Restart the application and inspect the endpoints visible through WMI.
B.    This issue occurred in the ServiceHost during ServiceHost.Open().
Compare the security settings for any endpoints that use an MSMQ transport to the security configuration
of the MSMQ queue used by the endpoint.
C.    This issue occurred at the ServiceHost when receiving a message.
Compare the security configurations on the client and server to make sure that they are compatible.
D.    This issue occurred at the ServiceHost when accepting an initial set of messages from MSMQ.
Log all messages sent between the client and the sever.

Answer: B

QUESTION 39
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.Stock.Service”
05             behaviorConfiguration=”MetadataBehavior”>
06             <host>
07                <baseAddresses>
08                   <add baseAddress=”http://contosso.com:8080/StockService” />
09                </baseAddresses>
10             </host>
11          </service>
12       </services>
13       <behaviors>
14          <serviceBehaviors>
15             <behavior name=”MetadataBehavior”>
16             </behavior>
17          </serviceBehaviors>
18       </behaviors>
19   …
You need to configure the service to publish the service metadata.
Which two actions should you perform? (Each answer presents part of the solution. Choose two.)

A.    Add the following XML segment between lines 10 and 11:
<endpoint address=”” binding=”mexHttpBinding” contract=”MetadataExchange” />
B.    Add the following XML segment between lines 10 and 11:
<endpoint address=”” binding=”basicHttpBinding” contract=”MetadataExchange” />
C.    Add the following XML segment between lines 15 and 16:
<serviceDiscovery>
<anouncementEndpoints>
<endpoint address=””/>
</anouncementEndpoints>
</serviceDiscovery>
D.    Add the following XML segment between lines 15 and 16:
<serviceMetadata httpGetEnabled=”true” />

Answer: AD

QUESTION 40
You are modifying a Windows Communication Foundation (WCF) service that issues security tokens.
The service is accessible through the named pipe protocol. No endpoints are added in the service code.
The configuration file for the service is as follows. (Line numbers are included for reference only)
01 <configuration>
02    <system.serviceModel>
03       <services>
04          <service name=”Contoso.TokenService”>
05             …
06             <host>
07                <baseAddress>
08                   …
09                   <add baseAddress=”net.pipe://www.contoso.com/tokenpipe” />
10                <baseAddress>
11             </host>
12          </service>
13       </services>
14    </system.serviceModel>
15 </configuration>
You need to ensure that the existing client applications can access the service through HTTP and named pipes.
What should you do?

A.    Insert the following at line 05:
<endPoint address=”http://www.contoso.com” binding=”wsHttpBinding”
contract=”Contoso.TokenService” />
B.    Insert the following at line 05:
<endPoint address=”http://www.contoso.com” binding=”basicHttpBinding”
contract=”Contoso.TokenService” />
C.    Insert the followin at line 08:
<add baseAddress=”http://www.contoso.com” />
D.    Insert the followin at line 08:
<add baseAddress=”http://www.contoso.com:8080″ />

Answer: C

If you want to pass Microsoft 70-513 successfully, donot missing to read latest lead2pass Microsoft 70-513 practice tests.
If you can master all lead2pass questions you will able to pass 100% guaranteed.

http://www.lead2pass.com/70-513.html

         

Comments are closed.