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 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 🗳️

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
raf2121
Highly Voted 3 years, 2 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
3 years, 1 month 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
...
...
desertlotus1211
Most Recent 6 months, 2 weeks ago
Why nnot Answer A as a starting point?
upvoted 1 times
...
JonathanSJ
1 year, 9 months ago
Selected Answer: D
Answer is D.
upvoted 1 times
...
floppino
1 year, 10 months ago
Selected Answer: D
Ans: D
upvoted 2 times
...
DoodleDo
1 year, 11 months ago
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.
upvoted 2 times
...
zellck
2 years 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
2 years, 3 months ago
Selected Answer: D
Ans: D
upvoted 1 times
...
Devtestnew
2 years, 4 months ago
Selected Answer: D
Ans: D
upvoted 1 times
...
Ananda
2 years, 5 months ago
Selected Answer: D
Submitted D
upvoted 1 times
...
gomezzang
2 years, 6 months ago
answer is D
upvoted 1 times
...
alexweberlopes
2 years, 8 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, 9 months ago
Selected Answer: D
https://cloud.google.com/logging/docs/agent/logging/troubleshooting#test-agent
upvoted 1 times
...
alaahakim
2 years, 10 months ago
Ans: D
upvoted 2 times
...
Wwhite44
2 years, 11 months ago
C is not good, “monitoring.write" is use for metric not log
upvoted 2 times
...
danchoif2
3 years, 2 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: * ... So D is better than C.
upvoted 1 times
Manumj
3 years, 1 month 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, 12 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
...
...
...
guruguru
3 years, 4 months ago
C, first thing to check should be the access scope. There are 3 types of scopes, default, full access and access for each API. Even thought the default scope have the Stackdriver write access, it doesn't mean the instance has the default scope. It could be access for each API. Hence, first thing to check is the scope. After that, you can check the fluentd service in the system. C over D.
upvoted 2 times
Wwhite44
2 years, 11 months ago
Monitoring.write is for metric, so C is not correct. In that case logging.write was the right command. So D is the correct ANS ;)
upvoted 1 times
...
...
TNT87
3 years, 4 months ago
Ans C https://cloud.google.com/logging/docs/agent/logging/troubleshooting
upvoted 2 times
TNT87
3 years, 1 month ago
Sorry Ans is D
upvoted 2 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