exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 16 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 16
Topic #: 1
[All Professional Cloud Developer Questions]

You are deploying your application to a Compute Engine virtual machine instance. Your application is configured to write its log files to disk. You want to view the logs in Stackdriver Logging without changing the application code.
What should you do?

  • A. Install the Stackdriver Logging Agent and configure it to send the application logs.
  • B. Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
  • C. Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
  • D. Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.
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
santoshchauhan
7 months, 3 weeks ago
Selected Answer: A
A. The Stackdriver Logging Agent is a software agent that can collect logs from various sources on your virtual machine and send them to Stackdriver Logging. By configuring the agent, you can specify custom log file paths, and the agent will forward these logs to Stackdriver Logging. This is the most direct and least intrusive method when you cannot or do not want to change the application code.
upvoted 1 times
...
_Puru_
1 year, 1 month ago
Selected Answer: A
Correct answer is A
upvoted 1 times
...
__rajan__
1 year, 1 month ago
Selected Answer: A
A is correct
upvoted 1 times
...
gc_exam2022
1 year, 5 months ago
Correct Answer: A
upvoted 1 times
...
zevexWM
1 year, 10 months ago
A is correct here
upvoted 1 times
...
meh_33
2 years, 1 month ago
A is correct -We need to install stackdriver agent in the VM
upvoted 1 times
...
tomato123
2 years, 2 months ago
Selected Answer: A
A is correct
upvoted 3 times
...
tomato123
2 years, 2 months ago
A is correct
upvoted 1 times
...
javibadillo
2 years, 4 months ago
Selected Answer: A
https://cloud.google.com/logging/docs/agent/logging/installation
upvoted 2 times
...
syu31svc
3 years, 4 months ago
https://cloud.google.com/logging/docs/agent/logging/installation: "The Logging agent streams logs from your VM instances and from selected third-party software packages to Cloud Logging" A is correct
upvoted 3 times
...
saurabh1805
3 years, 11 months ago
A is correct option here
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago