exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 83 discussion

Actual exam question from Microsoft's 70-483
Question #: 83
Topic #: 2
[All 70-483 Questions]

You are developing an application that uses multiple asynchronous tasks to optimize performance. The application will be deployed in a distributed environment.
You need to retrieve the result of an asynchronous task that retrieves data from a web service.
The data will later be parsed by a separate task.
Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
supersunny
Highly Voted 5 years, 11 months ago
B. is correct.
upvoted 14 times
CNTPD1
5 years ago
No it's not. IMO A should be correct answer, cause Task is already async. https://dotnetfiddle.net/pE7Syo
upvoted 2 times
CNTPD1
5 years ago
Okay after further testing maybe B is okay https://dotnetfiddle.net/3qQeAB
upvoted 6 times
...
...
...
DaGrooveNL
Most Recent 4 years, 5 months ago
FINAL ANSWER: B.
upvoted 1 times
...
Focal
4 years, 7 months ago
It is B beceause: "You need to retrieve the result of an asynchronous task" so the task u are awaiting needs to be async.
upvoted 1 times
...
HgstExam
4 years, 9 months ago
After some thought I would choose A, because you need to optimize performance.
upvoted 1 times
...
HgstExam
4 years, 9 months ago
To me both A and B are correct. Is there some criteria for B to be more correct ?
upvoted 1 times
nicoII7
4 years, 7 months ago
you don't want a Task<string> return value but a string, so B
upvoted 1 times
...
...
sscooter1010
5 years, 4 months ago
Code for Option D is chopped off at the bottom
upvoted 2 times
tmp
5 years, 4 months ago
he is anyway a wrong answer because of (async before GetData() method).
upvoted 7 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 ...