
Answer-first summary for fast verification
Answer: The logging agent is not installed on the instance.
The correct answer is **A** – The absence of a logging agent on the instance prevents logs from being written to Cloud Logging. The logging agent is essential for transmitting logs from the VM to Cloud Logging. The default service account comes with the editor role, which provides adequate permissions for logging activities, making roles like 'logging viewer' unnecessary. Enabling VM machine logs does not facilitate the logging agent's operation. For more details, refer to [Google Cloud Logging documentation](https://cloud.google.com/logging/docs/agent/logging).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A customer has deployed an application on Compute Engine using the default service account. The application is supposed to write logs to the instance, but no logs are appearing in Cloud Logging. What is the most likely reason for this issue?
A
The logging agent is not installed on the instance.
B
The VM machine logs have not been enabled.
C
The service account lacks the 'logging viewer' role.
D
The service account's scopes are insufficient for writing to Cloud Logging.