
Answer-first summary for fast verification
Answer: The logging agent is not installed on the instance.
The correct answer is **B** because without the logging agent, VMs cannot send logs to Cloud Logging. The other options are incorrect for the following reasons: - **A**: Enabling VM machine logs is not the issue if the logging agent is missing. - **C**: The default service account comes with the editor role, which includes sufficient permissions for Cloud Logging. - **D**: The service account's default scopes are adequate for Cloud Logging operations. For more information, refer to the [Cloud Logging documentation](https://cloud.google.com/logging).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A customer has deployed an application on Compute Engine, utilizing the default service account. The application is designed to write logs to the instance's logs. However, no logs are appearing in Cloud Logging. What is the most likely issue?
A
The VM machine logs have not been enabled.
B
The logging agent is not installed on the instance.
C
The service account lacks the Logging Viewer role.
D
The service account's scopes are insufficient for writing to Cloud Logging.
No comments yet.