Q: 15
You need to handle errors in UpdateRecord.js.
Which code segment should you add at line UR06?
Options
Discussion
Option A, This matches what you’d see in both the official docs and Power Platform practice tests.
A imo, because that's the standard try...catch structure in JavaScript. D looks like async handler syntax, which doesn't fit here. Pretty sure A is what the question wants but open to other thoughts.
Probably A, saw a really similar code example in some recent exam reports. Standard JS catch syntax so makes sense here.
A tbh, since catch(error) with alert fits standard JS error catching. D is a common trap, but function(error) is callback style, not actual catch syntax. Anyone disagree?
Its A, since that's the correct way to catch and display errors in JavaScript. The syntax fits what you'd actually use in a catch block. Not 100% sure if alert is best UX but it works here.
Be respectful. No spam.
Question 15 of 35