After installing the Stackdriver Logging Agent on a Compute Engine VM, what is the first configuration step to send your application's log file to Stackdriver?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure the application log file as a custom source..
Why this is the answer
The Stackdriver Logging Agent (now Cloud Logging agent) needs to know which files to monitor and send to Cloud Logging. This is achieved by configuring the application's log file as a custom source within the agent's configuration. This typically involves editing the logging.conf or fluentd.conf file on the VM to specify the path to your log file and how to parse its entries. Enabling the Error Reporting API is for a different service and doesn't directly configure log ingestion. Granting full access to all Cloud APIs is overly broad and unnecessary; the agent only requires specific logging permissions. Creating a Stackdriver Logs Export Sink is for routing logs after they have been ingested into Cloud Logging, not for the initial ingestion itself.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed