exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 259 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 259
Topic #: 1
[All Professional Cloud Developer Questions]

You are a lead developer working on a new retail system that runs on Cloud Run and Firestore. A web UI requirement is for the user to be able to browse through all products. A few months after go-live, you notice that Cloud Run instances are terminated with HTTP 500: Container instances are exceeding memory limits errors during busy times. This error coincides with spikes in the number of Firestore queries.

You need to prevent Cloud Run from crashing and decrease the number of Firestore queries. You want to use a solution that optimizes system performance. What should you do?

  • A. Modify the query that returns the product list using cursors with limits.
  • B. Create a custom index over the products.
  • C. Modify the query that returns the product list using integer offsets.
  • D. Modify the Cloud Run configuration to increase the memory limits.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
__rajan__
7 months, 1 week ago
Selected Answer: A
A is correct.
upvoted 1 times
...
purushi
8 months, 4 weeks ago
Selected Answer: A
A is Best. Using pagination with limit on the size. This is called Lazy loading of data.
upvoted 1 times
...
Writer
1 year ago
Selected Answer: A
A cursor is a pointer to a specific location in a Firestore database. By using cursors with limits, you can control the number of documents that are returned in a query. This can help to reduce the number of Firestore queries that are made, which can improve performance and prevent Cloud Run from crashing.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago