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
B
2
0
No way, you guys. It’s A.
0
2
B
1
0
B is the right answer.
0
0
A
0
1
A and B both are correct
0
1
A is correct
0
0
Both – A and B works and correct depending on what’s inside of GetData.
A is correct when it returns Task directly from another async method.
B is correct when it returns string from another async method using await.
I consider that A is better answer.
0
0