CertKeen

Palantir AI Engineer Associate · Free practice question 2 of 12

Reusing existing functions inside Logic

Asterby Freight already has a tested TypeScript function that computes customs duty. A new AIP Logic function needs that figure before it asks an LLM to draft a broker email, and the duty must not be left to the model. Which block should call the TypeScript function?

  1. A.Use LLM with the Calculator tool
  2. B.Create variable
  3. C.Execute function
  4. D.Apply action
Show answer and explanation

Correct answer: C. Execute function

Why: The Execute function block calls an existing function, such as a TypeScript, Python or other Logic function, deterministically and without spending LLM tokens. Asking the model to compute duty with the Calculator tool hands a rule-based calculation to the LLM, Create variable only defines a value, and Apply action calls an Ontology action rather than a computation function.

More free Palantir AI Engineer Associate questions