Google Professional Cloud DevOps Engineer exam dumps

Google Professional Cloud DevOps Engineer practice question 166 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 166

Single answerGoogle Cloud Platform

Your team recently deployed a new microservices-based application on Google Cloud. While testing, you notice that some requests to the application are experiencing high latency. You need to identify which specific service or operation is causing the delay. How can you use Cloud Trace to troubleshoot this issue?

  1. A

    Enable Cloud Trace API and configure automatic tracing in your application to collect latency data across all services.

  2. B

    Manually add logging statements in your application code for each service to track latency.

  3. C

    Use Cloud Trace to visualize traces and identify the specific spans within a trace that have higher latency.

  4. D

    Export trace data to BigQuery and create a custom SQL query to identify the slowest requests.

Show answer and explanation

Correct answer: C

Explanation

Cloud Trace is designed to help you analyze and visualize request traces across distributed services. By using the trace visualization tools, you can easily identify spans with high latency and determine the specific service or operation causing delays. This approach is more efficient and purpose-built compared to manual logging or exporting data to BigQuery.

  • A. Incorrect.

    Enabling the Cloud Trace API and automatic tracing is required for collecting trace data, but it does not directly help in analyzing traces to identify latency issues.

  • B. Incorrect.

    Manually adding logging statements is not an efficient or scalable way to identify latency issues in a distributed microservices architecture, especially when Cloud Trace is already available.

  • C. Correct.

    Using Cloud Trace to visualize traces and inspect spans is the most effective way to identify latency issues in specific services or operations. Cloud Trace provides a detailed view of request flows and latency.

  • D. Incorrect.

    Exporting trace data to BigQuery can help with advanced analytics, but it is not the most direct or efficient way to identify high-latency spans. Cloud Trace's native visualization tools are purpose-built for such tasks.

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