Back to Google Cloud Digital Leader questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise Google Cloud Digital Leader practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

14
scenario questions
GCDL
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 GCDL 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. A team deployed this Cloud Run service. During a load test, the service receives high traffic, but the number of container instances never exceeds 10. What is the most likely cause?

Exhibit

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: hello
spec:
  template:
    metadata:
      autoscaling.knative.dev/maxScale: "10"
      autoscaling.knative.dev/minScale: "2"
    spec:
      containerConcurrency: 80
      containers:
      - image: us-docker.pkg.dev/cloudrun/container/hello
        resources:
          limits:
            cpu: "1"
            memory: "256Mi"
Question 2hardmultiple choice
Full question →

Refer to the exhibit. A data processing job must complete within 2 hours. The job can be interrupted but must resume from the last checkpoint. Which two instances should be used to minimize cost while meeting the requirement?

Exhibit

Refer to the exhibit.
```
$ gcloud compute instances list
NAME        ZONE           MACHINE_TYPE  PREEMPTIBLE  INTERNAL_IP  EXTERNAL_IP
worker-1    us-central1-a  e2-standard-4              10.128.0.1   35.184.0.1
worker-2    us-central1-a  e2-standard-4  YES         10.128.0.2   35.184.0.2
worker-3    us-central1-b  e2-standard-4              10.128.0.3   35.184.0.3
worker-4    us-central1-b  e2-standard-4  YES         10.128.0.4   35.184.0.4
```
Question 3mediummultiple choice
Full question →

Refer to the exhibit. What level of access does this IAM policy grant to the members?

Exhibit

Refer to the exhibit.
```json
{
  "bindings": [
    {
      "role": "roles/storage.objectViewer",
      "members": [
        "user:alice@example.com",
        "serviceAccount:sa-bucket-reader@project.iam.gserviceaccount.com"
      ]
    }
  ]
}
```
Question 4mediummultiple choice
Full question →

Refer to the exhibit. A user receives this error when trying to SSH into a Compute Engine instance. Which IAM role should be granted to the user?

Network Topology
gcloud compute ssh my-instancezone us-central1-aRequired 'compute.instances.get' permission for 'projects/my-project/zones/us-central1-a/instances/my-instance'
Question 5mediummultiple choice
Full question →

Refer to the exhibit. The autoscaler is configured to maintain a target CPU utilization of 0.6. Currently the group has 10 instances, but the autoscaler is not scaling up even though CPU utilization is above 0.8. What is the most likely reason?

Exhibit

gcloud compute instance-groups managed list --zone us-central1-a
NAME          LOCATION       SCOPE  BASE_INSTANCE_NAME  SIZE  TARGET_SIZE  INSTANCE_TEMPLATE  AUTOSCALED
my-mig        us-central1-a  zone   my-instance         10    20           my-template         yes
Question 6hardmultiple choice
Full question →

Refer to the exhibit. A developer receives this error when trying to create a Compute Engine instance. The developer is authenticated as a user with Project Editor role. What is the most likely cause?

Exhibit

Refer to the exhibit.
```
Error:
# gcloud compute instances create my-instance --zone us-central1-a
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
 - Account 'my-service-account@project-id.iam.gserviceaccount.com' requires permission 'compute.instances.create' on project 'my-project'
```
Question 7mediummultiple choice
Full question →

Refer to the exhibit. The IAM policy is applied at the project level. The bucket 'sensitive-data' exists and contains objects. What is the effective access for user alice@example.com?

Exhibit

Refer to the exhibit.

{
  "bindings": [
    {
      "role": "roles/storage.objectViewer",
      "members": [
        "user:alice@example.com",
        "user:bob@example.com"
      ]
    },
    {
      "role": "roles/storage.objectAdmin",
      "members": [
        "user:carol@example.com"
      ],
      "condition": {
        "title": "restrict_to_sensitive_bucket",
        "expression": "resource.name.startsWith('projects/_/buckets/sensitive-data/objects/')"
      }
    }
  ],
  "etag": "BwW3ZJf4G7A="
}
Question 8mediummultiple choice
Full question →

