
Answer-first summary for fast verification
Answer: There is no logging agent installed on the instance.
The correct answer is **C**. Without the logging agent, VMs cannot write logs to Cloud Logging. - **Option A** is incorrect because the default service account has the editor role, which includes sufficient permissions for Cloud Logging. - **Option B** is incorrect because enabling VM machine logs is not a requirement if a logging agent is installed. - **Option D** is incorrect for the same reason as option A; the default service account has adequate permissions. For more information, refer to the [Google Cloud Logging documentation](https://cloud.google.com/logging/docs/agent/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, but no logs are appearing in Cloud Logging. What is the most likely issue?
A
The service account lacks the Logging Viewer role.
B
The VM machine logs have not been enabled.
C
There is no logging agent installed on the instance.
D
The service account's scopes are insufficient for writing to Cloud Logging.
No comments yet.