PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #146
You support an application deployed on Compute Engine. The application connects to a Cloud SQL instance to store and retrieve data. After an update to the application, users report errors showing data
The correct answer is B. Use Stackdriver Profiler to visualize the resources utilization throughout the application.. Given database timeout errors following an application update despite stable user count, utilize Cloud Profiler to analyze the application's resource utilization and execution paths to pinpoint performance bottlenecks or inefficient code introduced by the update that could be cau
Question
Options
- ACheck the serial port logs of the Compute Engine instance.
- BUse Stackdriver Profiler to visualize the resources utilization throughout the application.
- CDetermine whether there is an increased number of connections to the Cloud SQL instance.
- DUse Cloud Security Scanner to see whether your Cloud SQL is under a Distributed Denial of
How the community answered
(54 responses)- A11% (6)
- B63% (34)
- C20% (11)
- D6% (3)
Why each option
Given database timeout errors following an application update despite stable user count, utilize Cloud Profiler to analyze the application's resource utilization and execution paths to pinpoint performance bottlenecks or inefficient code introduced by the update that could be causing the database timeouts.
Serial port logs are primarily for low-level system and boot diagnostics, not for troubleshooting application-specific database timeout issues after an update.
After an application update, Cloud Profiler can visualize the application's resource utilization (CPU, memory, I/O, contention), helping to identify if the update introduced inefficient code, slow queries, or contention that causes database operations to time out even with a stable user count.
While increased connections can cause timeouts, the question states active users remained stable, making an application change (diagnosable by profiler) a more probable cause for connection-related issues like leaks or inefficient use rather than just an overall load increase; Cloud Monitoring would typically be used to check this metric.
Cloud Security Scanner is for security vulnerabilities, and a DDoS attack is less probable as the primary cause for database timeouts occurring specifically 'after an update to the application' compared to an application-introduced performance bug.
Concept tested: Application performance debugging, Cloud Profiler, database timeouts
Source: https://cloud.google.com/profiler/docs/concepts/overview
Topics
Community Discussion
No community discussion yet for this question.