Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Machine Learning Engineer practice bank has an additional 974 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
An enterprise AI team operates a production Retrieval-Augmented Generation (RAG) and tool-calling agent on Gemini Enterprise Agent Platform. Live interactions exhibit occasional ungrounded claims, unsafe responses, and malformed JSON tool payloads. The ML architect must implement a continuous evaluation pipeline that meets these requirements:
Which architecture should the team implement?
EvalTask with computation-based metrics (rouge_l_sum, bleu, trajectory_exact_match, and tool_parameter_kv_match) against the golden dataset, triggering Cloud Monitoring alerts when aggregate scores drop below baseline thresholds.Computation-based metrics such as ROUGE, BLEU, trajectory_exact_match, and tool_parameter_kv_match use deterministic mathematical formulas or exact string/structure matching to compare a candidate output against an expected ground-truth reference or reference_trajectory. Managed Service for Apache Airflow orchestrates scheduled batch workflows across data systems.
rouge_l_sum, bleu, trajectory_exact_match, and tool_parameter_kv_match require a labeled ground-truth reference for every evaluated instance. Live production interactions involve novel, unseen user queries that lack pre-authored reference answers or reference trajectories, making direct row-level scoring against a static golden dataset invalid.trajectory_exact_match penalizes valid alternative reasoning paths that differ from a single reference sequence.AutoraterConfig) and chain-of-thought explanations.HALLUCINATION, SAFETY), a custom LLMMetric for coherence, and a CodeExecutionMetric for JSON schema validation in the Metric Registry. Enable OpenTelemetry trace capture with continuous Online Monitoring and scheduled Agent Platform Pipelines running the Gen AI evaluation service (AutoraterConfig) against captured traces and the golden dataset, routing scores to Cloud Monitoring to trigger alerts and rollbacks.This architecture combines the Metric Registry, OpenTelemetry-based Agent Observability, Online Monitoring, and Agent Platform Pipelines with the Gen AI evaluation service to establish an automated production quality flywheel. Standardized metrics are registered once and applied consistently across offline regression checks and continuous production monitors.
HALLUCINATION segment responses into atomic claims and verify grounding against intermediate tool outputs, while SAFETY enforces policy compliance. A custom LLMMetric applies a judge LLM rubric for coherence, configured with AutoraterConfig (such as tuning sampling_count or specifying a tuned judge model) to stabilize scoring variance. Simultaneously, a CodeExecutionMetric runs deterministic Python validation to verify JSON tool-payload schemas.LLMMetric, CodeExecutionMetric, and RubricMetric definitions in the Metric Registry guarantees parity between CI/CD gates and production monitors.Unlike tabular drift detectors or reference-dependent NLP formulas, this design natively evaluates multi-turn agent trajectories, unstructured generative quality, and deterministic payload constraints while automating production incident response.
ExplanationSpec.ExplanationParameters) on the agent's serving endpoint using the golden dataset as the training data source, set per-feature distance thresholds via gcloud ai model-monitoring-jobs create, and configure Cloud Monitoring notification channels to trigger rollbacks when feature attribution skew or prediction drift is detected.Model Monitoring integrated with Vertex Explainable AI tracks statistical distance shifts in input feature distributions and feature attribution scores over time. By comparing live prediction requests against a training baseline (training-serving skew) or prior production windows (prediction drift), it detects when numerical or categorical features contribute differently to a model's output.
ExplanationSpec.ExplanationParameters and an analysis instance schema defining tabular features.generate_conversation_scenarios and runs pairwise Automatic Side-by-Side (AutoSxS) model-based evaluation comparing the production model against the golden dataset using a tuned judge model (tune_autorater), logging results to Agent Platform Experiments for manual review.generate_conversation_scenarios uses User Simulation to synthesize multi-turn test prompts from an agent's instructions and tool definitions during pre-deployment testing. Automatic Side-by-Side (AutoSxS) performs pairwise model-based evaluation, prompting a judge model to compare outputs from two competing models on the same inputs, while Agent Platform Experiments tracks offline trial metadata.
generate_conversation_scenarios evaluates synthetic simulated conversations rather than capturing and scoring actual live production agent traces and real user interactions.AutoSxS compares two models head-to-head rather than computing pointwise production metrics like SAFETY, HALLUCINATION, or deterministic Python CodeExecutionMetric schema checks on live agent trajectories.Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated