exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 44 discussion

Actual exam question from Microsoft's 70-487
Question #: 44
Topic #: 1
[All 70-487 Questions]

HOTSPOT -
You are creating a streamed Windows Communication Foundation (WCF) service.
You implement the following service methods.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
To enable streaming, define the OperationContract appropriately and enable streaming at the transport level.
To stream data, the OperationContract for the service must satisfy two requirements:
✑ The parameter that holds the data to be streamed must be the only parameter in the method. For example, if the input message is the one to be streamed, the operation must have exactly one input parameter. Similarly, if the output message is to be streamed, the operation must have either exactly one output parameter or a return value.
✑ At least one of the types of the parameter and return value must be either Stream, Message, or IXmlSerializable.
References:
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-enable-streaming

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
piedro
Highly Voted 4 years, 5 months ago
Source: https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-enable-streaming "To stream data, the OperationContract for the service must satisfy two requirements: - The parameter that holds the data to be streamed must be the only parameter in the method. - At least one of the types of the parameter and return value must be either Stream, Message, or IXmlSerializable. " This means that the corect answear is: NO(2 Input parameters), Yes(IXmlSerializable), No (2 input parameters), No(its a bool)
upvoted 11 times
...
ammariii
Most Recent 4 years, 5 months ago
I don't think IXMLSeriazable is a stream type, EmployeeMethod3 has a parameter as stream class type "stream1", this is input for method. So I agree with: Yes NO NO NO
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago