PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which property can be used to the caller identity ?

DRAG DROP
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService is self-hosted.
To communicate PassGuideService uses a secure HTTP binding.
The binding works in principal permission mode.
The binding demands the users to supply their Windows logon credentials.
Which property can be used to the caller identity ?

Which property can be used to the caller identity?

DRAG DROP
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService is self-hosted.
To communicate PassGuideService uses a secure HTTP binding.
The binding works in principal permission mode.
The binding demands the users to supply their Windows logon credentials.
Which property can be used to the caller identity?

How can you ensure that users can access the services hosted by PassGuideApp without having to keep re-authent

DRAG DROP
Exhibit:
<%@ServiceHost Service=”System Web Application Services Authentication
Service”Factory=”System.Web.ApplicationServices.AppicationServicesHostFactory”%>
You are employed as a developer at PassGuide.com.
There is a ASP.Net web application PassGuideApp.
PassGuideApp hosts a few WCF services.
These services have ASP.NET Compatibility Mode enabled.
A cookie-based ASR NET Forms Authentication model is used by PassGuideApp to authenticate
users.
There is a service file PassGuide.svc. PassGuide.svc includes the code in the exhibit.
How can you ensure that users can access the services hosted by PassGuideApp without having
to keep re-authenticating?

How should the ServiceContract be tweaked to achieve is?

ServiceContract Exhibit:
Your service has the rollowing service contract.
[ServiceContract]
public class PassGuideService {
[OperationContract]
public Boolean PassGuideConfirm(string PhoneNumber, double wage, integer EmployeeNumber)
{ }
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService exists within SOA (Service Oriented Architecture) within an enterprise.
The serviceContact of PassGuideService is displayed in the exhibit.
Method PassGuideConfirm, when executed, must be participate transperentally in existing
transactions.Furthermore, when there is no existing transaction, a new transaction must be
created.
How should the ServiceContract be tweaked to achieve is?

Which attribute should be added to the class implementation?

DRAG DROP
There is a WCF (Windows Communication Foundation) service application PassGuideApp.
PassGuideApp is required to provide service to a heavy client request load, even simulatanous
requests. Stateful conversation must be provided for each ensure subsequent individual client
request.
Which attribute should be added to the class implementation?

Which code should be used?

DRAG DROP
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService is selfed-hosted within a console application.
PassGuideService is implementing the DataAccess contract.
The PassGuideApplication namespace includes a definition of the DataAccess contract.
A ServiceHost instance must first be created and then be assigned to a host variable.
The service host must be intantiated.
Which code should be used?

Which code should you use?

DRAG DROP
Contract exhibit:
[ServiceContract]
public interface IHelloService
[OperationContract]
[WebGet(UriTemplate =“helloname={name}”)]
string PassGuideHello(string name);
}
Class exhibit:
public class HelloService: IHelloService
{
public string PassGuideHello(string name)
{ return “Hi there “ + name;

}
}
Hosting code exhibit:
WebServiceHost svcHost = CreateHost();
svcHost.Open();
Console.ReadLine();
SrvHost.Close();
There is a WCF (Windows Communication Foundation) service PassGuideService.
The contract of PassGuideService, the implementation, and self-hosted service hosting code are
displayed in separate exhibits.
A single endpoint, at http://PassGuide:7500/HelloService, is used for the implementation of CreateHost.
Which code should you use?

DRAG DROP
Exhibit:
Opening System.ServiceModel.ServiceHost/8423414
Get configuration section.
Get configuration section.
MSMQ detected successfully.
Throwing an exception. Error.
Failed to open System.ServiceModel.ServiceHost Warning
Faulted to System.ServiceModel.ServiceHost Warning
ServiceHost faulted
Message: Binding validation failed because the binding’s MsmqAuthenticationMode property is set
to WindowsDomain but MSMQ is installed with Active Directory integration disabled.
The channel factory or service host cannot be opened.
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService has some run-time problems.
SvcTraceviewer.exe is used to retrieve tracing information. Parts of this information is being
displayed in the exhibit.
You are required to determine where the determine where the error occurred.
You must also recommend what is the best action to take.