





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






What is Cosmos DB It is a premium storage service that Azure provides for a globally distributed, low latency, highly responsive, and always online Database. Has scalability and throughput in mind. What are the 4 ways you can store your data in Cosmos DB? Key-Value Column Family Documents Graph Approaches What are the current APIs that can access CosmosDB? SQL, Cassandra, Table, Gremlin, and MongoDB What is SQL API? It is the core and default API for accessing data in CosmosDB. You can query JSON objects using SQL syntax, Uses Javascript. This is a Data Structure based on Documents. What is Table API
It is like the evolution of Azure Table Storage. It has High Performance, low latency, and highly scalable features. Can migrate from Azure table storage with no code modifications. You can define your own indexes. This is a data structure based on Documents. What is Cassandra API? This is a wire protocol Apache Data Base. How this is implemented means you do not have to worry about operations or performance management tasks related to managing this DB. Can migrate from a Cassandra DB to this DB merely by changing the connection string. Compatible with CQLv4 wire protocol. This is a Column Based DB that stores info in a Key-Value approach. What is MongoDB API? This is a NoSQL DB with a Document based Structure. CosmosDB enables a wire protocol to connect but this API must be version 3.2 or higher. What is Gremlin API? Based on Apache TinkerPop Graph transversal language. This uses a Graph structure. This stores entities but also:
5 consistency levels for CosmosDB From most consistent to most performance
The Cassandra Read Consistency level does... Cosmos DB dynamically maps the consistency level specified by the Cassandra driver client to one of the Cosmos DB levels. Mongo DB Write consistency level does... Maps to the default Cosmos DB consistency level. MongoDB Read consistency level does... Dynamically mapped to the level specified by the MongoDB driver client to one of the Cosmos DB levels How do you configure a master region? You can configure a MongoDB Master region by configuring the region as the first writable Cassandra API does not call itself a database, instead it calls itself a... Keyspace What is Dedicated Throughput for CosmosDB? All the throughput is provisioned for a container, Azure makes a reservation of resources for the container that is backed by SLAs. What is Shared Throughput for CosmosDB? Throughput is shared between all containers, configured at Database level. IndexingPolicy Property for Containers. By default all properties of an item are automatically indexed. This property allows you to configure how to index the items in a container. TimeToLive Property for Containers Expressed in seconds. Will delete when the TTL is reached. If configured at the container level, all items in container have same TTL. Value of -1 means item will not expire. If you set a TTL on an item inside a container without a TTL the item TTL will have no effect. ChangeFeedPolicy Property for Containers
Using the Azure storage blob package, you can manage storage accounts What is SSIS SQL Server Integration Service Feature Pack, allows transfer of data between On Prem data and Az storage account. When moving blobs between containers, what must you do at the end to finish the transition. Delete the Source Blob, What is the command structure for AzCopy? azcopy copy <URL_Source_Item><Source_SASToken> <URL_Target_Container><Target_SASToken> Blob System Properties. Info that is automatically added to each storage resource. Can modify some of these properties but some are read only. Some of the properties correspond to HTTP headers. Azure storage client libraries automatically make any needed modifications. Blob User-Defined Metadata You can assign key-value pairs to a storage resource. This is for your own purpose. What is a block lease? A short block that the blob service sets on a blob or container item for granting exclusive access to that item. What are the 5 forms of Lease?
The lease is unlocked and you can acquire a new license. What does the Leased Lease mean? There is a lease granted to the resource and it is locked. You can acquire a new lease if you use the same ID that you got when you created it. Can also release, change, renew, or break the lease. What does the Expired lease mean? The duration for the lease has expired. You can acquire, renew, release, or break the lease in this state. What does the Breaking lease mean? You have broken the lease, but it is still locked until the break period expires. You can release or break the lease in this stage. What does the Broken lease mean? Break period has expired, and lease has been broken. You can acquire, release, and break a lease. You need to break a lease when the process that acquired the lease finishes suddenly, and the lease is not released correctly. You can end up with an orphaned lease, and you cannot write or delete a blob with an orphaned lease. What is an orphaned lease? It is a lease that happens when you try to acquire a lease but it fails suddenly such as a network outage. You must Break the lease or else you can not write or delete the blob connected. Leasing assures what? That only you have access to make modifications to a blob. Extremely helpful when moving blobs. When you get a lease for a blob what happens? You get exclusive write and delete access. When you get a lease for a container what happens? You get exclusive delete access.