nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #332

Your team currently uses Bigtable as their database backend. In your application's app profile, you notice that the connection to the Bigtable cluster is specified as single-cluster routing, and the c

The correct answer is D. Configure the app profile to use multi-cluster routing.. Bigtable's multi-cluster routing automatically routes each request to the nearest available cluster and handles failover transparently without manual intervention. Single-cluster routing with manual failover means that if the primary cluster becomes unavailable, a human must inte

Developing Applications with Google Cloud Databases

Question

Your team currently uses Bigtable as their database backend. In your application's app profile, you notice that the connection to the Bigtable cluster is specified as single-cluster routing, and the cluster’s connection logic is configured to conduct manual failover when the cluster is unavailable. You want to optimize the application code to have more efficient and highly available Bigtable connectivity. What should you do?

Options

  • ASet up Memcached so that queries hit the cache layer first and automatically get data from
  • BIncrease the Bigtable client's connection pool size.
  • CConfigure a Dataflow template, and use a Beam connector to stream data changes.
  • DConfigure the app profile to use multi-cluster routing.

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    13% (4)
  • D
    77% (23)

Explanation

Bigtable's multi-cluster routing automatically routes each request to the nearest available cluster and handles failover transparently without manual intervention. Single-cluster routing with manual failover means that if the primary cluster becomes unavailable, a human must intervene-this is neither efficient nor highly available. Switching the app profile to multi-cluster routing requires only a configuration change (no code changes), immediately delivering both lower latency (routing to the closest cluster) and automatic high availability. Options A (Memcached) and C (Dataflow) address different problems entirely, and increasing the connection pool (B) improves throughput but does nothing for availability.

Topics

#Bigtable#High Availability#Application Development#Database Optimization

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice