Google Professional Cloud DevOps Engineer exam dumps

Google Professional Cloud DevOps Engineer practice question 65 of 268

Professional Cloud DevOps Engineer. Associate level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud DevOps Engineer Question 65

Select 3Google Cloud Platform

You are responsible for setting up a CI/CD pipeline for a serverless application deployed on Google Cloud Functions. The application requires multiple stages: development, staging, and production. Each stage uses a separate Google Cloud project for isolation. You need to ensure the pipeline automates deployment, runs unit tests, and promotes code through stages only when tests pass. Which steps should you include in your CI/CD pipeline configuration?

  1. A

    Use Cloud Build to define a pipeline that includes build, test, and deploy steps.

  2. B

    Store environment-specific configuration in a Git repository alongside the source code.

  3. C

    Use Google Cloud Deploy to manage multi-environment rollouts and approvals.

  4. D

    Deploy the same Google Cloud Function version to all environments to ensure consistency.

  5. E

    Use a service account with the least privileges required to deploy to each environment.

Show answer and explanation

Correct answers: A, C, E

Explanation

To set up an effective CI/CD pipeline for serverless applications, you should use tools like Cloud Build and Google Cloud Deploy to automate builds, tests, and deployments. Environment-specific configuration should be securely managed, not stored in the source repository. Deployments should use the principle of least privilege to enhance security. These practices ensure a robust and secure CI/CD process while managing multiple stages effectively.

  • A. Correct.

    Correct: Cloud Build is a suitable tool for defining CI/CD pipelines in Google Cloud, including build, test, and deployment steps for serverless applications.

  • B. Incorrect.

    Incorrect: Storing environment-specific configuration in the Git repository may lead to security risks and is not a recommended practice. Instead, use environment variables or secrets management tools.

  • C. Correct.

    Correct: Google Cloud Deploy provides a native solution for managing multi-environment deployment workflows, including approval processes.

  • D. Incorrect.

    Incorrect: Deploying the same version to all environments without testing may introduce risks. Each version should be tested in the appropriate environment before promotion.

  • E. Correct.

    Correct: Using a service account with least privilege ensures secure deployments and adheres to best practices for access control.

Timed practice exam

Take a Google Professional Cloud DevOps Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam