Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 475 of 481

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

Google Professional Cloud Developer Question 475

Select 3Google Cloud Platform

You are developing a microservices-based application on Google Cloud that requires monitoring and logging. The application consists of multiple services deployed on Google Kubernetes Engine (GKE) and uses Pub/Sub for asynchronous messaging. You want to integrate the application with Google Cloud’s operations suite to gain insights into logs, metrics, and traces. Which steps should you take to properly set up the integration?

  1. A

    Enable the Cloud Monitoring and Cloud Logging APIs for your Google Cloud project.

  2. B

    Install the Cloud Operations suite agents on each GKE node manually.

  3. C

    Instrument your application code with OpenTelemetry libraries for distributed tracing.

  4. D

    Configure Pub/Sub subscriptions to export logs directly to Cloud Logging.

  5. E

    Ensure your GKE services have the correct IAM roles, such as 'Cloud Monitoring Metric Writer'.

Show answer and explanation

Correct answers: A, C, E

Explanation

To integrate with Google Cloud’s operations suite, you need to enable the relevant APIs (Cloud Monitoring and Logging), add instrumentation for distributed traces using OpenTelemetry if needed, and ensure proper IAM roles are assigned so that services can write metrics and logs. Manual installation of agents on GKE is not required as it is already handled by the platform, and Pub/Sub logs require configuration in Cloud Logging rather than direct export.

  • A. Correct.

    Correct. Enabling the Cloud Monitoring and Cloud Logging APIs is a prerequisite for using Google Cloud’s operations suite features.

  • B. Incorrect.

    Incorrect. On GKE, the Cloud Operations suite (monitoring and logging) is automatically integrated via Config Connector or pre-installed agents, so manual installation is not required.

  • C. Correct.

    Correct. OpenTelemetry is recommended for adding distributed tracing capabilities to your application, which integrates well with Google Cloud’s operations suite.

  • D. Incorrect.

    Incorrect. Pub/Sub does not directly export logs to Cloud Logging. Instead, logs from Pub/Sub can be captured by enabling Cloud Logging for Pub/Sub and configuring sinks if necessary.

  • E. Correct.

    Correct. IAM roles such as 'Cloud Monitoring Metric Writer' are needed to allow GKE services to push metrics and logs to the Cloud Operations suite.

Timed practice exam

Take a Google Professional Cloud Developer 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