Google Associate Cloud Engineer Question 306
Select 3Google Cloud PlatformAs a Google Cloud Associate Cloud Engineer, you need to investigate an error reported by your application running on Google Cloud. You decide to view the specific error log details in Cloud Logging. Which steps should you follow to view detailed log messages in the Cloud Console?
- A
Navigate to the Cloud Logging page in the Google Cloud Console.
- B
Use the Google Cloud CLI to execute a gcloud logging read command.
- C
Select the specific log entry to view its details in the Cloud Console.
- D
Enable the Cloud Trace API to capture and view detailed logs.
- E
Filter the logs by setting a filter expression in the Cloud Console.
Show answer and explanation
Correct answers: A, C, E
Explanation
To view specific log message details in Cloud Logging using the Google Cloud Console, an engineer should navigate to the Cloud Logging section where all logs are accessible. Once there, engineers can apply filters to refine the logs and focus on specific entries. Selecting a specific log entry allows viewing of detailed information, which is essential for troubleshooting and understanding errors.
- A. Correct.
This is the first step to accessing your logs in the Google Cloud Console.
- B. Incorrect.
While using the Google Cloud CLI is another valid method to view logs, the question specifies using the Cloud Console.
- C. Correct.
Selecting a specific log entry is necessary to view its detailed information.
- D. Incorrect.
Enabling the Cloud Trace API is not required for viewing log details in Cloud Logging.
- E. Correct.
Filtering logs is a crucial step to narrow down and find specific log details relevant to your investigation.