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 54 discussion

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

You are using Stackdriver to monitor applications hosted on Google Cloud Platform (GCP). You recently deployed a new application, but its logs are not appearing on the Stackdriver dashboard.
You need to troubleshoot the issue. What should you do?

  • A. Confirm that the Stackdriver agent has been installed in the hosting virtual machine.
  • B. Confirm that your account has the proper permissions to use the Stackdriver dashboard.
  • C. Confirm that port 25 has been opened in the firewall to allow messages through to Stackdriver.
  • D. Confirm that the application is using the required client library and the service account key has proper permissions.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
KyubiBlaze
Highly Voted 2 years, 6 months ago
Why do you complicate stuff. A is the answer. Why not D, because if A is not there D is useless. Question says you are using Stackdriver monitoring, not saying you have an agent installed already. You need the agent to export logs. So first thing you'll always see in the agent is there, and running. Next service account, next client libraries. I hope this clears your doubts.
upvoted 13 times
Meyucho
7 months, 3 weeks ago
It never says that u are using a VM. What if the service is running on CloudRun? B is the answer
upvoted 1 times
...
csrazdan
1 year, 10 months ago
You are assuming the new application is deployed on compute engine though there is no reference in question that says where the application is deployed.
upvoted 3 times
...
ric79
2 years, 5 months ago
For "client libraries" you mean something like the fluent-logger-python ?
upvoted 1 times
...
...
hfudjdn
Highly Voted 2 years, 8 months ago
D - The question states that you are already using Stackdriver for the GCE instance (assuming the agent is already installed). However, the "new" application has issues shipping the logs
upvoted 6 times
JohnnieWalker
2 years, 8 months ago
The question mention application logs, not only monitoring metrics, so I think "D" is correct. The stackdriver agent would only provide metrics of resources. I think you need to setup logging "client libraries" on the application in order to have the logs, therefore "D". https://cloud.google.com/logging/docs/reference/libraries
upvoted 4 times
...
...
muthucts
Most Recent 1 week, 4 days ago
Selected Answer: B
No specific service mentioned, so B is the best match for the question
upvoted 1 times
...
Meyucho
7 months, 3 weeks ago
Selected Answer: B
It never says in which service is running so A does not consider all posibillities. B is the best match
upvoted 1 times
...
jomonkp
8 months, 1 week ago
Selected Answer: A
Option A
upvoted 2 times
...
maxdanny
8 months, 3 weeks ago
Selected Answer: A
the question asks about logs, only answer correct is A, the user already has access to the Stackdriver dashboard
upvoted 1 times
...
zanhsieh
1 year, 1 month ago
Selected Answer: D
D. Stackdriver agent or Cloud Monitor agent only ships metrics, not log. If opt A change to Ops agent then it will be correct since Ops Agent handles both metrics and log. https://cloud.google.com/logging/docs/agent/ops-agent/configuration#default "The Ops Agent collects both metrics and logs by default. You can change this default behavior by configuring the Ops Agent." https://cloud.google.com/monitoring/agent/monitoring/installation#:~:text=The%20Ops%20Agent%20collects%20both%20metrics%20and%20logs%20by%20default.%20You%20can%20change%20this%20default%20behavior%20by%20configuring%20the%20Ops%20Agent.
upvoted 2 times
...
JonathanSJ
1 year, 6 months ago
Selected Answer: A
A. Store the Terraform code in a version-control system. Establish procedures for pushing new versions and merging with the master. Using a version-control system such as Git, allows you to store different versions of the code and track changes that are made to it. This allows you to easily roll back to a previous version if necessary, and ensures that all team members are working on the same version of the code. It also allows team members to collaborate on the code and merge changes with the master version. This is the most effective way to share code and maintain versioning, as it provides a centralized location for all code and allows for easy collaboration and management of code changes.
upvoted 2 times
JonathanSJ
1 year, 6 months ago
My last message was wrong, this is the good one: A. Confirm that the Stackdriver agent has been installed in the hosting virtual machine. To troubleshoot the issue of logs not appearing on the Stackdriver dashboard, you should first confirm that the Stackdriver agent has been installed in the hosting virtual machine. This is because the agent is responsible for sending the logs from the machine to the Stackdriver service
upvoted 1 times
...
...
hanweiCN
1 year, 7 months ago
Selected Answer: A
service account key does not have permission. service account has permission.
upvoted 3 times
...
WhyIronMan
1 year, 8 months ago
Selected Answer: A
Key sentences for this question: 1. You recently deployed a NEW APPLICATION, 2. If it is a new application you CAN'T assume Stackdriver agent is already installed B) Wrong this is not a dashboard issue, even do, the first step is check if agent is installed C) Wrong, port 25 is used for SMTP server D) Wrong, if you are using GCP, VM, wth..
upvoted 2 times
...
juancambb
1 year, 8 months ago
Selected Answer: B
I think a lot the best answer is B, because the question not suggest the application is running in compute engine, and if the user has dashboard viewer permissions but no logs viewer permissions the problem mentioned in the question can happen
upvoted 1 times
...
ssmb
1 year, 9 months ago
A should be the most likely correct answer.
upvoted 1 times
...
eliC
2 years, 1 month ago
Selected Answer: A
A is the answer ref.: https://cloud.google.com/monitoring/agent/monitoring/troubleshooting#checklist
upvoted 3 times
...
ric79
2 years, 4 months ago
I think A Troubleshoot legacy monitoring - agent installed ed run: ps -ax | grep fluentd - logging test is visible? - VM API Access scope (ie Full Access scope or Logging Write for logging agent) - Service account (if not default is used) or credential key - Application Client library installed - Exclusion rule exists on Log Router? - Firewall rule?
upvoted 1 times
...
Sekierer
2 years, 6 months ago
A is correct
upvoted 3 times
...
TNT87
2 years, 7 months ago
The correct answer is A not D..D is mentioning one wrong thing thats why. https://cloud.google.com/logging/docs/agent/logging/troubleshooting#try-installing
upvoted 1 times
...
not_thanos
2 years, 7 months ago
Selected Answer: A
A and D seems correct. I think D is less correct because since you are hosting on GCP, best practice is to not add a service account to the application itself but instead leverage the native logging capabilities of GCP's offerings like GKE, GCP, etc.
upvoted 5 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