
Show answerHide answer
Explanation

Explanation:
This question tests fundamental knowledge of Azure Cosmos DB account structure and partitioning. It requires understanding that the API is set at the account level, not per database, and that the primary purpose of a partition key is scalable data distribution, not query optimization.
Correct Option:
First Statement, Select "No":
The API for Azure Cosmos DB (e.g., SQL, MongoDB, Cassandra) is a core property defined when creating the account. All databases and containers within that account use the same API. You cannot configure a different API for individual databases inside a single account.
Second Statement, Select "Yes":
Partition keys are fundamental for horizontal scalability (partitioning) by logically grouping data. While a well-chosen partition key can improve query performance for operations scoped to a single partition, its primary and defining function is to enable scalable storage and throughput distribution, which indirectly optimizes the data architecture for queries.
Incorrect Option:
First Statement, Selecting "Yes":
This is incorrect because it misstates a core architectural concept. An Azure Cosmos DB account is created for a specific API model, which then applies universally to all its child resources (databases, containers). Creating separate APIs per database would require separate Cosmos DB accounts.
Second Statement, Selecting "No":
This is incorrect because it underestimates the role of the partition key. Although not a direct query tuning tool like an index, the partition key's design is crucial for query efficiency. Queries filtered on the partition key are highly efficient and cost-effective, making it a key factor in query optimization strategy.
Reference:
Microsoft Learn: "Choose the appropriate API for Azure Cosmos DB" and "Partitioning and horizontal scaling in Azure Cosmos DB".








