Courseiva
← Back to Google Professional Machine Learning Engineer questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise Google Professional Machine Learning Engineer practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

9
scenario questions
PMLE
exam code
Google Cloud
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related PMLE topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

Refer to the exhibit. An alert policy is configured to trigger when prediction latency exceeds 500 ms for 5 consecutive minutes. The team is experiencing many false positive alerts during brief latency spikes. Which adjustment would most effectively reduce false positives while still detecting prolonged latency issues?

Exhibit

{
  "name": "projects/123/alertPolicies/456",
  "displayName": "High Latency",
  "conditions": [
    {
      "displayName": "Latency > 500ms",
      "conditionThreshold": {
        "filter": "metric.type=\"vertexai.googleapis.com/prediction/latency\"",
        "comparison": "COMPARISON_GT",
        "thresholdValue": 500,
        "duration": "300s"
      }
    }
  ],
  "combiner": "OR"
}
Question 2mediummultiple choice
Full question →

The exhibit shows part of a Vertex AI Pipeline definition. The pipeline fails at the training step with an error: 'Missing required input: train_data'. What is the most likely cause?

Exhibit

Refer to the exhibit.

```
# vertex_ai_pipeline.yaml
components:
  - name: data_processing
    container:
      image: us-central1-docker.pkg.dev/my-project/my-repo/data_processor:v1
      command: ["python", "process.py"]
  - name: training
    container:
      image: us-central1-docker.pkg.dev/my-project/my-repo/trainer:v2
      command: ["python", "train.py"]
    inputs:
      - name: train_data
        type: Dataset
    outputs:
      - name: model
        type: Model
  - name: evaluation
    container:
      image: us-central1-docker.pkg.dev/my-project/my-repo/evaluator:v1
    inputs:
      - name: model
        type: Model
      - name: test_data
        type: Dataset
    outputs:
      - name: metrics
        type: Metrics
```
Question 3mediummultiple choice
Full question →

Refer to the exhibit. A machine learning engineer deployed a model on Vertex AI using this configuration. When testing the endpoint, the engineer receives a 400 error with the message: 'Invalid argument: Explanation metadata missing required field: `outputs`.' What is the most likely cause?

Exhibit

Refer to the exhibit.

```yaml
deploymentResourcePool: projects/my-project/locations/us-central1/deploymentResourcePools/my-pool
disableContainerLogging: false
enableAccessLogging: true
explanationSpec:
  parameters:
    examples:
      exampleGcsSource:
        dataFormat: jsonl
        gcsSource:
          uris:
          - gs://my-bucket/examples/*.jsonl
        neighborCount: 10
      neighborCount: 10
      presampling: true
  metadata:
    inputs:
      input:
        inputTensor: input
        modality: numeric
        name: input
    outputs:
      output:
        outputTensor: output
        modality: numeric
        name: output
machineSpec:
  machineType: n1-standard-2
  acceleratorCount: 1
  acceleratorType: NVIDIA_TESLA_T4
minReplicaCount: 1
maxReplicaCount: 3
model: projects/my-project/locations/us-central1/models/123
trafficSplit:
  '0': 100
```
Question 4hardmultiple choice
Full question →

Refer to the exhibit. The team wants to automatically deploy the best-performing model version to production. They have set up a Cloud Function triggered by Model Registry events. Which alias should they use in the function to get the latest champion?

Network Topology
gcloud ai models listregion=us-central1
Question 5easymultiple choice
Full question →

Refer to the exhibit. A data scientist notices that predictions from a deployed model are taking longer than expected. Which Cloud Monitoring metric should be inspected first to identify the bottleneck?

Exhibit

Refer to the exhibit.
```
{
  "insertId": "abc123",
  "jsonPayload": {
    "predictions": [0.98, 0.12],
    "modelVersionId": "1",
    "latencyMs": 450,
    "region": "us-central1"
  },
  "resource": {
    "type": "vertex_ai_endpoint",
    "labels": {
      "endpoint_id": "1234",
      "model_id": "model-xyz"
    }
  },
  "severity": "INFO",
  "timestamp": "2024-03-15T10:30:00Z"
}
```
Question 6easymultiple choice
Full question →

Refer to the exhibit. A team deploys a model using Cloud Run. They notice that after scaling up, the new instances take about 90 seconds to become ready and serve requests. They want to reduce this startup time. Which configuration change is most likely to help?

Exhibit

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: model-serving
spec:
  template:
    spec:
      containers:
      - image: gcr.io/my-project/model:v2
        resources:
          limits:
            cpu: '2'
            memory: 8Gi
        startupProbe:
          tcpSocket:
            port: 8080
          initialDelaySeconds: 60
          periodSeconds: 10
      containerConcurrency: 80
Question 7easymultiple choice
Full question →

Refer to the exhibit. A data scientist runs this Vertex AI training job code. What will be the outcome?

Exhibit

Refer to the exhibit.

training_job = aiplatform.CustomTrainingJob(
    display_name='hyperparameter-job',
    script_path='train.py',
    container_uri='gcr.io/cloud-aiplatform/training/tf-cpu.2-6:latest',
    requirements=['tensorflow==2.6'],
    model_serving_container_image_uri='gcr.io/cloud-aiplatform/prediction/tf2-cpu.2-6:latest',
)

hp_job = training_job.run(
    replica_count=1,
    machine_type='n1-standard-4',
    hyperparameter_tuning_job_spec={
        'max_trial_count': 10,
        'parallel_trial_count': 2,
        'metrics': [{'metric_id': 'accuracy', 'goal': 'MAXIMIZE'}]
    }
)
Question 8easymultiple choice
Full question →

Refer to the exhibit. The team notices that the pipeline fails to read data from the specified Cloud Storage path. What is the most likely issue?

Exhibit

pipeline:
  execution_config:
    runner: DataflowRunner
    project: my-project
    region: us-central1
  components:
    - component_type: CsvExampleGen
      component_name: example_gen
      arguments:
        input_basedir: gs://my-bucket/data/
Question 9hardmultiple choice
Full question →

Refer to the exhibit. An engineer notices no drift alerts but the model performance has degraded. What is the likely cause?

Exhibit

modelMonitoringConfig:
  objectiveConfig:
    detectionConfig:
      driftThresholds:
        age: 0.3
        income: 0.1
      skewThresholds:
        age: 0.2
        income: 0.05
  featureAttributionConfig:
    enabled: True

These PMLE practice questions are part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style PMLE questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.