Professional Cloud Architect · Free Practice Question Medium
Question 33
You are a cloud architect at a software company that has an application deployed on Google Cloud. The application has been experiencing performance issues both in the testing and production environments. The DevOps team is unsure if the problem is due to the application's code or the underlying infrastructure. You've been asked to identify an efficient way to isolate and diagnose these performance issues. Which approach would you suggest?
-
A
Use only Cloud Monitoring to analyze both the code and the infrastructure performance.
-
B
Create a detailed log for every function call in the application code to identify any bottlenecks.
-
C
Upgrade the machine types of all Compute Engine instances in the project to increase performance.
-
D
Use Cloud Profiler to identify performance bottlenecks in the code, while also leveraging Cloud Monitoring and Logging to analyze infrastructure performance.
Reveal correct answer
Correct answer: D
A.
While Cloud Monitoring is a powerful tool for analyzing infrastructure performance, it does not provide insights into how the application's code runs. It is therefore not sufficient on its own for diagnosing the reported performance issues.
B.
While logging function calls can be useful for debugging, it is not efficient for identifying performance issues as it may significantly impact the application's performance and create a large volume of logs.
C.
Upgrading machine types without first identifying the cause of the performance issues may result in unnecessary costs and may not solve the problem if it is not related to the infrastructure.
D.
Cloud Profiler allows you to analyze how your application's code runs in production and can help you identify performance bottlenecks in the code. Cloud Monitoring and Logging can be used in parallel to analyze infrastructure metrics and logs, allowing you to determine if the infrastructure is affecting performance. This combination provides a comprehensive solution for diagnosing performance issues.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
