Google Cloud Digital Leader — Question 221
A retail company stores their product inventory in a legacy system. Often, customers find products on the company's website and want to purchase them in-store.
However, when they arrive, they discover that the products are out of stock.
How could the company benefit from using an application programming interface (API)?
Answer options
- A. To create personalized product recommendations for customers
- B. To optimize their on-premises legacy system stability
- C. By manually linking each inventory system to the website on a case-by-case basis
- D. By programmatically connecting the inventory system to their website
Correct answer: D
Explanation
The correct answer is D because using an API allows the company to automatically sync their inventory system with the website, ensuring that customers see real-time stock levels. Option A focuses on personalized recommendations, which does not address inventory accuracy. Option B is about system stability rather than integration, and option C suggests a manual process that is inefficient and prone to errors.