Refer to the exhibit. An operations team configured this Cloud Monitoring alert. They notice that the alert fires, but the associated managed instance group autoscaler does not scale up. What is the most likely reason?

Exhibit

{
  "displayName": "High CPU Alert",
  "condition": {
    "conditionThreshold": {
      "aggregations": [
        {
          "alignmentPeriod": "60s",
          "perSeriesAligner": "ALIGN_RATE",
          "crossSeriesReducer": "REDUCE_NONE"
        }
      ],
      "comparison": "COMPARISON_GT",
      "duration": "300s",
      "filter": "metric.type=\"compute.googleapis.com/instance/cpu/utilization\" resource.type=\"gce_instance\"",
      "thresholdValue": 0.8,
      "trigger": {
        "count": 1
      }
    }
  },
  "enabled": true
}
Question 9hardmultiple choice
Full question →

Refer to the exhibit. A DevOps engineer notices that the alert fires even when there is only a single 5-second spike of errors that lasts for one minute. What is the most likely cause?

Exhibit

{
  "displayName": "High Error Rate",
  "condition": {
    "conditionThreshold": {
      "filter": "metric.type=\"logging.googleapis.com/user/myapp_errors\" AND resource.type=\"k8s_container\"",
      "aggregations": [
        {
          "alignmentPeriod": "60s",
          "perSeriesAligner": "ALIGN_RATE"
        }
      ],
      "comparison": "COMPARISON_GT",
      "thresholdValue": 5,
      "trigger": {
        "count": 1
      }
    }
  },
  "alertStrategy": {
    "autoClose": "1800s"
  }
}
Question 10mediummultiple choice
Full question →

Refer to the exhibit. A DevOps engineer wants to create a chart showing the rate of items sold per second over time. What is a limitation of this metric for that purpose?

Exhibit

{
  "metric": {
    "type": "custom.googleapis.com/inventory/items_sold",
    "labels": {}
  },
  "resource": {
    "type": "global",
    "labels": {
      "project_id": "my-project"
    }
  },
  "points": [
    {
      "interval": {
        "endTime": "2023-01-01T12:00:00Z"
      },
      "value": {
        "int64Value": "100"
      }
    }
  ],
  "metricKind": "GAUGE",
  "valueType": "INT64"
}
Question 11easymultiple choice
Full question →

Refer to the exhibit. A security administrator reviews this Cloud Audit Logs entry. What does this entry indicate?

Exhibit

Refer to the exhibit.
```
$ gcloud logging read "resource.type=project AND severity=ERROR" --limit 5
timestamp: 2023-10-05T10:30:00Z
protoPayload:
  methodName: "storage.objects.get"
  authenticationInfo:
    principalEmail: "user@example.com"
  resourceName: "projects/_/buckets/my-bucket/objects/secret.pdf"
```
Question 12easymultiple choice
Full question →

Refer to the exhibit. A user receives this error when trying to copy an object from one bucket to another. What is the most likely cause?

Exhibit

Refer to the exhibit.
```
Error: 403 POST https://storage.googleapis.com/storage/v1/b/bucket/o:copyTo?sourceObject=source.txt
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
```
Question 13hardmultiple choice
Full question →

Refer to the exhibit. A company configures a lifecycle policy on a Cloud Storage bucket. The bucket contains objects uploaded over the past year with custom time set on each object. After 60 days, what happens to the objects?

Exhibit

{
  "lifecycle": {
    "rule": [
      {
        "action": {"type": "Delete"},
        "condition": {
          "daysSinceCustomTime": 30
        }
      }
    ]
  }
}
Question 14mediummultiple choice
Full question →

Refer to the exhibit. A security engineer applies this IAM policy. What is the effect?

Exhibit

Refer to the exhibit.
```
gcloud projects set-iam-policy my-project policy.yaml
```
policy.yaml:
```
{
  "bindings": [
    {
      "role": "roles/compute.admin",
      "members": [
        "user:admin@example.com"
      ],
      "condition": {
        "title": "workstation_ip",
        "expression": "request.host == '203.0.113.1'"
      }
    }
  ]
}
```

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