Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud DevOps Engineer Exam - Topic 1 Question 73 Discussion

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

Your team is preparing to launch a new API in Cloud Run. The API uses an OpenTelemetry agent to send distributed tracing data to Cloud Trace to monitor the time each request takes. The team has noticed inconsistent trace collection. You need to resolve the issue. What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: A

The correct answer is D. Grant the logging.logWriter and monitoring.metricWriter roles to the Compute Engine service accounts.

According to the Google Cloud documentation, the Compute Engine service account is a Google-managed service account that is automatically created when you enable the Compute Engine API1. This service account is used by default to run your Compute Engine instances and access other Google Cloud services on your behalf1. To ensure that monitoring metrics and logs for the instances are visible in Cloud Logging and Cloud Monitoring, you need to grant the following IAM roles to the Compute Engine service account23:

The logging.logWriter role allows the service account to write log entries to Cloud Logging4.

The monitoring.metricWriter role allows the service account to write custom metrics to Cloud Monitoring5.

These roles grant the minimum permissions that are needed for logging and monitoring, following the principle of least privilege. The other roles are either unnecessary or too broad for this purpose. For example, the logging.editor role grants permissions to create and update logs, log sinks, and log exclusions, which are not required for writing log entries6. The logging.admin role grants permissions to delete logs, log sinks, and log exclusions, which are not required for writing log entries and may pose a security risk if misused. The monitoring.editor role grants permissions to create and update alerting policies, uptime checks, notification channels, dashboards, and groups, which are not required for writing custom metrics.


Service accounts, Service accounts. Setting up Stackdriver Logging for Compute Engine, Setting up Stackdriver Logging for Compute Engine. Setting up Stackdriver Monitoring for Compute Engine, Setting up Stackdriver Monitoring for Compute Engine. Predefined roles, Predefined roles. Predefined roles, Predefined roles. Predefined roles, Predefined roles. [Predefined roles], Predefined roles. [Predefined roles], Predefined roles.

Contribute your Thoughts:

0/2000 characters
Arleen
6 days ago
I think using an HTTP health check is a better approach!
upvoted 0 times
...
Earleen
12 days ago
Increasing CPU limits can help with performance.
upvoted 0 times
...
Janessa
18 days ago
I feel like configuring CPU allocation during request processing could help, but I’m not entirely confident about the details.
upvoted 0 times
...
Coral
23 days ago
I’m a bit confused about the health check option. Does it really impact trace collection directly?
upvoted 0 times
...
Lorrie
28 days ago
This question feels familiar; I think we practiced something similar where CPU allocation was a factor in trace collection.
upvoted 0 times
...
Loreta
1 month ago
I remember we discussed how CPU allocation can affect performance, but I'm not sure if increasing the limit is the right approach here.
upvoted 0 times
...
Marti
1 month ago
I'm pretty confident I know the right answer for this. I'll select it and move on to the next question.
upvoted 0 times
...
Desirae
1 month ago
Okay, I think I have a strategy here. Let me walk through the options and see which one makes the most sense.
upvoted 0 times
...
Jeanice
1 month ago
Hmm, I'm a bit confused by the question. I'll need to review the details on OpenTelemetry and Cloud Trace again.
upvoted 0 times
...
Aleta
1 month ago
This seems like a tricky one. I'll need to think through the different options carefully.
upvoted 0 times
...
Tess
1 month ago
Hmm, I'm a bit confused about how XFA validations map to the validation-Required (nullTest) in adaptive forms. I'll have to review my notes on that.
upvoted 0 times
...
Kirk
2 months ago
I'm leaning towards option B with Cloud Spanner. The global replication and ANSI SQL support seem like a good fit for the requirements.
upvoted 0 times
...
Ozell
6 months ago
I'm leaning towards D, always-allocated CPU. That might provide more consistent performance, but it could also be overkill. Gotta find that sweet spot, you know?
upvoted 0 times
Eric
5 months ago
Have you considered checking the network configuration to ensure smooth trace collection?
upvoted 0 times
...
Eliz
5 months ago
Maybe we should try adjusting the memory allocation to see if that improves performance.
upvoted 0 times
...
Mariko
5 months ago
I think setting up always-allocated CPU could help with the inconsistent trace collection.
upvoted 0 times
...
...
Ming
7 months ago
Haha, increasing the CPU limit to 4 might work, but that's a bit like trying to solve a problem by throwing more hardware at it. Not very efficient!
upvoted 0 times
Rolande
5 months ago
Consider implementing batching to send multiple traces in a single request to improve efficiency.
upvoted 0 times
...
Emeline
6 months ago
Optimize the sampling rate of the traces to reduce the load on Cloud Trace.
upvoted 0 times
...
Samira
6 months ago
Check the configuration of the OpenTelemetry agent to ensure it is set up correctly.
upvoted 0 times
...
...
Arletta
7 months ago
I think configuring CPU to be always-allocated might be the best solution for consistent trace collection.
upvoted 0 times
...
Gilma
7 months ago
Option B, using an HTTP health check, seems like a reasonable choice too. That could help ensure the API is responsive and healthy, which could impact the tracing data.
upvoted 0 times
Laurel
6 months ago
B) Use an HTTP health check.
upvoted 0 times
...
Nakisha
6 months ago
A) Increase the CPU limit in Cloud Run from 2 to 4.
upvoted 0 times
...
...
Marti
7 months ago
I disagree, I believe we should use an HTTP health check to resolve the issue.
upvoted 0 times
...
Isadora
7 months ago
I think we should increase the CPU limit in Cloud Run from 2 to 4.
upvoted 0 times
...
Maryann
7 months ago
I think the correct answer is C. Configuring CPU to be allocated only during request processing sounds like the best way to optimize resource usage and improve trace collection consistency.
upvoted 0 times
Lilli
6 months ago
Using an HTTP health check could also be beneficial for monitoring the API.
upvoted 0 times
...
Harrison
6 months ago
But wouldn't increasing the CPU limit in Cloud Run also help with trace collection?
upvoted 0 times
...
Leontine
6 months ago
I agree, configuring CPU to be allocated only during request processing makes sense.
upvoted 0 times
...
Arminda
7 months ago
I think the correct answer is C.
upvoted 0 times
...
...

Save Cancel