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 154 discussion

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

As a Site Reliability Engineer, you support an application written in Go that runs on Google Kubernetes Engine (GKE) in production. After releasing a new version of the application, you notice the application runs for about 15 minutes and then restarts. You decide to add Cloud Profiler to your application and now notice that the heap usage grows constantly until the application restarts. What should you do?

  • A. Increase the CPU limit in the application deployment.
  • B. Add high memory compute nodes to the cluster.
  • C. Increase the memory limit in the application deployment.
  • D. Add Cloud Trace to the application, and redeploy.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
koo_kai
Highly Voted 1 year, 6 months ago
Selected Answer: C
insufficient memory
upvoted 5 times
...
cachopo
Most Recent 2 months, 1 week ago
Selected Answer: D
D. Cloud Trace can help identify inefficient memory usage and pinpoint the root cause of the memory leak. Since Cloud Profiler already showed that heap usage is constantly increasing, the next step is to analyze memory allocations in detail. Cloud Trace provides visibility into request execution and can highlight which functions are consuming excessive memory or not releasing it properly. This helps in debugging and fixing the leak instead of just mitigating its effects. C. Increasing the memory limit in the deployment would provide a temporary workaround by delaying the OOM kill. However, this does not fix the root cause—excessive memory allocation and retention. Eventually, the application will still exhaust the available memory and restart.
upvoted 2 times
...
PhilipKoku
9 months, 3 weeks ago
Selected Answer: D
D) I would add Cloud Trace to find the root cause of the heap usage growth. Adding more memory will only solve the issue temporarily, and you might now see a restart in 30 minutes.
upvoted 2 times
...
xhilmi
1 year, 4 months ago
Selected Answer: C
Given the scenario where the heap usage of the application grows constantly until it restarts, the issue is likely related to memory consumption. Therefore, the appropriate action to take is to address the memory-related problem. In this context, option C is the recommended. By increasing the memory limit in the application deployment configuration, you provide more memory resources to the application, potentially preventing it from exhausting its memory and triggering restarts. Options A and B may not directly address the underlying memory problem. Option D, adding Cloud Trace, is more focused on request tracing and may not directly resolve the memory growth issue. Therefore, increasing the memory limit is the most relevant step to take based on the symptoms described.
upvoted 1 times
...
nqthien041292
1 year, 5 months ago
Selected Answer: C
Vote C
upvoted 1 times
...
pharao89
1 year, 5 months ago
Selected Answer: C
That's what I do at work :-)
upvoted 3 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