↑ ↓ to move, Enter to open, Esc to close

    GCP-PCDProfessional Cloud Developer

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search

    GCP-PCD · Practice

    Question 6 of 33

    Question GCP-PCD-030

    Single choiceChoose one answer.

    You are deploying a Python application to Cloud Run by using Cloud Source Repositories and Cloud Build. The Cloud Build pipeline is shown below:

    You want to optimize deployment time and avoid unnecessary steps. What should you do?

    ExhibitCode
    Exhibit. Its content is given in the text version below.
    Text version

    steps:

    • name: python
      entrypoint: pip
      args: ["install", "-r", "requirements.txt", "--user"]

    • name: 'gcr.io/cloud-builders/docker'
      args: ['build', '-t',
      'us-central1-docker.pkg.dev/${PROJECT_ID}/${_REPO_NAME}/myimage:${SHORT_SHA}',
      '.']

    • name: 'gcr.io/cloud-builders/docker'
      args: ['push', 'us-central1-docker.pkg.dev/${PROJECT_ID}/${_REPO_NAME}/myimage:${SHORT_SHA}']

    • name: google/cloud-sdk
      args: ['gcloud', 'run', 'deploy', 'helloworld-${SHORT_SHA}',
      '--image=us-central1-docker.pkg.dev/${PROJECT_ID}/${_REPO_NAME}/myimage:${SHORT_SHA}',
      '--region', 'us-central1', '--platform', 'managed',
      '--allow-unauthenticated']

    A–D selectEnter check answerF flag←→ move