Courseiva

CCNA Describe considerations for working with non-relational data on Azure Questions

75 of 178 questions · Page 1/3 · Describe considerations for working with non-relational data on Azure · Answers revealed

1
MCQeasy

A company must archive customer correspondence PDFs that are rarely accessed but must be retained for seven years. The documents must be available for read within seconds if requested. Which Azure Blob Storage access tier should be used to minimize storage cost while meeting the availability requirement?

A.Hot
B.Cool
C.Archive
D.Premium
AnswerB

Cool tier is for infrequent access with immediate availability and lower storage cost than Hot.

Why this answer

The Cool tier is optimal because it balances low storage cost with high availability for data that is infrequently accessed but must be retrievable within seconds. It offers the same low-latency retrieval as the Hot tier (milliseconds) but at a lower storage price, making it ideal for archived correspondence that still requires immediate read access.

Exam trap

The trap here is that candidates see 'archived' and immediately choose the Archive tier, forgetting the 'within seconds' availability requirement that disqualifies it.

How to eliminate wrong answers

Option A is wrong because the Hot tier has the highest storage cost and is designed for frequently accessed data, not for rarely accessed archives. Option C is wrong because the Archive tier has the lowest storage cost but retrieval times can range from minutes to hours, failing the 'within seconds' requirement. Option D is wrong because the Premium tier is optimized for high transaction volumes and low latency on block blobs, not for cost-effective archiving of rarely accessed data.

2
Multi-Selectmedium

A company is designing a solution to store time-series data from millions of IoT devices. Which TWO Azure services are most suitable for this scenario?

Select 2 answers
A.Azure Data Explorer
B.Azure Blob Storage
C.Azure Cosmos DB
D.Azure Redis Cache
E.Azure SQL Database
AnswersA, C

Azure Data Explorer is purpose-built for storing and analyzing time-series and high-throughput telemetry data. Its columnar storage and specialized Kusto Query Language (KQL) engine index data by time partitions, enabling fast, server-side aggregations and native time-series functions like make-series and anomaly detection. This makes it the most appropriate choice for interactive analytics over large volumes of timestamped events.

Why this answer

Azure Data Explorer (option A) is optimized for time-series analytics and ingesting high volumes of data from IoT devices. Azure Cosmos DB (option C) provides a flexible schema and low latency suitable for time-series data storage. Azure Blob Storage (option B) is for unstructured blob data, not optimized for time-series queries.

Azure Redis Cache (option D) is a caching layer, not a primary storage solution. Azure SQL Database (option E) is relational and less efficient for high-velocity time-series data.

3
MCQmedium

A company has a legacy application that requires SMB (Server Message Block) file shares to store and access configuration files. They want to migrate this data to Azure without modifying the application. Which Azure storage solution should they use?

A.Azure Blob Storage
B.Azure Files
C.Azure Queue Storage
D.Azure Disk Storage
AnswerB

Azure Files is a fully managed file share service that supports the SMB protocol, specifically SMB 3.0 and later, enabling a legacy application to mount a cloud-backed share just like a traditional on-premises file server. It provides native Windows and Linux client support, and with Azure Active Directory Domain Services integration, it can preserve existing SMB-based authentication and authorization, so the application continues to work without code changes.

Why this answer

Azure Files provides fully managed SMB (Server Message Block) file shares in the cloud, supporting the SMB 3.0 protocol. This allows the legacy application to access configuration files over the network using standard file share paths without any code changes, making it the ideal migration target for lift-and-shift scenarios.

Exam trap

The trap here is that candidates often confuse Azure Blob Storage (object storage) with file shares, assuming it can serve SMB traffic, but Blob Storage does not natively support the SMB protocol and requires application modifications or third-party tools to emulate file shares.

Why the other options are wrong

A

Azure Blob Storage does not support SMB protocol; it uses REST APIs for access, so the legacy application requiring SMB file shares cannot use it without modification.

C

Azure Queue Storage is a messaging service for asynchronous communication between application components, not a file share protocol. It does not support SMB protocol or provide a file system interface, so it cannot replace SMB file shares for the legacy application.

D

Azure Disk Storage provides block-level storage volumes for Azure VMs, not SMB file shares. It does not natively support the SMB protocol for file sharing, so the legacy application requiring SMB shares cannot use it without modification.

4
MCQmedium

Refer to the exhibit. An administrator deploys this Azure Policy assignment. What is the most likely effect on storage account 'storage1'?

A.Public network access will be denied.
B.The storage account will be deleted.
C.Firewall rules will be added.
D.Soft Delete will be enabled.
AnswerA

The Azure Policy assignment uses the `deny` effect, which explicitly blocks any non-compliant create or update request. When a user attempts to deploy a storage account with `publicNetworkAccess` enabled (or leaves it at the default of `Enabled`), policy evaluation returns a 403 Forbidden error and the request fails. This prevents the storage account from ever being provisioned in a state that exposes it to the public internet, thus enforcing the rule that public network access is denied.

Why this answer

The Azure Policy assignment shown in the exhibit denies the creation or update of storage accounts that do not have public network access disabled. Since 'storage1' is subject to this policy, the policy will enforce the 'Deny' effect, preventing any configuration that allows public network access. If 'storage1' already exists and is compliant, it remains; if it is non-compliant, the policy will block changes that would enable public access, effectively denying public network access.

Exam trap

The trap here is that candidates confuse 'Deny' with 'DeployIfNotExists' or 'Modify' effects, assuming the policy will automatically change settings or delete resources, when in fact 'Deny' only blocks non-compliant requests.

How to eliminate wrong answers

Option B is wrong because Azure Policy with a 'Deny' effect does not delete resources; it only prevents non-compliant creation or updates. Option C is wrong because the policy specifically targets 'public network access' (a property of the storage account), not firewall rules—firewall rules are a separate configuration that can coexist with disabled public network access. Option D is wrong because the policy does not mention 'Soft Delete' or any blob-level data protection feature; it only evaluates the 'public network access' property.

5
MCQhard

A social media application stores user posts in Azure Cosmos DB. Each document contains fields: PostID (unique), UserID, Timestamp, Content, LikesCount. The most common query retrieves all posts by a specific UserID ordered by Timestamp descending. Which partition key and indexing strategy minimizes Request Unit (RU) consumption?

A.Partition key: PostID; Index: range on Timestamp
B.Partition key: UserID; Index: range on Timestamp
C.Partition key: Timestamp; Index: range on UserID
D.Partition key: UserID; Index: composite on (UserID, PostID)
AnswerB

Correct - UserID as partition key keeps each user's posts together. A range index on Timestamp enables efficient in-partition sorting, resulting in low RU.

Why this answer

The query filters on UserID, so setting UserID as the partition key ensures all posts for a user are in the same physical partition, avoiding cross-partition queries. Adding a range index on Timestamp allows efficient sorting without additional RU overhead, as Cosmos DB can use the index to return results in descending order directly.

Exam trap

The trap here is that candidates often choose a composite index (Option D) thinking it optimizes both filter and sort, but Cosmos DB's indexing engine can satisfy the ORDER BY with a simple range index on the sort column alone, and a composite index would only add unnecessary write RU cost.

How to eliminate wrong answers

Option A is wrong because PostID as partition key would scatter each user's posts across multiple partitions, forcing a fan-out query that scans all partitions and consumes more RUs. Option C is wrong because Timestamp as partition key would also scatter posts for the same user across partitions, and the range index on UserID does not help sort by Timestamp efficiently. Option D is wrong because while UserID partition key is correct, a composite index on (UserID, PostID) is unnecessary and adds write overhead; a simple range index on Timestamp is sufficient for the ORDER BY clause.

6
MCQmedium

A media company stores user profiles in Azure Cosmos DB using the Core (SQL) API. Each profile document contains a userId (unique), name, email, and a subscriptions array containing objects with a serviceName and startDate. The application needs to efficiently retrieve a single user by userId and also run a query to find all users who have a subscription to the service 'PremiumVideo'. Which partition key design is most appropriate for this workload?

A.Partition key on email
B.Partition key on userId
C.Partition key on serviceName (extracted from subscriptions array)
D.Partition key on a composite key combining userId and serviceName
AnswerB

Partitioning by userId creates one logical partition per user, enabling efficient point reads for fetching a user's profile and subscriptions. The subscription usage query will be a cross-partition query because it scans all partitions, but that is acceptable given the workload's emphasis on low-latency profile access. This also distributes request units (RUs) evenly across partitions as user activity tends to be uniform.

Why this answer

Partitioning on userId ensures each document is evenly distributed across physical partitions, as userId is unique and used for point reads (the most efficient operation in Cosmos DB). The query for users with a 'PremiumVideo' subscription will be a cross-partition query regardless of partition key choice, but the primary workload—retrieving a single user by userId—is optimized with this design. Partitioning on userId also avoids hot partitions and adheres to the best practice of using a high-cardinality, frequently queried field as the partition key.

Exam trap

The trap here is that candidates assume partitioning on a frequently queried field like serviceName will optimize the subscription query, but they overlook that Cosmos DB requires the partition key to be a top-level property with high cardinality, and that point reads (by userId) are the most common and cost-sensitive operation in this workload.

Why the other options are wrong

A

Partitioning on email would not efficiently support the primary query (retrieving a user by userId) because queries on userId would require a cross-partition scan. Additionally, the query for users with 'PremiumVideo' subscription would also be a cross-partition query, as email is unrelated to the subscription data.

C

Partitioning on serviceName extracted from subscriptions array would cause most queries to be cross-partition, as retrieving a single user by userId would require fanning out across all partitions, and the query for users with 'PremiumVideo' subscription would still be a cross-partition query unless filtered by a specific partition key value.

D

A composite key on userId and serviceName would cause queries for a single user by userId to be cross-partition, as userId alone is not the partition key. Additionally, queries for users with 'PremiumVideo' subscription would also be cross-partition unless the partition key exactly matches the filter.

7
MCQmedium

A mobile gaming company stores player session data as key-value pairs. Each player has a unique PlayerID, and the application needs to read/write the player's current level and score with very low latency. The data does not require complex queries, and the schema (attributes per player) can vary. The company wants a fully managed, globally distributed NoSQL database. Which Azure data store should they choose?

A.Azure Cosmos DB Table API
B.Azure SQL Database
C.Azure Blob Storage
D.Azure Cache for Redis
AnswerA

Azure Cosmos DB Table API is a fully managed, schema-agnostic key-value store that excels at high-throughput, low-latency point lookups. Player session data can be naturally modeled with a partition key (e.g., player ID) and row key (e.g., session timestamp), enabling fast reads and writes at global scale. It also offers automatic indexing, configurable consistency levels, and 99.999% availability SLAs, making it ideal for the simple, high-volume key-value access patterns of mobile gaming telemetry.

Why this answer

Azure Cosmos DB Table API is the correct choice because it provides a fully managed, globally distributed NoSQL database that supports key-value data with schema flexibility. It offers low-latency reads and writes (single-digit milliseconds at the 99th percentile) and automatic global distribution, making it ideal for storing player session data with varying attributes per player.

Exam trap

The trap here is that candidates may confuse Azure Cache for Redis as a durable database, but it is primarily an in-memory cache that requires additional configuration for persistence and global distribution, whereas Cosmos DB Table API is a fully managed, globally distributed NoSQL database with built-in durability and low latency.

How to eliminate wrong answers

Option B (Azure SQL Database) is wrong because it is a relational database requiring a fixed schema and complex query capabilities, which contradicts the requirement for schema flexibility and key-value simplicity. Option C (Azure Blob Storage) is wrong because it is an object storage service for unstructured blobs (files, images, videos), not a low-latency key-value store for small data items like player level and score. Option D (Azure Cache for Redis) is wrong because it is an in-memory caching service, not a fully managed, globally distributed durable database; it would require additional persistence and replication setup to meet the durability and global distribution needs.

8
MCQhard

Refer to the exhibit. You are analyzing the configuration of an Azure Storage account. Which of the following is true about this account?

A.It supports Azure Data Lake Storage Gen2.
B.It allows all network traffic by default.
C.Encryption uses Azure Key Vault.
D.It is a general-purpose v1 storage account.
AnswerA

The hierarchical namespace enabled property (isHnsEnabled) is set to true, which is the defining feature of Azure Data Lake Storage Gen2. This couples Blob Storage scalability with a real directory hierarchy and POSIX-style access control lists, enabling file-level and directory-level permissions. Therefore this account is confirmed to support Azure Data Lake Storage Gen2 workloads.

Why this answer

The property 'isHnsEnabled' is set to true, which enables the hierarchical namespace for Azure Data Lake Storage Gen2. Option A is correct because this configuration supports Azure Data Lake Storage Gen2. Option B is wrong because the network ACLs have default action 'Deny' and no rules, so access is denied by default.

Option C is wrong because the encryption key source is Microsoft.Storage, not Azure Key Vault. Option D is wrong because the account kind is StorageV2, not general-purpose v1.

9
Multi-Selectmedium

Which TWO are valid access tiers for Azure Blob Storage? (Choose two.)

Select 2 answers
A.Premium
B.Cold
C.Cool
D.Frozen
E.Hot
AnswersC, E

Cool is a valid access tier designed for data that is infrequently accessed but still must be available immediately when needed. It provides lower storage costs than Hot while incurring higher access charges, making it suitable for backups, short-term retention, or disaster recovery files. Because Cool is one of the documented access tiers for Azure Blob Storage, it is a correct answer.

Why this answer

Hot, Cool, and Archive are the three access tiers. Premium is a performance tier, not an access tier. Cold is not a standard tier.

10
Multi-Selecthard

Which THREE of the following are features of Azure Data Lake Storage Gen2?

Select 3 answers
A.Integration with Azure Active Directory (Microsoft Entra ID)
B.Geo-redundant storage (GRS)
C.POSIX-compliant access control lists (ACLs)
D.Atomic rename of directories
E.Fixed-size block storage
AnswersA, C, D

Integration with Azure Active Directory (Microsoft Entra ID) is a hallmark of Azure Data Lake Storage Gen2. It uses Entra ID for OAuth 2.0 authentication, allowing users, service principals, and managed identities to be verified before accessing the storage. Authorization is then layered via Role-Based Access Control (RBAC) at the account/container scope plus POSIX ACLs at the file/directory level, giving a unified identity control plane. This is a native feature of the Data Lake Storage Gen2 account model, not an optional extra.

Why this answer

Azure Data Lake Storage Gen2 (ADLS Gen2) combines Blob Storage with a hierarchical namespace, enabling high-performance analytics. Option A is correct: it integrates with Azure Active Directory (Microsoft Entra ID) for fine-grained access control. Option C is correct: it supports POSIX-compliant access control lists (ACLs) for Unix-like permissions.

Option D is correct: it allows atomic rename of directories, which is efficient for big data workloads. Option B is wrong: Geo-redundant storage (GRS) is a replication option available for storage accounts, but it is not a feature specific to ADLS Gen2. Option E is wrong: fixed-size block storage is a characteristic of Azure Blob Storage, not ADLS Gen2, which uses a hierarchical namespace with variable-size files.

11
MCQmedium

A development team is designing an application that stores user session data in Azure Cosmos DB. Each session document contains a sessionId (unique), userId, timestamp, and a JSON field 'metadata' that can include various optional properties. The application frequently queries by userId to retrieve all sessions for a particular user. Which property should be chosen as the partition key to optimize query performance and ensure even data distribution?

A.sessionId
B.userId
C.timestamp
D.metadata
AnswerB

userId is the correct partition key because it is the field used in the most common query filter—retrieving a specific user's sessions. All documents for one user share the same logical partition, so an equality filter on userId is routed directly to a single physical partition, producing a fast, low-RU point read. With many distinct users, the workload spreads evenly while keeping each user's related data co-located.

Why this answer

The partition key should be the property most frequently used in queries and that provides high cardinality for even distribution. Since the application frequently queries by userId to retrieve all sessions for a user, choosing userId as the partition key ensures that all session documents for a given user are stored in the same logical partition, making these queries efficient and fast. Additionally, userId typically has a large number of distinct values, which promotes even data distribution across physical partitions.

Exam trap

The trap here is that candidates often choose sessionId because it is unique, not realizing that a high-cardinality key that is not used in queries leads to inefficient cross-partition queries, while a key like userId balances query efficiency with distribution.

How to eliminate wrong answers

Option A is wrong because sessionId is unique per document, which would cause each query by userId to fan out across all partitions, resulting in cross-partition queries that are slower and more expensive. Option C is wrong because timestamp often has low cardinality (many documents share the same timestamp) and can lead to hot partitions, especially if many sessions are created simultaneously, causing uneven data distribution and throttling. Option D is wrong because metadata is a JSON field with optional, unpredictable properties; using it as a partition key can lead to skewed distribution and poor query performance, as the partition key value may be missing or vary inconsistently.

12
Multi-Selectmedium

Which TWO of the following are characteristics of Azure Blob Storage?

Select 2 answers
A.Enforces a fixed schema for stored data
B.Supports access tiers (Hot, Cool, Archive)
C.Supports storing large binary objects such as videos
D.Provides ACID transactions across multiple records
E.Only supports block blobs
AnswersB, C

Azure Blob Storage supports Hot, Cool, and Archive access tiers to balance performance and cost. Hot tiers serve frequently accessed data with low latency, Cool tiers are for infrequent access with a lower storage cost, and Archive offers the cheapest storage but requires rehydration before reading. This tiering capability is a key cost-optimization feature unique to object storage.

Why this answer

Options B and C are correct. Azure Blob Storage supports access tiers (Hot, Cool, Archive) to optimize cost (B) and can store large binary objects like videos (C). Option A is incorrect because Blob Storage does not enforce a fixed schema; it stores unstructured data.

Option D is incorrect because ACID transactions across multiple records are a feature of relational databases, not Blob Storage. Option E is incorrect because Blob Storage supports block blobs, append blobs, and page blobs.

13
MCQeasy

A media company stores high-definition video files for on-demand streaming. The files are accessed very frequently for the first 30 days after upload, then rarely (about once per month) for the next year, and after one year they are rarely accessed but must be retained for compliance (about once per year). Which set of access tier transitions minimizes cost while meeting access requirements?

A.Hot for 30 days, then Cool for 11 months, then Archive
B.Hot for 30 days, then Archive immediately
C.Cool for 30 days, then Cool for 11 months, then Archive
D.Hot for 365 days, then Archive
AnswerA

Hot tier serves the initial frequent access with low latency. Cool tier reduces storage cost during the period of occasional access (once per month) while still allowing retrieval within seconds. Archive tier provides the lowest cost for long-term compliance storage.

Why this answer

It aligns the Azure Blob Storage access tier transitions with the access pattern: Hot tier for the first 30 days of frequent access, Cool tier for the next 11 months of monthly access, and Archive tier after one year for rare compliance access. This minimizes cost by moving data to progressively cheaper storage tiers as access frequency drops, while still meeting the access requirements (Cool supports monthly access, Archive supports yearly access with retrieval time).

Exam trap

The trap here is that candidates assume the Cool tier is always cheaper than Hot for the first 30 days, but Cool's higher read costs and 30-day minimum charge make Hot more cost-effective for frequent access, and Archive's retrieval latency makes it unsuitable for monthly access.

How to eliminate wrong answers

Option B is wrong because moving directly from Hot to Archive after 30 days ignores the monthly access requirement during the next 11 months; Archive tier has a retrieval latency of up to 15 hours and is not suitable for monthly access. Option C is wrong because starting with Cool for the first 30 days incurs higher cost than Hot for that period (Cool has a higher per-GB read cost and a minimum 30-day storage charge, making it more expensive for frequent access). Option D is wrong because keeping data in Hot for 365 days wastes cost for the 11 months of rare access (Cool is cheaper for monthly access) and then moving to Archive after a year is unnecessary for the first year's access pattern.

14
MCQmedium

A company stores IoT sensor data in Azure Blob Storage. The data is structured as JSON files organized by date. Data scientists need to query this data using SQL statements without moving it. Which Azure service should they use to enable this?

A.Azure SQL Database
B.Azure Data Lake Storage Gen2
C.Azure Cosmos DB
D.Azure Synapse Serverless SQL
AnswerD

Azure Synapse Serverless SQL is the appropriate choice because its OPENROWSET function can query JSON (or CSV/Parquet) files directly in Azure Blob Storage or Azure Data Lake Storage Gen2 using T-SQL. It does this without requiring you to import the data into a database or provision a dedicated SQL pool, and it uses a pay-per-query model. This lets you run ad hoc analytics on IoT sensor data in place, exactly matching the requirement.

Why this answer

Azure Synapse Serverless SQL enables querying JSON files directly in Azure Blob Storage using T-SQL without moving the data. Option A (Azure SQL Database) is a relational database that requires data to be loaded into tables. Option B (Azure Data Lake Storage Gen2) is a storage layer, not a query service.

Option C (Azure Cosmos DB) is a NoSQL database that can store JSON but requires moving data from Blob Storage.

15
MCQmedium

A global social media startup stores user profiles as JSON documents in Azure Cosmos DB. Their application frequently reads profiles by user ID and also runs queries to find users based on location or interests. The workload is read-heavy with high throughput requirements. The operations team notices that query performance degrades during peak hours. Which action would most effectively improve query performance?

A.Increase the number of containers
B.Choose a different API (e.g., switch from SQL API to MongoDB API)
C.Increase the provisioned throughput (RU/s)
D.Switch to a different Azure region
AnswerC

Provisioned throughput in Azure Cosmos DB is measured in Request Units per second (RU/s). Each operation, whether a read, write, or query, consumes a specific number of RUs based on item size, indexing, and consistency level. Increasing RU/s directly allocates more computational capacity, allowing the database to handle a higher rate of operations per second and eliminating throttling (HTTP 429 errors). This is the primary knob for scaling throughput in an Azure Cosmos DB account.

Why this answer

Increasing the provisioned throughput (RU/s) directly allocates more processing capacity to the Cosmos DB container, allowing it to handle higher request volumes and reduce throttling during peak hours. Since the workload is read-heavy and query performance degrades under high throughput demands, raising RU/s is the most effective and immediate action to improve performance.

Exam trap

The trap here is that candidates may confuse throughput (RU/s) with other scaling mechanisms like partitioning or API choice, but the core issue in a read-heavy, high-throughput scenario is insufficient provisioned capacity, not data organization or protocol differences.

Why the other options are wrong

A

Increasing the number of containers does not improve query performance; it only helps with data partitioning and management. Query performance in Cosmos DB is primarily governed by provisioned throughput (RU/s), not the number of containers.

B

Switching APIs (e.g., from SQL to MongoDB) does not inherently improve query performance for read-heavy workloads; it changes the data model and query syntax but does not increase throughput or reduce latency under high load.

D

Switching to a different Azure region does not improve query performance for a read-heavy workload with high throughput; it primarily addresses latency or availability issues related to geographic distance, not throughput or query efficiency.

16
MCQhard

A company stores large archives of legal documents in Azure Blob Storage. The documents must remain immutable; they cannot be modified or deleted for 7 years due to regulatory requirements. The data is accessed only for compliance audits, which occur less than once a year. The company wants to minimize storage costs while ensuring immutability and data durability. Which combination of features should they configure?

A.Cool access tier with a time-based retention policy
B.Archive access tier with a time-based retention policy
C.Hot access tier with versioning enabled
D.Archive access tier with legal hold
AnswerB

The Archive access tier provides the lowest storage cost in Azure Blob Storage, making it ideal for rarely accessed legal archives. A time-based retention policy, a type of WORM (Write Once, Read Many) immutability, locks blobs for a predefined 7-year period, preventing both deletion and overwriting until the policy expires. While retrieval requires rehydration and incurs additional costs, the combination meets the compliance requirement of a fixed retention period at minimal ongoing storage expense.

Why this answer

The Archive access tier provides the lowest storage cost for data that is rarely accessed, such as legal documents accessed less than once a year. A time-based retention policy enforces immutability for a fixed 7-year period, preventing modifications or deletions. This combination meets regulatory requirements while minimizing storage costs.

Exam trap

The trap here is that candidates may confuse 'legal hold' (which is indefinite and manually managed) with 'time-based retention policy' (which automatically expires after a set duration), leading them to incorrectly choose the Archive tier with legal hold instead of the correct time-based retention policy.

Why the other options are wrong

A

The Cool access tier has higher storage costs than Archive and is not designed for data accessed less than once a year; the question emphasizes minimizing costs, making Archive the appropriate tier.

C

The Hot access tier has higher storage costs than Archive, and versioning does not enforce immutability (versions can be deleted). This combination does not meet the cost minimization goal and fails to provide the required regulatory immutability.

D

Legal hold applies to specific blobs for indefinite periods, not for a fixed 7-year duration, and does not minimize costs as it requires the Archive tier but lacks the automatic time-based policy needed for regulatory compliance.

17
MCQmedium

A company develops an IoT device registry that stores device metadata as JSON documents. Each device has a unique DeviceID, and the attributes vary per device type (e.g., sensors, actuators). The application requires low-latency reads by DeviceID and needs global distribution to support devices worldwide. Which Azure Cosmos DB API should they choose to natively support JSON documents with flexible schema?

A.Azure Cosmos DB SQL API
B.Azure Cosmos DB Table API
C.Azure Cosmos DB for MongoDB API
D.Azure Cosmos DB Gremlin API
AnswerA

The SQL API is the native JSON document model in Azure Cosmos DB, allowing devices to be stored as schemaless JSON documents with automatic indexing and rich querying via standard SQL syntax. It provides single-digit-millisecond point reads by ID, tunable consistency, and global distribution, making it ideal for an IoT device registry.

Why this answer

The Azure Cosmos DB SQL API (formerly DocumentDB) is the correct choice because it provides native support for storing and querying JSON documents with flexible schema, allowing each device document to have a unique DeviceID and varying attributes per device type. It offers low-latency reads by DeviceID via direct point reads using the partition key, and supports global distribution through multi-region writes and automatic replication, meeting the worldwide deployment requirement.

Exam trap

The trap here is that candidates often choose the MongoDB API because they associate JSON with MongoDB, but the SQL API is the native JSON document API in Cosmos DB and is the correct answer for 'natively support JSON documents with flexible schema' in the context of Azure Cosmos DB.

How to eliminate wrong answers

Option B (Azure Cosmos DB Table API) is wrong because it is designed for key-value and tabular data with a fixed schema, not for flexible JSON documents with varying attributes per device type. Option C (Azure Cosmos DB for MongoDB API) is wrong because while it supports JSON-like documents via BSON, it is a wire-protocol compatibility layer for MongoDB drivers and does not provide the native SQL query capabilities or the same optimized point-read performance for DeviceID as the SQL API; the question specifically asks for an API that natively supports JSON documents with flexible schema, which the SQL API does directly. Option D (Azure Cosmos DB Gremlin API) is wrong because it is built for graph data models and traversals using the Gremlin query language, not for document storage or key-based lookups.

18
Multi-Selectmedium

Which TWO of the following are valid use cases for Azure Queue Storage?

Select 2 answers
A.Building a serverless workflow with Azure Functions
B.Storing JSON documents for querying
C.Storing large binary objects for a website
D.Decoupling front-end and back-end components in a web application
E.Real-time event streaming for analytics
AnswersA, D

Building a serverless workflow with Azure Functions is a valid Queue Storage use case because a queue's messages can trigger Function execution through the Queue trigger binding. This pattern lets you stage work items durably, with visibility timeouts and poison-message handling, while Azure Functions scales automatically to process the queue, enabling a reliable event-driven pipeline.

Why this answer

Azure Queue Storage is a service for storing large numbers of messages that can be accessed from anywhere via authenticated calls. It is commonly used to decouple application components and enable asynchronous processing. Option A is correct because Azure Queue Storage can trigger Azure Functions to build serverless workflows.

Option D is correct because it is designed to decouple front-end and back-end components by passing messages between them. Option B is incorrect because storing JSON documents for querying is better suited for Cosmos DB or Table Storage. Option C is incorrect because storing large binary objects is handled by Azure Blob Storage.

Option E is incorrect because real-time event streaming is typically done with Azure Event Hubs or Azure Stream Analytics.

19
MCQmedium

A smart city application collects sensor data from thousands of devices. Data is ingested as JSON messages containing deviceId, timestamp, and reading value. The application must support fast point reads by deviceId and also run queries to retrieve all readings for a specific deviceId within a time range. The development team prefers a SQL-like query language. Which Azure Cosmos DB API should they choose?

A.SQL (Core) API
B.Table API
C.MongoDB API
D.Cassandra API
AnswerA

The SQL (Core) API is the correct answer for this smart city workload because it is Azure Cosmos DB's native document model, storing sensor JSON telemetry directly and providing an ANSI-SQL-like query syntax. This API supports efficient point reads via id and partition key, and it indexes all fields by default, so you can run fast range filters such as timestamp BETWEEN ... AND ... to retrieve a sensor's data over a specific time window. Given the team is already comfortable with SQL-like language, this is the most natural fit.

Why this answer

The SQL (Core) API is the best choice because it natively supports SQL-like querying, enabling both fast point reads by deviceId (using the partition key) and efficient time-range queries on a specific deviceId. It also provides native JSON support, which aligns with the JSON message format from the sensors, and allows indexing on timestamp for range queries.

Exam trap

Microsoft often tests the misconception that any API with a SQL-like name (like Cassandra's CQL) is equivalent to the SQL (Core) API, but the key differentiator is native JSON support and the specific query language syntax preferred by the team.

Why the other options are wrong

B

The Table API uses OData and RESTful queries, not SQL-like query language, and is optimized for key-value lookups, not efficient time-range queries on a secondary field like timestamp.

C

The MongoDB API uses a MongoDB query language, not SQL. The question explicitly requires a SQL-like query language, making the MongoDB API unsuitable.

D

The Cassandra API uses CQL (Cassandra Query Language), not SQL, and is optimized for high-throughput writes and partition-based queries, not for efficient time-range queries on a specific partition key without additional indexing considerations.

20
MCQmedium

A mobile gaming company stores player profiles in Azure Cosmos DB. Each profile document contains many optional fields, and queries frequently filter by the player's locale (a field present in about 30% of documents). Which approach will optimize query performance for these filters?

A.Embed all fields in a single document and rely on automatic indexing
B.Normalize the data by storing locale in a separate container and use cross-container queries
C.Define a fixed schema for all documents to ensure every document has the locale field
D.Create a composite index that includes the locale field
AnswerD

A composite index that includes `locale` as the leading field (and optionally another field like `region` or `level`) directly supports a query that filters on `locale` by enabling an index seek instead of a full container scan. Because the index only contains entries for documents that actually have a `locale` property, the 70% of profiles that omit the field are automatically excluded from the index scan, drastically lowering request units (RU) and improving latency. This is the recommended and simplest optimization within Cosmos DB's schema-agnostic indexing model, and it does not require schema changes or data duplication.

Why this answer

Creating a composite index that includes the locale field allows Azure Cosmos DB to efficiently filter queries by locale without scanning every document. Since locale is present in only 30% of documents, a composite index reduces the query RU cost by directly locating matching documents, leveraging the index's sorted structure for faster lookups.

Exam trap

The trap here is that candidates assume automatic indexing is sufficient for all queries, but they overlook that sparsely populated fields benefit from explicit composite indexing to avoid high RU costs from index scans.

How to eliminate wrong answers

Option A is wrong because embedding all fields in a single document with automatic indexing does not optimize queries for a sparsely present field like locale; automatic indexing still requires a full index scan for the field, leading to higher RU consumption. Option B is wrong because normalizing locale into a separate container and using cross-container queries introduces additional latency and RU cost due to cross-partition queries, and Cosmos DB does not support efficient cross-container joins. Option C is wrong because defining a fixed schema to force the locale field on all documents increases storage and write RU costs unnecessarily, and does not improve query performance without an appropriate index on the field.

21
MCQhard

A company uses Azure Cosmos DB for a global e-commerce application. The application needs to support multi-region writes and provide strong consistency for inventory updates. Which configuration minimizes write latency while meeting the consistency requirement?

A.Multi-master with bounded staleness consistency
B.Single-region writes with session consistency
C.Single-region writes with strong consistency
D.Multi-master with eventual consistency
AnswerC

Strong consistency is supported only with single-region writes; multi-region writes cannot achieve strong consistency.

Why this answer

Multi-region writes (multi-master) with strong consistency is not supported in Azure Cosmos DB. To achieve strong consistency, you must use single-region writes. Therefore, single-region writes with strong consistency (Option C) meets the requirement while minimizing write latency by avoiding the overhead of multi-region replication.

Option A (multi-master with bounded staleness) provides bounded staleness, not strong consistency. Option B (single-region writes with session consistency) provides session consistency, which is weaker. Option D (multi-master with eventual consistency) provides eventual consistency, which is the weakest level.

22
Multi-Selecteasy

Which TWO of the following Azure services are considered non-relational data stores?

Select 2 answers
A.Azure SQL Database
B.Azure Cosmos DB
C.Azure Table Storage
D.Azure Synapse Analytics
E.Azure Database for PostgreSQL
AnswersB, C

Azure Cosmos DB is a multi-model NoSQL database service that supports document, key-value, graph, and column-family data models, with schema-agnostic ingestion. It provides global distribution and multiple consistency levels, but it deliberately avoids relational constructs like joins and fixed schemas. This makes it one of the two non-relational answers.

Why this answer

Options B and C are correct. Azure Cosmos DB (B) is a globally distributed, multi-model NoSQL database service, making it a non-relational data store. Azure Table Storage (C) is a key-value store that is also non-relational.

Option A is wrong because Azure SQL Database is a relational database. Option D is wrong because Azure Synapse Analytics is a relational analytics system. Option E is wrong because Azure Database for PostgreSQL is a relational database.

23
MCQmedium

A media publishing company stores high-resolution images and video files for their website. These files are large (hundreds of MBs each) and are accessed only a few times per month, but when accessed, they must be delivered within seconds. Additionally, they need to store a small amount of metadata (e.g., upload date, author) for each file. Which Azure service should they use for storing the binary files?

A.Azure Table Storage
B.Azure Blob Storage
C.Azure File Storage
D.Azure Queue Storage
AnswerB

Azure Blob Storage is optimized for large unstructured binary objects and supports custom metadata.

Why this answer

Azure Blob Storage is designed for storing massive amounts of unstructured binary data, such as high-resolution images and video files. It supports objects up to 4.75 TB in size, offers tiered storage (including cool and archive tiers) to optimize cost for infrequently accessed data, and provides low-latency access (typically under 10 seconds) for retrieval when needed. This makes it the ideal choice for the media publishing company's requirements.

Exam trap

The trap here is that candidates confuse Azure Table Storage (for metadata) with the primary storage for binary files, or they assume Azure File Storage (SMB shares) is suitable for web-serving large media files, when in fact Blob Storage is the correct service for unstructured binary data with infrequent access patterns.

Why the other options are wrong

A

Azure Table Storage is a NoSQL key-value store for structured data, not designed for large binary files like images and videos. It cannot efficiently store or stream hundreds of MBs of binary data with low-latency access.

C

Azure File Storage is designed for shared file access using SMB protocol, typically for lift-and-shift scenarios or applications that need network file shares. It is not optimized for storing and serving large binary files like images and videos with low-latency access via HTTP/HTTPS.

D

Azure Queue Storage is designed for message queuing and asynchronous communication between application components, not for storing large binary files like images and videos.

24
MCQeasy

A mobile game developer needs to store player session data. Each session has a unique SessionID, a UserID, a start timestamp, an end timestamp, and a collection of game events (each event is a JSON object). The application requires low-latency point reads by SessionID and the ability to query all sessions for a given UserID within a time range. The schema of game events can vary between sessions (e.g., new event types added frequently). The developer wants a fully managed NoSQL database that supports flexible schemas and secondary indexing. Which Azure data store should they choose?

A.Azure Cosmos DB with the NoSQL API
B.Azure Table Storage
C.Azure Blob Storage
D.Azure Cache for Redis
AnswerA

Azure Cosmos DB with the NoSQL API is a multi-model database that natively stores JSON documents and automatically indexes every property, including UserID and timestamp, enabling fast, schema-flexible queries. Its single-digit-millisecond latency and partition-based scaling suit high-volume game telemetry, while its SQL-like query syntax supports rich filters and time-range lookups on arbitrary fields without requiring a predefined schema.

Why this answer

Azure Cosmos DB with the NoSQL API is the correct choice because it provides a fully managed, globally distributed NoSQL database with native support for flexible schemas (schemaless JSON documents), low-latency point reads by partition key (SessionID), and automatic secondary indexing for querying by UserID within a time range. Its ability to handle varying game event schemas without schema migrations makes it ideal for this use case.

Exam trap

The trap here is that candidates often confuse Azure Table Storage with a fully queryable NoSQL database, but it lacks secondary indexing and complex query support, making it unsuitable for time-range queries on non-key fields.

How to eliminate wrong answers

Option B (Azure Table Storage) is wrong because it is a key-value store with limited querying capabilities (only on PartitionKey and RowKey) and does not support secondary indexing or complex queries like time-range filtering on non-key attributes. Option C (Azure Blob Storage) is wrong because it is an object storage service designed for unstructured data (blobs), not for low-latency point reads or indexed queries on individual records; it lacks native querying and indexing for session data. Option D (Azure Cache for Redis) is wrong because it is an in-memory cache, not a durable database; it does not provide persistent storage, secondary indexing, or the ability to query by UserID across sessions over time.

25
MCQmedium

A media company stores video files in Azure Blob Storage. They want to use Azure Content Delivery Network (CDN) to serve these videos globally. However, they need to restrict access to only authorized users. What should you implement?

A.Set the blob container to public access.
B.Use Azure Active Directory (Microsoft Entra ID) authentication for the CDN endpoint.
C.Implement shared access signatures (SAS) and token-based authentication on the CDN.
D.Use a firewall on the storage account to allow only CDN IP addresses.
AnswerC

Implementing shared access signatures (SAS) on the underlying blobs and using token-based authentication on the CDN is the correct method to restrict access to authorized users. A SAS token can be generated with granular permissions, such as read-only and with a specific expiration time, and appended to the video URL or used as a key for CDN token authentication. This ensures that only users with a valid, unexpired token can fetch the content from the origin, while the CDN caches and delivers it efficiently; invalid or expired tokens result in access denial.

Why this answer

To restrict access to authorized users when serving video files from Azure Blob Storage via Azure CDN, you should implement token-based authentication using shared access signatures (SAS). SAS tokens grant time-limited, specific permissions to clients, and Azure CDN can be configured to require these tokens before delivering content. This ensures only authorized users can access the videos.

Option A is incorrect because making the blob container public would allow unrestricted access to anyone. Option B is incorrect because Azure Active Directory authentication is not directly supported by Azure CDN for blob access; token-based authentication with SAS is the standard approach. Option D is incorrect because a storage account firewall restricting to CDN IP addresses only limits the network source, not individual user authorization; any request coming from the CDN IP would still be served without user-level authentication.

26
MCQmedium

A gaming company stores player profiles in Azure Cosmos DB using the NoSQL API. Each profile is a JSON document containing fields like playerId, userName, level, inventory (an array of items), and friends (an array of playerIds). The application frequently needs to query all players that have a specific item in their inventory (e.g., 'sword'). Which Cosmos DB feature should they use to support this query efficiently?

A.Change feed
B.Stored procedures
C.Composite index
D.Indexing policy with a wildcard index
AnswerD

Adding a wildcard index, such as /inventory/[]/? to the indexing policy, instructs Cosmos DB to index every element of the inventory array rather than only the first element, which is the default behavior. With that index in place, ARRAY_CONTAINS queries can use a targeted index seek instead of scanning every document, making the lookup both fast and cost-efficient in terms of request units. This is the correct configuration for a gaming company that frequently queries player profiles based on whether an array contains a specific item, because it directly aligns the index with the predicate.

Why this answer

A wildcard index in the indexing policy allows Azure Cosmos DB to automatically index all properties within a JSON document, including nested array elements like those in the 'inventory' array. This enables efficient queries such as 'SELECT * FROM c WHERE ARRAY_CONTAINS(c.inventory, {name: "sword"})' without requiring a custom composite index for each possible item. Without a wildcard index, the query would require a full scan of all documents, which is inefficient at scale.

Exam trap

The trap here is that candidates often confuse indexing features, thinking a composite index (Option C) is needed for array queries, when in fact composite indexes are for multi-property equality or range filters, not for array membership queries which require a wildcard index to index the array elements themselves.

How to eliminate wrong answers

Option A is wrong because the change feed is a mechanism for capturing document inserts, updates, and deletes in chronological order, not for querying current data based on array contents. Option B is wrong because stored procedures are server-side JavaScript logic for transactional operations, not a query optimization feature for indexing array elements. Option C is wrong because a composite index is designed to optimize queries with multiple filter conditions (e.g., WHERE level = 10 AND userName = 'Alice'), not for queries that filter on array membership like 'inventory contains item X'.

27
MCQmedium

A social networking application stores user profiles as JSON documents in Azure Cosmos DB. Each profile includes fields such as 'userName', 'email', 'followersCount', and optional 'interests'. The application needs to perform fast point reads by 'userName' (under 10 ms) and also run queries to find all users with a 'followersCount' greater than a certain value. The development team prefers to use a query syntax similar to SQL. Which Azure Cosmos DB API should they choose?

A.Azure Cosmos DB for NoSQL (SQL API)
B.Azure Cosmos DB for MongoDB
C.Azure Cosmos DB for Table
D.Azure Cosmos DB for Apache Cassandra
AnswerA

The SQL API is the native JSON document API for Azure Cosmos DB. It stores each user profile as a self-contained JSON document and automatically indexes every property without requiring a predefined schema. Developers can query these documents using a familiar SQL-like syntax (SELECT, WHERE, JOIN, GROUP BY) over any field, including nested properties like followersCount, and perform point reads using the partition key and document ID for optimal latency.

Why this answer

Azure Cosmos DB for NoSQL (SQL API) is the correct choice because it natively supports SQL-like query syntax for querying JSON documents, enabling the required queries such as filtering by 'followersCount'. It also provides fast point reads (under 10 ms) by using the 'userName' field as the partition key, ensuring efficient direct access to individual documents.

Exam trap

The trap here is that candidates may confuse the SQL-like syntax of Cassandra's CQL with the native SQL API, overlooking that Cassandra is a wide-column store not optimized for JSON document queries, while the SQL API is purpose-built for JSON documents and SQL queries.

Why the other options are wrong

C

Azure Cosmos DB for Table is designed for key-value and wide-column data with a tabular schema, not for JSON documents. It does not support SQL-like queries on nested JSON fields or efficient point reads by 'userName' as a custom key.

D

Azure Cosmos DB for Apache Cassandra uses the Cassandra Query Language (CQL), not SQL-like syntax, and is optimized for wide-column stores, not JSON documents. It does not natively support point reads by a single field like 'userName' with the same low-latency guarantees as the SQL API.

28
MCQmedium

A social networking application needs to store and query relationships between users, such as 'friends of friends' to recommend new connections. The application must traverse these relationships efficiently. Which Azure NoSQL data store and API should they choose?

A.Azure Cosmos DB with MongoDB API
B.Azure Cosmos DB with Gremlin API
C.Azure Table Storage
D.Azure Cosmos DB with SQL API
AnswerB

Azure Cosmos DB with Gremlin API is the correct choice because it provides a native graph database engine built on the property graph model. Data is stored as vertices (nodes) and edges (relationships), and queries are expressed in Gremlin, a declarative graph traversal language. This allows the database to perform efficient, index-backed traversals like finding friends-of-friends in a single operation, without expensive recursive joins or multiple round trips, which is exactly what a social networking graph requires.

Why this answer

Azure Cosmos DB with Gremlin API is correct because it provides a graph database model specifically designed for storing and querying highly connected data, such as user relationships. The Gremlin API supports graph traversal queries (e.g., 'friends of friends') natively using the Apache TinkerPop graph traversal language, enabling efficient navigation of edges and vertices without expensive join operations.

Exam trap

The trap here is that candidates often confuse document databases (like MongoDB API or SQL API) with graph databases, assuming any NoSQL store can handle relationships efficiently, but only a dedicated graph database like Gremlin API provides native traversal operators for multi-hop queries.

Why the other options are wrong

A

The MongoDB API is designed for document storage with rich queries, but it lacks native graph traversal capabilities needed for efficient 'friends of friends' queries.

C

Azure Table Storage is a key-value store that does not support graph queries like traversing 'friends of friends' relationships efficiently. It lacks native graph traversal capabilities, making it unsuitable for this use case.

D

The SQL API is designed for document-based queries using SQL syntax, not for graph traversal like 'friends of friends'. It lacks native graph traversal capabilities such as recursive queries or Gremlin steps.

29
MCQmedium

A mobile gaming company stores player activity logs as JSON documents. Each document has a unique ActivityID, a PlayerID, a timestamp, and a variable set of attributes depending on the game event (e.g., level started, item purchased). The application requires low-latency point reads by ActivityID and needs to query logs by PlayerID for a given time range. Schema flexibility is critical because new game events are added frequently. Which Azure Cosmos DB API should they choose?

A.NoSQL API (formerly SQL API)
B.MongoDB API
C.Cassandra API
D.Gremlin API
AnswerA

The NoSQL API (formerly SQL API) is the correct choice because it provides native JSON document storage with a flexible schema, automatic indexing, and a SQL-like query language (technically a dialect of SQL over JSON) that supports efficient point reads (by id and partition key) and range queries on indexed fields. It is deeply integrated into Azure Cosmos DB's core engine, meaning no translation layer or separate compatibility layer is required, which yields the lowest latency and richest querying experience for JSON logs. Unlike the other APIs, it requires no existing expertise in MongoDB, Cassandra, or graph modeling, making it the most straightforward and performant option for a team that simply wants to store and query player activity in JSON.

Why this answer

The NoSQL API (formerly SQL API) is the correct choice because it natively supports JSON documents with flexible schemas, enabling the variable attributes required for new game events. It provides low-latency point reads by ActivityID via direct partition key lookups and supports efficient queries by PlayerID within a time range using composite indexes or cross-partition queries with filtering. This API is optimized for schema-agnostic, document-based workloads and offers the richest query capabilities for JSON data in Azure Cosmos DB.

Exam trap

The trap here is that candidates often choose the MongoDB API assuming it is the only option for JSON documents, but they overlook that the NoSQL API provides superior query flexibility and indexing for time-range queries, and that all Cosmos DB APIs support JSON documents but with different query capabilities.

How to eliminate wrong answers

Option B (MongoDB API) is wrong because while it supports JSON-like documents with flexible schemas, its query language is limited to MongoDB's aggregation pipeline and does not natively support the same level of SQL-like querying for time-range filtering across partitions without additional indexing complexity; the NoSQL API provides more straightforward querying for this use case. Option C (Cassandra API) is wrong because it uses a wide-column store model with a fixed schema defined by CQL tables, which cannot accommodate the variable set of attributes in JSON documents without schema changes, and it lacks native support for JSON document storage and querying. Option D (Gremlin API) is wrong because it is designed for graph data models and traversals, not for document storage or point reads by ActivityID, and it cannot efficiently handle the flexible schema and time-range queries required for player activity logs.

30
MCQhard

You are designing a solution to store and analyze large volumes of streaming data from social media feeds. The data is semi-structured (JSON) and will be used for real-time dashboards. You need to choose a storage solution that can handle high-ingestion throughput and support querying with Azure Synapse Serverless SQL. Which storage option should you choose?

A.Azure Table Storage
B.Azure Data Lake Storage Gen2
C.Azure Cosmos DB
D.Azure Cache for Redis
AnswerB

Azure Data Lake Storage Gen2 is a hierarchical file system built on Azure Blob Storage that stores data in open formats such as Parquet and ORC, enabling massive parallel ingestion. Synapse Serverless SQL can query files directly using the OPENROWSET function with predicate pushdown to the storage layer, making it both fast and cost-efficient for big data analytics. This alignment with the analytic workload makes it the correct choice.

Why this answer

(Azure Data Lake Storage Gen2) is correct because it is built on Azure Blob Storage, supports high-throughput ingestion of streaming data, and can be directly queried using Azure Synapse Serverless SQL. Option A (Azure Table Storage) is wrong because it is designed for structured NoSQL key-value data, not for analytics or semi-structured JSON. Option C (Azure Cosmos DB) is optimized for transactional workloads and real-time applications; although it can be integrated with Synapse via Synapse Link, it is not the primary choice for direct Serverless SQL queries on streaming data.

Option D (Azure Cache for Redis) is an in-memory cache, not a durable storage solution for analytics.

31
MCQmedium

A mobile gaming company stores player data in Azure Cosmos DB using the Core (SQL) API. Each document contains fields: playerId, nickname, score, level, and an inventory array of item objects (each with name and type). The company wants to query all players whose score is above 5000 and who have a specific item (e.g., a sword) in their inventory. Which query clause should they use?

A.A) WHERE c.score > 5000 AND c.inventory.some(item => item.name == 'sword')
B.B) WHERE c.score > 5000 AND ARRAY_CONTAINS(c.inventory, {name: 'sword'}, true)
C.C) WHERE c.score > 5000 AND c.inventory.name == 'sword'
D.D) WHERE c.score > 5000 AND 'sword' IN c.inventory
AnswerB

This is the only correct predicate. The ARRAY_CONTAINS function in Cosmos DB SQL API scans the c.inventory array and, when the third argument is true, performs a partial match against the specified object {name: 'sword'}. Partial matching means any inventory element that has a name property equal to 'sword' will satisfy the condition, even if that element also contains other fields like durability or price. This makes ARRAY_CONTAINS the intended, index-aware way to filter documents based on nested object properties within an array.

Why this answer

ARRAY_CONTAINS with the third parameter set to 'true' performs a partial match, checking if any element in the inventory array has a 'name' property equal to 'sword'. This is the standard way to query for an item within an array of objects in Azure Cosmos DB's SQL API, as it correctly handles the nested structure without requiring a JOIN or subquery.

Exam trap

The trap here is that candidates often confuse SQL array syntax (like IN or direct property access) with the specialized ARRAY_CONTAINS function required for querying arrays of objects in Cosmos DB, or they mistakenly apply JavaScript array methods that are not supported in the SQL API.

Why the other options are wrong

A

Azure Cosmos DB SQL API does not support JavaScript arrow functions like `some()` in queries. The correct syntax uses `ARRAY_CONTAINS` with partial document matching.

C

In Azure Cosmos DB SQL API, c.inventory.name == 'sword' is invalid because inventory is an array of objects, not a single object. This syntax would only work if inventory were a single object with a name property, not an array.

D

The IN operator checks if a scalar value exists in an array, but c.inventory is an array of objects, not strings. 'sword' is a string, not an object, so the query will never match.

32
MCQmedium

A company stores user profiles as JSON documents. Each profile includes standard fields (userId, name, email) and optional fields (preferences, history). The application needs fast key lookups by userId and SQL-like queries on optional fields. Which Azure Cosmos DB API should they choose?

A.SQL (Core) API
B.MongoDB API
C.Cassandra API
D.Table API
AnswerA

Azure Cosmos DB SQL (Core) API is the native document model that stores JSON documents exactly as provided, preserving nested structures and supporting flexible schema evolution. It exposes a SQL-like query language that allows filtering, projection, and joins on any field within the JSON, making it ideal for both point lookups by key and ad-hoc analytical queries. This API directly satisfies the stated requirements of fast key-based access and SQL-style querying over arbitrary fields.

Why this answer

The SQL (Core) API is the correct choice because it natively supports JSON documents with flexible schemas, enabling fast key-value lookups on the `userId` field (via automatic indexing) and rich SQL-like querying (e.g., `SELECT * FROM c WHERE c.preferences.theme = 'dark'`) on optional fields. It is the only Azure Cosmos DB API that provides a SQL query syntax directly over JSON, making it ideal for mixed workloads of point reads and ad-hoc queries on nested or optional properties.

Exam trap

The trap here is that candidates confuse the MongoDB API's support for JSON documents with the ability to run SQL queries, when in fact MongoDB uses its own query language and does not support SQL syntax, leading them to incorrectly choose MongoDB over the SQL (Core) API.

Why the other options are wrong

B

The MongoDB API supports JSON documents and key lookups, but it does not natively support SQL-like queries on optional fields; it uses MongoDB query language instead.

C

The Cassandra API uses CQL (Cassandra Query Language) and is optimized for high-throughput writes and partition-based queries, not for SQL-like queries on optional fields or flexible JSON documents. It lacks native support for querying arbitrary nested fields without predefined schema.

D

The Table API is designed for key-value and tabular data with a fixed schema, not for JSON documents with nested optional fields. It does not support SQL-like queries on nested properties or efficient indexing of arbitrary fields.

33
Multi-Selectmedium

Which TWO scenarios are appropriate for using Azure Blob Storage? (Choose two.)

Select 2 answers
A.Storing key-value pairs with partition and row keys.
B.Running SQL queries on structured data.
C.Storing JavaScript functions for server-side logic.
D.Storing backup files and archival data.
E.Storing images and videos for a website.
AnswersD, E

Azure Blob Storage is a prime location for backups and archival data because it provides highly durable, scalable, and cost-effective storage for large volumes of infrequently accessed unstructured data. Its access tiers (hot, cool, cold, and archive) and lifecycle management policies let you automatically move data to cheaper storage as it ages. Redundancy options like LRS, ZRS, GRS, or GZRS protect archived and backup data against infrastructure failures, making it far more practical than local disk or relational databases.

Why this answer

Azure Blob Storage is designed for storing large amounts of unstructured data, such as binary files and text. Backup files and archival data are ideal use cases because Blob Storage supports hot, cool, and cold access tiers optimized for long-term retention and cost-effective storage. Additionally, storing images and videos for a website leverages Blob Storage's ability to serve static assets directly via HTTP/HTTPS, with built-in CDN integration for fast global delivery.

Exam trap

The trap here is that candidates confuse Azure Blob Storage with other Azure services that handle structured data (like Table Storage or SQL Database) or compute (like Azure Functions), leading them to select options that describe those services instead of focusing on unstructured data storage scenarios.

34
MCQhard

A retail company uses Azure Cosmos DB to store product catalog data. They experience high request unit (RU) consumption during peak hours, leading to throttling. Which action should they take to reduce RU consumption without changing the application code?

A.Switch to the Cassandra API
B.Create a composite index on frequently queried fields
C.Enable the Azure Cosmos DB integrated cache
D.Increase the provisioned RU/s
AnswerC

Enabling the Azure Cosmos DB integrated cache allows repeated point-reads and queries to be served directly from an in-memory cache inside the dedicated gateway, completely bypassing the backend engine. Because cached responses return data without touching the storage engine, they consume 0 RUs, directly reducing RU consumption for repeated reads of product catalog items. The cache is fully managed, has a default 5-minute TTL, and requires no application code changes—only enabling the dedicated gateway. This is precisely the right approach for read-heavy workloads where the same data is frequently accessed.

Why this answer

Enabling the Azure Cosmos DB integrated cache caches frequently accessed data in memory, reducing the need to repeat queries against the backend and thus lowering RU consumption without changing application code. Option A is incorrect: switching to the Cassandra API does not inherently reduce RU consumption; it changes the data model and query interface. Option B is incorrect: while a composite index can improve query performance, it may increase RU consumption for writes and does not directly address read-heavy throttling.

Option D is incorrect: increasing provisioned RU/s increases throughput capacity but does not reduce consumption; it may even encourage more usage and higher costs.

35
Multi-Selecthard

A company uses Azure Cosmos DB with the SQL API. They need to implement a data partitioning strategy to optimize query performance and avoid hot partitions. Which THREE practices should they follow?

Select 3 answers
A.Use the same partition key for all items
B.Use a synthetic partition key if natural keys are not suitable
C.Avoid monotonically increasing partition key values
D.Keep partition key values as small as possible
E.Choose a partition key with high cardinality
AnswersB, C, E

A synthetic partition key is constructed by concatenating or hashing multiple property values, such as a customer ID plus a date or location, to create a key with high cardinality and balanced frequency. This is necessary when natural keys have low cardinality (few distinct values) or are heavily skewed, causing uneven data distribution and hot partitions. For example, using a synthetic key like 'userId-OrderId' (or a hash of it) spreads traffic across many logical partitions while preserving query grouping.

Why this answer

To optimize query performance and avoid hot partitions in Azure Cosmos DB SQL API, the best practices are:

Use a synthetic partition key if natural keys are not suitable (B) – this allows combining multiple properties or appending a suffix to achieve better distribution when natural keys have low cardinality or cause skew.

Avoid monotonically increasing partition key values (C) – such as timestamps or sequential IDs cause writes to concentrate on a single partition, creating a hot partition.

Choose a partition key with high cardinality (E) – high cardinality ensures the data is spread evenly across partitions, reducing the chance of throttling and improving query performance.

Option A (using the same partition key for all items) is incorrect because it would put all data in one partition, defeating the purpose of partitioning. Option D (keeping partition key values as small as possible) is not a primary consideration; the size of the partition key value has minimal impact compared to cardinality and distribution.

36
Multi-Selecteasy

A company is choosing a non-relational data store for a new application that requires flexible schema, high availability, and low latency across multiple geographic regions. Which TWO Azure services meet these requirements?

Select 2 answers
A.Azure Files
B.Azure SQL Database
C.Azure Cache for Redis
D.Azure Cosmos DB
E.Azure Table Storage
AnswersD, E

Supports multi-region writes, flexible schema, and low latency.

Why this answer

Azure Cosmos DB (option D) offers multi-region replication, flexible schema, and low latency. Azure Table Storage (option E) is a NoSQL key-value store with global replication (read-access geo-redundant storage) and low latency. Option A (Azure Files) is file storage, not a non-relational data store meeting these needs.

Option B (Azure SQL Database) is relational. Option C (Azure Cache for Redis) is an in-memory cache, not a primary data store.

37
MCQhard

A hospital stores medical images in Azure Blob Storage. They must ensure that images are encrypted at rest using customer-managed keys (CMK) and that access to the keys is audited. What should you implement?

A.Use Azure Disk Encryption to encrypt the storage account.
B.Apply Azure Information Protection labels to the blobs.
C.Enable Azure Storage Service Encryption with a customer-managed key in Azure Key Vault.
D.Use Transparent Data Encryption (TDE) on the storage account.
AnswerC

Azure Storage Service Encryption (SSE) automatically encrypts all data written to Azure Blob Storage using 256-bit AES encryption. By configuring a customer-managed key (CMK) in Azure Key Vault, you gain full control over key lifecycle, rotation, and audit logging, which is essential for compliance in healthcare environments. This is the correct method to encrypt medical images at rest while maintaining auditable key management.

Why this answer

Azure Storage encryption with customer-managed keys stored in Azure Key Vault provides the required control and auditing. Option A is wrong because Azure Disk Encryption is for VMs, not Blob Storage. Option B is wrong because Azure Information Protection is for classification, not encryption at rest.

Option D is wrong because Transparent Data Encryption (TDE) is for SQL databases, not Blob Storage. Option C is correct.

38
MCQmedium

A real-time leaderboard for an online game needs to store player scores and quickly retrieve the top 100 players. The data must update frequently as players achieve new scores, and the application requires sub-millisecond read and write latency. Which Azure data store is best suited for this requirement?

A.Azure Cosmos DB Core (SQL) API
B.Azure Table Storage
C.Azure Cache for Redis
D.Azure Blob Storage
AnswerC

Azure Cache for Redis is built on an in-memory data store that provides native sorted set data structures (e.g., ZADD, ZRANGE, ZREVRANK). Leaderboard operations such as inserting a player's score, retrieving the top N players, and finding a player's exact rank execute in O(log N) time with sub-millisecond latency, making it purpose-built for real-time scenarios where millions of players update scores concurrently.

Why this answer

Azure Cache for Redis is an in-memory data store that provides sub-millisecond read and write latency, making it ideal for real-time leaderboards that require frequent updates and fast retrieval of top scores. Its sorted set data structure (ZADD/ZRANGEBYSCORE) allows efficient insertion of player scores and O(log N) retrieval of the top 100 players without disk I/O overhead.

Exam trap

Microsoft often tests the misconception that any low-latency NoSQL store (like Cosmos DB) can match Redis for sub-millisecond, in-memory operations, but the key differentiator is Redis's exclusive sorted set data structure and its dedicated in-memory architecture.

Why the other options are wrong

A

Azure Cosmos DB Core (SQL) API provides low latency and high throughput, but for a real-time leaderboard requiring sub-millisecond read/write latency and frequent updates, Azure Cache for Redis is more suitable due to its in-memory data store and built-in sorted set data structure for leaderboards.

B

Azure Table Storage does not support sub-millisecond read/write latency or built-in leaderboard ranking operations like sorted sets, making it unsuitable for real-time leaderboard updates and top-100 retrieval.

D

Azure Blob Storage is designed for storing large amounts of unstructured data like images, videos, and backups, not for low-latency, high-frequency updates of leaderboard scores. It lacks sub-millisecond read/write latency and does not support real-time ranking queries efficiently.

39
MCQeasy

A mobile gaming startup needs to store player profiles that can have varying attributes (e.g., some players have a 'nickname', others have 'avatar URL'). The application must read a player's profile by PlayerID with very low latency (under 10 ms) from any location worldwide. The data does not require complex queries or joins. Which Azure data store should they choose?

A.Azure SQL Database
B.Azure Cosmos DB
C.Azure Table Storage
D.Azure Blob Storage
AnswerB

Azure Cosmos DB is a globally distributed, multi-model NoSQL database that natively supports schema-flexible JSON documents, making it ideal for player profiles whose attributes evolve over time. It provides turnkey global distribution with multi-region writes, and its SLA guarantees point reads under 10 ms at the 99th percentile from any Azure region, directly meeting both the low-latency and flexible-schema requirements of a mobile gaming startup. Cosmos DB also offers automatic indexing, tunable consistency levels, and RU-based throughput scaling, which together support fast, consistent player-profile lookups without the need for costly schema redesigns.

Why this answer

Azure Cosmos DB is the correct choice because it is a globally distributed, multi-model database service that guarantees single-digit-millisecond read latencies (under 10 ms) at any scale from any Azure region. Its schema-agnostic nature allows storing player profiles with varying attributes (e.g., nickname, avatar URL) without requiring a fixed schema, and it supports point reads by PlayerID with a consistency model that can be tuned for performance. This directly matches the requirements of low-latency global reads and flexible, non-relational data.

Exam trap

The trap here is that candidates often confuse Azure Table Storage with Cosmos DB Table API, but the question specifies 'Azure Table Storage' (the older, standalone service) which lacks the global distribution and low-latency guarantees of Cosmos DB, leading them to incorrectly choose Option C.

How to eliminate wrong answers

Option A is wrong because Azure SQL Database is a relational database with a fixed schema, requiring predefined columns for attributes, which does not support varying attributes without complex schema changes or JSON columns that add overhead, and its global read latency is typically higher than 10 ms without additional geo-replication configurations. Option C is wrong because Azure Table Storage is a NoSQL key-value store that can handle varying attributes, but it does not guarantee single-digit-millisecond read latencies globally; its latency is higher (often 10-50 ms) and it lacks the built-in global distribution and low-latency SLAs of Cosmos DB. Option D is wrong because Azure Blob Storage is designed for unstructured binary or text data (e.g., files, images) and is not optimized for low-latency point reads of individual player profiles by ID; it typically has higher latency (tens to hundreds of milliseconds) and does not support querying by PlayerID natively without additional indexing or metadata layers.

40
Multi-Selectmedium

Which TWO of the following are true about Azure Cosmos DB?

Select 2 answers
A.The default consistency level is Strong.
B.It uses DTUs to measure performance.
C.It guarantees single-digit millisecond latency for reads and writes at the 99th percentile.
D.It is a relational database management system.
E.It supports multiple data models including document, key-value, graph, and column-family.
AnswersC, E

Azure Cosmos DB's globally distributed, multi-master architecture and automatic indexing capabilities are fundamental to its ability to guarantee single-digit millisecond latency for reads and writes at the 99th percentile. This performance commitment is enshrined in its financially-backed Service Level Agreement (SLA), ensuring predictable and consistent high-speed data access. This accurately describes a core truth about Azure Cosmos DB, directly satisfying the question's requirement to identify a true characteristic.

Why this answer

Azure Cosmos DB is a globally distributed, multi-model database. Options C and E are correct. C is correct because Cosmos DB guarantees single-digit millisecond latency for reads and writes at the 99th percentile.

E is correct because it supports multiple data models including document, key-value, graph, and column-family. Option A is incorrect because the default consistency level is Session, not Strong. Option B is incorrect because Cosmos DB uses provisioned throughput (RU/s), not DTUs.

Option D is incorrect because Cosmos DB is not a relational database; it is a non-relational (NoSQL) database that supports multiple APIs.

41
MCQhard

A global social media platform stores user profile images (JPEG) and activity logs in JSON format. The logs have varying structures based on the type of activity. The application requires low-latency reads of images from any region and the ability to query logs using SQL-like syntax. Which Azure data storage solution should they use for each data type?

A.Azure Table Storage for images and Azure Cosmos DB (Table API) for logs
B.Azure Blob Storage with a CDN for images and Azure Cosmos DB (SQL API) for logs
C.Azure Files for images and Azure SQL Database for logs
D.Azure Disk Storage for images and Azure Cosmos DB (MongoDB API) for logs
AnswerB

Azure Blob Storage is purpose-built for storing unstructured binary data like JPEG images, offering massive scalability and low cost per gigabyte. Pairing it with Azure CDN caches image copies at edge locations worldwide, dramatically reducing latency for global users. Azure Cosmos DB's SQL API stores each log entry as a JSON document and supports querying with familiar SQL-like syntax, accommodating the variable structure of the logs without requiring a predefined schema. This combination directly satisfies the requirements for unstructured image storage and flexible, queryable log storage.

Why this answer

Azure Blob Storage is optimized for storing large binary objects like JPEG images, and integrating it with Azure CDN ensures low-latency reads globally by caching content at edge nodes. Azure Cosmos DB with the SQL API provides native support for querying JSON documents with varying schemas using SQL-like syntax, making it ideal for the activity logs.

Exam trap

The trap here is that candidates may confuse Azure Table Storage (key-value) with Cosmos DB Table API, or assume Azure SQL Database can handle JSON logs via OPENJSON, but the question explicitly requires SQL-like syntax for varying structures, which Cosmos DB SQL API handles natively without schema enforcement.

Why the other options are wrong

A

Azure Table Storage is not optimized for low-latency global reads of large binary files like JPEG images; Blob Storage with CDN is required. For logs with varying structures, Azure Cosmos DB SQL API supports SQL-like queries, but Table API does not offer SQL syntax.

C

Azure Files provides SMB file shares, not optimized for low-latency global image delivery; Azure SQL Database is relational and not designed for semi-structured JSON logs with varying schemas.

D

Azure Disk Storage is designed for persistent block storage for VMs, not for serving images globally with low-latency reads. Azure Cosmos DB MongoDB API does not support SQL-like querying; it uses MongoDB queries, not SQL syntax.

42
MCQhard

A social media startup stores user profile data, posts, and comments in Azure Cosmos DB. They notice that the logical partition size for a popular user's profile is growing beyond 20 GB, causing performance issues. The current partition key is 'userId'. Which action should they take to solve this?

A.Change the partition key to a synthetic key combining userId and postId
B.Increase the RU/s
C.Split the container into multiple containers by userId range
D.Use a different API like MongoDB
AnswerA

A synthetic partition key that concatenates userId and postId (for example, "user_12345_post_67890") gives every individual post its own logical partition. Because a single post document is typically a few kilobytes at most, no logical partition can realistically approach the 20 GB limit, regardless of how many posts a single user creates. This high-cardinality key distributes data evenly across physical partitions and is the standard pattern for avoiding hot partitions in Cosmos DB when one entity can have unbounded data growth.

Why this answer

A is correct because the logical partition size limit in Azure Cosmos DB is 20 GB. By using a synthetic partition key that combines 'userId' and 'postId', you distribute the data for the popular user across multiple logical partitions, preventing any single partition from exceeding the 20 GB limit and resolving the performance bottleneck.

Exam trap

The trap here is that candidates often confuse throughput (RU/s) scaling with storage limits, thinking that increasing RU/s will fix a partition size issue, when in fact the 20 GB logical partition limit is a hard storage constraint that requires partition key redesign.

How to eliminate wrong answers

Option B is wrong because increasing the RU/s only improves throughput (request rate) but does not solve the underlying issue of a single logical partition exceeding the 20 GB storage limit, which causes throttling and performance degradation. Option C is wrong because splitting the container by 'userId' range does not help; the problem is that one specific user's data is too large, and splitting by range would still place all that user's data in one partition. Option D is wrong because changing the API (e.g., to MongoDB) does not alter the Cosmos DB logical partition size limit of 20 GB; the same storage constraint applies regardless of the API used.

43
MCQmedium

A gaming company stores player profiles as JSON documents. Each profile includes standard fields like playerId, username, and email, as well as optional fields such as achievements, gamePreferences, and friendsList. The application needs to look up profiles by playerId with low latency (under 10 ms) and also run SQL-like queries to find players who have a specific achievement. Which Azure Cosmos DB API should they choose?

A.A. Table API
B.B. Cassandra API
C.C. MongoDB API
D.D. SQL (Core) API
AnswerD

The SQL API stores JSON documents and supports querying with a SQL dialect. Point reads by partition key (playerId) are low-latency, and SQL queries can easily filter on optional fields like achievements. This makes it the best choice.

Why this answer

The SQL (Core) API is the correct choice because it natively supports JSON documents with flexible schemas (including optional fields like achievements) and provides low-latency point reads by playerId (partition key) under 10 ms. It also enables SQL-like queries (e.g., SELECT * FROM c WHERE ARRAY_CONTAINS(c.achievements, 'specificAchievement')) to find players with a specific achievement, which aligns directly with the requirement.

Exam trap

The trap here is that candidates often choose the MongoDB API because it is associated with JSON documents, but they overlook the explicit requirement for SQL-like queries, which only the SQL (Core) API supports natively among the Azure Cosmos DB APIs.

Why the other options are wrong

A

The Table API provides key-value storage with a schema-less design, but it does not support SQL-like queries or JSON documents natively, making it unsuitable for querying nested fields like achievements.

B

The Cassandra API does not support SQL-like queries on JSON documents; it uses CQL (Cassandra Query Language) and is optimized for wide-column stores, not for querying nested JSON fields like achievements.

C

The MongoDB API supports JSON documents and SQL-like queries, but it uses MongoDB's query language, not SQL. The question requires SQL-like queries, which is a native feature of the SQL (Core) API, not the MongoDB API.

44
MCQhard

You are analyzing a SQL script for an Azure Synapse Analytics dedicated SQL pool as shown in the exhibit. The table 'SensorData' will contain billions of rows. Which statement about the table design is correct?

A.The table uses a clustered columnstore index, which is ideal for large data warehousing tables
B.The table is replicated across all compute nodes
C.The table uses round-robin distribution
D.The table uses a heap structure
AnswerA

Clustered columnstore indexes store data column-wise rather than row-wise, enabling high compression and eliminating unnecessary column scans. For large data warehousing fact tables in Azure Synapse Analytics, this index type is explicitly recommended because it dramatically reduces storage footprint and accelerates analytical queries through batch-mode processing and column elimination. The script's CREATE TABLE command specified this index, making it the accurate description.

Why this answer

A hash distribution on DeviceID distributes rows across distributions based on the hash of DeviceID, which is good for large tables queried frequently by DeviceID. Clustered columnstore index is optimal for large tables in Synapse. Round-robin is for staging tables.

Clustered index is for small tables. The table is not replicated because replication is for small dimension tables.

45
MCQeasy

A retail company stores product catalog data as JSON documents. Each product has a different set of attributes depending on its category (e.g., electronics have 'voltage', clothing has 'size'). The application needs to query products by category and price range efficiently. Which Azure data store is most appropriate for this workload?

A.Azure Cosmos DB
B.Azure SQL Database
C.Azure Blob Storage
D.Azure Table Storage
AnswerA

Azure Cosmos DB is a multi-model NoSQL database with native JSON support and schema-agnostic automatic indexing, allowing queries on any attribute such as category or price without predefined schema. Its low-latency index on every property makes it ideal for product catalogs where different items have varying attributes and customers filter by arbitrary combinations. Cosmos DB also offers predictable throughput scaling, ensuring consistent query performance as catalog size grows.

Why this answer

Azure Cosmos DB is the most appropriate choice because it natively supports JSON documents with flexible schemas, enabling each product to have a different set of attributes per category. Its indexing policies can be configured to efficiently support queries filtering by category and price range, and it offers low-latency, high-throughput access ideal for retail catalog workloads.

Exam trap

The trap here is that candidates often choose Azure SQL Database because they assume all structured data requires a relational store, overlooking the fact that JSON documents with varying schemas are better served by a NoSQL document database like Cosmos DB.

Why the other options are wrong

C

Azure Blob Storage is optimized for unstructured binary or text data (e.g., images, backups) and lacks native querying for JSON documents by attributes like category and price range, requiring costly full scans or external indexing.

D

Azure Table Storage is a NoSQL key-value store that does not support native JSON document storage or complex queries on nested attributes like price range and category. It lacks indexing on arbitrary properties, making efficient queries on varying product attributes impossible.

46
MCQmedium

A social networking application needs to store and query relationships between users, such as 'friends of friends'. The application should be able to traverse these relationships efficiently to recommend new connections. Which Azure NoSQL data store and API should they choose?

A.Azure Cosmos DB with the Gremlin API
B.Azure Cosmos DB with the Table API
C.Azure Cache for Redis
D.Azure Blob Storage
AnswerA

Correct. The Gremlin API is a graph database that efficiently stores and queries relationships between entities, ideal for recommendation engines based on friend connections.

Why this answer

Azure Cosmos DB with the Gremlin API is the correct choice because Gremlin is a graph traversal language specifically designed for querying highly connected data, such as social network relationships. It allows efficient traversal of edges (e.g., 'friends of friends') using graph algorithms, which is exactly what the application needs for recommending new connections. Other APIs like Table API or services like Blob Storage lack native graph traversal capabilities.

Exam trap

The trap here is that candidates often confuse the Table API (which is also NoSQL) as suitable for relationships, but it cannot perform multi-hop graph traversals, while Azure Cache for Redis might seem plausible due to its set operations, but it lacks a graph query language and persistence guarantees.

Why the other options are wrong

B

The Table API provides key-value and tabular data storage with limited query capabilities, lacking native graph traversal and relationship querying needed for 'friends of friends' scenarios.

C

Azure Cache for Redis is an in-memory cache, not a NoSQL data store optimized for graph traversal. It lacks native graph query capabilities like Gremlin, making it inefficient for 'friends of friends' relationship queries.

D

Azure Blob Storage is an object store for unstructured data like images and videos, not for graph relationships. It lacks query capabilities for traversing 'friends of friends' relationships.

47
MCQeasy

A company uses Azure Table Storage to store user session data. The data must be encrypted at rest. What should you do?

A.No action is required; Azure Storage encrypts data at rest by default.
B.Enable Azure Storage Service Encryption (SSE).
C.Use Azure SQL Database Transparent Data Encryption (TDE).
D.Implement client-side encryption before storing data.
AnswerA

Azure Storage (including Table storage) automatically encrypts all data written to the service using 256-bit AES encryption, with keys managed by Microsoft (or customer-managed keys). This server-side encryption is enabled by default for all storage accounts and requires no configuration or additional cost. Therefore, user session data stored in Azure Table Storage is already protected at rest without any admin action.

Why this answer

Azure Table Storage, as part of Azure Storage, automatically encrypts all data at rest using Azure Storage Service Encryption (SSE) with 256-bit AES encryption. This encryption is enabled by default for all new and existing storage accounts, including Table Storage, and cannot be disabled. Therefore, no additional action is required to meet the encryption-at-rest requirement.

Exam trap

The trap here is that candidates may think encryption at rest requires explicit configuration (like enabling SSE or TDE), not realizing that Azure Storage encrypts all data at rest by default, making options B, C, and D unnecessary or incorrect for this specific scenario.

