exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 9 discussion

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

You are developing a WCF service.
A new service instance must be created for each client session.
You need to choose an instancing mode.
Which instance mode should you use?

  • A. PerCall
  • B. Single
  • C. Multiple
  • D. PerSession
  • E. PerRequest D
Show Suggested Answer Hide Answer
Suggested Answer: Explanation 🗳️
PerSession: A new InstanceContext (and therefore service object) is created for each new client session and maintained for the lifetime of that session (this requires a binding that supports sessions).

Incorrect: Answers -
A: PerCall: A new InstanceContext (and therefore service object) is created for each client request.
B: Single: A single InstanceContext (and therefore service object) handles all client requests for the lifetime of the application.
References:
https://msdn.microsoft.com/en-us/library/ms731193(v=vs.110)

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
Naveenvarma
Highly Voted 5 years, 5 months ago
Answer:D (Per session)
upvoted 11 times
founderDev
5 years, 3 months ago
correct answer is PerSession
upvoted 4 times
Dev666
4 years, 9 months ago
you gotta give the D
upvoted 6 times
...
...
...
bashirmja
Most Recent 4 years, 4 months ago
https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.sessionmode?view=dotnet-plat-ext-5.0
upvoted 1 times
...
supersunny
5 years, 3 months ago
D is actually correct since the question says client session.
upvoted 2 times
...
[Removed]
5 years, 4 months ago
Answer: D. See: https://www.oreilly.com/library/view/programming-wcf-services/0596526997/ch04s03.html
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 ...