Question 110 (Select TWO)
Which TWO complementary actions fix the active problem AND prevent recurrence? A LangChain pipeline returns an SDK message object while its API gateway expects a plain answer string.
Explanation
Correct Answers
Correct (immediate corrective action). Add a typed output parser/serializer after generation and verify the consumer contract. In this scenario, A LangChain pipeline returns an SDK message object while its API gateway expects a plain answer string. The governing mechanism is: A minimal chain composes a retriever, prompt, LLM and output parser, preserving required variables and failure states. One selected option addresses the immediate workflow, while the other guards the same failure mode after deployment. Both satisfy the TWO-part requirement.
Correct (continuing risk control). Keep integration tests on simple chains before adding unrelated agent orchestration complexity. In this scenario, A LangChain pipeline returns an SDK message object while its API gateway expects a plain answer string. The governing mechanism is: A minimal chain composes a retriever, prompt, LLM and output parser, preserving required variables and failure states. One selected option addresses the immediate workflow, while the other guards the same failure mode after deployment. Both satisfy the TWO-part requirement.
Incorrect Answers
Not the strongest safeguard choice for this specific question. Use an available Foundation Model API endpoint with compatible authentication, task API and quotas. This action primarily relates to Foundation Model API versus custom serving choices: Databricks Foundation Model APIs offer managed access to supported models; custom serving is suitable for specialized models or control needs. However, the described case — A LangChain pipeline returns an SDK message object while its API gateway expects a plain answer string. — is testing Simple prompt-retrieval-generation chain assembly. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.
Not the strongest safeguard choice for this specific question. Treat prompt alias updates as change-controlled deployments with regression gates and auditing. This action primarily relates to MLflow Prompt Registry version aliases and promotion: Prompt Registry tracks immutable prompt versions with mutable aliases for staging and production, enabling change control and rollback. However, the described case — A LangChain pipeline returns an SDK message object while its API gateway expects a plain answer string. — is testing Simple prompt-retrieval-generation chain assembly. It does not directly establish the safeguard outcome or constraint that the question requires; it may still be useful in a different stage or incident.