exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 29 discussion

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

You are developing multiple web applications that will retrieve information for a Windows Communication Foundation (WCF) service
You need to intercept and inspect messages received by and sent from the WCF service.
Which three actions should you perform? Each correct answer presents part of the solution.

  • A. Create a class that inherits from the IDispatchMessageInspector interface.
  • B. Implement the BeforeSendReply method.
  • C. Implement the BeforeSendRequest method.
  • D. Create a class that inherits from the IClientMessageInspector interface.
  • E. Implement the AfterReceiveReply method.
  • F. Implement the AfterReceiveRequest method.
Show Suggested Answer Hide Answer
Suggested Answer: ABF 🗳️
A: Service message inspectors implement the IDispatchMessageInspector interface.
BF: Any service (dispatcher) message inspector must implement the two IDispatchMessageInspector methods AfterReceiveRequest and BeforeSendReply
(Message,"‚Object).

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
Edin2
Highly Voted 5 years, 9 months ago
If its from the application's side, surely it should be the other way around; IClentMessageInspector, AfterReceiveReply and BeforeSendRequest. Thank you still for posting this :)
upvoted 9 times
Dreamchaser1980
4 years, 7 months ago
You are developing multiple web applications that will retrieve information for a Windows Communication Foundation (WCF) service. This clearly indicates a client application that connects to the WCF service, hence the answer is CDE.
upvoted 1 times
zimzimzimma
4 years, 7 months ago
It indicates the existence of a client application. That says nothing about whether the messages should be intercepted from the client or the server. That is an assumption.
upvoted 1 times
Dreamchaser1980
4 years, 7 months ago
If you are designing a client application, you have access to the code and configuration of the application. However, the WCF application could be a third party application, it is an assumption that you have access to its code and configuration.
upvoted 2 times
zimzimzimma
4 years, 7 months ago
That is true. I wish M$ would pay more attention to their questions and semantics.
upvoted 2 times
...
...
...
...
...
TinaZh
Highly Voted 5 years, 3 months ago
Answer is correct: "messages received by and sent from the WCF service." https://docs.microsoft.com/en-us/dotnet/framework/wcf/extending/how-to-inspect-and-modify-messages-on-the-service
upvoted 8 times
willbot
4 years, 11 months ago
But "You are developing multiple web applications" so definitely client side
upvoted 2 times
...
...
notsure1111
Most Recent 4 years, 4 months ago
Agree with Dreamchaser1980, answer should be CDE
upvoted 1 times
...
zimzimzimma
4 years, 7 months ago
The fact that the question says "You are developing multiple web applications that will retrieve information for a Windows Communication Foundation (WCF) service" says nothing about whether the messages should be inspected client side. That is an assumption. With the same logic I can say that it should be intercepted server side since client side interception isn't explicitly mentioned. I think the given answer ABF is correct
upvoted 6 times
jan_oratowski
4 years, 4 months ago
I agree with this comment. I think that "developing multiple web applications" is a hint to implement the WCF request/reply class in a way that will allow you to view all requests/responses from different apps. However, in a real-world scenario, this example would require a follow-up with "so let me clarify that I've understood you...".
upvoted 1 times
...
...
nelaed
4 years, 8 months ago
"You are developing applications that will retrieve inf. for a WCF service" "You need to [...] received by and sent from the WCF service." I think question ask's about WCF service and with that, provided answers are correct.
upvoted 2 times
...
Dallintine
5 years, 2 months ago
the answer is correct
upvoted 4 times
...
founderDev
5 years, 2 months ago
correct answer is Implement the BeforeSendRequest method, Implement the AfterReceiveReply method, Implement the AfterReceiveRequest method. other options are server side
upvoted 1 times
...
tiger25
5 years, 3 months ago
CDE correct answers for the client
upvoted 4 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