
Ultimate access to all questions.
A popular live TV show engages its audience by allowing viewers to cast votes using their mobile phones within a 3-minute window during the program. This activity generates a significant volume of data in a short period. As the person responsible for the 'Voting infrastructure,' your job is to ensure that the platform can manage the high load and that all the cast votes are accurately processed. During the voting period, it is essential to display partial results in real-time. Once the voting period closes, your task is to count all votes precisely once, while also optimizing for cost efficiency. What approach should you take to achieve these objectives?
A
Create a Memorystore instance with a high availability (HA) configuration.
B
Create a Cloud SQL for PostgreSQL database with high availability (HA) configuration and multiple read replicas.
C
Write votes to a Pub/Sub topic and have Cloud Functions subscribe to it and write votes to BigQuery.
D
Write votes to a Pub/Sub topic and load into both Bigtable and BigQuery via a Dataflow pipeline. Query Bigtable for real-time results and BigQuery for later analysis. Shut down the Bigtable instance when voting concludes.