考题解析 | 计算使用 Azure API Management 需要发布 API 的数量


  题目

Your company uses two applications that publish the following APIs:
App1 publishes 30 APIs that reside on five servers.
App2 publishes 40 APIs that reside on 10 servers.
You need to implement an Azure API Management solution. The solution must provide full functionality for both applications.
What is the minimum number of APIs that you must publish in Azure API Management?
Select only one answer.
A. 2
B. 15
C. 70
D. 450

  参考答案

C

  参考解析

技巧:排除明显错误选项,在没有明显错误的选项中选择最合理的选项。
某公司有两个应用程序(App1和App2),它们分别发布了以下API:App1:发布了30个API,这些API分布在5台服务器上。App2:发布了40个API,这些API分布在10台服务器上。现在需要实现一个Azure API Management解决方案,要求为这两个应用程序提供完整功能。需要确定在Azure API Management中必须发布的最少API数量。
Azure API Management是一个完全托管的API网关服务,用于发布、保护、监控和分析API。
在API Management中,API是按逻辑API管理的,而不是按服务器或物理位置管理的。
无论API分布在多少台服务器上,每个逻辑API只需在API Management中发布一次。

A. 不正确。2。可能是误解为App1和App2各为一个“聚合API”,但题目要求提供完整功能,不能合并API。
B. 不正确。15。可能是误将App1的5台服务器和App2的10台服务器相加(5 + 10 = 15),但服务器数量与API数量无关。
C. 正确。70。正pp1的30个API + App2的40个API = 70个API。
D. 不正确。450。完全错误,API数量与服务器数量无关。

  官方参考文档

什么是 Azure API 管理?