Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 159 discussion

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

Your Cloud Run application writes unstructured logs as text strings to Cloud Logging. You want to convert the unstructured logs to JSON-based structured logs. What should you do?

  • A. Modify the application to use Cloud Logging software development kit (SDK), and send log entries with a jsonPayload field.
  • B. Install a Fluent Bit sidecar container, and use a JSON parser.
  • C. Install the log agent in the Cloud Run container image, and use the log agent to forward logs to Cloud Logging.
  • D. Configure the log agent to convert log text payload to JSON payload.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mohan999
1 week, 6 days ago
Cloud run doesnt use log agent, it has to be A or B
upvoted 1 times
mohan999
1 week, 6 days ago
If we are considering built in agent, then D might be valid option. But it is not clear from the question
upvoted 1 times
...
...
6a8c7ad
3 months, 1 week ago
Selected Answer: A
Not an instance
upvoted 1 times
...
Rosek93
6 months ago
Selected Answer: A
This is Cloud Run not VM -> A
upvoted 1 times
...
alpha_canary
9 months, 1 week ago
Selected Answer: D
https://cloud.google.com/logging/docs/agent/logging/configuration#process-payload https://cloud.google.com/logging/docs/agent/logging/configuration#structured-records
upvoted 1 times
...
xhilmi
11 months, 2 weeks ago
Selected Answer: D
Vote option D. In this context, if you have unstructured logs written as text strings and want to convert them to JSON-based structured logs, you would typically use a log agent or parser to transform the log entries. The log agent is configured to recognize the structure of the logs and convert the text payload into a JSON payload. The log agent would be responsible for parsing the unstructured logs and converting them into a structured format. This process involves specifying how to extract relevant information from the text payload and organize it into a JSON structure. It's important to note that this approach assumes you have a log agent or parser that supports the transformation of unstructured logs to structured logs.
upvoted 1 times
...
nqthien041292
11 months, 3 weeks ago
Selected Answer: D
Vote D
upvoted 1 times
...
mshafa
1 year ago
Selected Answer: D
The Cloud Logging agent can be configured to convert log text payload to JSON payload by setting the process.payload parameter to json. This will cause the agent to parse the log text and convert it to a JSON object before forwarding it to Cloud Logging.
upvoted 2 times
...
Mar_Mar
1 year ago
Selected Answer: D
https://cloud.google.com/logging/docs/agent/logging/configuration#process-payload
upvoted 4 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 ...