Google Cloud Professional Cloud Database Engineer — Question 83

You are designing a physician portal app in Node.js. This application will be used in hospitals and clinics that might have intermittent internet connectivity. If a connectivity failure occurs, the app should be able to query the cached data. You need to ensure that the application has scalability, strong consistency, and multi-region replication. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because Firestore's PersistenceEnabled option allows the application to cache data locally, which is essential for handling intermittent connectivity while ensuring strong consistency and scalability. Options B and C do not provide the required caching and consistency features, and option D is not suitable for the scenario as it doesn't address the need for local data access during connectivity issues.