🔥 40% Off Crucial Exams Memberships — Deal ends today!

1 hour, 53 minutes remaining!

GCP Associate Cloud Engineer Practice Question

You manage a Cloud Firestore database in Native mode. Each document in the incidents collection contains a timestamp field createdAt and an array field tags. Operations wants to display the 20 most recent incidents whose tags array contains either "urgent" or "high". Which Node.js Admin SDK query retrieves the correct documents in a single request?

  • incidentsRef.where('tags', 'array-contains', 'urgent').where('tags', 'array-contains', 'high').orderBy('createdAt', 'desc').limit(20)

  • incidentsRef.where('tags', 'array-contains-any', ['urgent', 'high']).orderBy('createdAt', 'desc').limit(20)

  • incidentsRef.where('tags', '==', ['urgent', 'high']).orderBy('createdAt', 'desc').limit(20)

  • incidentsRef.where('tags', 'in', ['urgent', 'high']).orderBy('createdAt', 'desc').limit(20)

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot