CertKeen

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?

  1. A.Nothing at all, because Logic silently ignores branches that do not produce any edits
  2. B.Run an action or explicitly take no action, since every branch must account for edits
  3. C.Return a string message instead, since only the true branch is allowed to produce edits
  4. 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