Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 3 question 20 discussion

Actual exam question from Microsoft's PL-400
Question #: 20
Topic #: 3
[All PL-400 Questions]

HOTSPOT -
A company imports data from files.
The following code is created to import the files. (Line numbers are included for reference only.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: No -
The For Each loop is exited if there is an error. Need ContinueOnError in the right place.

Box 2: No -
The ContinueOnError statement should be placed in the For Each loop before line 13.

Box 3: Yes -

Box 4: No -
This code is just for displaying the result on the screen.

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Flatternschuchtern
Highly Voted 2 years, 1 month ago
2 is a gotcha moment. There is ContinueOnError option for ExecuteMultipleRequest, but not for ExecuteTransactionRequest.
upvoted 6 times
...
hai297
Most Recent 6 months, 3 weeks ago
1 2 NO because of ExecuteTransactionRequest 3 YES 4 No Just have console.writeline for displaying
upvoted 1 times
...
SumitChavan
7 months, 1 week ago
Correct, just the explanation for the answer of question no 2 is improper.
upvoted 1 times
...
At09
1 year ago
Surprisingly Exam topic AI has ticked correct ones;)
upvoted 4 times
...
jkaur
1 year, 2 months ago
correct
upvoted 1 times
...
700157a
1 year, 2 months ago
The last one should be YES.
upvoted 1 times
ziggy1117
1 year, 2 months ago
no its not needed. its just for display
upvoted 3 times
...
...
ziggy1117
1 year, 2 months ago
Answers are correct
upvoted 2 times
...
DummyTest1
1 year, 3 months ago
For 2nd one. An ExecuteTransactionRequest will execute all calls in a single transaction, rolling back if an error has occurred. ExecuteMultipleRequest is not in a transaction and it will not rollback previously completed requests if an error occurs.
upvoted 3 times
...
emapedrozo
1 year, 5 months ago
Answers are correct. But, I think explanaiton for option 2 is not accurate. "ContinueOnError" is not an attribute of "ExecuteTransactionRequest" class, but ExecuteMultipleSettings. So, is not possible to indicate specify such property there.
upvoted 2 times
...
Kepty
2 years, 1 month ago
1) The request/response is within try/catch
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 ...