Palantir AI Engineer Associate · Free practice question 1 of 12
Branches that return Ontology edits
In an AIP Logic function at Wyndham Orchards, a Conditionals block decides whether to flag a Harvest Lot for inspection. The true branch calls an action that sets a flag. What must the false branch do?
- A.Nothing at all, because Logic silently ignores branches that do not produce any edits
- B.Run an action or explicitly take no action, since every branch must account for edits
- C.Return a string message instead, since only the true branch is allowed to produce edits
- D.Call the same action with empty parameters so that both branches always write to the object
Show answer and explanation
Correct answer: B. Run an action or explicitly take no action, since every branch must account for edits
Why: AIP Logic requires that when branches of a conditional return Ontology edits, every branch either runs an action or explicitly takes no action, so the function's edit output is well defined on every path. Returning a different type breaks that contract, calling the action with empty parameters makes unintended writes, and branches are not silently ignored.
More free Palantir AI Engineer Associate questions
- Reusing existing functions inside Logic
- Saving versus publishing a chatbot
- Upgrading AIP Threads to a chatbot
- KNN filters in Workshop object sets
- Legacy semantic search tool replacement
- Generating embeddings in Pipeline Builder
- Permissions and costs of LLM pipeline nodes
- Ran successfully status in AIP Evals
- Deleted objects and removal conditions
- Event retry limits and fallback timing
- Enabling experimental models