Docsity

Developing Solutions for Microsoft Azure - Exam Ref AZ-204 Chapter 2 - D306 Azure Develope, Exams of Computer Science

Toggle sidebar
bg1
Developing Solutions for Microsoft Azure - Exam
Ref AZ-204 Chapter 2 - D306 Azure Developer
Associate Study pack with 100% verified
answer/solutions- assured excellence & primed
for success 2025-2026
70 Q&A
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
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Developing Solutions for Microsoft Azure - Exam Ref AZ-204 Chapter 2 - D306 Azure Develope and more Exams Computer Science in PDF only on Docsity!

Developing Solutions for Microsoft Azure - Exam

Ref AZ-204 Chapter 2 - D306 Azure Developer

Associate Study pack with 100% verified

answer/solutions- assured excellence & primed

for success 2025-

70 Q&A

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:

  1. Vertices - (entity such as person, device or event)
  2. Edges - Relationships between vertices
  3. Properties - each of the attributes that are assigned to a vertex or edge. Can you use multiple APIs in a single CosmosDB account? No you can only choose one. What is a logical partition for Cosmos DB When you divide a CosmosDB container into smaller pieces, each piece is a logical partition. All items stored on this partition share the same partition key. What is a physical partition for CosmosDB?

5 consistency levels for CosmosDB From most consistent to most performance

  1. Strong
  2. Bounded Staleness
  3. Session
  4. Consistent Prefix
  5. Eventual What is Strong Consistency? The read operations are guaranteed to return the most recently committed version. Only one that offers linearizability guarantee. High latency. What is Bounded Staleness consistency? Reads are guaranteed to be consistent within a preconfigured lag. Known as Time delayed linearizability guarantee. What is Session consistency? Offers the best balance between strong consistency and performance. Best fits write operations occurring in the user session. What is Consistent Prefix consistency? Guarantees that you always read data in the same order that you wrote the data, but no guarantee that you can read all the data. What is Eventual Consistency? No guarantee for the order of data. In an absence of write operations the replicas eventually converge. Offers best performance at the cost of complexity. Only use if data is not essential. What is the Recommended default consistency level? Session The Cassandra Write Consistency level does... This maps to the default Cosmos DB account consistency level.

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?

  1. Available
  2. Leased
  3. Expired
  4. Breaking
  5. Broken What does the Available lease mean?

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.