
Answer-first summary for fast verification
Answer: Examine the wall-clock time and the CPU time of the application. If the difference is substantial increase the CPU resource allocation., Examine the latency time the wall-clock time and the CPU time of the application. If the latency time is slowly burning down the error budget, and the difference between wall-clock time and CPU time is minimal mark the application for optimization.
To determine which Java applications need performance tuning when Cloud Profiler and Cloud Trace are installed and configured, you should focus on analyzing the performance metrics that indicate inefficiencies. Option A suggests examining the wall-clock time and CPU time, and if the difference is substantial, increasing CPU resource allocation. This is correct because a significant difference between wall-clock time and CPU time often indicates that the application is spending a lot of time waiting (e.g., for I/O operations), which might not be solved by just throwing more CPU resources at the problem but indicates a need for optimization. Option D suggests examining the latency time, wall-clock time, and CPU time, and if the latency time is slowly burning down the error budget with minimal difference between wall-clock time and CPU time, marking the application for optimization. This is also correct because it identifies applications that are not efficiently using CPU resources (minimal difference between wall-clock and CPU time) but are still causing latency issues, indicating a need for code or architecture optimization. Options B and C are incorrect because increasing memory or local disk storage allocation does not directly address performance issues indicated by the difference between wall-clock time and CPU time. Option E is incorrect because low heap usage does not necessarily indicate a need for optimization; it might simply mean the application is efficiently using memory.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
To identify Java applications in production that require performance tuning, which two actions should you take? All applications have Cloud Profiler and Cloud Trace enabled by default.
A
Examine the wall-clock time and the CPU time of the application. If the difference is substantial increase the CPU resource allocation.
B
Examine the wall-clock time and the CPU time of the application. If the difference is substantial, increase the memory resource allocation.
C
Examine the wall-clock time and the CPU time of the application. If the difference is substantial, increase the local disk storage allocation.
D
Examine the latency time the wall-clock time and the CPU time of the application. If the latency time is slowly burning down the error budget, and the difference between wall-clock time and CPU time is minimal mark the application for optimization.
E
Examine the heap usage of the application. If the usage is low, mark the application for optimization.