nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #54

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

Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #54. The question stem and answer options stay visible for context.

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

Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer

You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Cloud Logging#Compute Engine#Logging Agent#Log Collection
Full PROFESSIONAL-CLOUD-DEVELOPER Practice