Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Professional Cloud DevOps Engineer topic 1 question 5 discussion

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

You are running an application in a virtual machine (VM) using a custom Debian image. The image has the Stackdriver Logging agent installed. The VM has the cloud-platform scope. The application is logging information via syslog. You want to use Stackdriver Logging in the Google Cloud Platform Console to visualize the logs. You notice that syslog is not showing up in the "All logs" dropdown list of the Logs Viewer. What is the first thing you should do?

  • A. Look for the agent's test log entry in the Logs Viewer.
  • B. Install the most recent version of the Stackdriver agent.
  • C. Verify the VM service account access scope includes the monitoring.write scope.
  • D. SSH to the VM and execute the following commands on your VM: ps ax | grep fluentd.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference:
https://groups.google.com/g/google-stackdriver-discussion/c/FXehB9a-5Vk?pli=1

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
raf2121
Highly Voted 2 years, 9 months ago
Between C and D, I think D Reason : When an instance is created, we can specify which service account the instance uses when calling Google Cloud APIs. The instance is automatically configured with access scope and one such access scope is monitoring.write (Link : https://cloud.google.com/compute/docs/access/service- read is to publish metric data and logging.write is to write compute engine logs. Considering above, I believe D as the answer (check whether the agent is running)
upvoted 12 times
cetanx
2 years, 8 months ago
Agree. If you check here: https://cloud.google.com/logging/docs/agent/logging/troubleshooting#checklist You will see that first recommended troubleshooting step is to check if the agent is running or not... So it should be D. Also if you refer to Google Groups link provided as the answer, you will see that they first checked if the agent is running/installed.
upvoted 3 times
AzureDP900
1 year, 6 months ago
Agreed. D is correct
upvoted 1 times
...
...
...
desertlotus1211
Most Recent 1 month ago
Why nnot Answer A as a starting point?
upvoted 1 times
...
JonathanSJ
1 year, 4 months ago
Selected Answer: D
Answer is D.
upvoted 1 times
...
floppino
1 year, 4 months ago
Selected Answer: D
Ans: D Exam pased and taken on 19/12/2022, 50/50 from this dump without buying the full access.
upvoted 2 times
...
DoodleDo
1 year, 5 months ago
Answer is D. https://cloud.google.com/logging/docs/agent/logging/troubleshooting. D. Check if fluentd is running is the right answer. C is incorrect as monitoring.write scope is for monitoring agent and not logging agent. The legacy scope for logging is https://www.googleapis.com/auth/logging.write
upvoted 2 times
...
zellck
1 year, 6 months ago
Selected Answer: D
D is the answer. https://cloud.google.com/logging/docs/agent/logging/troubleshooting#checklist If you are having trouble installing or using the Logging agent, here are some things to check: - Verify that the agent service is running on your VM instance
upvoted 1 times
...
GCP72
1 year, 9 months ago
Selected Answer: D
Ans: D
upvoted 1 times
...
Devtestnew
1 year, 11 months ago
Selected Answer: D
Ans: D
upvoted 1 times
...
Ananda
2 years ago
Selected Answer: D
Submitted D
upvoted 1 times
...
gomezzang
2 years ago
answer is D
upvoted 1 times
...
alexweberlopes
2 years, 3 months ago
The VM has cloud-platform scope on the VM means Full access if you using the default compute account. I would say answer D is right check is the fluentd daemon running.
upvoted 2 times
...
pddddd
2 years, 3 months ago
Selected Answer: D
https://cloud.google.com/logging/docs/agent/logging/troubleshooting#test-agent
upvoted 1 times
...
alaahakim
2 years, 5 months ago
Ans: D
upvoted 2 times
...
Wwhite44
2 years, 5 months ago
C is not good, “monitoring.write" is use for metric not log
upvoted 2 times
...
danchoif2
2 years, 8 months ago
https://cloud.google.com/compute/docs/access/service-accounts#associating_a_service_account_to_an_instance When you create an instance using the gcloud command-line tool or the Google Cloud Console, you can specify which service account the instance uses when calling Google Cloud APIs. The instance is automatically configured with the following access scopes: * https://www.googleapis.com/auth/monitoring.write * ... So D is better than C.
upvoted 1 times
Manumj
2 years, 7 months ago
i don't think so , reason is option-D is looking for fluent d which is specifically for customized logs , also by default the syslog will be captured with default monitoring agent and no need for fluent-d
upvoted 1 times
danchoif2
2 years, 6 months ago
https://cloud.google.com/logging/docs/agent/logging/installation Logging agent is fluentd based (now fluentbit). The Logging agent streams logs from your VM instances and from selected third-party software packages to Cloud Logging. It is a best practice to run the Logging agent on all your VM instances. The VM images for Compute Engine and Amazon Elastic Compute Cloud (EC2) don't include the Logging agent, so you must complete these steps to install it on those instances. The agent runs under both Linux and Windows. If your VMs are running in Google Kubernetes Engine or App Engine, the agent is already included in the VM image, so you can skip this page.
upvoted 1 times
...
...
...
[Removed]
2 years, 9 months ago
4- Then you should check that the agent is sending data to the correct project. See the following section, Verifying Compute Engine credentials. The link for Verifying Compute Engine credentials is https://cloud.google.com/logging/docs/agent/logging/troubleshooting#verify-creds In this link : a- Verifying access scopes b- Verifying default service account permission ==> Similar to Answer C) but C) Answer talks about monitoring.write instead of logging.write. And in the question they say "The VM has the cloud-platform scope" ==> logging.write is already here. 5- Verifying the agent installation using agent's test log entry in the Logs Explorer ==> Answer A) 6- Testing the agent using ps ax | grep fluentd ==> Answer D) So for me the good answer is A).
upvoted 1 times
...
[Removed]
2 years, 9 months ago
If we follow this link : https://cloud.google.com/logging/docs/agent/logging/troubleshooting The action (for Linux VM) are in order : 1- If Linux installation commands result in errors, then make sure that you prefix the installation commands with sudo. 2- Verify that the agent service is running on your VM instance : sudo service google-fluentd status 3- See if the agent has written error messages to the logs.
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 ...