Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 480 of 481

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

Google Professional Cloud Developer Question 480

Select 3Google Cloud Platform

You are developing a microservices-based application deployed on Google Kubernetes Engine (GKE). You need to integrate the application with Google Cloud's operations suite to monitor logs, metrics, and traces. Which steps should you take to achieve this integration?

  1. A

    Install the Ops Agent on each GKE node to collect logs and metrics.

  2. B

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

  3. C

    Use the Cloud Trace SDK in your application code to send trace data.

  4. D

    Configure a custom Fluentd daemonset in your GKE cluster to forward logs to Cloud Logging.

  5. E

    Annotate your GKE workloads with the appropriate labels for Cloud Monitoring.

Show answer and explanation

Correct answers: B, C, E

Explanation

To integrate a GKE application with Google Cloud's operations suite, you must first enable the relevant APIs (Cloud Monitoring and Cloud Logging) to allow data collection. For trace data, you need to use the Cloud Trace SDK to instrument your application. Additionally, annotating your GKE workloads with standard labels helps organize and filter metrics in Cloud Monitoring. The Ops Agent and custom Fluentd configurations are not required for GKE, as it has native integration with Cloud Logging and Monitoring.

  • A. Incorrect.

    Incorrect: The Ops Agent is designed for collecting logs and metrics from virtual machines, not GKE nodes. For GKE, the operations suite uses built-in integrations.

  • B. Correct.

    Correct: Enabling the Cloud Monitoring and Cloud Logging APIs is required to collect and view logs and metrics within the operations suite.

  • C. Correct.

    Correct: The Cloud Trace SDK is necessary to instrument your application and send trace data to Cloud Trace.

  • D. Incorrect.

    Incorrect: While Fluentd can be used for custom logging setups, GKE natively integrates with Cloud Logging, making a custom Fluentd configuration unnecessary in most cases.

  • E. Correct.

    Correct: Annotating workloads with labels such as app.kubernetes.io/name is a recommended practice for enabling better filtering and organization in Cloud Monitoring.

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