You have an Azure Cosmos DB for NoSQL account that contains a database named DB1 and a container named Container1.
You need to manage the account by using the Azure Cosmos DB SDK.
What should you do?
You have an Azure Cosmos DB for NoSQL account that contains a database named DB1 and a container named Container1.
You need to manage the account by using the Azure Cosmos DB SDK.
What should you do?
To manage an Azure Cosmos DB account using the Azure Cosmos DB SDK, you typically perform operations such as reading or writing data, or executing stored procedures. Reading a stored procedure in Container1 involves using the SDK to interact with the database and is a common management task.
To manage an Azure Cosmos DB account using the Azure Cosmos DB SDK, you would typically perform operations such as reading or writing data, or executing stored procedures. Therefore, the most appropriate action from the given options would be: C. Read a stored procedure in Container1.
Answer: D D. Create a user defined function (UDF) in Container1. Here's why this is the most appropriate option: Creating a UDF involves interacting with the Azure Cosmos DB SDK to manage the database. UDFs are common tasks in database management, and they typically require SDK usage for implementation and deployment
Creating a container within a database is a clear example of managing the database using the SDK. It involves direct interaction with the database and influences its structure and organization.
Creating a container is the only management action. Stored procedures are only scoping 1 logical partion, an UDF can only be used in a query.