PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

We understand that we need a list of supervisors and sublists of their relative students.

You have a C# code snippet with 2 classes, one composed by elements of the other.
public class Student
{
public string Name {get;set;}
}
public class Supervisor
{
public string name {get;set;}
public List<Student> {get;set;}
}
And a markup code snippet, with 2 repeaters imbricated + a ObjectDataSource retrieving a list of
Supervisors, the top level repeater “rptSupervisors” is bound using ObjectDataSourceID to the
ObjectDataSource, and the inside one “rptStudents” is not bound yet. We understand that we need
a list of supervisors and sublists of their relative students.

You need to enable inspection of the malformed data and prevent message tampering

You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding
and message security enabled. You create an intermediate WCF service for logging messages sent to

the primary service. The intermediate service is called via endpoint behaviour. The primary service is
receiving malformed data from a client application. You need to enable inspection of the malformed
data and prevent message tampering. What do you do?

Which code segment should you use?

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?