How to eliminate wrong answers

Option B is wrong because Azure Storage Service Encryption (SSE) is already enabled by default for all Azure Storage accounts, including Table Storage; explicitly enabling it is unnecessary and redundant. Option C is wrong because Transparent Data Encryption (TDE) is a feature specific to Azure SQL Database and SQL Server, not applicable to Azure Table Storage, which is a non-relational, key-value store. Option D is wrong because client-side encryption is an optional, additional layer of security for scenarios requiring end-to-end encryption, but it is not required to achieve encryption at rest, which is already handled server-side by Azure Storage by default.

48
MCQmedium

A social media startup needs to store user sessions as key-value pairs. Each session has a unique session ID, and the data needs to be globally distributed across multiple Azure regions to support low-latency reads for users worldwide. The development team expects heavy write throughput and needs flexible schema. Which Azure data store should they choose?

A.Azure Table Storage
B.Azure Blob Storage
C.Azure Cosmos DB
D.Azure Cache for Redis
AnswerC

Azure Cosmos DB is a fully managed NoSQL database that supports key-value stores via its Table API or Core (SQL) API, delivering single-digit-millisecond read/write latencies and turnkey global distribution across any number of Azure regions. Its multiple, well-defined consistency models — including the default Session consistency — align naturally with user-session data, where a user always reads their own writes. Because sessions benefit from automatic TTL expiration and elastic throughput, Cosmos DB is specifically architected for globally distributed, high-throughput key-value workloads rather than just tolerated as a secondary option.

Why this answer

Azure Cosmos DB is the correct choice because it provides globally distributed, multi-region writes and reads with turnkey global distribution, supports flexible schema via its document model, and offers multiple consistency levels to balance performance and data integrity. It is designed for high-throughput, low-latency workloads like user sessions, with session IDs serving as natural partition keys for efficient key-value lookups.

Exam trap

The trap here is that candidates often confuse Azure Cache for Redis (a caching layer) with a durable, globally distributed data store, overlooking that session data requiring persistence and global replication needs a database like Cosmos DB, not an in-memory cache.

Why the other options are wrong

A

Azure Table Storage does not support global distribution with low-latency reads across multiple regions; it is regionally scoped and lacks multi-region write capabilities.

B

Azure Blob Storage is optimized for storing large unstructured data like images and videos, not for high-throughput key-value sessions with low-latency global distribution and flexible schema.

D

Azure Cache for Redis is an in-memory cache, not a fully managed NoSQL database. It lacks global distribution across multiple Azure regions and does not provide flexible schema for high write throughput scenarios like user sessions.

49
MCQmedium

A gaming company stores player scores in Azure Cosmos DB using the NoSQL API. Each document contains fields: PlayerID (unique to the player), GameID, Score, Timestamp. The most common query is: 'Retrieve all scores for a specific GameID, ordered by Score descending.' Which property should be chosen as the partition key to minimize Request Unit (RU) consumption?

A.PlayerID
B.GameID
C.Score
D.Timestamp
AnswerB

GameID is the attribute used in the query filter. Choosing it as the partition key ensures that all scores for a given game are co-located in one partition, allowing a point query to that single partition and minimizing RU cost.

Why this answer

GameID is the correct partition key because the most common query filters on GameID, and Cosmos DB routes queries to the exact physical partition(s) containing that GameID's data. This minimizes RU consumption by avoiding cross-partition fan-out, as the query engine can target a single partition. Using any other field would force scanning multiple partitions, increasing RU cost.

Exam trap

The trap here is that candidates often pick a unique key like PlayerID thinking it ensures even distribution, but they overlook that the query pattern (filtering by GameID) must drive the partition key choice to avoid cross-partition queries.

How to eliminate wrong answers

Option A is wrong because PlayerID is unique per player, so each partition would hold only one document, leading to excessive partitions and cross-partition queries for the GameID-based query. Option C is wrong because Score is a high-cardinality, frequently updated value that would cause hot partitions and inefficient query routing, as the query filters on GameID, not Score. Option D is wrong because Timestamp is monotonically increasing, which creates a hot partition on the latest timestamp and does not align with the query filter on GameID, forcing full partition scans.

50
MCQmedium

A social media company stores user session data. Each session record must be quickly looked up by user ID and must have strong consistency so that once a session is written, subsequent reads always return the latest data. The company expects billions of session records globally and needs low-latency reads/writes. Which Azure data store best meets these requirements?

A.Azure Cosmos DB (SQL API)
B.Azure Blob Storage
C.Azure Table Storage
D.Azure Cache for Redis
AnswerA

Correct. Azure Cosmos DB with the SQL API is a schema-agnostic, multi-model database that offers single-digit-millisecond point reads by session ID, turnkey global distribution, and five consistency levels ranging from eventual to strong. Session records are naturally modeled as JSON documents keyed by session ID, and the SQL API supports SQL querying over those documents while maintaining a 99.999% availability SLA. This combination of low-latency point lookups, global reads/writes, and tunable strong consistency is exactly what a social media session store requires.

Why this answer

Azure Cosmos DB with SQL API is the correct choice because it offers single-digit millisecond read/write latencies at any scale, global distribution, and tunable consistency levels including strong consistency. Strong consistency ensures that once a write is acknowledged, all subsequent reads return the latest data, which is critical for session state where stale reads could cause authentication or authorization failures. Cosmos DB also supports automatic indexing and partitioning by user ID, enabling fast lookups across billions of records.

Exam trap

The trap here is that candidates often confuse Azure Table Storage's low cost and key-value model with the strong consistency requirement, not realizing that Table Storage defaults to eventual consistency and cannot guarantee that a read immediately after a write returns the latest data, especially in globally distributed scenarios.

How to eliminate wrong answers

Option B (Azure Blob Storage) is wrong because it is designed for unstructured binary or text data (e.g., images, videos, backups) and does not support low-latency key-value lookups or strong consistency guarantees for individual records; it is optimized for throughput, not point reads. Option C (Azure Table Storage) is wrong because while it supports key-value lookups, it only offers eventual consistency by default and cannot provide strong consistency across globally distributed replicas, which is required for session data. Option D (Azure Cache for Redis) is wrong because it is an in-memory cache that provides low latency but does not guarantee strong consistency (it is eventually consistent) and data is volatile unless persistence is configured, making it unsuitable as a durable primary store for session records that must survive restarts.

51
MCQmedium

A social media application stores user posts in Azure Cosmos DB. Each post has fields: PostID (unique), UserID, Timestamp, Content, LikesCount. The application frequently queries for all posts by a specific UserID ordered by Timestamp descending. To minimize Request Unit (RU) consumption, which partition key and indexing strategy should be used?

A.Partition key: UserID, and create a composite index on (UserID, Timestamp DESC)
B.Partition key: Timestamp, and sort by UserID in the query
C.Partition key: PostID, and use ORDER BY Timestamp
D.Partition key: UserID, and use ORDER BY PostID
AnswerA

This design localizes all posts for a user in one partition and uses an index that directly supports the filter and sort order.

Why this answer

UserID is the most frequently filtered attribute, making it an ideal partition key to distribute data evenly and avoid cross-partition queries. Adding a composite index on (UserID, Timestamp DESC) allows the query to be served from a single physical partition with an index seek, minimizing RU consumption by avoiding a full scan or sort operation.

Exam trap

The trap here is that candidates often pick a partition key based on the ORDER BY column (Timestamp) without realizing that the filter column (UserID) should be the partition key to avoid cross-partition queries, and that a composite index is needed to avoid an expensive sort.

How to eliminate wrong answers

Option B is wrong because Timestamp as a partition key would cause hot partitions (e.g., all posts from a trending time) and the query would need to scatter across partitions to filter by UserID, increasing RU. Option C is wrong because PostID as a partition key would scatter each user's posts across many partitions, forcing a cross-partition query with ORDER BY Timestamp that requires a costly sort across partitions. Option D is wrong because using ORDER BY PostID does not satisfy the requirement to order by Timestamp descending, and even with UserID as partition key, the query would need to sort posts by PostID instead of Timestamp, which is incorrect and inefficient.

52
MCQmedium

A global social media app uses Azure Cosmos DB (NoSQL API) to store user profile data. The app is read-heavy and must serve content with the lowest possible latency to users worldwide. The data is updated by users, and the business has determined that eventual consistency is acceptable because immediate consistency after a write is not critical for profile views. Which consistency level should they choose to minimize read latency?

A.Eventual
B.Strong
C.Bounded staleness
D.Session
AnswerA

In Azure Cosmos DB NoSQL API, Eventual consistency is the weakest consistency level and the default; updates replicate asynchronously with no ordering guarantee, so reads can be served from any replica with minimal latency and maximum availability. A user viewing a social feed may briefly see missing or old posts, but replication converges once writes stop, and read performance is not constrained by quorum acknowledgments.

Why this answer

Eventual consistency is the correct choice because it offers the lowest read latency by allowing reads to return data immediately without waiting for replication to complete. Since the app is read-heavy, global, and can tolerate eventual consistency for profile views, this consistency level minimizes the time to serve content by not imposing any ordering or staleness guarantees on replicas.

Exam trap

The trap here is that candidates often choose Session consistency because it is the default for many Azure Cosmos DB SDKs, but the question explicitly asks for the lowest read latency with eventual consistency acceptable, making Eventual the correct answer despite Session being a common default.

How to eliminate wrong answers

Option B (Strong) is wrong because it requires all replicas to agree on the latest write before any read can proceed, which adds significant latency, especially across global regions, and is unnecessary given the business's acceptance of eventual consistency. Option C (Bounded staleness) is wrong because it imposes a maximum staleness window (e.g., 5 seconds or 10 operations), which still introduces a replication delay and higher read latency compared to eventual, and is overkill for a scenario where any staleness is acceptable. Option D (Session) is wrong because it guarantees monotonic reads and writes within a single client session, which adds overhead to maintain session context and does not minimize read latency globally; it is designed for per-session consistency, not for lowest-latency global reads.

53
MCQeasy

A retail company plans to store product catalog data that includes product ID, name, description, price, and a varying set of attributes (e.g., size, color, material). The application requires low-latency reads and writes, global distribution, and the ability to handle schema flexibility. Which Azure data store is best suited for this workload?

A.Azure SQL Database
B.Azure Cosmos DB
C.Azure Table Storage
D.Azure Blob Storage
AnswerB

Azure Cosmos DB is the correct choice because it is a multi-model NoSQL database service that natively supports document, key-value, graph, and column-family data models. Its schema-agnostic nature allows each product to have a different set of attributes (e.g., a shirt has size/color, a laptop has RAM/CPU) without requiring migrations or null placeholders. Cosmos DB also provides single-digit-millisecond read/write latency, automatic indexing, and turnkey global distribution, which are essential for a retail product catalog that must be fast and available across regions.

Why this answer

Azure Cosmos DB is the best choice because it provides low-latency reads and writes (single-digit milliseconds at the 99th percentile), global distribution with multi-region writes, and automatic schema flexibility through its document model. It supports varying product attributes (e.g., size, color, material) without requiring schema changes, and its turnkey global distribution ensures data is replicated across regions for fast access.

Exam trap

The trap here is that candidates often confuse Azure Table Storage with Cosmos DB because both are NoSQL, but Table Storage lacks global distribution with multi-region writes and the low-latency guarantees required for this workload, while Cosmos DB is the only option that combines schema flexibility, global distribution, and low-latency reads/writes.

Why the other options are wrong

A

Azure SQL Database enforces a fixed relational schema, which cannot handle the varying set of attributes (e.g., size, color, material) required for the product catalog. It also lacks native global distribution and low-latency multi-region writes.

C

Azure Table Storage lacks native global distribution and low-latency SLA guarantees across multiple regions, and its query capabilities are limited to partition and row keys, making it unsuitable for flexible schema queries on varying attributes.

D

Azure Blob Storage is optimized for unstructured binary data (e.g., images, videos, backups) and does not provide native support for schema-flexible JSON documents, low-latency queries on individual items, or global distribution with multi-region writes.

54
MCQmedium

A startup develops a mobile application that stores user preferences as simple key-value pairs. The app is only used in North America, and the team needs low-latency reads and writes with minimal cost. They do not require global distribution or complex querying. Which Azure data store should they choose?

A.Azure Cosmos DB (SQL API)
B.Azure Cosmos DB (Table API)
C.Azure Table Storage
D.Azure SQL Database
AnswerC

Azure Table Storage is a schema-less NoSQL key-value store that enables fast, cost-effective point lookups via a partition key and row key. It automatically indexes these keys and has no minimum throughput provisioning, so you pay only for the structured storage you actually use. For a single-region, latency-tolerant mobile app with simple key-value data, it delivers the lowest cost with sufficient performance.

Why this answer

Azure Table Storage is the correct choice because it provides a cost-effective, low-latency key-value store for simple data like user preferences, with no need for global distribution or complex querying. It offers single-digit millisecond latency for reads and writes within a single region, and its pay-per-request pricing model minimizes cost for a startup. The Table API in Azure Cosmos DB would be overkill and more expensive for this North America-only, non-distributed scenario.

Exam trap

The trap here is that candidates often confuse Azure Cosmos DB Table API with Azure Table Storage, assuming the Cosmos DB version is always better, but they fail to consider the cost implications and the fact that Azure Table Storage is sufficient for simple, single-region key-value workloads without global distribution.

Why the other options are wrong

A

Azure Cosmos DB (SQL API) is a globally distributed, multi-model database with high cost and complexity, which is overkill for a simple key-value store with North America-only, low-latency, low-cost requirements.

B

Azure Cosmos DB (Table API) is overkill and more expensive than Azure Table Storage for a simple key-value store limited to North America without global distribution needs.

D

Azure SQL Database is a relational database with higher cost and complexity than needed for simple key-value storage, and it does not provide the low-latency, low-cost key-value access that Azure Table Storage offers.

55
MCQhard

A company uses Azure Blob Storage to store video files for a streaming service. The files are accessed frequently for the first 30 days after upload, then rarely after. The company wants to minimize storage costs while maintaining fast access for frequently accessed files. What should they implement?

A.Azure Content Delivery Network (CDN)
B.Azure Files shares
C.Blob lifecycle management policies
D.Geo-redundant storage (GRS)
AnswerC

Lifecycle management automates moving blobs between tiers (Hot, Cool, Archive) based on age, optimizing cost while keeping frequently accessed data in Hot tier.

Why this answer

Blob lifecycle management policies allow you to automatically transition blobs to cooler, cheaper access tiers (e.g., from Hot to Cool or Archive) based on age. This directly addresses the requirement: after 30 days of frequent access, the policy moves the video files to a lower-cost tier, reducing storage costs while keeping the Hot tier available for the initial high-access period.

Exam trap

The trap here is that candidates often confuse cost optimization with performance acceleration, mistakenly choosing Azure CDN (Option A) because it improves access speed, when the question explicitly asks for minimizing storage costs while maintaining fast access for frequently accessed files.

How to eliminate wrong answers

Option A is wrong because Azure CDN is a content delivery network that caches content at edge locations for faster delivery, not a storage cost optimization mechanism; it does not automatically change the storage tier of the source blobs. Option B is wrong because Azure Files shares provide SMB/NFS file shares for shared access, not a tiering solution for blob storage cost management; they are a different storage service entirely. Option D is wrong because Geo-redundant storage (GRS) replicates data to a secondary region for disaster recovery, which increases storage costs and does not address the need to reduce costs for infrequently accessed data.

