Develop for Azure storage Flashcards
In Cosmos DB, how do you make sure that there is low latency? [1]
You can configure your databases to be globally distributed and available in any of the Azure regions. To lower the latency, [1] place the data close to where your users are. Choosing the required regions depends on the global reach of your application and where your users are located.
In Cosmos DB, can you add and remove region associated with your account and if so, what other benefit does it have? [2]
[1] Yes - With Azure Cosmos DB, you can add or remove the regions associated with your account at any time. [2] Your application doesn’t need to be paused or redeployed to add or remove a region.
In Cosmos DB, - “Azure Cosmos DB transparently partitions your container using the logical **** ** that you specify in order to elastically scale your provisioned throughput and storage”?[1]
partition key
In Cosmos DB, what is the term throughput used to describe? [2]
In Azure Cosmos DB, “throughput” [1] refers to the amount of work a database container can handle in terms of read and write operations per second. Throughput is a crucial concept in Cosmos DB, as [2] it directly impacts the performance and scalability of your database workloads. Cosmos DB offers two main throughput models: “Provisioned throughput” and “Serverless.”
In Cosmos DB, Depending on which API you use, an Azure Cosmos DB item can represent either a……. ?
[1]a document in a collection, [2]a row in a table, [3] or a node or [4] edge in a graph.
In Cosmos DB, what is the trade off for using strong consistency? [3]
Lover availability
Higher latency
lower throughput
In Cosmos DB, what is the benefit of using lower consistancy options? [3]
Higher availability
Lower latency
Higher throughput
In Cosmos DB. After you create an account under your Azure subscription, you can manage the data in your account by what? [3]
creating databases, containers, and items
In Cosmos DB, When you create a container, you configure throughput in one of two modes, what a are they? [2]
Dedicated provisioned throughput mode: The throughput provisioned on a container is exclusively reserved for that container and it’s backed by the SLAs.
Shared provisioned throughput mode: These containers share the provisioned throughput with the other containers in the same database (excluding containers that have been configured with dedicated provisioned throughput). In other words, the provisioned throughput on the database is shared among all the “shared throughput” containers.
In Cosmos DB, when you configure the default consistency level what does it apply to? [2]
You can configure the default consistency level on your Azure Cosmos DB account at any time. The default consistency level configured on your account [1] applies to all Azure Cosmos DB databases [2] and containers under that account. All reads and queries issued against a container or a database use the specified consistency level by default.
Read consistency applies to a single read operation scoped within a logical partition. The read operation can be issued by a remote client or a stored procedure.
In Cosmos DB, what are the characteristics of Strong consistency? [3]
Strong consistency offers a linearizability guarantee. Linearizability refers to serving requests concurrently. [1] The reads are guaranteed to return the most recent committed version of an item. [2] A client never sees an uncommitted or partial write. [3] Users are always guaranteed to read the latest committed write.
In Cosmos DB, when is it best to use the APIs for MongoDB, PostgreSQL, Cassandra, Gremlin, and Table? [3]
These APIs are best suited if the following conditions are true:
[1] If you have existing MongoDB, PostgreSQL Cassandra, or Gremlin applications
[2] If you don’t want to rewrite your entire data access layer
[3] If you want to use the open-source developer ecosystem, client-drivers, expertise, and resources for your database
In Cosmos DB, what is the C# code to create a new CosmosClient with a connection string?
CosmosClient client = new CosmosClient(endpoint, key);
The Database.CreateContainerIfNotExistsAsync method checks if a container exists, and if it doesn’t, it creates it. Only the container ** is used to verify if there’s an existing container. What is used?
ID
What does CRUD mean?
CRUD (create, read, update, and delete)