Google Cloud Professional Cloud Developer — Question 79
You are building an API that will be used by Android and iOS apps. The API must:
* Support HTTPs
* Minimize bandwidth cost
* Integrate easily with mobile apps
Which API architecture should you use?
Answer options
- A. RESTful APIs
- B. MQTT for APIs
- C. gRPC-based APIs
- D. SOAP-based APIs
Correct answer: C
Explanation
gRPC-based APIs are ideal for mobile applications as they support HTTP/2, which improves performance and reduces bandwidth usage through features like multiplexing. RESTful APIs, while widely used, may not be as efficient in terms of bandwidth compared to gRPC. MQTT is more suitable for IoT scenarios, and SOAP-based APIs are generally heavier and more complex, making them less suitable for mobile app integration.