Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Developer Exam - Topic 4 Question 32 Discussion

Actual exam question for Google's Professional Cloud Developer exam
Question #: 32
Topic #: 4
[All Professional Cloud Developer Questions]

You are writing a single-page web application with a user-interface that communicates with a third-party API for content using XMLHttpRequest. The data displayed on the UI by the API results is less critical than other data displayed on the same web page, so it is acceptable for some requests to not have the API data displayed in the UI. However, calls made to the API should not delay rendering of other parts of the user interface. You want your application to perform well when the API response is an error or a timeout.

What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Leah
5 months ago
D might clutter the UI with errors, not a good idea.
upvoted 0 times
...
Alton
5 months ago
Definitely going with B, async is the way to go!
upvoted 0 times
...
Lemuel
5 months ago
I’m surprised they even suggest option A, that’s so outdated!
upvoted 0 times
...
Melita
5 months ago
I disagree, C could lead to unnecessary retries.
upvoted 0 times
...
Sarah
5 months ago
Option B seems like the best choice for non-blocking calls.
upvoted 0 times
...
Louvenia
5 months ago
Displaying the error in the UI seems like a good idea, but I wonder if option D would clutter the interface too much. I’m leaning towards option B.
upvoted 0 times
...
Kenny
5 months ago
I practiced a similar question where we had to handle API errors gracefully. I feel like option C could be a good approach, but it might lead to too many retries.
upvoted 0 times
...
Jonell
5 months ago
I'm not entirely sure, but I think setting the async option to false could lead to a poor user experience. Maybe option A isn't the best choice?
upvoted 0 times
...
Ligia
5 months ago
I remember that asynchronous requests are important for not blocking the UI, so I think option B makes the most sense.
upvoted 0 times
...
Lenna
6 months ago
I know Snowflake's column-level statistics are important, so I'll carefully read the question and think through the implications before answering.
upvoted 0 times
...
Quentin
6 months ago
Okay, I remember from class that a rise in production costs leads to a leftward shift of the aggregate supply curve. So the answer has to be B.
upvoted 0 times
...
Ricki
6 months ago
This seems like a tricky one. I'll need to carefully review the configuration details to identify the root cause.
upvoted 0 times
...
Leonardo
6 months ago
Hmm, I'm not sure about this one. The question mentions detecting credentials, but the options seem to be about different types of network connections. I'll have to think this through carefully.
upvoted 0 times
...
Carma
6 months ago
Secure data transactions were mentioned in one of the practice questions, but I think that's more about security than performance metrics. I'm kind of unsure here.
upvoted 0 times
...

Save Cancel