56
MCQmedium

You need to store telemetry data from millions of devices. Each record includes a device ID, timestamp, and metric value. The data will be queried by device ID and time range. Which Azure data store is best suited for this scenario?

A.Azure Data Explorer
B.Azure SQL Database
C.Azure Storage Queues
D.Azure Cosmos DB
AnswerA

Azure Data Explorer (ADX) is a fully managed analytics database purpose-built for high-volume time-series and log data. Its columnar storage engine uses advanced indexing and compression to ingest millions of events per second while retaining interactive query performance via Kusto Query Language (KQL). KQL includes native time-series functions like bin(), summarize, and percentiles, enabling near-real-time telemetry analytics without external processing. This makes ADX the optimal choice for telemetry pipelines that demand fast ingestion, long-term retention, and complex temporal queries.

Why this answer

Azure Data Explorer (ADX) is optimized for time-series data and can ingest high volumes of telemetry, with fast queries on time ranges and device IDs. Azure Cosmos DB is good for real-time apps but less efficient for large-scale time-series analytics. Azure SQL Database is relational and may not scale as well.

Azure Storage Queues are for messaging, not storage/query.

57
MCQhard

A global e-commerce company uses Azure Cosmos DB with multiple write regions to handle high traffic from users worldwide. For their order processing system, they must guarantee that once an order is recorded, all subsequent reads from any region see the most up-to-date order status. However, they also need low write latency globally. Which configuration should they choose to meet these requirements?

A.Use multi-region writes with strong consistency
B.Use single-region writes with strong consistency
C.Use multi-region writes with bounded staleness consistency
D.Use single-region writes with eventual consistency and implement application-level conflict resolution
AnswerB

Correct. Strong consistency provides immediate global consistency, but it requires a single write region. This trade-off meets the guarantee at the cost of slightly higher write latency for remote users.

Why this answer

Strong consistency with single-region writes ensures that all reads in any region return the most recent write, because Cosmos DB replicates writes synchronously to all regions when strong consistency is configured. This guarantees linearizability: once an order is committed, every subsequent read sees that update. Single-region writes avoid the conflict-resolution overhead of multi-region writes while still providing low write latency within the primary region, and reads from secondary regions are served from locally replicated data that is kept fully consistent.

Exam trap

The trap here is that candidates assume multi-region writes are needed for global low-latency writes, but they overlook that strong consistency cannot be combined with multi-region writes, and that single-region writes with strong consistency still provide low write latency in the primary region while guaranteeing immediate read freshness across all regions.

Why the other options are wrong

A

Strong consistency with multi-region writes is not supported in Azure Cosmos DB; multi-region write accounts can only use eventual or bounded staleness consistency. Thus, this option is technically impossible.

C

Multi-region writes with bounded staleness consistency cannot guarantee that all subsequent reads from any region see the most up-to-date order status, because bounded staleness allows a lag (e.g., up to K versions or T time), so a read in a different region might see stale data before the write propagates.

D

Eventual consistency does not guarantee that all subsequent reads see the most up-to-date order status, which violates the requirement for immediate global consistency after writes.

58
MCQmedium

A company stores historical sensor data in Azure Blob Storage. The data is accessed only a few times per year for compliance audits, but when requested, it must be available for reading within 15 minutes. The company wants to minimize storage costs. Which blob access tier should they use?

A.Hot
B.Cool
C.Archive
D.Premium
AnswerB

The Cool access tier is correct because it is designed for data that is infrequently accessed and retained for at least 30 days, such as historical sensor readings. It has significantly lower storage cost than Hot, and while reads cost more per transaction, the data remains immediately readable or can be retrieved in minutes without the long rehydration wait of Archive. This satisfies the 15-minute availability requirement at a lower cost.

Why this answer

The Cool tier is the optimal choice because it balances low storage cost with the ability to retrieve data within minutes, meeting the 15-minute availability requirement. Archive would incur a retrieval delay of up to 15 hours, which violates the compliance audit SLA. Hot and Premium tiers are more expensive and unnecessary for data accessed only a few times per year.

Exam trap

The trap here is that candidates often choose Archive for its lowest storage cost without considering the mandatory rehydration delay, which can take up to 15 hours and violates the 15-minute availability requirement.

Why the other options are wrong

A

The Hot tier is designed for frequently accessed data and has higher storage costs than Cool. Since the data is accessed only a few times per year, using Hot would unnecessarily increase costs.

C

Archive tier has a retrieval time of up to 15 hours, which exceeds the 15-minute availability requirement for compliance audits.

D

Premium tier is designed for low-latency, high-performance scenarios (e.g., interactive apps) and is the most expensive, contradicting the goal of minimizing storage costs for infrequently accessed data.

59
MCQmedium

A gaming company stores player session data as JSON documents. Each document contains fields like sessionId, userId, startTime, and a varying set of optional fields such as deviceType or campaignId. The application needs to query sessions by userId and startTime range using SQL-like queries, and also by sessionId with low latency. Which Azure Cosmos DB API should the company choose?

A.SQL (Core) API
B.MongoDB API
C.Table API
D.Gremlin (Graph) API
AnswerA

SQL (Core) API is a native, schema-agnostic document API for Azure Cosmos DB that stores each player session JSON as a resource and lets you query it with standard SQL syntax, including SELECT, WHERE, and even JOINs across documents. It automatically indexes all JSON properties without requiring a predefined schema, making it ideal for the flexible, evolving session data described. Because the requirement is explicitly SQL query support over JSON documents, this API directly matches the scenario.

Why this answer

The SQL (Core) API is the correct choice because it natively supports SQL-like queries over JSON documents, enabling efficient filtering by userId and startTime range. It also provides low-latency point reads by sessionId when a well-designed partition key (e.g., /userId) is used, and it offers automatic indexing of all JSON properties, including optional fields like deviceType or campaignId.

Exam trap

The trap here is that candidates may choose the MongoDB API because they assume 'SQL-like queries' require MongoDB's query language, but the Core API actually provides native SQL syntax and is the only Azure Cosmos DB API that supports SQL directly over JSON documents.

Why the other options are wrong

B

The MongoDB API supports JSON documents and SQL-like queries, but it does not natively support querying by sessionId with low latency using a separate partition key; Cosmos DB's SQL (Core) API provides native support for indexing and querying multiple fields efficiently.

C

The Table API uses key-value storage with a fixed schema and does not support JSON documents with varying fields or SQL-like queries on nested properties like startTime.

D

The Gremlin (Graph) API is designed for graph data models with nodes and edges, not for querying JSON documents with SQL-like queries or low-latency lookups by sessionId.

60
MCQhard

A company stores user session data for a web application. Each session has a unique SessionID, UserID, start time, end time, and a variable set of attributes (e.g., pages visited, clicks, device type). The workload requires low-latency reads by SessionID and occasional queries by UserID and time range. Schema flexibility is critical because the attributes evolve over time. The team wants a fully managed NoSQL database that supports secondary indexing. Which Azure data store should they choose?

A.Azure Cosmos DB (NoSQL API)
B.Azure SQL Database
C.Azure Table Storage
D.Azure Blob Storage
AnswerA

Correct. Cosmos DB's NoSQL API natively supports JSON documents with flexible schema. It offers low-latency reads on the partition key and allows secondary indexes to support queries on other attributes like UserID.

Why this answer

Azure Cosmos DB (NoSQL API) is correct because it is a fully managed NoSQL database that offers low-latency reads by SessionID (using a partition key), supports secondary indexing for queries by UserID and time range, and provides schema flexibility for evolving session attributes. Its multi-model API and global distribution meet the workload requirements without manual indexing or schema management.

Exam trap

The trap here is that candidates may confuse Azure Table Storage (which is also NoSQL and schema-flexible) with Cosmos DB, but Table Storage lacks secondary indexing, making it unsuitable for queries by UserID and time range without expensive scans.

How to eliminate wrong answers

Option B (Azure SQL Database) is wrong because it is a relational database requiring a fixed schema, which contradicts the need for schema flexibility with evolving attributes. Option C (Azure Table Storage) is wrong because it does not support secondary indexing; queries by UserID and time range would require full table scans, failing the low-latency requirement. Option D (Azure Blob Storage) is wrong because it is an object store for unstructured data (e.g., files, images), not a database with query capabilities or indexing for session data.

61
MCQmedium

A social media application stores user profiles as JSON documents. Each user profile can have different attributes (e.g., some have 'education', others have 'work experience'). The application needs to query profiles by any attribute with low latency. Which Azure data store is most appropriate?

A.Azure Blob Storage
B.Azure Table Storage
C.Azure Cosmos DB (SQL API)
D.Azure SQL Database
AnswerC

Azure Cosmos DB (SQL API) is a purpose-built NoSQL document database that stores data natively as JSON. Its schema-agnostic model lets each user profile contain a different set of attributes without migrations, while automatic indexing on every property enables fast, attribute-level queries via SQL syntax. This directly matches the requirement for flexible JSON documents with varying structures.

Why this answer

Azure Cosmos DB with the SQL API is the correct choice because it natively supports schema-agnostic JSON documents, allowing each user profile to have varying attributes without requiring a fixed schema. Its indexing policies enable low-latency queries on any attribute, and it provides single-digit millisecond response times for point reads and queries, which is essential for a social media application.

Exam trap

The trap here is that candidates often confuse Azure Table Storage's key-value model with a document database, assuming it can query arbitrary attributes efficiently, but Table Storage requires a composite key and lacks secondary indexes for ad-hoc queries on non-key fields.

Why the other options are wrong

A

Azure Blob Storage is optimized for storing large unstructured data like images or videos, not for querying JSON documents by arbitrary attributes with low latency. It lacks native indexing and query capabilities for nested JSON fields.

B

Azure Table Storage is a NoSQL key-value store that does not support querying by arbitrary attributes with low latency; it requires a partition key and row key for efficient queries, making it unsuitable for ad-hoc queries on any attribute in JSON documents.

D

Azure SQL Database requires a fixed schema, but the question specifies that user profiles have varying attributes (JSON documents with different fields). This makes it unsuitable for schema-less, flexible document storage.

62
MCQhard

Refer to the exhibit. You are storing product data in Azure Cosmos DB using the SQL API. The JSON shows a sample document. You need to query for all products in the 'Electronics' category with a price less than 200. Which query should you use?

A.SELECT * FROM c WHERE c.category = 'Electronics' OR c.price < 200
B.SELECT * FROM c WHERE c.category = "Electronics" AND c.price < 200
C.SELECT * FROM p WHERE p.category = 'Electronics' AND p.price < 200
D.SELECT * FROM c WHERE c.category = 'Electronics' AND c.price < 200
AnswerD

This query is correct because it uses the proper Cosmos DB SQL API syntax: single quotes for the string literal, the AND operator to enforce both conditions, and the default alias 'c' for the container. The WHERE clause filters documents where the category property equals 'Electronics' AND the price property is less than 200, returning only the items that meet both criteria. This matches the expected business requirement exactly.

Why this answer

It uses the correct syntax: SELECT * FROM c WHERE c.category = 'Electronics' AND c.price < 200. It uses single quotes for the string value, appropriate alias 'c' from the FROM clause, and the AND operator to combine both conditions. Option A uses OR, which would return products that are either in Electronics or have price < 200, not both.

Option B uses double quotes for the string, which is invalid in Cosmos DB SQL API. Option C uses alias 'p' but the FROM clause uses 'c', causing an error. Thus, D is the correct query.

63
MCQmedium

A social media company stores user-generated posts as JSON documents. Each post contains fields such as postId, userId, timestamp, and content. The application needs to query posts by userId and timestamp ranges with low latency, and also perform SQL-like queries across all posts. The data volume is growing rapidly and must scale globally. Which Azure data store should the company use?

A.A) Azure Table Storage
B.B) Azure Cosmos DB SQL API
C.C) Azure Blob Storage
D.D) Azure Cache for Redis
AnswerB

Correct. The Cosmos DB SQL API natively stores JSON documents, supports indexing on any field, and allows rich SQL-like queries. It offers global distribution, low latency, and scalable throughput, making it ideal for this scenario.

Why this answer

Azure Cosmos DB SQL API is the correct choice because it provides native support for querying JSON documents with low-latency, including indexed queries on fields like userId and timestamp. Its global distribution capability ensures data can be replicated across multiple Azure regions for low-latency access worldwide, while its SQL API allows SQL-like queries across all posts, meeting both requirements.

Exam trap

The trap here is that candidates often confuse Azure Table Storage's key-value model with document storage, mistakenly thinking its OData queries can handle complex JSON queries, but Table Storage cannot query nested JSON fields or perform SQL-like operations across all posts.

Why the other options are wrong

A

Azure Table Storage is a NoSQL key-value store that does not support SQL-like queries or native JSON querying. It lacks the indexing and query capabilities needed for low-latency queries on userId and timestamp ranges across globally distributed data.

C

Azure Blob Storage is optimized for storing large unstructured binary data, not for low-latency queries on JSON documents with SQL-like queries or global scaling of indexed data.

D

Azure Cache for Redis is an in-memory cache, not a durable data store. It cannot serve as the primary store for user-generated posts that need to be persisted and queried with SQL-like queries across all posts.

64
MCQmedium

A social networking application uses Azure Cosmos DB to store user posts. When a user publishes a new post, they immediately refresh their feed and expect to see their own post. However, the application can tolerate temporary staleness for posts from other users (e.g., a few seconds delay). Which Azure Cosmos DB consistency level should the application use for read operations that display the feed?

A.Strong
B.Bounded staleness
C.Session
D.Eventual
AnswerC

Session consistency uses a session token to ensure that within the same client session, reads reflect the writes made by that client. This satisfies the requirement that the user sees their own post immediately, while other reads may see slightly stale data.

Why this answer

Session consistency is the correct choice because it guarantees that the user who writes a post will read their own write within the same session, while allowing other users to see slightly stale data. This matches the requirement: the author immediately sees their new post, but the application can tolerate a few seconds of staleness for other users' posts. Session consistency uses a session token to ensure monotonic reads and writes for the same client, making it ideal for per-user feed scenarios.

Exam trap

The trap here is that candidates confuse 'session' with 'eventual' because both allow staleness, but session guarantees per-user write-read consistency, which eventual does not, and they overlook that bounded staleness applies globally, not per-user.

Why the other options are wrong

A

Strong consistency would enforce immediate visibility for all users, but the application only needs the posting user to see their own post immediately. Strong consistency is overkill and would increase latency and reduce availability unnecessarily.

B

Bounded staleness allows a configurable lag (time or operations), but the application requires that the user's own post is immediately visible after refresh. Session consistency guarantees monotonic reads for the same session, which matches the requirement of seeing one's own post immediately while tolerating staleness for others.

D

Eventual consistency allows stale reads for any user, including the one who just posted, so the user might not see their own post immediately after refresh, which violates the requirement that the user must see their own post right away.

65
MCQmedium

A social media company stores user posts as JSON documents in Azure Cosmos DB. Each post may have a different number of fields and nested objects. Which type of data model does this represent?

A.Key-value
B.Column-family
C.Document
D.Graph
AnswerC

A document database, such as Azure Cosmos DB, stores each social media post as an independent JSON document and can index individual fields and nested properties for queries. The schema is flexible, so different posts can contain different fields without migrations, matching the naturally evolving JSON structure of user-generated content. This native JSON support with dot-notation field access and rich indexing is exactly why this scenario points to a document data store.

