exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 130 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 130
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You are analyzing Java applications in production. All applications have Cloud Profiler and Cloud Trace installed and configured by default. You want to determine which applications need performance tuning. What should you do? (Choose two.)

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cachopo
2 months ago
Selected Answer: DE
https://cloud.google.com/profiler/docs/concepts-profiling D. When you examine the latency time along with the wall‐clock and CPU times, a minimal difference between wall‐clock and CPU times indicates that the code is CPU‑intensive (i.e. it isn’t waiting on I/O). If at the same time the latency is eroding the error budget, this signals that the application isn’t keeping up with user expectations and is a candidate for performance tuning. E. Low heap usage implies that the application isn’t heavily utilizing its available memory. In Java applications, if the heap usage remains low despite ample allocation, it suggests that increasing memory won’t improve throughput or latency. Instead, the code itself may be inefficient (for example, it might not be caching or reusing objects effectively) and therefore should be optimized.
upvoted 1 times
cachopo
2 months ago
In summary, when Cloud Profiler shows that: - The latency is gradually consuming the error budget and CPU time closely matches wall‐clock time (Option D), and - Heap usage is low (Option E), it indicates that adding more resources (like CPU or memory) won’t resolve the underlying inefficiencies. Instead, you should focus on code-level optimizations.
upvoted 1 times
...
...
alpha_canary
8 months, 3 weeks ago
Selected Answer: DE
I asked Google's Gemini AI and this is what it answered. Here's why these options are correct: D: Latency time: High latency directly impacts user experience and can negatively affect your error budget. Wall-clock time: This represents the elapsed time from start to finish of a request. A large difference with CPU time indicates bottlenecks outside the CPU, requiring optimization. CPU time: This represents the actual CPU processing time used by the application. Minimal difference with wall-clock time suggests inefficient use of CPU, potentially needing optimization. E: Heap usage: Low heap usage can indicate under-provisioning or potential memory leaks. Either way, it implies inefficient resource utilization and deserves investigation.
upvoted 3 times
...
xhilmi
11 months ago
Selected Answer: DE
Choose options D and E. - Option D suggests examining the latency time, wall-clock time, and CPU time of the application. If the latency time is consistently burning down the error budget and the difference between wall-clock time and CPU time is minimal, it indicates potential areas for optimization. This helps identify performance bottlenecks that may be impacting the user experience. - Option E suggests examining the heap usage of the application, and if the usage is low, marking the application for optimization. Low heap usage may indicate that the application is not fully utilizing available resources, presenting an opportunity for optimization to enhance efficiency and responsiveness. Together, these approaches provide insights into areas where performance improvements may be beneficial for the applications.
upvoted 1 times
...
xhilmi
11 months ago
Choose options D and E. - Option D suggests examining the latency time, wall-clock time, and CPU time of the application. If the latency time is consistently burning down the error budget and the difference between wall-clock time and CPU time is minimal, it indicates potential areas for optimization. This helps identify performance bottlenecks that may be impacting the user experience. - Option E suggests examining the heap usage of the application, and if the usage is low, marking the application for optimization. Low heap usage may indicate that the application is not fully utilizing available resources, presenting an opportunity for optimization to enhance efficiency and responsiveness. Together, these approaches provide insights into areas where performance improvements may be beneficial for the applications.
upvoted 1 times
...
lelele2023
1 year ago
Selected Answer: DE
A conflicts with D hence A gets excluded. B and C don't have direct relation with CPU time/wall time hence excluded either. Answers are D and E.
upvoted 2 times
...
lelele2023
1 year ago
Selected Answer: D
D for sure, since "If the CPU time is similar to the wall time, then that indicates the code is CPU intensive; almost all the time it takes to run is spent by the CPU. Long-running CPU-intensive blocks of code might be candidates for optimization."
upvoted 1 times
...
SunyaCat
1 year ago
https://cloud.google.com/profiler/docs/concepts-profiling
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago