Question 180
At fictional Glenhaven Foods, the Business Central development team is supporting inventory traceability and purchasing and reviewing external-service integration during a troubleshooting exercise (MB820-6.2-192). The observed development issue is that a custom API returns sensitive customer columns because all fields from the backing table were added to the API page. Which AL development or design response most directly addresses this issue?
Explanation
Correct Answer
The most direct corrective response is to expose only the minimal approved fields and apply entitlement and permission rules. This addresses the specific failure where a custom API returns sensitive customer columns because all fields from the backing table were added to the API page. Acceptance evidence is that the API payload omits protected fields for unauthorized consumers.
Incorrect Answers
“Define idempotency and stable external reference handling in the API-backed business process” concerns the alternative task “define idempotency and stable external reference handling in the API-backed business process”, but the stated failure is that a custom API returns sensitive customer columns because all fields from the backing table were added to the API page. The required measure is to expose only the minimal approved fields and apply entitlement and permission rules.
The proposed “Expose only approved actions and enforce permissions and validation at the service boundary” tests a different control: expose only approved actions and enforce permissions and validation at the service boundary. The reported condition is that a custom API returns sensitive customer columns because all fields from the backing table were added to the API page; the more direct action is to expose only the minimal approved fields and apply entitlement and permission rules.
“Evaluate supported read scale-out patterns for appropriate read workloads without compromising consistency needs” concerns the separate step “evaluate supported read scale-out patterns for appropriate read workloads without compromising consistency needs”. The reported issue is that a custom API returns sensitive customer columns because all fields from the backing table were added to the API page, so the direct response is to expose only the minimal approved fields and apply entitlement and permission rules.