Why this answer

The scenario describes user posts stored as JSON documents with varying fields and nested objects. Azure Cosmos DB's Document data model (using the SQL API or MongoDB API) is designed for semi-structured, schema-agnostic data where each document can have a different structure, making it the correct choice.

Exam trap

The trap here is that candidates may confuse the document model with key-value because both handle unstructured data, but key-value stores lack the ability to query on nested fields or perform rich queries like those supported by Cosmos DB's SQL API.

How to eliminate wrong answers

Option A is wrong because a key-value data model stores data as simple key-value pairs without support for nested objects or querying on fields within the value. Option B is wrong because a column-family data model organizes data into rows and column families, requiring a predefined schema for columns, not flexible JSON documents. Option D is wrong because a graph data model is optimized for relationships between entities using nodes and edges, not for storing semi-structured documents with varying fields.

66
MCQmedium

Refer to the exhibit. You are reviewing an Azure Cosmos DB account configuration. Which API is this account configured to use?

A.Table API
B.SQL (Core) API
C.Cassandra API
D.MongoDB API
AnswerC

The Cassandra API for Azure Cosmos DB is specifically activated by the 'EnableCassandra' capability flag in the account configuration, and the exhibit clearly shows this property set to true. This flag tells Azure to expose Cassandra-compatible endpoints that accept CQL and work with existing Cassandra drivers. When this flag is enabled, Cosmos DB manages Cassandra tables, partitions, and replication under the hood, giving you Cassandra's query language with Cosmos DB's global distribution. Therefore, the presence of EnableCassandra definitively identifies this as a Cassandra API account.

Why this answer

The 'capabilities' array includes 'EnableCassandra', which indicates the Cassandra API is enabled. Option C is correct. Option A (Table API) would have 'EnableTable', Option B (SQL/Core API) would have 'EnableSQL' or no capability, and Option D (MongoDB API) would have 'EnableMongo'.

67
MCQeasy

You need to provide temporary access to a specific blob in Azure Blob Storage for a limited time. The access should be time-limited and require no authentication from the user. Which mechanism should you use?

A.Storage account keys
B.Anonymous public access
C.Azure RBAC roles
D.Shared access signatures (SAS)
AnswerD

A shared access signature (SAS) is a signed URI that grants time-bound and permission-limited access to a specific blob without revealing the account key. It lets you specify exact start/expiry times, allowed IP ranges, and supported protocols, making it ideal for controlled temporary access. Additionally, you can use a stored access policy to revoke the SAS before its expiry, offering a clean way to manage short-lived delegated access.

Why this answer

Shared access signatures (SAS) provide time-limited, delegated access to storage resources without requiring the account key. Storage account keys provide full access and never expire. RBAC is for identity-based access, not anonymous.

Access keys are long-lived secrets.

68
Multi-Selecteasy

Which TWO storage tiers are available in Azure Blob Storage for general-purpose v2 storage accounts? (Choose two.)

Select 2 answers
A.Cool
B.Frozen
C.Standard
D.Cold
E.Hot
AnswersA, E

Cool is a valid online access tier optimized for data that is infrequently accessed but still requires immediate availability. It provides lower storage costs than Hot while maintaining millisecond read and write latency, making it well-suited for backups, short-term disaster recovery, and old media files. Because Cool is an online tier, no rehydration step is needed before reading the data.

Why this answer

Options A (Cool) and E (Hot) are correct. Azure Blob Storage offers Hot, Cool, and Archive tiers for general-purpose v2 accounts. Option B (Frozen) and Option D (Cold) are not valid tier names.

Option C (Standard) is an account type, not a tier.

69
MCQeasy

You are designing a solution to store JSON documents from a web application. Each document is about 10 KB and must be queried by a unique ID. Which Azure data store is most appropriate?

A.Azure SQL Database
B.Azure Table Storage
C.Azure Cosmos DB
D.Azure Blob Storage
AnswerC

Azure Cosmos DB is a fully managed NoSQL document database that stores each JSON document natively, with automatic indexing of every property and a SQL API for rich querying over the JSON structure, plus optimized point reads by document ID and partition key, making it the clear choice for this workload.

Why this answer

Azure Cosmos DB is a NoSQL database that natively supports JSON documents and provides low-latency queries by ID. Azure Blob Storage stores blobs but is not optimized for querying by document ID. Azure SQL Database is relational and requires schema.

Azure Table Storage is key-value but less feature-rich for JSON documents.

70
MCQmedium

A global online gaming company needs a data store for player game session logs. Each log record has a SessionID (unique), PlayerID, GameID, StartTime, EndTime, and a JSON payload containing variable game state details. The company requires low-latency writes for millions of concurrent sessions and wants to query by PlayerID and time range. Schema flexibility is important because game state details change frequently. Which Azure data store should they choose?

A.Azure Cosmos DB with the NoSQL API
B.Azure Table Storage
C.Azure Blob Storage
D.Azure SQL Database
AnswerA

Azure Cosmos DB with the NoSQL API is the optimal choice because it natively stores schema-less JSON documents, allowing player profiles and game telemetry to evolve without migration. It provides turnkey global distribution, single-digit-millisecond latency at any scale, and supports high-throughput point reads/writes with a SQL-like query engine over JSON. This matches the gaming company's need for a flexible, globally available data layer.

Why this answer

Azure Cosmos DB with the NoSQL API is the correct choice because it provides low-latency writes (single-digit milliseconds at the 99th percentile) for millions of concurrent sessions, supports schema-flexible JSON documents that can accommodate frequently changing game state payloads, and enables efficient queries by PlayerID and time range using a composite index or a partition key like PlayerID combined with a time-based sort order.

Exam trap

The trap here is that candidates often choose Azure Table Storage because they think it is 'NoSQL' and 'fast,' but they overlook its lack of native JSON support and schema flexibility, which are critical for the variable game state payloads described in the question.

How to eliminate wrong answers

Option B is wrong because Azure Table Storage does not natively support JSON payloads or schema flexibility for variable game state details; it stores data as entities with fixed property sets and requires flattening complex nested data. Option C is wrong because Azure Blob Storage is designed for unstructured binary or text data, not for low-latency, indexed queries by PlayerID and time range; it lacks native query capabilities and would require additional services like Azure Data Lake or external indexing. Option D is wrong because Azure SQL Database enforces a fixed relational schema, which cannot accommodate the frequently changing game state details without costly schema migrations, and its write throughput is limited compared to Cosmos DB's horizontal scaling for millions of concurrent sessions.

71
MCQmedium

A media company stores raw video footage as blobs in Azure Blob Storage. After processing, the raw footage is kept for compliance purposes and is accessed only a few times per year. The company wants to minimize storage costs while ensuring the data is durable and can be restored within 24 hours if needed. Which Azure Blob Storage access tier should they use?

A.Hot
B.Cool
C.Cold
D.Archive
AnswerD

The Archive tier offers the lowest storage cost for data that is rarely accessed and can tolerate a retrieval latency of up to 15 hours. This matches the company's requirements of access only a few times per year and a 24-hour recovery window.

Why this answer

The Archive tier is the correct choice because it offers the lowest storage cost for data that is rarely accessed (a few times per year) and can tolerate a retrieval latency of up to 15 hours, which is well within the 24-hour restoration requirement. Azure Blob Storage's Archive tier is designed for long-term retention, compliance, and backup scenarios where durability is maintained through geo-redundant replication options, and data can be rehydrated to an online tier (e.g., Hot or Cool) within the specified time frame.

Exam trap

The trap here is that candidates often confuse the Cold tier (which is a separate tier in Azure, not to be mistaken with Archive) and assume it is the cheapest option, but Archive is actually the lowest-cost tier for data that can tolerate a 24-hour retrieval time, while Cold is still more expensive and has a lower retrieval latency.

Why the other options are wrong

A

The Hot tier is designed for frequently accessed data and has the highest storage cost, making it unsuitable for footage accessed only a few times per year where cost minimization is key.

B

The Cool tier has a 30-day minimum storage duration and higher retrieval costs than Archive, making it suboptimal for data accessed only a few times per year with a 24-hour restoration window.

72
MCQmedium

A startup is building a global user session store. Each session consists of a simple key (session ID) and a value (user data as a JSON string). The application requires low-latency reads and writes from any Azure region, and the data must be durable. Which Azure service is best suited for this scenario?

A.Azure Cosmos DB (Table API)
B.Azure Table Storage
C.Azure Redis Cache
D.Azure Blob Storage
AnswerA

Azure Cosmos DB with the Table API is a globally distributed, fully managed NoSQL key-value store that offers single-digit-millisecond reads and writes at any scale. It provides automatic turnkey multi-region replication with multiple consistency models and active-active multi-region writes, making it ideal for a session store that must be accessible with low latency worldwide. The service guarantees 99.999% availability and elastic horizontal scaling, so session data remains durable and highly available without manual partitioning or failover management.

Why this answer

Azure Cosmos DB (Table API) is the best fit because it provides global, multi-region writes with tunable consistency, guaranteed single-digit-millisecond latency for reads and writes at the 99th percentile, and full durability with automatic replication across any number of Azure regions. The Table API offers a key-value store interface (session ID as partition key, JSON value) while also supporting schema flexibility and SLA-backed performance, which is critical for a global user session store.

Exam trap

The trap here is that candidates often confuse Azure Table Storage (a simple, regional key-value store) with Azure Cosmos DB Table API (a globally distributed, low-latency, SLA-backed service), assuming both offer the same global performance and durability, when in fact only Cosmos DB provides multi-region writes and guaranteed latency.

How to eliminate wrong answers

Option B (Azure Table Storage) is wrong because it is a regional service that does not natively support multi-region writes or global distribution with low-latency reads from any region; it also lacks the SLA-guaranteed single-digit-millisecond latency that Cosmos DB provides. Option C (Azure Redis Cache) is wrong because it is an in-memory cache that is not durable by default (data can be lost on node failure unless Redis persistence is enabled, which still sacrifices performance) and does not offer the same durability guarantees as a fully managed database service. Option D (Azure Blob Storage) is wrong because it is designed for large, unstructured binary objects (blobs) and does not provide a low-latency key-value API for simple session lookups; its read/write latency is significantly higher than Cosmos DB or Redis, making it unsuitable for real-time session access.

73
MCQmedium

A global e-commerce platform uses Azure Cosmos DB to store product inventory data. Customers add items to their cart, which reduces the available inventory count. The application requires that after a customer adds an item, any subsequent read of that product's inventory from any region in the world must reflect the reduced count immediately. Which Cosmos DB consistency level should be used?

A.Eventual consistency
B.Consistent prefix consistency
C.Session consistency
D.Strong consistency
AnswerD

Strong consistency delivers linearizable reads, meaning every read returns the most recently committed write regardless of which replica or region serves the request. In Cosmos DB this is achieved by requiring writes to be acknowledged by a quorum of replicas before the write is confirmed, so no replica can serve a stale read afterward. For a global e-commerce platform, this prevents overselling and ensures order and inventory data are always current, though it increases write latency and can reduce availability under network partitions.

Why this answer

Strong consistency ensures that any read operation returns the most recent write, regardless of the region. Since the application requires that after a customer adds an item, any subsequent read of that product's inventory from any region must reflect the reduced count immediately, Strong consistency is the only level that guarantees linearizability and zero staleness across all replicas.

Exam trap

The trap here is that candidates often assume Session consistency is sufficient because it provides 'read your writes' within a session, but the question explicitly requires immediate global visibility for any subsequent read from any region, which only Strong consistency can guarantee.

How to eliminate wrong answers

Option A is wrong because Eventual consistency allows reads to return stale data for an unbounded period, which would not guarantee immediate visibility of the reduced inventory count. Option B is wrong because Consistent prefix consistency only guarantees that reads never see out-of-order writes, but it does not guarantee that the read returns the latest write; stale data can still be returned. Option C is wrong because Session consistency guarantees monotonic reads and writes only within the context of a single client session; other clients or regions outside the session could still see stale data.

74
MCQeasy

A company stores massive amounts of unstructured log data as text files in Azure Blob Storage. The logs are written once and accessed only a few times per month for compliance audits. When accessed, the data must be available within 15 minutes. The company's priority is minimizing storage costs. Which Azure Blob Storage access tier should they use?

A.Hot
B.Cool
C.Archive
D.Premium
AnswerB

Azure Cool tier is designed for data that is infrequently accessed and will be stored for at least 30 days, offering a lower per-gigabyte storage price than Hot while still providing millisecond read latency. Since the log data is massive but rarely read, Cool minimizes storage cost without introducing the multi-hour rehydration delay of Archive, thus satisfying both the cost minimization and the 15-minute availability requirements.

Why this answer

The Cool access tier is optimal because the logs are accessed infrequently (a few times per month) but require retrieval within 15 minutes. Cool tier offers lower storage costs than Hot while still supporting near-instant access, making it the best balance for minimizing storage costs with occasional compliance audits.

Exam trap

The trap here is that candidates often choose Archive for cost minimization without considering the rehydration latency requirement, mistakenly assuming all infrequently accessed data qualifies for Archive regardless of retrieval time constraints.

Why the other options are wrong

A

Hot tier has the highest storage cost, which contradicts the company's priority of minimizing storage costs for infrequently accessed data.

C

Archive tier has a retrieval time of up to 15 hours, which exceeds the 15-minute availability requirement for compliance audits.

75
MCQeasy

A media company stores large video files in Azure Blob Storage. The videos are accessed frequently for the first 30 days after upload, then rarely for the next 180 days. After that, they are only needed for compliance and are never accessed. Which access tier should be used for the first 30 days to minimize costs while maintaining low latency?

A.Hot tier
B.Cool tier
C.Archive tier
D.Premium tier
AnswerA

Hot tier should be selected for the media company's large video files because it is the default online access tier optimized for frequent read/write operations. It delivers the lowest latency of the standard access tiers, which supports daily editing and streaming workloads without rehydration delays or early-deletion penalties. Although its per-GB storage price is higher than Cool or Archive, the absence of retrieval charges for these actively accessed files makes it the appropriate trade-off.

Why this answer

The Hot tier is the correct choice for the first 30 days because it provides the lowest latency access and highest throughput for frequently accessed data, which matches the requirement of frequent access during this period. While the Hot tier has the highest storage cost per GB, it has no retrieval costs, making it cost-effective for high-access patterns. The other tiers introduce either retrieval fees (Cool), high latency (Archive), or unnecessary cost (Premium) for this use case.

Exam trap

The trap here is that candidates often choose the Cool tier thinking it saves money on storage for the first 30 days, but they overlook the retrieval costs and the fact that Hot tier is actually cheaper for frequently accessed data due to zero retrieval fees.

How to eliminate wrong answers

Option B (Cool tier) is wrong because although it has lower storage cost, it incurs a retrieval cost per GB and has slightly higher latency than Hot, making it suboptimal for frequent access during the first 30 days. Option C (Archive tier) is wrong because it has the lowest storage cost but retrieval times can take hours (up to 15 hours for standard priority), which violates the low-latency requirement for frequent access. Option D (Premium tier) is wrong because it is designed for high-performance block blob workloads with consistent low latency and higher cost, but it is overkill and more expensive than Hot for standard video file access.

Page 1 of 3 · 178 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Describe considerations for working with non-relational data on Azure questions.