nerdexam
MicrosoftMicrosoft

PL-400 · Question #453

PL-400 Question #453: Real Exam Question with Answer & Explanation

The correct answer is A: Set Is Private to Yes.. To prevent Dataverse code generation tools (such as pac modelbuilder or CrmSvcUtil.exe) from creating early-bound classes for your custom API, you must set the Is Private (IsPrivate) property to true before shipping your managed solution. Impact of Setting "Is Private" to True Bl

Submitted by layla.eg· Apr 18, 2026

Question

You create a custom API as part of a solution that will be made available on Microsoft AppSource. You need to prevent others from using Dataverse code generation tools that create classes and use the messages for your custom API. What should you do?

Options

  • ASet Is Private to Yes.
  • BSet Is Function to Yes.
  • CSet Allowed Custom Processing Step Type to None.
  • DSet Allow Customizations to No.

Explanation

To prevent Dataverse code generation tools (such as pac modelbuilder or CrmSvcUtil.exe) from creating early-bound classes for your custom API, you must set the Is Private (IsPrivate) property to true before shipping your managed solution. Impact of Setting "Is Private" to True Blocks Metadata Visibility: The custom API will no longer appear in the $metadata service document (CSDL), which is what code generation tools query to discover available messages. Prevents Class Generation: Tools will skip these messages during the generation of early-bound helper classes for the SDK. Maintains Functionality: Setting an API as private does not physically block execution; if a developer knows the exact signature (unique name and parameters), they can still manually compose a request to call it via the Web API or SDK. https://itmustbecode.com/dataverse-custom-api-keep-it-private

Community Discussion

No community discussion yet for this question.

Full PL-400 PracticeBrowse All PL-400 Questions