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?
- A.Use LLM with the Calculator tool
- B.Create variable
- C.Execute function
- 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
- Branches that return Ontology edits
- 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