Exam Professional-Cloud-Architect Topic 1 Question 242 Discussion
Actual exam question for Google's Professional-Cloud-Architect exam
Question #: 242
Topic #: 1
Question #: 242
Topic #: 1
One of your primary business objectives is being able to trust the data stored in your application. You want to log all changes to the application data. How can you design your logging system to verify authenticity of your logs?
Suggested Answer: D Vote an answer
Explanation
https://cloud.google.com/storage/docs/access-logs
Write a log entry. If the log does not exist, it is created. You can specify a severity for the log entry, and you can write a structured log entry by specifying --payload-type=json and writing your message as a JSON string:
gcloud logging write LOG STRING
gcloud logging write LOG JSON-STRING --payload-type=json
References: https://cloud.google.com/logging/docs/reference/tools/gcloud-logging
https://cloud.google.com/storage/docs/access-logs
Write a log entry. If the log does not exist, it is created. You can specify a severity for the log entry, and you can write a structured log entry by specifying --payload-type=json and writing your message as a JSON string:
gcloud logging write LOG STRING
gcloud logging write LOG JSON-STRING --payload-type=json
References: https://cloud.google.com/logging/docs/reference/tools/gcloud-logging
by Merry at Apr 26, 2025, 12:32 AM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).