exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 278 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 278
Topic #: 1
[All Professional Cloud Developer Questions]

You are monitoring a web application that is written in Go and deployed in Google Kubernetes Engine. You notice an increase in CPU and memory utilization. You need to determine which function is consuming the most CPU and memory resources. What should you do?

  • A. Add print commands to the application source code to log when each function is called, and redeploy the application.
  • B. Create a Cloud Logging query that gathers the web application s logs. Write a Python script that calculates the difference between the timestamps from the beginning and the end of the application's longest functions to identify time-intensive functions.
  • C. Import OpenTelemetry and Trace export packages into your application, and create the trace provider. Review the latency data for your application on the Trace overview page, and identify which functions cause the most latency.
  • D. Import the Cloud Profiler package into your application, and initialize the Profiler agent. Review the generated flame graph in the Google Cloud console to identify time-intensive functions.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
alpha_canary
6 months, 2 weeks ago
Selected Answer: D
we want to know which function is consuming the most CPU and memory resources; cloud profiler comes to mind automatically. Importing the Cloud Profiler package into your application and initializing the Profiler agent would help you identify which functions are consuming the most CPU and memory resources. The generated flame graph in the Google Cloud Console provides a visualization of the call stack and resource usage, making it easy to identify time- and resource-intensive functions.
upvoted 1 times
...
JonathanSJ
8 months, 3 weeks ago
Selected Answer: D
I will go for D. Cloud Profiler is the good one to gather metrics and information about CPU and memory.
upvoted 1 times
...
plutonians123
10 months, 2 weeks ago
Selected Answer: D
Google Cloud Profiler efficiently analyzes cloud-based applications, like those on GKE, using minimal code changes and flame graphs for in-depth insights into CPU and memory usage, thus identifying performance bottlenecks with ease. For more information, visit: https://dev.to/billcchung/profiling-go-grpc-service-with-google-cloud-profiler-1k8l and https://www.cncf.io/blog/2020/03/27/continuous-profiling-go-application-running-in-kubernetes/
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