News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Mcq Answers for WCF

  1. Set the ProtectionLevelAttnbute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding

  2. Set the ProtectionLevelAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to webHttpBinding

  3. Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding

  4. Set the PrincipalPermissionAttribute on the service contract and update the bindingConflguration attribute in the endpoint element of the configuration file to wsHttpBinding.

Answer: Answer is a

  1. Apply a ServiceBehavior attribute to the service implementation class with the lnstanceContextMode property set to Single.

  2. In the message security configuration, change clientCredentialType from lssuedToken to UserName

  3. In the message security configuration, set establishSecurityContext to false.

  4. At the end of every operation, call the SessionStateUtility.RaiseSessionEnd method.

Answer: Answer is c

  1. the Certificate property of the X509CertificatelnitiatorServiceCredential class

  2. the SetCertificate method of the X509CertificatelnitiatorServiceCredential class

  3. the SetCertificate method of the X509CertificateRecipientServiceCredential class

  4. the TrustedStoreLocation property of the X509CertificateRecipientServiceCredential class

Answer: Answer is c

<%@ 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.)

  1. In the system web. Extensions scripting/web Services/authentication Service element, set the enabled attribute to true.

  2. In the system web. Extensions scripting/web Services/profile Service element, set the enabled attribute to true.

  3. Add a service endpoint with basicHttpBinding for the contract System.Web.ApplicationServices. Authentication Service.

  4. Add a custom service behavior named Authentication Service Type Behaviors with a service AuthenticationManager element that has service AuthenticationManagerType set to System.Web.Security. SQL Membership Provider

Answer: Answer is a, c

  1. Thread.CurrentPrincipal.Identity.Name

  2. HttpContext.Current.User.Identity.Name

  3. ServiceSecurityContext.Current.PrimaryIdentity.Name

  4. OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name

Answer: Answer is c, d

  1. Register a custom Service Authorization Manager that implements Check Access In this method, use System. Convert. Change Type to transform the incoming claim set to a Windows Claim Set type.

  2. Apply a Principal Permission attribute on the operation with the required claims listed in the Roles property.

  3. Within the operation, verify the presence of the required claims in the current Authorization Context

  4. Register an Authorization Policy that maps external claims to an internal Claim Set.

Answer: Answer is c, d

  1. <serviceAuthorization principalPermissionMode="None" roleProviderName="SqlProvider" />
  2. <serviceAuthorization principalPermissionMode="None" roleProviderName="SqlProvider" />
  3. <serviceAuthorization principalPermissionMode="None" roleProviderName="SqlProvider" />
  4. <serviceAuthorization principalPermissionMode="None" roleProviderName="SqlProvider" />
Answer: Answer is b

  1. serviceAuthenticationManager

  2. serviceAuthorization

  3. serviceCredentials

  4. serviceSecurityAudit

Answer: Answer is d

  1. 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>
  2. 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>
  3. 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" IogMessagesAtServiceLeveI="true" logMessagesAtTransportLevel="true" />
    </diagnostics>
  4. Configure the System.ServiceModel MessageLogging trace source in the system.diagnostics configuration section. In the system service.Model configuration, add the following XML segment

    <diagnostics>
    <messageLogging IogMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" />
    </diagnostics>
Answer: Answer is c

  1. <sources>
    <source propagateActivity='true" name="System.ServiceModel" switchValue="Warning, ActivityTracing">
    <listeners>
    <add name="ServiceModelTraceListener" />
    </listeners>
    </source>
    </sources>
  2. <sources>
    <source name="System.ServiceModel.MessageLogging" switchValue="Verbose">
    <listeners>
    <add name="ServiceModelTraceListener" />
    </listeners>
    </source>
    </sources>
  3. <sources>
    <source name="System.ServiceModel.MessageLogging" propagateActivity="true" switchValue="Warning,
    ActivityTracing">
    <listeners>
    <add name="ServiceModelTraceListener" />
    </listeners>
    </source>
    </sources>
  4. <sources>
    <source name="System.ServiceModel" switchValue="VerboseActivityTracing">
    <listeners>
    <add namee"ServiceModelTraceListener" />
    </listeners>
    </source>
    </sources>
Answer: Answer is a

Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;