nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #54

PROFESSIONAL-CLOUD-DEVELOPER Question #54: Real Exam Question with Answer & Explanation

The correct answer is A: Install the Stackdriver Logging Agent and configure it to send the application logs.. 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.

Implementing Logging and Monitoring Solutions

Question

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?

Options

  • AInstall the Stackdriver Logging Agent and configure it to send the application logs.
  • BUse a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
  • CProvide the log file folder path in the metadata of the instance to configure it to send the
  • DChange the application to log to /var/log so that its logs are automatically sent to Stackdriver

Explanation

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.

Topics

#Cloud Logging#Compute Engine#Logging Agent#Log Collection

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions