Vous êtes sur la page 1sur 102

Untitled Exam

Number: 000-000
Passing Score: 800
Time Limit: 120 min
File Version: 1.0
Exam A

QUESTION 1

Exhibit:

A.

B.

C.

D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 2
Exhibit:

A.

B.

C.

D.

Correct Answer: AD
Section: (none)
Explanation

Explanation/Reference:

QUESTION 3
Exhibit:

A.

B.
C.

D.

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 4

Exhibit:
A.

B.

C.

D.

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 5

Exhibit:
A.

B.

C.

D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 6
A service implements the following contract. (Line numbers are included for reference only)
01 [ServiceContract(SessionMode = SessionMode.Required)]
02 public interface IContosoService
03 {
04 [OperationContract(IsOneWay = true, IsInitiating = true)]
05 void OperationOne(string value);
06
07 [OperationContract(IsOneWay = true, IsInitiating = false)]
08 void OperationTwo(string value);
09 }
The service is implemented as follows:
10 class ContosoService: IContosoService
11 {
12 public void OperationOne(string value) {...}
13 ...
14 public void OperationTwo(string value) {...}
15 }
ContosoService uses NetMsmqBinding to listen for messages. The queue was set up to use transactions for
adding and removing messages.
You need to ensure that OperationOne and OperationTwo execute under the same transaction context when
they are invoked in the same session.
What should you do?

1 (exhibit):
Q006-2 (exhibit):
A. Add the following XML segment to the application config file in the system serviceModel/bindings
configuration section
<netMsmqBinding>
<binding name="contosoTx" durable="true" receiveContextEnabled="true" />
</netMsmqBinding>
Then use the NetMsmqBinding named contosoTx to listen for messages from the clients.
B.
C.

D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 7
Q007-1 (exhibit):
Q007-2 (exhibit):
A.

B.

C.

D.
Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 8

Exhibit:
A.

B.

C.

D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:
QUESTION 9

Exhibit:
A.
B.
C.

D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:
QUESTION 10

Q0010-1 (exhibit):
Q0010-2 (exhibit):
A.

B.

C.

D.
Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 11

Q0011-1 (exhibit):
Q0011-2 (exhibit):
A.

B.

C.
D.

Correct Answer: BC
Section: (none)
Explanation

Explanation/Reference:

QUESTION 12

Exhibit:

A.

B.

C.

D.

Correct Answer: A
Section: (none)
Explanation
Explanation/Reference:

QUESTION 13

Exhibit:

A.

B.

C.
D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:
QUESTION 14

Exhibit:
A.
B.

C.
D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 15
Q0015-1 (exhibit):
Q0015-2 (exhibit):
A.

}
}
B.

C.

D. var discoveryClient =
new DiscoveryClient(new UdpDiscoveryEndpoint());
var findCriteria =
new FindCriteria(typeof(ICalculatorService));
var findResponse = discoveryClient.Find(findCriteria);
foreach(var meta in findResponse.Endpoints)
{
foreach(var xElement in meta.Extentions)
{
Log("Endpoint Information: "
+ xElement.Element("Information").Value);
}
}

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 16

Exhibit:
A.
B.

C.

D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 17

Exhibit:
A.

B.

C.
D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 18

Exhibit:
A.

B.
C.

D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 19

Q0019-1 (exhibit):
Q0019-2 (exhibit):
A.

B.

C.

D.
Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 20

Exhibit:
A.

B.

C.

D.

Correct Answer: A
Section: (none)
Explanation
Explanation/Reference:

QUESTION 21

Exhibit:

A.
B.
C.

D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 22

Exhibit:
A.

B.

C.
D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 23
Q0023-1 (exhibit):
Q0023-2 (exhibit):
A.

B.
C.

D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 24

Exhibit:
A.

B.

C.

D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 25
Exhibit:

A.
B.
C.
D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 26
Exhibit:

A.
B.

C.
D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 27

Q0027-1 (exhibit):
Q0027-2 (exhibit):
A.
B.

C.

D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 28
Exhibit:
A.

B.

C.

D. Insert the following code at line 04.


[ OperationContract ( AsyncPattern = false ) ]

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 29

Exhibit:

A.

B.
C.
D.

Correct Answer: B
Section: (none)
Explanation
Explanation/Reference:

QUESTION 30

Q0030-1 (exhibit):
Q0030-2 (exhibit):
A.

B.
C.

D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 31

Exhibit:
A.

B.

C.

D.

Correct Answer: AB
Section: (none)
Explanation

Explanation/Reference:
QUESTION 32

Exhibit:

A. [MessageContract]
public class CustomerDetailsVersion2 : CustomerDetailsVersion1
{
[MessageHeader(MustUnderstand = true)]
public string Department;
}
B. [MessageContract]
public class CustomerDetailsVersion2 : CustomerDetailsVersion1
{
[MessageHeader(MustUnderstand = false)]
public string Department;
}
C. public class CustomerDetailsVersion2 : CustomerDetailsVersion1
{
[MessageHeader(MustUnderstand = true)]
public string Department;
}
D. public class CustomerDetailsVersion2 : CustomerDetailsVersion1
{
[ MessageHeader( MustUnderstand = false ) ]
public string Department;
}

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 33

Q0033-1 (exhibit):
Q0033-2 (exhibit):
Q0033-3 (exhibit):
A.

B.

C.
D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 34

Exhibit:
A.

B.
C.
D.

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 35

Exhibit:
A.

B.
C.
D.

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 36
Q0036-1 (exhibit):

Q0036-2 (exhibit):
A.
B.

C.

D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 37
Q0037-1 (exhibit):
Q0037-2 (exhibit):
A.
B.

C.

D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:
QUESTION 38

Exhibit:

A.

B.

C.

D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:
QUESTION 39

Exhibit:
A.

B.

C.

D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 40

Q0040-1 (exhibit):
Q0040-2 (exhibit):
A.
B.

C.

D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 41
Exhibit:

A. 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>
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 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);
D. 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));

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 42

Exhibit:
A.
B.
C.

D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 43

Exhibit:
A.

B.

C.

D.

Correct Answer: D
Section: (none)
Explanation
Explanation/Reference:

QUESTION 44

Q0044-1 (exhibit):
Q0044-2 (exhibit):
A.

B.
C.

D.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 45

Exhibit:
A.

B.

C.
D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 46

Exhibit:
A.

B.

C.

D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 47
Exhibit:

A.

B.
C.
D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 48
Exhibit:

A.

B.

C.
D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 49
Exhibit:

A.

B.
C.

D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 50
Exhibit:

A.

B.

C.
D.

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:

QUESTION 51
Exhibit:

A.

B.

C.
D.

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 52

Exhibit:
A.

B.

C.

D.

Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:

QUESTION 53
Exhibit:

A.

B.

C.
D.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 54
Exhibit:

A.

B.
C.

D.
Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:

QUESTION 55

Exhibit:

A.

B.

C.
D.

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

Vous aimerez peut-être aussi