Bird
0
0

Which of the following is the correct gcloud command to read logs from Cloud Logging?

easy📝 Syntax Q12 of 15
GCP - Cloud Monitoring and Logging
Which of the following is the correct gcloud command to read logs from Cloud Logging?
Agcloud logging read "resource.type=gae_app"
Bgcloud compute instances list
Cgcloud storage buckets create my-bucket
Dgcloud iam roles describe admin
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command for reading logs

    The command to read logs uses 'gcloud logging read' followed by a filter.
  2. Step 2: Check each option

    gcloud logging read "resource.type=gae_app" uses 'gcloud logging read' correctly; others relate to compute, storage, or IAM.
  3. Final Answer:

    gcloud logging read "resource.type=gae_app" -> Option A
  4. Quick Check:

    Log reading command starts with 'gcloud logging read' [OK]
Quick Trick: Look for 'logging read' in the command to find logs [OK]
Common Mistakes:
  • Using compute or storage commands instead of logging
  • Missing the 'read' keyword after 'logging'
  • Confusing IAM commands with logging commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes