Courseiva

Microsoft Azure Data Fundamentals DP-900 (DP-900) — Questions 751–825

851 questions total · 12pages · All types, answers revealed

Page 10

Page 11 of 12

Page 12
751
MCQeasy

A company wants to run SQL queries on data stored in Azure Cosmos DB for NoSQL. Which API should they use?

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

The Core (SQL) API is the native and default API for Azure Cosmos DB, optimized for querying JSON documents using a SQL query dialect. It supports familiar relational constructs such as SELECT, WHERE, JOIN, and GROUP BY, adapted to work on schema-flexible NoSQL data. This makes it the only API that directly accepts SQL queries without translation or compatibility layers.

Why this answer

The Core (SQL) API is the native API for Azure Cosmos DB for NoSQL, designed to query JSON documents using a SQL-like syntax. Since the requirement is to run SQL queries on data stored in Azure Cosmos DB for NoSQL, this API directly supports that need without requiring any protocol translation or schema mapping.

Exam trap

The trap here is that candidates often confuse 'SQL queries' with the Cassandra API because both use a SQL-like language, but Cassandra uses CQL, not standard SQL, and is designed for a different data model (wide-column vs. document).

How to eliminate wrong answers

Option B (Gremlin API) is wrong because it is used for graph data models and queries using the Apache TinkerPop graph traversal language, not for SQL queries on NoSQL documents. Option C (Cassandra API) is wrong because it implements the Apache Cassandra wire protocol for wide-column stores and uses CQL (Cassandra Query Language), not standard SQL. Option D (MongoDB API) is wrong because it provides compatibility with MongoDB's document model and query syntax (e.g., BSON, find(), aggregate()), not SQL.

752
MCQmedium

A manufacturing company installs IoT sensors on equipment in a factory. Each sensor sends a reading (device ID, timestamp, temperature, vibration) every second. The application must store these readings with extremely low write latency, support queries for the latest reading per device, and allow range queries over the last hour for a specific device. The development team expects high throughput writes (millions per day) and does not require complex joins. Which Azure data store is most appropriate for this workload?

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

Azure Cosmos DB is a multi-model NoSQL database with single-digit-millisecond write and read latencies, automatic indexing, and tunable consistency, making it ideal for high-throughput IoT telemetry from manufacturing sensors. Its schema-agnostic JSON documents easily accommodate varying sensor payloads, and its partitioning enables efficient point reads and time-based range queries. Support for global distribution and a 99.999% SLA further justify it as the purpose-built choice for per-second equipment data ingestion.

Why this answer

Azure Cosmos DB is the most appropriate because it offers single-digit millisecond write and read latencies at any scale, which is critical for the high-throughput, low-latency IoT sensor ingestion described. Its support for automatic indexing and efficient point reads (by device ID and timestamp) enables fast retrieval of the latest reading per device, while its native time-to-live (TTL) and range query capabilities on the timestamp field allow efficient queries over the last hour for a specific device. Additionally, Cosmos DB's schema-agnostic, non-relational model fits the simple key-value structure of sensor readings without requiring complex joins.

Exam trap

The trap here is that candidates often choose Azure Table Storage because it is a low-cost, schema-less NoSQL option, but they overlook its lack of guaranteed single-digit millisecond latency and the need for manual partition key design to avoid throttling under high-throughput IoT workloads.

Why the other options are wrong

B

Azure Table Storage does not support range queries on timestamps efficiently because its partition key design typically requires equality filters on partition key; range queries across time for a specific device would be inefficient without proper partitioning, and it lacks native support for ordering by timestamp across partitions.

C

Azure Blob Storage is optimized for storing large unstructured data (e.g., files, images, logs) but does not support low-latency point reads by device ID or efficient range queries over time, nor does it provide native indexing for querying individual sensor readings.

D

Azure SQL Database is a relational database with higher write latency and overhead for schema enforcement, making it unsuitable for the extreme low-latency, high-throughput write workload of millions of IoT sensor readings per day.

When would these options actually be correct?

B

A question requiring a cost-effective, schema-less store for high-volume telemetry data where queries are always by device ID (exact match) and no range queries or ordering by timestamp are needed, e.g., 'Store IoT sensor readings with simple key-value lookups by device ID, no complex queries, and low cost.'

C

A company needs to store historical sensor data as JSON files for batch analytics, with no requirement for real-time queries per device. The workload involves infrequent writes and reads of entire files, and cost-effective storage for large volumes of data is the priority.

D

A question requiring complex joins, ACID transactions, or structured relational queries (e.g., 'Store customer orders with line items and enforce referential integrity') would make Azure SQL Database the correct choice.

Why candidates pick the wrong answer

B

Candidates may confuse Azure Table Storage with a time-series store due to its ability to handle large volumes of structured data and its low cost, overlooking its limitations in range queries and ordering across partitions.

C

Candidates may associate IoT sensor data with 'big data' and assume blob storage is suitable for high-volume writes, overlooking the need for low-latency queries on individual records.

D

Candidates may assume that any structured data with timestamps and device IDs needs a relational database, overlooking the non-relational, high-throughput nature of IoT time-series workloads.

753
MCQhard

Refer to the exhibit. A database administrator runs this KQL query in Azure Monitor Log Analytics. The query returns no results. What is the most likely reason?

A.The summarize operator syntax is wrong
B.The ResourceType filter is incorrect
C.The render command is not supported
D.The time range is incorrect
AnswerB

The ResourceType filter is the root cause of the failure because Azure SQL Database diagnostic logs are written to the AzureDiagnostics table with a resource type value of `MICROSOFT.SQL/SERVERS/DATABASES`, not the friendly name `AZURESQLDB`. When the query filters on `ResourceType == "AZURESQLDB"`, it matches zero rows because the actual value stored in the ResourceType column is the full ARM resource type path. To correctly filter Azure SQL Database diagnostics, the query should use `ResourceType == "MICROSOFT.SQL/SERVERS/DATABASES"` or omit the filter to see all diagnostic data. This is a common mistake because the Azure portal may display friendly names, but the underlying KQL data uses the canonical resource type string.

Why this answer

The KQL query filters on `ResourceType` with a value that does not match any actual Azure resource type (e.g., a typo or incorrect casing). Since Azure Monitor Log Analytics stores resource types in a specific format (e.g., 'microsoft.compute/virtualmachines'), an incorrect filter will return zero results even if data exists. The query syntax, render command, and time range are all valid, so the filter is the most likely cause.

Exam trap

Microsoft often tests the candidate's understanding that KQL filters are case-sensitive and that resource type values must exactly match the Azure Resource Manager format, leading candidates to overlook a simple typo or casing error.

How to eliminate wrong answers

Option A is wrong because the `summarize` operator syntax is correct: it uses `count()` as an aggregation function, which is valid. Option C is wrong because the `render` command is supported in Azure Monitor Log Analytics for visualizing results (e.g., `render timechart`). Option D is wrong because the time range is not specified in the query, so it defaults to the last 24 hours, which is a valid range and would not cause zero results unless no data exists in that period.

754
MCQeasy

Your company wants to use Microsoft Fabric to create a unified analytics platform. Which component in Microsoft Fabric provides a lake-centric, collaborative, and governed data foundation?

A.Power BI
B.Data Factory
C.OneLake
D.Synapse Data Engineering
AnswerC

OneLake is the central, lake-centric data storage foundation in Microsoft Fabric, providing a single, unified logical data lake that all Fabric workloads share. It automatically organizes data into tables and files, supports open formats like Delta and Parquet, and eliminates data duplication by allowing multiple engines to work on the same data. This makes OneLake the correct answer, as it is the foundational component that unifies data management across the platform.

Why this answer

OneLake is the correct answer because it is the single, unified, lake-centric data foundation in Microsoft Fabric. It provides a multi-cloud, SaaS-based data lake that is automatically provisioned for every Fabric tenant, enabling collaborative and governed access to data without data duplication, while supporting open formats like Delta Parquet.

Exam trap

The trap here is that candidates confuse the tool that provides the data foundation (OneLake) with the workloads that operate on top of it (like Synapse Data Engineering or Data Factory), or mistake Power BI's role as a visualization layer for the underlying storage and governance layer.

How to eliminate wrong answers

Option A is wrong because Power BI is a business intelligence and visualization tool, not a data lake or storage foundation; it consumes data from sources like OneLake but does not provide the lake-centric foundation itself. Option B is wrong because Data Factory is a data integration and orchestration service for pipelines and data movement, not a governed, collaborative data lake. Option D is wrong because Synapse Data Engineering is a workload for building and managing data transformation pipelines (e.g., using Spark or notebooks), but it relies on OneLake as its underlying storage and governance layer, not the other way around.

755
MCQmedium

A social media analytics company needs to store large amounts of user activity logs. Each log entry contains a timestamp, user ID, activity type, and a dynamic set of custom attributes (e.g., page viewed, time spent). The application requires low-latency writes and point reads by a composite key (user ID and timestamp). The data is rarely updated after insertion. The company wants a fully managed NoSQL database that supports serverless throughput and automatic expiration of old logs (TTL). Which Azure Cosmos DB API should they choose?

A.Table API
B.NoSQL API (Core/SQL API)
C.Cassandra API
D.Gremlin API
AnswerA

The Table API is built for key-value stores and supports a schema-less design with composite keys (PartitionKey + RowKey). It also supports serverless throughput and TTL (time-to-live) to automatically delete old entries, fitting the activity log use case.

Why this answer

The Table API is the correct choice because it provides a fully managed, serverless NoSQL database with automatic TTL (Time-to-Live) for data expiration, low-latency point reads and writes by a composite key (partition key + row key), and is optimized for storing large volumes of structured log data with dynamic attributes. It supports the exact requirements: high-throughput writes, point queries by user ID and timestamp, and automatic expiration of old logs without manual intervention.

Exam trap

The trap here is that candidates often choose the NoSQL API (Core/SQL API) because it is the most well-known Cosmos DB API, but they overlook that the Table API is specifically optimized for high-volume, low-latency key-value workloads with composite keys and automatic TTL, making it the correct choice for log data with dynamic attributes.

How to eliminate wrong answers

Option B (NoSQL API) is wrong because while it supports serverless throughput and TTL, it is designed for document-based data with flexible schemas and requires a partition key and sort key for point reads, but it does not natively support composite key queries as efficiently as the Table API's row key design; however, the primary reason it is not the best fit is that the Table API is more cost-effective and simpler for log data with dynamic attributes. Option C (Cassandra API) is wrong because it is based on the Cassandra distributed database, which uses a different data model (wide-column stores) and does not support serverless throughput in the same way; it also requires more manual management of consistency and replication, and while it supports TTL, it is not the simplest fully managed option for this use case. Option D (Gremlin API) is wrong because it is a graph database API designed for traversing relationships between entities (e.g., social networks, recommendation engines), not for storing and querying time-series log data with composite keys; it lacks native support for TTL and serverless throughput in the same manner as the Table API.

756
MCQeasy

You need to migrate an on-premises SQL Server database to Azure SQL Managed Instance with minimal downtime. Which tool should you use?

A.Azure Data Factory
B.SQL Server Integration Services (SSIS)
C.BACPAC export and import
D.Azure Database Migration Service (DMS)
AnswerD

Azure Database Migration Service performs online migrations, continuously replicating ongoing transaction log changes from the source SQL Server to Azure SQL Managed Instance until you cut over. This satisfies the minimal-downtime constraint, since the database stays available during migration rather than requiring an offline backup-and-restore window.

Why this answer

Azure Database Migration Service (DMS) is designed for minimal-downtime migrations to Azure SQL Managed Instance. It supports online migration mode, which continuously replicates changes from the source SQL Server to the target while the source remains operational, allowing a cutover with minimal downtime. DMS handles schema and data migration and provides monitoring and validation.

Exam trap

DP-900 often tests the difference between migration tools (DMS) and ETL tools (Data Factory, SSIS); candidates who pick Data Factory or BACPAC miss the minimal-downtime requirement.

How to eliminate wrong answers

Option A is wrong because Azure Data Factory is an ETL service for data integration, not a dedicated database migration tool with minimal-downtime capabilities for SQL Server to SQL MI. Option B is wrong because SSIS is an ETL platform for data transformation, not a migration service; it lacks the continuous replication and cutover features of DMS. Option C is wrong because BACPAC export/import requires taking the database offline during export and import, causing significant downtime.

757
Multi-Selectmedium

Which TWO of the following are correct descriptions of data processing workloads in Azure?

Select 2 answers
A.Streaming processing is used for interactive queries on historical data.
B.Streaming processing is used to process data at rest.
C.Streaming processing is used to process data in real time as it arrives.
D.Batch processing is used to process data in real time as it arrives.
E.Batch processing is used to process large volumes of data at scheduled intervals.
AnswersC, E

Streaming processing is purpose-built for real-time data: it ingests events continuously from sources like Azure Event Hubs or IoT Hub and processes them as they arrive, often with sub-second latency. This architecture enables real-time dashboards, anomaly alerts, and event-driven responses where decisions must be made on the latest data. For example, a streaming pipeline might aggregate clickstream events into 5-second windows to show current user activity, which is impossible with batch processing that defers computation until a scheduled run.

Why this answer

Streaming processing in Azure (e.g., Azure Stream Analytics, Event Hubs, or Kafka on HDInsight) is designed to ingest, analyze, and act on data in near real-time as it arrives, often with sub-second latency. This is fundamentally different from batch processing, which handles data at rest.

Exam trap

The trap here is that candidates confuse 'streaming' with 'interactive querying' or assume batch can handle real-time data, but Azure explicitly separates these workloads based on data state (in motion vs. at rest) and latency requirements.

758
MCQmedium

A company has an existing IoT application that uses Apache Cassandra for time-series sensor data. They want to migrate to Azure's fully managed NoSQL database service while continuing to use the Cassandra Query Language (CQL) and benefiting from global distribution and low latency. Which Azure Cosmos DB API should they use?

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

The Cassandra API provides a native compatibility layer for the Apache Cassandra wire protocol and CQL, allowing existing Cassandra drivers, queries, and schemas to work with minimal changes. This makes it the only option that supports a seamless migration from an on-premises Cassandra cluster to Azure Cosmos DB while preserving the time-series data model and query patterns. Cosmos DB then adds global distribution, multi-region writes, and a fully managed SLA on top of that Cassandra compatibility.

Why this answer

The Cassandra API for Azure Cosmos DB is wire-protocol-compatible with Apache Cassandra, meaning you can use existing CQL (Cassandra Query Language) tools, drivers, and code with minimal changes. It provides a fully managed, globally distributed NoSQL database with low-latency reads and writes, which directly matches the company's requirement to migrate from self-managed Cassandra while preserving their CQL-based application logic.

Exam trap

The trap here is that candidates may confuse the 'Cassandra API' with the 'Core (SQL) API' because both support SQL-like syntax, but only the Cassandra API uses the native CQL wire protocol and wide-column storage model required for time-series sensor data.

How to eliminate wrong answers

Option A is wrong because the Core (SQL) API uses a SQL-like query language and a different data model (JSON documents with optional schema), not the Cassandra Query Language (CQL), so existing CQL code would not work. Option B is wrong because the MongoDB API uses the MongoDB wire protocol and BSON document model, which is incompatible with CQL and Cassandra's table/partition-key structure. Option D is wrong because the Gremlin API is designed for graph databases using the Apache TinkerPop graph traversal language, not for time-series sensor data modeled in Cassandra's wide-column format.

759
MCQhard

A company ingests raw clickstream data as JSON files into Azure Data Lake Storage Gen2. Data scientists need to explore the data interactively using Python notebooks, and the BI team needs to create reports from aggregated datasets derived from this data. The solution must be serverless, scale automatically, and minimize administration. Which Azure service should they choose?

A.A. Azure Synapse Analytics (serverless SQL pool)
B.B. Azure Databricks
C.C. Azure HDInsight with Spark
D.D. Azure Data Lake Analytics
AnswerB

Azure Databricks is the right fit because it provides a fully managed, collaborative notebook environment with native Python, Scala, and SQL kernels. Its serverless mode dynamically acquires and releases compute pools based on workload, eliminating manual cluster sizing and scaling. This supports interactive exploration by data scientists as well as production transformation, minimizing administration while covering the full data science lifecycle.

Why this answer

Azure Databricks is correct because it provides a serverless, interactive Apache Spark environment that data scientists can use with Python notebooks for exploratory analysis, and it can produce aggregated datasets for BI reporting. It scales automatically and minimizes administration by managing the cluster lifecycle, making it ideal for ad-hoc data exploration on raw JSON files in Azure Data Lake Storage Gen2.

Exam trap

The trap here is that candidates often confuse serverless SQL pools (Synapse) as suitable for interactive Python exploration, but they are designed for SQL-based querying, not notebook-based data science workflows.

Why the other options are wrong

A

Serverless SQL pool in Azure Synapse Analytics is optimized for T-SQL queries over relational data, not for interactive Python notebook exploration of raw JSON files. It lacks native Python notebook support and is less suited for data science workflows.

D

Azure Data Lake Analytics is deprecated and not serverless in the same sense; it requires job submission and does not support interactive Python notebooks for data exploration.

When would these options actually be correct?

A

A question requiring serverless T-SQL querying over data lake files (e.g., CSV, Parquet) without managing infrastructure, and where the primary users are analysts writing SQL rather than data scientists using Python notebooks.

D

A question requiring batch processing of large-scale data using U-SQL or .NET code, where the solution must run on Azure without managing clusters, and interactive exploration is not needed.

Why candidates pick the wrong answer

A

Candidates may confuse 'serverless' with the requirement for minimal administration, and Synapse Analytics offers a serverless SQL pool, but they overlook the need for interactive Python notebook exploration, which is a core feature of Databricks.

D

Candidates may confuse Data Lake Analytics with a serverless analytics option because of its name, and overlook its lack of Python notebook support and deprecation status.

760
MCQhard

A global gaming company stores player profiles in Azure Cosmos DB. Each profile document contains PlayerID (unique), PlayerName, Email, and a nested array of Achievements. The most common query is to look up a player by PlayerID and retrieve their achievements. The company needs strong consistency for reads and writes to ensure that when a player earns an achievement, it is immediately visible. Which partition key and consistency level should they choose?

A.A. Partition key: PlayerID; Consistency: Eventual
B.B. Partition key: PlayerID; Consistency: Strong
C.C. Partition key: Achievements; Consistency: Strong
D.D. Partition key: Email; Consistency: Bounded staleness
AnswerB

PlayerID is an ideal partition key because it matches the application's point-lookup pattern: every read and write for a player can be routed to a single physical partition, avoiding cross-partition queries. Strong consistency in Azure Cosmos DB ensures that a write is acknowledged only after it is durably committed, and every subsequent read that uses the same partition key returns that committed value. This directly satisfies the requirement that profile updates be immediately and reliably visible. Note that strong consistency is supported only with single-region writes, which is an appropriate choice for this workload.

Why this answer

PlayerID is the natural partition key for the most common query (lookup by PlayerID), ensuring efficient single-partition queries. Strong consistency is required to guarantee that when a player earns an achievement, the write is immediately visible to all subsequent reads, which is critical for the gaming scenario.

Exam trap

The trap here is that candidates may confuse 'most common query' with 'partition key' and pick a non-query column (like Achievements or Email) or choose a weaker consistency level, not realizing that Strong consistency is required for immediate visibility and that PlayerID is the optimal partition key for the lookup pattern.

How to eliminate wrong answers

Option A is wrong because Eventual consistency does not guarantee immediate visibility of writes, which violates the requirement that achievements are immediately visible after earning. Option C is wrong because Achievements is a nested array, not a top-level property, and using it as a partition key would cause inefficient cross-partition queries and potential hot partitions. Option D is wrong because Email is not the primary query key (PlayerID is), and Bounded staleness, while stronger than Eventual, still allows a configurable lag, which does not meet the strict 'immediately visible' requirement.

761
MCQmedium

The exhibit shows a T-SQL query against an Azure SQL Database. What is the purpose of the HAVING clause in this query?

A.To sort the result set by TotalSales descending
B.To join two tables
C.To filter groups after aggregation
D.To filter rows before grouping
AnswerC

The HAVING clause is used to filter groups after aggregation has been performed. In the query shown, the GROUP BY clause likely groups rows by one or more columns, and then HAVING applies a condition to the aggregated TotalSales value (e.g., HAVING SUM(TotalSales) > 1000) to keep only certain groups. This differs from WHERE, which cannot reference aggregate functions, whereas HAVING is evaluated after GROUP BY and can directly test SUM, COUNT, AVG, and other aggregate results.

Why this answer

The HAVING clause is used in T-SQL to filter groups after the GROUP BY clause has performed aggregation. In this query, it restricts the result set to only those product categories whose total sales (SUM(Amount)) exceed 1000, which is a condition on the aggregated value, not on individual rows.

Exam trap

The trap here is that candidates often confuse HAVING with WHERE, mistakenly thinking HAVING filters individual rows before grouping, when in fact WHERE performs that role and HAVING only applies after aggregation.

How to eliminate wrong answers

Option A is wrong because sorting the result set is done by the ORDER BY clause, not HAVING. Option B is wrong because joining tables is accomplished with JOIN clauses (e.g., INNER JOIN, LEFT JOIN), not HAVING. Option D is wrong because filtering rows before grouping is the role of the WHERE clause, which operates on individual rows before aggregation; HAVING filters after aggregation.

762
MCQmedium

A marketing team wants to analyze streaming data from social media feeds in near real-time and store the results in a data lake for later batch analysis. They need a service that can ingest millions of events per second and support multiple downstream consumers. Which Azure service should they use for ingestion?

A.Azure Data Factory
B.Azure Blob Storage
C.Azure Service Bus
D.Azure Event Hubs
AnswerD

Azure Event Hubs is a big data streaming platform and event ingestion service capable of receiving and processing millions of events per second. It supports multiple consumers through consumer groups, allowing the marketing team to have real-time analytics and simultaneously store data in a data lake. This matches the requirement for high-throughput ingestion and multiple downstream consumers.

Why this answer

Azure Event Hubs is designed for high-throughput, low-latency event ingestion and supports multiple consumer groups, enabling both real-time analytics and storage to a data lake. The marketing team's need for millions of events per second and multiple downstream consumers aligns exactly with Event Hubs capabilities. The other services are either message brokers, batch integration tools, or storage, and do not provide the required streaming ingestion.

Exam trap

The trap here is confusing Azure Service Bus with Event Hubs; Service Bus is for enterprise messaging, while Event Hubs is for big data streaming ingestion.

763
MCQmedium

A marketing company ingests streaming data from social media feeds into Azure Event Hubs. They want to perform real-time sentiment analysis on the data and store the results in Azure SQL Database for immediate dashboarding. They also need to aggregate the raw data over longer time windows and store it in Azure Data Lake Storage for historical trend analysis. Which combination of Azure services should they use for the two processing paths?

A.Azure Stream Analytics for real-time analysis and Azure Data Factory for batch aggregation
B.Azure Databricks for both real-time analysis and batch aggregation
C.Azure Stream Analytics for both real-time analysis and batch aggregation
D.Azure Data Factory for real-time analysis and Azure Databricks for batch aggregation
AnswerA

Azure Stream Analytics handles real-time processing and outputs to SQL Database. Azure Data Factory can schedule batch pipelines to read raw data from Event Hubs (or captured data) and aggregate it into Azure Data Lake Storage.

Why this answer

Azure Stream Analytics is ideal for real-time sentiment analysis on streaming data from Event Hubs, as it can process data in-motion with low latency and output directly to Azure SQL Database for immediate dashboarding. Azure Data Factory is the correct choice for batch aggregation over longer time windows, as it can orchestrate and execute periodic data movement and transformation jobs to load aggregated data into Azure Data Lake Storage for historical analysis.

Exam trap

The trap here is that candidates often assume a single service like Stream Analytics or Databricks can handle both real-time and batch processing equally well, but the exam expects you to recognize that Stream Analytics excels at real-time streaming while Data Factory is the appropriate managed service for scheduled batch aggregation in a cost-effective, serverless manner.

Why the other options are wrong

B

Azure Databricks is not optimized for continuous real-time streaming analytics on Event Hubs; it is better suited for complex batch processing and interactive analytics, not low-latency sentiment analysis.

D

Azure Data Factory is not designed for real-time stream processing; it is an orchestration and ETL service for batch data movement. Azure Databricks can handle batch aggregation but is not the optimal choice for the simple batch aggregation described here, whereas Azure Data Factory is better suited for scheduled batch pipelines to Azure Data Lake Storage.

When would these options actually be correct?

B

If the question required complex machine learning model training or advanced transformations on streaming data, and batch aggregation for historical analysis, Azure Databricks would be the correct choice for both paths.

D

If the question required complex batch transformations (e.g., machine learning models on historical data) and real-time processing needed custom logic (e.g., using Spark Structured Streaming), then Azure Databricks for batch and Azure Stream Analytics for real-time would be correct. However, here the batch aggregation is simple and better served by Azure Data Factory.

Why candidates pick the wrong answer

B

Candidates may think Databricks is a one-size-fits-all solution for both real-time and batch processing due to its Spark-based streaming capabilities, overlooking that Stream Analytics is simpler and more cost-effective for straightforward real-time ETL.

D

Candidates may think Azure Databricks is a one-size-fits-all solution for both real-time and batch analytics, and they may underestimate the simplicity of using Azure Data Factory for straightforward batch aggregation to Data Lake Storage.

764
MCQhard

A company needs to migrate 10 on-premises SQL Server databases (each 50–200 GB) to Azure. The databases frequently run cross-database queries using three-part names (e.g., DB1.dbo.table) and rely on SQL Server Agent for maintenance tasks. They want to minimize management overhead and share resources across databases to reduce costs. Which Azure SQL deployment option should they choose?

A.Azure SQL Database elastic pool
B.Azure SQL Managed Instance
C.SQL Server on Azure Virtual Machine
D.Azure SQL Database single database
AnswerB

Azure SQL Managed Instance is the correct target for this migration because it supports cross-database queries using three-part naming, SQL Server Agent, and linked servers, just like on-prem SQL Server. It also allows multiple databases (10, ranging from 50–200 GB) to reside in a single instance, sharing resources efficiently while preserving existing database dependencies. As a fully managed PaaS service, it offers automatic patching, backups, and high availability, making it ideal for a lift-and-shift migration with minimal application changes.

Why this answer

Azure SQL Managed Instance is correct because it provides native support for cross-database queries using three-part names (e.g., DB1.dbo.table) and SQL Server Agent for maintenance tasks, which are critical requirements. It also offers a fully managed platform that minimizes management overhead while allowing resource sharing across databases within the instance, reducing costs compared to single databases or VMs.

Exam trap

The trap here is that candidates often choose Azure SQL Database elastic pool (Option A) because they think it supports cross-database queries and SQL Agent, but it actually lacks native three-part name support and SQL Agent, which are only available in Managed Instance.

Why the other options are wrong

A

Azure SQL Database elastic pool does not support cross-database queries using three-part names or SQL Server Agent, both of which are required by the company.

C

SQL Server on Azure VM requires manual management of OS, SQL Server, and backups, increasing overhead. It does not natively support cross-database queries with three-part names across separate VMs without linked servers, and sharing resources across databases is less efficient than a managed instance.

D

Azure SQL Database single database does not support cross-database queries using three-part names or SQL Server Agent, which are required by the company's workloads.

When would these options actually be correct?

A

A company needs to migrate multiple small-to-medium databases with varying usage patterns to Azure, wants to share resources to reduce costs, and does not require cross-database queries or SQL Server Agent. Elastic pool would be the correct choice to maximize resource utilization and minimize management overhead.

C

A company needs full control over the SQL Server environment, including custom configurations, third-party tools, or legacy features not supported in PaaS. They also require OS-level access for specific compliance or performance tuning, and are willing to manage patching and backups.

D

A company needs to migrate individual, independent databases with no cross-database dependencies and minimal management overhead, and they do not require SQL Server Agent or instance-level features.

Why candidates pick the wrong answer

A

Candidates see 'share resources' and 'minimize management overhead' and associate elastic pools with cost savings and low management, overlooking the critical requirements for cross-database queries and SQL Server Agent.

C

Candidates may think IaaS offers the most flexibility and familiarity, assuming it can easily handle cross-database queries and agent jobs, while overlooking the management overhead and cost inefficiency for multiple databases.

D

Candidates may think single databases are the simplest and cheapest option, overlooking the need for cross-database queries and agent jobs that require instance-level scope.

765
MCQmedium

A healthcare application stores patient vital signs readings. Each reading is a JSON document with fields: PatientID, Timestamp, HeartRate, BloodPressure (systolic and diastolic). The application frequently queries for all readings of a specific patient within a time range, and the schema varies occasionally (e.g., new optional fields are added). How should this data be classified?

A.Structured
B.Semi-structured
C.Unstructured
D.Relational
AnswerB

Semi-structured data, such as JSON, XML, or key-value pairs, uses tags or markers to separate elements and permits schema flexibility. Vital signs readings naturally fit this model because each reading can include a variable set of measured parameters (e.g., some include SpO2, some include respiratory rate) without requiring every record to have identical fields, and the order of fields does not matter.

Why this answer

The data is semi-structured because it is stored as JSON documents, which have a flexible schema that can vary between records (e.g., new optional fields can be added). JSON documents are self-describing and do not require a fixed schema like relational tables, but they still have organizational properties (fields like PatientID, Timestamp) that distinguish them from unstructured data like plain text or images. The application's queries on specific fields (PatientID, Timestamp) further confirm the data has structure, but the schema flexibility rules out structured or relational classifications.

Exam trap

The trap here is that candidates confuse 'structured' with 'having fields'—they see PatientID and Timestamp and assume it must be structured, but the key differentiator is schema flexibility (optional fields, varying structure) which defines semi-structured data.

How to eliminate wrong answers

Option A is wrong because structured data requires a rigid, predefined schema (e.g., fixed columns and data types in a SQL table), but JSON documents allow schema variation and optional fields, which violates the strict schema constraint. Option C is wrong because unstructured data has no predefined data model or organization (e.g., raw text files, images, videos), whereas JSON documents have named fields and a hierarchical structure that can be parsed and queried. Option D is wrong because relational data is a subset of structured data that enforces relationships through foreign keys and normalization, but JSON documents in this scenario are not stored in relational tables and do not enforce referential integrity or a fixed schema.

766
MCQhard

Your application stores millions of small log entries in Azure Table Storage. Queries by partition key and row key are fast, but you also need to query by timestamp across partitions. The query performance is slow. What is the best way to improve query performance?

A.Migrate the data to Azure Cosmos DB and use the SQL API.
B.Use Azure Cognitive Search to index the Table Storage data.
C.Create a new table with the timestamp as the partition key and copy data there for time-based queries.
D.Add a secondary index on the timestamp column.
AnswerC

In Azure Table Storage, the only supported primary key is the pair of PartitionKey and RowKey, and queries that filter by PartitionKey are served directly without a full scan. By creating a new table with the timestamp as the PartitionKey and copying the data there, you make time-based queries use an equality comparison on PartitionKey (e.g., a specific date or hour) and optionally a range on RowKey, which is the most performant pattern. This is the correct answer because it applies the service's native indexing model without reintroducing scanning or paying for a separate service.

Why this answer

Azure Table Storage only supports a single clustered index on PartitionKey + RowKey, so queries filtering by timestamp across partitions force a full table scan. Creating a second table with timestamp as the partition key and duplicating the data allows efficient point/range queries against that key. This is the standard 'index table' or 'materialized view' pattern for Table Storage, since it lacks native secondary indexes.

Exam trap

DP-900 often tests the misconception that Azure Table Storage supports secondary indexes like a relational database; candidates pick 'add a secondary index' without realizing Table Storage only indexes PartitionKey and RowKey.

How to eliminate wrong answers

Option A is wrong because migrating to Cosmos DB SQL API is a major architectural change and overkill when a second table solves the query pattern; Cosmos DB also requires choosing a partition key and RU provisioning. Option B is wrong because Azure Cognitive Search is a full-text search service, not a solution for structured range queries on timestamps, and it adds cost/latency. Option D is wrong because Azure Table Storage does not support secondary indexes on arbitrary columns — only the PartitionKey/RowKey composite index exists.

767
MCQmedium

A financial services company runs a single SQL Server database that is 6 TB in size and handles a high volume of concurrent transactions. The database needs to support near real-time analytics without impacting OLTP performance. The company wants to migrate to Azure SQL Database and requires fast scale-out for read workloads, as well as the ability to independently scale compute and storage. Which Azure SQL Database service tier should they choose?

A.Serverless
B.Hyperscale
C.Business Critical
D.General Purpose
AnswerB

Azure SQL Database Hyperscale is the only service tier that can store a 6 TB database, with a maximum data size of 100 TB, while also decoupling compute from storage so read-only replicas can be added independently. It supports up to four readable replicas, allowing the financial services company to offload reporting and analytics queries from the primary transactional workload without degrading performance. The tier also uses snapshot-based backups, making backup and restore near-instantaneous even at large scale.

Why this answer

Hyperscale is the correct choice because it is designed for databases up to 100 TB, supports high-volume concurrent transactions, and provides near real-time read scale-out via named replicas that offload read workloads without affecting OLTP performance. It also allows independent scaling of compute (vCores) and storage (auto-scaled), meeting the company's requirements for fast scale-out and decoupled resources.

Exam trap

The trap here is that candidates may confuse Business Critical's high availability features with read scale-out, but Business Critical does not provide dedicated read replicas for analytics workloads, and its storage is not independently scalable from compute.

Why the other options are wrong

A

Serverless is designed for intermittent, unpredictable workloads with auto-pausing and compute scaling, not for a 6 TB database with high concurrent transactions requiring near real-time analytics and fast read scale-out.

C

Business Critical provides high availability and performance with local SSD storage, but it does not support fast scale-out for read workloads via readable replicas with independent compute scaling, nor does it allow independent scaling of compute and storage like Hyperscale does.

D

General Purpose does not support fast scale-out for read workloads with readable replicas, and it cannot independently scale compute and storage to the degree needed for a 6 TB database with high concurrency and near real-time analytics.

When would these options actually be correct?

A

A question where the database has sporadic usage patterns, low average compute utilization, and can tolerate auto-pause delays, such as a development or test database with infrequent access.

C

A question where the database requires the highest level of resilience and performance for OLTP with low latency, such as a mission-critical application needing multiple synchronous replicas and automatic failover, but does not require near real-time analytics or independent storage scaling.

D

A question where the database is under 4 TB, has moderate concurrency, and the primary requirement is cost optimization with balanced performance for typical OLTP workloads, without needing read scale-out or independent compute/storage scaling.

Why candidates pick the wrong answer

A

Candidates may confuse 'serverless' with 'scalable' or think it automatically handles large workloads, overlooking its limitations on storage size and concurrency.

C

Candidates may choose Business Critical because it offers high performance and availability, assuming it can handle large databases and analytics, but they overlook the specific need for fast scale-out of read workloads and independent compute/storage scaling that Hyperscale provides.

D

Candidates may choose General Purpose because it is the most commonly used tier for standard workloads, and they might overlook the specific requirements for large size, high concurrency, and read scale-out that Hyperscale addresses.

768
MCQeasy

A business user wants to ask natural language questions about their data in Power BI and get answers without writing DAX. Which Power BI feature should they use?

A.Copilot for Microsoft 365
B.Q&A visual
C.Power Automate
D.Quick Insights
AnswerB

The Q&A visual is a core Power BI feature that lets users type natural-language questions and receive answers rendered as charts, tables, or cards. It leverages the underlying semantic model, including field names, synonyms, and relationships, to parse the question and generate a valid query. This is the built-in tool specifically designed for interactive, ad-hoc querying of a report's data without needing to write DAX or SQL.

Why this answer

The Q&A visual in Power BI allows users to type natural language questions about their data and receive answers in the form of charts or tables, without needing to write DAX expressions. It uses an underlying natural language engine that interprets the query and automatically generates the appropriate visual or summary. This directly matches the business user's requirement for a no-code, natural language interface.

Exam trap

The trap here is that candidates may confuse the Q&A visual with Quick Insights, because both involve automated analysis, but Quick Insights is a one-click automated pattern discovery tool, not an interactive natural language query interface.

How to eliminate wrong answers

Option A is wrong because Copilot for Microsoft 365 is an AI assistant integrated into Microsoft 365 apps (like Word, Excel, Teams) and does not provide a dedicated natural language query interface within Power BI reports. Option C is wrong because Power Automate is a workflow automation tool for creating flows between services, not a feature for asking natural language questions about data in Power BI. Option D is wrong because Quick Insights automatically generates visualizations and patterns from a dataset without user input, but it does not allow users to ask specific natural language questions; it is an automated, non-interactive analysis.

769
MCQmedium

A media company stores large video files and associated metadata (title, duration, tags) as JSON documents. The application requires low-latency streaming of videos to users worldwide and the ability to quickly query metadata by tag. Which combination of Azure services should the company use?

A.Azure Blob Storage for videos and Azure Cosmos DB for metadata
B.Azure Blob Storage for both videos and metadata
C.Azure Cosmos DB for videos and Azure Table Storage for metadata
D.Azure Files for videos and Azure SQL Database for metadata
AnswerA

Azure Blob Storage is purpose-built for large unstructured binary data: it offers high-throughput write/read, configurable access tiers, and HTTPS-based access suitable for storing and delivering video files at scale. Azure Cosmos DB complements this by storing video metadata as flexible JSON documents, with automatic indexing and sub-millisecond point reads that support rich queries on tags, durations, and upload dates. This pairing keeps the media payload and its searchable catalog decoupled, so storage optimization and query performance are each handled by the most appropriate service.

Why this answer

Azure Blob Storage is optimized for storing large binary objects like video files, offering high-throughput streaming via HTTP/HTTPS and integration with CDN for low-latency global delivery. Azure Cosmos DB provides single-digit millisecond read and write latencies with automatic indexing, making it ideal for quickly querying JSON metadata by tag using SQL or MongoDB API. This combination separates storage concerns (blobs for raw video, document DB for structured metadata) to meet both streaming and query performance requirements.

Exam trap

The trap here is that candidates may assume a single service (like Blob Storage or Cosmos DB) can handle both data types, but the exam tests understanding that each Azure service has specific strengths—blobs for large binary objects and Cosmos DB for low-latency document queries—and that mixing them is the correct architectural pattern.

Why the other options are wrong

B

Azure Blob Storage is optimized for unstructured data like video files, but it lacks native querying capabilities for JSON metadata. Storing metadata in Blob Storage would require scanning all blobs or using external indexing, failing to meet the low-latency query requirement by tag.

C

Azure Cosmos DB is not optimized for storing large video files; it is a NoSQL database designed for low-latency queries on structured data. Using it for videos would be cost-inefficient and would not support streaming workloads as effectively as Blob Storage.

D

Azure Files is designed for file shares accessed via SMB protocol, not optimized for low-latency video streaming to users worldwide. Azure SQL Database is a relational database, which is not ideal for quickly querying JSON metadata by tag compared to a NoSQL solution like Cosmos DB.

When would these options actually be correct?

B

A company stores large video files and associated metadata as JSON documents, but the application only needs to stream videos and does not require any querying of metadata. In that case, Azure Blob Storage for both videos and metadata would be sufficient.

C

If the question asked for storing small media files (e.g., thumbnails) with metadata that requires global distribution and low-latency queries, and the videos were stored elsewhere, then Cosmos DB for media and Table Storage for metadata could be correct.

D

A company needs to store and stream video files to a small number of users within a corporate network, and the metadata requires complex relational queries (e.g., joining with user permissions). In that case, Azure Files for shared access and Azure SQL Database for relational metadata would be appropriate.

Why candidates pick the wrong answer

B

Candidates may think that since both videos and metadata are stored as files (JSON), Blob Storage can handle both, overlooking the need for fast, indexed queries on metadata that Blob Storage does not natively support.

C

Candidates may think Cosmos DB's multi-model capabilities can handle any data type, including videos, and that Table Storage is a natural fit for metadata, overlooking the specialized streaming and cost benefits of Blob Storage for large files.

D

Candidates may think Azure Files is suitable for video storage because it supports file sharing, and Azure SQL Database is a familiar choice for storing structured data, overlooking the specific requirements for low-latency global streaming and flexible JSON querying.

770
MCQhard

Your organization has a data warehouse in Azure Synapse Analytics. You need to load data from Azure Blob Storage daily, transforming it using a data flow. Which Azure service should you use for the ETL process?

A.Azure Databricks
B.Azure Data Factory
C.Azure Logic Apps
D.Azure Synapse Pipelines
AnswerB

Azure Data Factory is the correct choice because its mapping data flows provide a visual, code-free environment for designing ETL transformations by connecting source and sink datasets and arranging transformation activities on a canvas. These data flows execute on a managed Spark cluster, allowing complex joins, aggregations, and derived columns to be built declaratively without writing any code, making it the core ETL service for a data warehouse in Azure.

Why this answer

Azure Data Factory (ADF) is the correct choice because it provides native integration with Azure Synapse Analytics and Azure Blob Storage, and it includes a visual data flow designer for transforming data without writing code. ADF's mapping data flows execute at scale on Spark clusters, making it ideal for daily ETL workloads that require both ingestion and transformation.

Exam trap

The trap here is that candidates confuse Azure Synapse Pipelines (which is just ADF inside Synapse) as a separate service, but the correct Azure service name for the ETL tool is Azure Data Factory, not Synapse Pipelines.

How to eliminate wrong answers

Option A is wrong because Azure Databricks is a big data analytics platform that requires you to write code (Python, Scala, SQL) to build transformations, and it does not have a native, no-code data flow designer like ADF; it is overkill for a simple daily load with transformations. Option C is wrong because Azure Logic Apps is a workflow automation service designed for integrating SaaS applications and orchestrating business processes, not for performing data transformations at scale or loading data into a data warehouse. Option D is wrong because Azure Synapse Pipelines is actually built on top of Azure Data Factory and shares the same engine, but the standalone service name for the ETL tool is Azure Data Factory; Synapse Pipelines is a feature within Synapse, not a separate service, and the question asks for the Azure service, which is Azure Data Factory.

771
Multi-Selecteasy

Which TWO are benefits of using Azure Synapse Analytics for a data warehouse workload?

Select 2 answers
A.Ability to query data in the data lake using serverless SQL
B.Native support for MongoDB data sources
C.Unified experience for data integration, warehousing, and big data analytics
D.Automatic indexing of all data
E.Built-in email alerts for query performance
AnswersA, C

The serverless SQL pool in Azure Synapse allows you to query data directly in Azure Data Lake Storage (ADLS) using standard T-SQL syntax, without the need to load or copy the data into a separate storage system. This on-demand, pay-per-query capability enables ad-hoc exploration, transformation, and analysis of raw files (e.g., Parquet, CSV) at scale, making it a cost-effective and low-latency way to gain insights from your data lake.

Why this answer

Option A is correct because Azure Synapse Analytics includes a built-in serverless SQL pool that lets you query files directly in the data lake (e.g., Parquet, CSV, JSON in Azure Data Lake Storage) using T-SQL without provisioning or loading data into dedicated storage. Option C is correct because Synapse unifies data integration (Azure Synapse Pipelines, based on Azure Data Factory), enterprise data warehousing (dedicated SQL pools), and big data analytics (Apache Spark pools) within a single workspace and studio experience. Option B is not correct because Synapse does not provide native MongoDB source support; MongoDB connectivity would require custom or third-party tooling rather than a built-in connector.

Option D is not correct because Synapse does not automatically index all data; indexing behavior depends on the pool type and configuration (e.g., clustered columnstore indexes in dedicated SQL pools must be defined). Option E is not correct because built-in email alerts for query performance are not a native Synapse feature; monitoring is done via Azure Monitor, Log Analytics, and Synapse Studio metrics rather than automatic email alerts.

Exam trap

The trap here is that candidates may confuse 'unified experience' (which is correct) with features like automatic indexing or native NoSQL support, which are not part of Synapse's core data warehouse capabilities.

772
MCQhard

A company uses Azure Databricks to process data stored in Azure Data Lake Storage Gen2. They need to enforce fine-grained access control on files and folders based on user identity. Which security feature should they implement?

A.Storage account firewall rules
B.Shared access signatures (SAS)
C.Access control lists (ACLs)
D.Azure RBAC roles on the storage account
AnswerC

Access control lists (ACLs) in Azure Data Lake Storage Gen2 provide fine-grained, POSIX-compliant permissions on every file and directory, exactly what is required to control data access within Azure Databricks. Each ACL entry associates a specific user, group, or the owning principal with a combination of read, write, and execute permissions on a specific object, enabling precise authorization separate from network or token-based mechanisms. Databricks clusters can leverage the cluster's managed identity or service principal to authenticate, and then ACLs govern which identities can traverse, list, read, or modify each folder and file down to the leaf level. This makes ACLs the correct choice for enforcing user-level data permissions on data stored in Azure Storage that Databricks processes.

Why this answer

Access control lists (ACLs) on Azure Data Lake Storage Gen2 provide POSIX-compliant, fine-grained permissions at the file and folder level. This allows you to grant read, write, or execute permissions to specific users or groups, which is exactly what is needed for enforcing identity-based access control on individual files and folders.

Exam trap

The trap here is that candidates often confuse Azure RBAC (which controls management-plane access) with ACLs (which control data-plane access at the file/folder level), leading them to select RBAC when fine-grained data access is required.

How to eliminate wrong answers

Option A is wrong because storage account firewall rules control network-level access (IP addresses or virtual networks), not user-identity-based permissions on files or folders. Option B is wrong because shared access signatures (SAS) grant time-limited, delegated access to storage resources via a token, but they do not enforce access based on the user's identity; the token itself is the credential. Option D is wrong because Azure RBAC roles on the storage account provide coarse-grained control over management operations (e.g., read keys, list containers) but cannot enforce fine-grained permissions on individual files or folders within a container.

773
MCQmedium

A company uses Azure SQL Database for an e-commerce system. The Orders table has millions of rows with a clustered index on OrderID (the primary key). Queries that filter on OrderDate and CustomerID to find recent orders for a specific customer are very slow. Which indexing strategy will most improve the performance of these queries?

A.Create a nonclustered index on OrderID only
B.Create separate nonclustered indexes on OrderDate and CustomerID
C.Create a nonclustered composite index on (OrderDate, CustomerID)
D.Create a clustered index on CustomerID instead of OrderID
AnswerC

A composite index on both columns allows the database to find rows matching both filter conditions in a single index seek. This is the most efficient strategy for queries that filter on multiple columns together.

Why this answer

The query filters on both OrderDate and CustomerID, so a composite nonclustered index on (OrderDate, CustomerID) allows SQL Server to perform a single index seek to locate the matching rows without touching the clustered index until the final key lookup. This dramatically reduces I/O compared to scanning the entire clustered index or using multiple separate indexes.

Exam trap

The trap here is that candidates often think separate indexes on each filter column are sufficient, not realizing that a composite index is far more efficient for queries that filter on multiple columns together, because it avoids the need for index intersection or multiple lookups.

How to eliminate wrong answers

Option A is wrong because creating a nonclustered index on OrderID only does not help filter on OrderDate or CustomerID; the query would still need to scan the clustered index. Option B is wrong because separate indexes on OrderDate and CustomerID would require SQL Server to choose one index for a seek and then filter the other column in a bookmark lookup, or perform an index intersection, both of which are less efficient than a single composite index that covers both filter columns. Option D is wrong because changing the clustered index to CustomerID would reorder the entire table by CustomerID, which could improve queries filtering by CustomerID alone but would not help the OrderDate filter and would disrupt the primary key's order, potentially harming other queries that rely on OrderID ordering.

774
Multi-Selecteasy

Which TWO of the following are features of Azure Cosmos DB that help ensure high availability?

Select 2 answers
A.Data encryption at rest
B.Change feed
C.Automatic failover
D.Point-in-time restore
E.Multi-region writes
AnswersC, E

Automatic failover is a core high-availability feature in Azure Cosmos DB that continuously monitors the health of regions and, if the primary region becomes unavailable, automatically redirects traffic to a secondary region without manual intervention. This ensures that the database remains accessible and can continue to serve read and write requests (depending on the consistency configuration) during an outage. It directly addresses the need for uptime and resilience, which makes it a correct answer for a high-availability question.

Why this answer

Automatic failover (C) is a core Cosmos DB high-availability feature: when a region becomes unavailable, Cosmos DB automatically promotes a secondary replica/region to primary without manual intervention, keeping the account writable and readable. Multi-region writes (E) enable every configured region to accept writes in an active-active configuration, so a workload can continue writing even if one region fails, and it also reduces write latency. Together these features directly address continuous availability and regional resilience.

Data encryption at rest (A) protects stored data confidentiality but does not provide availability during a regional outage. Change feed (B) is a mechanism for reading a continuous, ordered log of item changes for downstream processing, not for availability. Point-in-time restore (D) is a backup/recovery capability that restores data to an earlier state, which addresses data loss recovery rather than keeping the database available.

Exam trap

DP-900 often tests the confusion between availability features (failover, multi-region writes) and durability/security features (encryption, backup, change feed) — candidates who pick encryption or point-in-time restore mistake protection for uptime.

775
MCQmedium

A company stores customer data in a relational database. The database design includes a rule that every order must be associated with a valid customer ID that exists in the Customers table. This rule is an example of which data concept?

A.Referential integrity
B.Data normalization
C.Entity integrity
D.Data consistency
AnswerA

Referential integrity is a database constraint enforced by foreign keys: it guarantees that every value in a foreign key column exactly matches an existing primary key value in the referenced table, thereby preventing orphaned rows. This rule is precisely what the scenario describes—the relational database uses these key relationships to maintain valid associations between customer records and related tables.

Why this answer

Referential integrity ensures that relationships between tables remain consistent. In a relational database, a foreign key constraint enforces that every order's customer ID must match an existing customer ID in the Customers table, preventing orphaned records. This rule directly implements referential integrity as defined by the SQL standard (e.g., via FOREIGN KEY constraints).

Exam trap

The trap here is that candidates often confuse referential integrity with entity integrity, mistakenly thinking that any rule involving a 'valid ID' is about primary keys, when in fact it is about foreign key relationships between tables.

How to eliminate wrong answers

Option B is wrong because data normalization is a design process to reduce data redundancy and avoid anomalies (e.g., 1NF, 2NF, 3NF), not a rule that enforces valid cross-table relationships. Option C is wrong because entity integrity ensures that the primary key of a table is unique and not null, which applies to the Customers table's customer ID column, not to the foreign key relationship from Orders to Customers. Option D is wrong because data consistency is a broader property of the database state (e.g., ensuring all constraints are satisfied), not a specific constraint type; referential integrity is one mechanism to achieve consistency, but the rule itself is a referential integrity constraint.

776
MCQmedium

A company stores customer transaction data in Azure Blob Storage. The data is rarely accessed after 30 days, but must be retained for 7 years for compliance. Which access tier minimizes storage cost while meeting the retention requirement?

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

Archive tier offers the lowest storage cost of any Blob Storage tier, ideal for data that is seldom accessed and due for long-term retention. It accepts retrieval latency of up to 15 hours and carries a minimum 180-day storage commitment, making it perfect for dormant customer transaction records that must be preserved for compliance. This is why it is the correct selection.

Why this answer

The Archive tier is the correct choice because it offers the lowest storage cost for data that is rarely accessed, which aligns with the scenario where data is accessed infrequently after 30 days but must be retained for 7 years. Azure Blob Storage's Archive tier is designed for long-term retention with a retrieval latency of several hours, making it cost-effective for compliance-driven data that does not require immediate access.

Exam trap

The trap here is that candidates may choose the Cool tier thinking it balances cost and access, but they overlook that the Archive tier is significantly cheaper for data that is accessed less than once a year, which is typical for 7-year compliance retention.

How to eliminate wrong answers

Option A is wrong because the Hot tier is optimized for frequent access and has the highest storage cost, which would be wasteful for data that is rarely accessed after 30 days. Option B is wrong because the Cool tier is designed for data accessed infrequently (e.g., every 30 days or more) but still has higher storage costs than Archive and is not the most cost-effective for 7-year retention with rare access. Option C is wrong because the Premium tier is for high-performance, low-latency access (e.g., via Azure Virtual Machines) and is the most expensive, making it unsuitable for rarely accessed compliance data.

777
MCQhard

A financial services company stores account balances in Azure SQL Database (strong consistency) and transaction audit logs in Azure Cosmos DB (eventual consistency by default). A compliance requirement demands that when a transaction is rolled back in the SQL database, the corresponding audit log entries in Cosmos DB must also be removed within a short time frame. Which term best describes the difficulty of maintaining this constraint?

A.ACID compliance
B.Idempotency
C.Distributed transaction coordination
D.Schema flexibility
AnswerC

A financial transfer that debits one account and credits another touches two independent storage systems. Distributed transaction coordination—via a two-phase commit or a saga pattern with compensating actions—ensures atomicity across those stores, so a failure in one step does not leave a partial, inconsistent state. Without such coordination, one side could commit while the other fails, causing account balances to diverge and require manual reconciliation.

Why this answer

The scenario requires coordinating a rollback across two distinct data stores—Azure SQL Database (ACID-compliant, strong consistency) and Azure Cosmos DB (eventual consistency by default). This cross-system transactional consistency is a classic distributed transaction coordination problem, often addressed via patterns like the two-phase commit (2PC) or the saga pattern, but not natively supported between these two services without custom orchestration.

Exam trap

The trap here is that candidates confuse ACID compliance (which is a property of a single database) with the ability to maintain atomicity across multiple independent data stores, leading them to select Option A instead of recognizing the need for distributed transaction coordination.

Why the other options are wrong

A

ACID compliance applies to a single database system (like Azure SQL) ensuring atomicity, consistency, isolation, durability. The question involves coordinating two different databases (SQL and Cosmos DB) with different consistency models, which is beyond ACID's scope.

B

Idempotency ensures that repeated operations produce the same result, but the difficulty here is coordinating atomic rollback across two different databases (SQL and Cosmos DB), not ensuring idempotent retries.

D

Schema flexibility refers to the ability to store data without a fixed schema, which is irrelevant to the challenge of ensuring atomicity across two different databases (Azure SQL and Cosmos DB) with different consistency models.

When would these options actually be correct?

A

A question asking about the property that ensures a database transaction is all-or-nothing, such as 'Which property guarantees that a transaction in a relational database either fully completes or fully rolls back?'

B

A question describing a system where a payment processing API must safely handle duplicate requests (e.g., due to network retries) without causing double charges. The correct answer would be idempotency, as the API should produce the same result regardless of how many times the request is sent.

D

Schema flexibility would be the correct answer in a question asking about the advantage of using a NoSQL database like Cosmos DB over a relational database when dealing with rapidly changing data structures, such as in a content management system where each document can have different fields.

Why candidates pick the wrong answer

A

Candidates see 'transaction rolled back' and 'consistency' and incorrectly associate ACID with the cross-database coordination, not realizing ACID is limited to a single database system.

B

Candidates may confuse idempotency with consistency guarantees, thinking that ensuring operations can be safely retried is the same as maintaining cross-database atomicity.

D

Candidates might confuse the need for data consistency across databases with the flexibility of data models, or they may incorrectly associate Cosmos DB's schema-agnostic nature with solving consistency problems.

778
MCQmedium

A travel booking application stores user itineraries in Azure Cosmos DB using the NoSQL API. Each itinerary document contains: UserID (unique to user), ItineraryID, Destination, BookingDate, and a nested array of Activities. The most common query is: 'Retrieve all itineraries for a specific UserID sorted by BookingDate descending.' To minimize Request Unit (RU) consumption, which partition key should be chosen?

A.ItineraryID
B.UserID
C.Destination
D.BookingDate
AnswerB

UserID is the ideal partition key here because it is both the most common filter in the application's queries ("show me my itineraries") and a high-cardinality value that naturally distributes data across many logical partitions. All documents for a given user are co-located in a single logical partition, so queries for that user's itineraries are single-partition operations, consuming minimal RUs and returning quickly. This directly matches the access pattern and avoids the cross-partition overhead that the other options create.

Why this answer

UserID is the correct partition key because the most common query filters on UserID, ensuring that all itineraries for a specific user are stored in the same physical partition. This allows the query to target a single partition, minimizing cross-partition queries and reducing Request Unit (RU) consumption. A partition key that aligns with the primary query filter is essential for optimal performance and cost efficiency in Azure Cosmos DB.

Exam trap

The trap here is that candidates often choose a unique identifier like ItineraryID as the partition key, thinking it ensures even distribution, but they overlook that the query pattern (filtering by UserID) requires the partition key to match the filter to avoid expensive cross-partition queries.

How to eliminate wrong answers

Option A (ItineraryID) is wrong because ItineraryID is unique per document, leading to a high-cardinality partition key that distributes each itinerary across different partitions; queries for a specific UserID would then require a fan-out to all partitions, increasing RU consumption. Option C (Destination) is wrong because it does not directly align with the query filter on UserID, and multiple users may share the same destination, causing hot partitions and inefficient cross-partition queries. Option D (BookingDate) is wrong because it is a time-based attribute that can create hot partitions (e.g., all bookings on the same date) and does not support the primary query pattern of filtering by UserID, forcing cross-partition scans.

779
MCQmedium

A company runs an e-commerce application backed by an on-premises SQL Server database. They plan to migrate to Azure SQL Database and require automatic failover across two Azure regions for disaster recovery. The application must continue to connect using the same connection string after a failover, with no code changes. Which feature should they implement?

A.Active Geo-Replication
B.Elastic pools
C.Failover groups
D.SQL Server on Azure Virtual Machine with Always On Availability Groups
AnswerC

Failover groups are the correct choice because they automatically replicate databases or elastic pools to a secondary region and provide an automatic failover mechanism that requires no application code changes. The group exposes a single readable/writable listener endpoint that remains identical after failover, so clients keep connecting to the same fully qualified domain name. You can also set a graceful data-loss boundary (RPO) and configure a read-only listener for offloading reporting traffic, making it a fully managed, PaaS-native DR solution.

Why this answer

Failover groups (Option C) enable automatic, geo-redundant failover across two Azure regions while providing a single read-write listener endpoint that remains unchanged after failover. This ensures the application can continue using the same connection string without any code modifications, meeting the stated requirement for disaster recovery with zero application changes.

Exam trap

The trap here is that candidates often confuse Active Geo-Replication with Failover groups, not realizing that only Failover groups provide a single, unchanged connection string endpoint for automatic failover, while Active Geo-Replication requires manual connection string updates.

Why the other options are wrong

A

Active Geo-Replication does not support automatic failover with the same connection string; it requires manual failover and connection string changes, whereas the question demands automatic failover with no code changes.

B

Elastic pools are used to manage and scale multiple databases with varying resource demands, not for disaster recovery or automatic failover with a single connection string.

D

SQL Server on Azure VM with Always On Availability Groups requires managing VMs and does not provide a single connection string that remains unchanged after failover without additional configuration like a listener, which is not the simple, managed solution the question requires.

When would these options actually be correct?

A

Active Geo-Replication would be correct if the question required read-scale workloads or allowed manual failover with connection string updates, such as: 'You need to replicate a database to a secondary region for read-only queries and are willing to update the connection string after a manual failover.'

B

A company has multiple Azure SQL databases with unpredictable usage patterns and wants to optimize cost by sharing resources across databases while ensuring performance isolation.

D

This option would be correct if the question specified that the company needs full control over the SQL Server instance, requires compatibility with on-premises features like SQL Server Agent or CLR, or needs to lift-and-shift existing Always On configurations without redesigning the application.

Why candidates pick the wrong answer

A

Candidates may confuse Active Geo-Replication with Failover Groups because both involve geo-replication, but they overlook that Failover Groups provide the automatic failover and listener endpoint needed for transparent connection string continuity.

B

Candidates may confuse elastic pools with high-availability features because both involve multiple databases, but elastic pools address resource management, not failover.

D

Candidates may confuse the high-availability capabilities of Always On Availability Groups with the managed failover groups feature, assuming that the VM-based solution can also provide automatic failover with a constant connection string, overlooking the additional complexity and management overhead.

780
MCQmedium

A company plans to migrate a 500 GB SQL Server database from on-premises to Azure SQL Database. They require minimal downtime during the migration. Which approach should they use?

A.Export a BACPAC file and import to Azure SQL Database
B.Use Azure Database Migration Service with online migration mode
C.Use Azure Site Recovery to replicate the database
D.Create a full database backup and restore to Azure SQL Database
AnswerB

Online migration mode keeps the source SQL Server operational and continuously replicates changes to Azure SQL Database until cutover, so the 500 GB database syncs with only a brief final switchover, satisfying the minimal-downtime requirement.

Why this answer

Azure Database Migration Service (DMS) with online migration mode is the correct approach because it supports minimal-downtime migrations by continuously replicating ongoing changes from the source SQL Server to Azure SQL Database using the transactional replication technology. This allows the source database to remain operational during the migration, and only a brief cutover is needed at the end to switch applications to the target.

Exam trap

The trap here is that candidates often confuse offline backup/restore or BACPAC methods (which are simpler but cause downtime) with the online migration capability of DMS, assuming any Azure tool can achieve minimal downtime without understanding the underlying replication mechanism.

Why the other options are wrong

A

Exporting a BACPAC file requires the database to be online and can cause significant downtime due to data export and import times, especially for a 500 GB database. It does not support minimal downtime migration.

C

Azure Site Recovery is designed for disaster recovery and replication of entire VMs or physical servers, not for online migration of a single database with minimal downtime. It would replicate the entire server environment, which is overkill and not optimized for database migration.

D

Creating a full database backup and restoring to Azure SQL Database requires the source database to be offline or in read-only mode during the backup, causing significant downtime. This does not meet the minimal downtime requirement.

When would these options actually be correct?

A

A company needs to migrate a small database (e.g., under 100 GB) to Azure SQL Database and can tolerate several hours of downtime. The BACPAC method is simple and does not require additional Azure services.

C

A company needs to migrate an entire on-premises SQL Server instance (including multiple databases and server-level objects) to Azure VMs with minimal downtime for disaster recovery purposes. Azure Site Recovery would be the correct choice for replicating the entire server.

D

This approach would be correct if the question specified that the database is small (e.g., under 200 GB), the migration can tolerate several hours of downtime, and the company wants a simple, low-cost method without additional Azure services.

Why candidates pick the wrong answer

A

Candidates may think BACPAC is the standard migration tool for Azure SQL Database, overlooking its limitations for large databases and minimal downtime requirements.

C

Candidates may think Site Recovery can handle database migration because it provides replication and failover capabilities, but they overlook that it is not a database-specific migration tool and does not support online migration to Azure SQL Database.

D

Candidates are familiar with backup and restore operations from on-premises SQL Server and may assume this straightforward method can be used with minimal downtime, overlooking the fact that Azure SQL Database does not support native restore from a full backup without downtime.

781
MCQeasy

A retail company stores customer data in a relational database table with columns for CustomerID, Name, and Email. Product reviews are stored as JSON documents where each document contains review text and a rating. Product images are stored as binary files in Azure Blob Storage. Which of the following correctly categorizes these data types in order: relational table, JSON documents, binary images?

A.Structured, semi-structured, unstructured
B.Semi-structured, structured, unstructured
C.Unstructured, semi-structured, structured
D.Structured, unstructured, semi-structured
AnswerA

Relational database tables are structured because they enforce a fixed schema with defined columns and data types, allowing straightforward SQL queries. JSON is semi-structured since it uses self-describing key-value pairs that can vary from record to record, lacking a rigid schema. Binary image files are unstructured as they contain raw pixel data with no inherent organization or queryable structure, completing the correct classification.

Why this answer

A is correct because relational tables enforce a fixed schema (columns with defined data types), making them structured data. JSON documents have a flexible schema (key-value pairs) but still contain metadata, classifying them as semi-structured. Binary image files in Azure Blob Storage have no inherent structure or schema, making them unstructured data.

This matches the order: structured, semi-structured, unstructured.

Exam trap

The trap here is that candidates often confuse semi-structured data (like JSON) with unstructured data because JSON appears 'flexible,' but it still has a defined key-value structure, whereas truly unstructured data (binary blobs) has no schema at all.

Why the other options are wrong

B

The relational table (structured) is mislabeled as semi-structured, and the JSON documents (semi-structured) are mislabeled as structured, reversing the correct order.

C

Option C orders the data types as unstructured, semi-structured, structured, but the question asks for the order: relational table (structured), JSON documents (semi-structured), binary images (unstructured). This mismatches the correct sequence.

D

The question orders data types as relational table, JSON documents, binary images. Option D (structured, unstructured, semi-structured) incorrectly classifies JSON documents as unstructured and binary images as semi-structured. In reality, JSON is semi-structured and binary images are unstructured.

When would these options actually be correct?

B

If the question asked about a NoSQL key-value store (semi-structured), a relational table (structured), and binary files (unstructured), then the order semi-structured, structured, unstructured would be correct.

C

If the question asked to categorize the data types in the order: binary images, JSON documents, relational table, then the correct answer would be unstructured, semi-structured, structured (Option C).

D

Option D would be correct if the question asked to classify data types in the order: a relational table, a collection of scanned PDF documents (unstructured), and XML files with a schema (semi-structured).

Why candidates pick the wrong answer

B

Candidates may confuse JSON as structured because it has a schema-like format, or mistakenly think relational data is semi-structured due to its tabular nature.

C

Candidates may confuse the order of data types or mistakenly think that JSON documents are unstructured because they lack a fixed schema, overlooking that JSON has inherent structure (key-value pairs).

D

Candidates may confuse JSON as unstructured because it lacks a fixed schema, or mistakenly think binary images have some structure (e.g., file headers), leading them to misorder the categories.

782
Multi-Selectmedium

Which TWO of the following are characteristics of structured data? (Choose two.)

Select 2 answers
A.No predefined schema
B.Stored in rows and columns
C.Fixed schema
D.Key-value pairs
E.Schema-on-read
AnswersB, C

Structured data is inherently organised with a predefined schema, which mandates its storage in a highly organised format. This characteristic directly aligns with being stored in rows and columns, a hallmark of relational databases. Each row represents a unique record, while columns define specific attributes or fields, ensuring data consistency and enabling efficient querying and analysis. This precise tabular structure is a defining feature of structured data, satisfying the requirement for its organised nature.

Why this answer

Structured data is organized in a tabular format with rows and columns, which is the defining characteristic of relational databases like SQL Server or Azure SQL Database. This structure enforces a fixed schema, meaning the data types and relationships are defined before data is entered, ensuring consistency and enabling efficient querying via SQL.

Exam trap

Microsoft often tests the distinction between 'fixed schema' (structured) and 'schema-on-read' (semi-structured), and candidates mistakenly associate key-value pairs with structured data instead of NoSQL.

783
MCQhard

Your company stores sensitive customer data in Azure SQL Database. You need to implement column-level encryption for the 'SSN' column using a customer-managed key stored in Azure Key Vault. Which feature should you use?

A.Azure Policy
B.Always Encrypted
C.Transparent Data Encryption (TDE)
D.Dynamic Data Masking
AnswerB

Always Encrypted encrypts selected columns client-side using a column encryption key protected by a column master key held outside Azure SQL Database. The database engine stores and processes only ciphertext, so sensitive data is never exposed to SQL Server administrators or to Azure personnel. With deterministic encryption the server can support equality operations (e.g., WHERE clauses and joins) while randomized encryption avoids leaks. The client application and driver must be compatible, and the application must supply the keys.

Why this answer

Always Encrypted is the correct feature because it allows client-side encryption of sensitive columns, such as 'SSN', using a customer-managed key stored in Azure Key Vault. The encryption keys are never exposed to the database engine, ensuring that even database administrators cannot view the plaintext data. This meets the requirement for column-level encryption with customer-managed keys.

Exam trap

The trap here is that candidates often confuse Transparent Data Encryption (TDE) with column-level encryption, but TDE only protects data at rest and does not prevent database administrators or the cloud provider from reading the data in memory or during queries.

How to eliminate wrong answers

Option A is wrong because Azure Policy is a governance tool used to enforce organizational standards and compliance rules across Azure resources, not a data encryption feature for individual columns. Option C is wrong because Transparent Data Encryption (TDE) encrypts the entire database at rest (the storage layer), not at the column level, and it does not support customer-managed keys for column-specific encryption. Option D is wrong because Dynamic Data Masking obfuscates data at query time for unauthorized users but does not encrypt the underlying data; the masked values are still stored in plaintext and can be accessed by privileged users.

784
MCQmedium

A company uses Azure SQL Database for an HR system. The Employees table has a clustered index on EmployeeID. Queries frequently filter on DepartmentID and LastName and also retrieve the Salary column. The table contains over a million rows. Which index strategy will most improve query performance for these filters?

A.A: Create a nonclustered index on (DepartmentID, LastName) INCLUDE (Salary)
B.B: Create a nonclustered index on LastName only
C.C: Create a nonclustered index on DepartmentID and another nonclustered index on LastName
D.D: Change the clustered index to (DepartmentID, LastName)
AnswerA

A nonclustered index on (DepartmentID, LastName) INCLUDE (Salary) is a covering index specifically designed for this query: it contains every column needed in the WHERE, SELECT, and ORDER BY clauses within the index leaf level. Because the index is sorted by DepartmentID first and LastName second, the SQL Server query optimizer can perform an index seek for the specific department, then navigate to the exact last names, and retrieve Salary directly from the included column. This completely avoids the need for expensive key lookups into the clustered index, making it the most efficient access path for this workload.

Why this answer

It creates a covering nonclustered index on the filter columns (DepartmentID, LastName) and includes the Salary column as an included column. This allows the query to be fully satisfied by scanning only the nonclustered index pages, avoiding key lookups to the clustered index. The order of columns in the index key matches the query filter pattern, maximizing seek efficiency.

Exam trap

The trap here is that candidates often think separate single-column indexes are sufficient for multi-column filters, but they overlook the need for a covering composite index to avoid expensive key lookups or index intersection operations.

How to eliminate wrong answers

Option B is wrong because an index on LastName only does not help with filtering on DepartmentID, forcing a residual predicate or full scan of the clustered index for DepartmentID lookups. Option C is wrong because separate indexes on DepartmentID and LastName would require SQL Server to either use one index and then perform key lookups for the other filter, or use both with an expensive index intersection operation, neither of which is as efficient as a single composite index. Option D is wrong because changing the clustered index to (DepartmentID, LastName) would reorder the entire table physically, which could degrade performance for the existing EmployeeID-based lookups and other queries that rely on the current clustered key order.

785
MCQmedium

A company uses Azure Synapse Analytics dedicated SQL pool for its data warehouse. Every night, they need to load 500 GB of new sales data from CSV files stored in Azure Data Lake Storage Gen2. The loading process must be automated, scheduled, and include error handling (e.g., skip corrupt rows and log them). Which Azure service should be used to orchestrate this load pipeline?

A.Azure Data Factory
B.Azure Stream Analytics
C.Azure HDInsight
D.Azure Logic Apps
AnswerA

Azure Data Factory is the intended ETL/ELT orchestration service for this workload. A scheduled trigger can launch a copy activity that uses the dedication SQL pool's COPY/PolyBase path for high-throughput ingestion of 500 GB, while the Azure Integration Runtime scales to handle large data volumes and provides built-in retry, monitoring, and custom error handling.

Why this answer

Azure Data Factory (ADF) is the correct choice because it is a cloud-based ETL and data orchestration service that supports scheduled execution, error handling (e.g., skipping corrupt rows via fault tolerance settings in the Copy activity), and native integration with Azure Data Lake Storage Gen2 and Azure Synapse dedicated SQL pool. ADF can automate the nightly 500 GB load using a trigger, and its mapping data flows or Copy activity can log errors to a separate file or table, meeting the requirement for automated, scheduled, and error-tolerant ingestion.

Exam trap

The trap here is that candidates often confuse Azure Data Factory with Azure Logic Apps because both support scheduling and automation, but Logic Apps lacks the native data movement capabilities and fault tolerance for large-scale batch ETL workloads like loading 500 GB into a dedicated SQL pool.

How to eliminate wrong answers

Option B (Azure Stream Analytics) is wrong because it is designed for real-time stream processing of data from sources like Event Hubs or IoT Hub, not for scheduled batch loading of large CSV files from ADLS Gen2 into a data warehouse. Option C (Azure HDInsight) is wrong because it is a managed big data analytics platform for running Hadoop, Spark, or Hive jobs, but it lacks built-in scheduling and orchestration capabilities for nightly loads and requires custom coding for error handling, making it overly complex compared to ADF. Option D (Azure Logic Apps) is wrong because while it can automate workflows and handle scheduling, it is optimized for lightweight integration and API-based triggers, not for orchestrating large-scale data movement (500 GB) with native fault tolerance and direct connectivity to Synapse dedicated SQL pool.

786
MCQeasy

Refer to the exhibit. The JSON shows a configuration for which Azure service?

A.Azure Analysis Services
B.Azure Data Factory
C.Power BI
D.Azure Synapse Analytics
AnswerB

Azure Data Factory is correct because it represents linked services, datasets, and pipelines as JSON objects. The exhibit shows a linked service definition with a type and typeProperties containing connection details, which is the standard way ADF stores source and destination connection information. This serialized JSON enables version-controlled, repeatable deployment of data integration artifacts.

Why this answer

The JSON snippet defines a pipeline with a copy activity that moves data from a source (Azure Blob Storage) to a sink (Azure SQL Database). This is the core pattern of Azure Data Factory (ADF), which orchestrates and automates data movement and transformation. The structure with 'name', 'properties', 'activities', 'typeProperties', 'source', and 'sink' is specific to ADF pipeline definitions.

Exam trap

The trap here is that candidates confuse the JSON pipeline definition with Azure Synapse Analytics pipelines, which share the same underlying engine but are accessed via a different portal and have additional Synapse-specific features like Spark job definitions and SQL script activities.

How to eliminate wrong answers

Option A is wrong because Azure Analysis Services is a semantic model and analytics engine (using Tabular or Multidimensional models), not a data orchestration service; it does not use JSON pipeline definitions with copy activities. Option C is wrong because Power BI is a visualization and reporting tool that uses datasets and dashboards, not JSON-based pipeline definitions with source/sink configurations. Option D is wrong because Azure Synapse Analytics is a unified analytics platform that includes dedicated SQL pools, serverless SQL, and Spark, but its native pipeline definitions (Synapse Pipelines) are derived from ADF; the exhibit shows a generic ADF pipeline JSON, not a Synapse-specific artifact like a SQL script or Spark job.

787
MCQmedium

A company needs to store order data for an e-commerce platform. The system requires high concurrency, fast inserts, and the ability to enforce referential integrity between tables (e.g., Customers and Orders). Which Azure service should they use?

A.Azure SQL Database
B.Azure Cosmos DB
C.Azure Blob Storage
D.Azure Data Lake Storage Gen2
AnswerA

Azure SQL Database is a fully managed relational database service that enforces a fixed schema and guarantees ACID transactions. For e-commerce order data, this means foreign keys can maintain referential integrity between orders, customers, and line items, while row-level locking supports high concurrency without lost updates. Its built-in indexing and transaction logging make it the appropriate choice for transactional workloads where consistency is non-negotiable.

Why this answer

Azure SQL Database is a fully managed relational database service that supports high concurrency, fast inserts, and enforces referential integrity through foreign key constraints. It provides ACID transactions and row-level locking to handle concurrent writes efficiently, making it ideal for e-commerce order processing where data consistency between Customers and Orders tables is critical.

Exam trap

The trap here is that candidates confuse high concurrency and fast inserts with NoSQL solutions like Cosmos DB, overlooking the explicit requirement for referential integrity which only a relational database like Azure SQL Database can enforce.

How to eliminate wrong answers

Option B is wrong because Azure Cosmos DB is a NoSQL database that does not enforce referential integrity between tables (it uses flexible schemas and lacks foreign key constraints). Option C is wrong because Azure Blob Storage is an object storage service for unstructured data (e.g., images, backups) and cannot enforce relational integrity or support SQL joins. Option D is wrong because Azure Data Lake Storage Gen2 is a hierarchical file system for big data analytics, not a transactional database, and it lacks support for referential integrity and high-concurrency row-level inserts.

788
MCQmedium

A smart home company stores device telemetry in Azure Cosmos DB using the NoSQL API. Each document contains: deviceId (string), timestamp (datetime), temperature (float), humidity (float). The most common query retrieves all documents for a specific deviceId within a time range, ordered by timestamp descending. This query performs well. However, a new query that finds devices with temperature > 50 in the last hour (without specifying deviceId) is extremely slow and consumes many request units (RUs). What is the most likely cause?

A.The temperature field is not indexed by default, so the query forces a full scan of all documents.
B.The query does not specify the partition key (deviceId), causing a cross-partition query that scans every physical partition.
C.The time range filter on timestamp cannot be combined with the temperature filter efficiently.
D.The default indexing policy only indexes strings and numbers as range indexes, but temperature is stored as a number and is indexed.
AnswerB

The WHERE clause filters only on timestamp and temperature, not on deviceId—the container's partition key. To satisfy the query, Cosmos DB must issue the query to every physical partition and merge results, a pattern called a cross-partition query or fan-out, which consumes significantly more request units and has higher latency than a query scoped to a single partition key. Adding deviceId to the filter, or redesigning the model to avoid needing to scan all partitions, aligns the query with the partition-key distribution and reduces scanning.

Why this answer

In Azure Cosmos DB NoSQL API, the partition key (deviceId) determines data distribution across physical partitions. Queries that do not include the partition key in the filter become cross-partition queries, which must fan out to every physical partition, scanning all documents. This is extremely slow and consumes many RUs, especially in large containers.

The original query specifying deviceId performs well because it targets a single partition.

Exam trap

The trap here is that candidates assume the slowness is due to a missing index on temperature, but Azure Cosmos DB automatically indexes all fields by default, so the real issue is the cross-partition query caused by omitting the partition key.

How to eliminate wrong answers

Option A is wrong because all fields in Azure Cosmos DB are automatically indexed by default, including the temperature field, so a missing index is not the cause. Option C is wrong because Azure Cosmos DB can combine filters on timestamp and temperature efficiently using its indexing; the slowness is due to the missing partition key, not the combination of filters. Option D is wrong because the default indexing policy does index numbers as range indexes, so temperature is indeed indexed; this statement is factually incorrect.

789
MCQeasy

You are designing a solution to store relational data that requires support for graph relationships and JSON queries. Which Azure service should you choose?

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

Azure SQL Database is a fully managed relational database engine built on SQL Server, offering T-SQL, enforced schemas, relationships via primary and foreign keys, and rich querying with joins. It also includes built-in graph table features (node and edge tables) that allow you to model many-to-many relationships, and JSON query support for semi-structured data. This makes it the most appropriate service when you need a relational store that can also handle graph-style relationships and flexible data formats.

Why this answer

Azure SQL Database is the correct choice because it natively supports graph relationships through graph tables (NODE and EDGE tables) and JSON queries via built-in JSON functions like JSON_VALUE, JSON_QUERY, and OPENJSON. This makes it ideal for storing relational data that also needs to handle graph traversals and semi-structured JSON data without requiring a separate service.

Exam trap

The trap here is that candidates often assume graph and JSON support require a NoSQL database like Cosmos DB, but Azure SQL Database provides both features within a relational model, which is the key distinction tested in DP-900.

How to eliminate wrong answers

Option A is wrong because Azure Cosmos DB is a NoSQL database that, while supporting graph APIs (Gremlin) and JSON natively, is not designed for strict relational data with ACID transactions across multiple tables. Option B is wrong because Azure Table Storage is a key-value store that lacks support for relational schemas, graph relationships, and JSON query capabilities. Option D is wrong because Azure Database for PostgreSQL, while supporting JSONB and graph extensions like Apache AGE, is not the primary Azure service for relational data with built-in graph and JSON support; Azure SQL Database offers tighter integration with Azure ecosystem features like elastic pools and built-in graph tables.

790
MCQeasy

A data engineer needs to process streaming data from IoT devices in near real-time and store the results in Azure Cosmos DB. Which Azure service should they use for the stream processing?

A.Azure Synapse Analytics
B.Azure Databricks
C.Azure Stream Analytics
D.Azure Data Factory
AnswerC

Azure Stream Analytics is a fully managed, purpose-built stream-processing service that handles near real-time IoT telemetry with low latency. It provides a SQL-like query language that natively supports temporal windows, sliding windows, and event-time processing, allowing filters, aggregations, and even anomaly detection directly on the stream. Crucially, it has a native Cosmos DB sink and built-in connectors to Event Hubs, IoT Hub, and other Azure services, eliminating the need for custom glue code. Because it processes each event as it arrives rather than in micro-batches, it is the ideal choice for real-time IoT scenarios that require prompt alerts or continuous output.

Why this answer

Azure Stream Analytics is the correct choice because it is a fully managed, real-time stream processing engine designed specifically for low-latency, near-real-time analytics on streaming data. It can ingest data from IoT devices via Event Hubs or IoT Hub, apply SQL-based transformations, and directly output the results to Azure Cosmos DB with millisecond latency, making it ideal for this scenario.

Exam trap

The trap here is that candidates often confuse Azure Stream Analytics with Azure Data Factory or Azure Databricks, mistakenly thinking that any 'data processing' tool can handle real-time streaming, but only Stream Analytics is purpose-built for near-real-time, serverless stream processing with direct Cosmos DB integration.

How to eliminate wrong answers

Option A is wrong because Azure Synapse Analytics is a unified analytics platform focused on large-scale batch processing and data warehousing, not real-time stream processing; it lacks native support for continuous streaming queries with sub-second latency. Option B is wrong because Azure Databricks is a big data and machine learning platform that can process streaming data via Structured Streaming, but it requires cluster management and is overkill for simple near-real-time IoT processing; it is not the simplest or most cost-effective choice for direct Cosmos DB output. Option D is wrong because Azure Data Factory is a cloud-based ETL and data integration service designed for batch-oriented data movement and orchestration, not for real-time stream processing; it cannot handle continuous, low-latency streaming workloads.

791
MCQmedium

A media company needs to store millions of high-resolution photos for a public website. Each photo can be up to 50 MB. The storage solution must support secure access via URLs. Which Azure service should they use?

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

Azure Blob Storage is Microsoft's object storage solution optimized for massive volumes of unstructured binary data, perfect for high-resolution photos. Each block blob can hold up to 4.75 TB and you can store millions of blobs, each directly addressable via a unique HTTPS URL—making it trivial to serve images to browsers or mobile apps and integrate with Azure CDN for global scalability. It also offers tiered storage (hot, cool, archive) to balance cost and access frequency, which is essential for media companies.

Why this answer

Azure Blob Storage is the correct choice because it is designed for storing massive amounts of unstructured data, such as high-resolution photos, and supports objects up to 4.7 TB per blob, easily accommodating 50 MB files. It provides secure access via URLs using shared access signatures (SAS) or public access levels, making it ideal for a public website serving media content.

Exam trap

The trap here is that candidates often confuse Azure Files with Blob Storage because both can store files, but Azure Files uses SMB protocol for network file shares, not HTTP/HTTPS URL-based access for public web serving.

How to eliminate wrong answers

Option A is wrong because Azure Table Storage is a NoSQL key-value store for structured, non-relational data, not for large binary files like photos. Option C is wrong because Azure Files provides fully managed file shares using SMB protocol, designed for shared file access across VMs or on-premises, not for serving public web content via URLs. Option D is wrong because Azure SQL Database is a relational database service for structured data with schemas, not for storing large binary objects like photos, and it lacks native URL-based access for public distribution.

792
MCQeasy

A company receives data from a point-of-sale system. Each row contains TransactionID, ProductID, Quantity, and Price. The data has a fixed schema and is stored in a table. How should this data be classified?

A.Structured data
B.Semi-structured data
C.Unstructured data
D.Transactional data
AnswerA

Structured data has a fixed, predefined schema: every row in this POS dataset contains the same columns (TransactionID, ProductID, Quantity, Price) with consistent data types, allowing direct querying with SQL. This tabular format—organized into rows and columns with strict formatting—is the defining characteristic of structured data. Because the schema is known ahead of time and every record conforms to it, this dataset clearly fits the structured data classification.

Why this answer

The data has a fixed schema with clearly defined columns (TransactionID, ProductID, Quantity, Price) and each row follows the same structure, which is the definition of structured data. In Azure, this would map directly to a table in Azure SQL Database or a fixed-schema table in Azure Synapse Analytics. The rigid schema and consistent data types make it ideal for relational storage and querying.

Exam trap

The trap here is that candidates confuse 'transactional data' (a workload pattern) with 'structured data' (a data classification), leading them to pick Option D because the data comes from a point-of-sale system, but the question explicitly asks about data structure, not data source or usage.

How to eliminate wrong answers

Option B is wrong because semi-structured data (e.g., JSON, XML, Parquet) does not enforce a fixed schema; fields can vary between rows, unlike this rigid table. Option C is wrong because unstructured data (e.g., images, videos, text files) has no predefined schema or organization, whereas this data has a strict columnar structure. Option D is wrong because 'transactional data' describes a workload type (OLTP) or data generated by transactions, not a classification of data structure; the question asks how the data should be classified by structure, not by its source or usage.

793
MCQeasy

A retail company stores customer data in three formats: a relational database table with fixed columns for CustomerID, Name, and Email; customer feedback as JSON documents with varying fields such as rating and comment; and product images as JPEG files. Which of the following correctly classifies these data types from most structured to least structured?

A.JSON documents, relational table, image files
B.Relational table, JSON documents, image files
C.Image files, JSON documents, relational table
D.Relational table, image files, JSON documents
AnswerB

Relational tables enforce a fixed schema, making them most structured. JSON documents are semi-structured, since fields vary between records. JPEG images are unstructured, holding no schema or queryable field structure, so this ordering runs correctly from most to least structured.

Why this answer

Relational tables enforce a fixed schema with defined columns and data types, making them the most structured. JSON documents are semi-structured, allowing varying fields and flexible schemas, while image files are unstructured binary data with no inherent schema. This ordering from most to least structured aligns with the core data classification concept in the DP-900 exam.

Exam trap

The trap here is that candidates often confuse semi-structured JSON with unstructured data, or assume that any file format (like images) has inherent structure, leading them to misorder the classification from most to least structured.

Why the other options are wrong

A

JSON documents are semi-structured (varying fields), not more structured than a relational table with fixed columns. The order from most to least structured should be relational table (structured), JSON (semi-structured), image files (unstructured).

C

Image files are unstructured data, not more structured than JSON documents. The correct order from most to least structured is relational table (highly structured), JSON documents (semi-structured), image files (unstructured).

D

Image files are unstructured data, not semi-structured like JSON. The order should be relational table (structured), JSON documents (semi-structured), image files (unstructured).

When would these options actually be correct?

A

If the question asked to classify from least structured to most structured, then option A (JSON documents, relational table, image files) would be correct because image files are least structured, relational tables are most structured, and JSON falls in between.

C

If the question asked to classify data types from least structured to most structured, then option C (image files, JSON documents, relational table) would be correct.

D

If the question asked to classify data types from least structured to most structured, then the order would be image files (unstructured), JSON documents (semi-structured), relational table (structured), making D correct.

Why candidates pick the wrong answer

A

Candidates may mistakenly think JSON is more structured than relational tables because JSON has a defined syntax, but they overlook that relational tables enforce a fixed schema, making them more structured.

C

Candidates may mistakenly think that because JSON documents have varying fields, they are less structured than image files, or they confuse the order of classification (e.g., reading the question as 'least to most structured').

D

Candidates may mistakenly think that JSON documents are more structured than relational tables because they have a schema, or they may confuse the concept of 'structured' with 'complexity' or 'variability'.

794
MCQhard

A company is migrating an on-premises SQL Server database to Azure. The database is 800 GB, uses SQL Server Agent jobs for scheduled tasks, and needs to link to another on-premises SQL Server instance via linked servers. The company wants a fully managed service with minimal application changes. Which Azure SQL service should they choose?

A.Azure SQL Database elastic pool
B.Azure SQL Database single database
C.Azure SQL Managed Instance
D.Azure Synapse Analytics dedicated SQL pool
AnswerC

Azure SQL Managed Instance is the correct choice because it provides near-100% compatibility with on-premises SQL Server, including SQL Server Agent, linked servers, and other instance-scoped features, all in a fully managed platform. It supports lift-and-shift migrations without rearchitecting applications, and its built-in high availability and patching make it ideal for production workloads that rely on these advanced capabilities.

Why this answer

Azure SQL Managed Instance is correct because it provides near 100% compatibility with on-premises SQL Server, including support for SQL Server Agent jobs and linked servers, while being a fully managed platform-as-a-service (PaaS) offering. This allows the company to migrate the 800 GB database with minimal application changes, as it preserves the existing instance-level features without requiring a rearchitecture.

Exam trap

The trap here is that candidates often confuse Azure SQL Database (single or elastic pool) with Azure SQL Managed Instance, assuming all PaaS offerings support SQL Server Agent and linked servers, when in fact only Managed Instance provides these instance-scoped features.

Why the other options are wrong

A

Azure SQL Database (elastic pool or single) does not support SQL Server Agent jobs or linked servers, which are required by the question.

B

Azure SQL Database single database does not support SQL Server Agent jobs or linked servers, which are required by the question's scenario.

D

Azure Synapse Analytics dedicated SQL pool is a massively parallel processing (MPP) data warehouse designed for large-scale analytics, not for OLTP workloads. It does not support SQL Server Agent jobs, linked servers, or minimal application changes for migrating an 800 GB SQL Server database.

When would these options actually be correct?

A

A company needs to manage multiple databases with varying, unpredictable usage patterns and wants to optimize cost by sharing resources among them, without requiring SQL Server Agent or linked servers.

B

A company needs a fully managed, single-tenant database with minimal management overhead, does not require SQL Server Agent or linked servers, and has a predictable workload that fits within the resource limits of a single database.

D

A company needs to migrate a 10 TB data warehouse from on-premises SQL Server to Azure for analytics and reporting, with no need for SQL Server Agent jobs or linked servers. The workload is read-intensive and requires high concurrency for large queries. Azure Synapse Analytics dedicated SQL pool would be the correct choice.

Why candidates pick the wrong answer

A

Candidates may think elastic pools are a fully managed option that can handle any workload, overlooking the specific feature requirements of SQL Server Agent and linked servers.

B

Candidates may assume that Azure SQL Database is the default fully managed option and overlook the specific feature requirements (Agent jobs and linked servers) that are only available in Azure SQL Managed Instance.

D

Candidates may think Synapse Analytics is suitable because it is a fully managed service in Azure that supports SQL Server-like syntax, overlooking its focus on analytics rather than transactional workloads and its lack of features like SQL Server Agent and linked servers.

795
Multi-Selecteasy

Which TWO Azure services are designed for big data batch processing?

Select 2 answers
A.Azure Databricks
B.Azure Data Explorer
C.Azure Stream Analytics
D.Azure Analysis Services
E.Azure HDInsight
AnswersA, E

Azure Databricks is a unified analytics platform built on Apache Spark. While it supports both batch and real-time streaming, its core capability for distributed in-memory data processing makes it a primary choice for big data batch workloads such as large-scale ETL, data transformation, and machine learning over historical data. It manages clusters automatically and provides Databricks File System (DBFS) and Delta Lake for reliable, high-throughput batch jobs.

Why this answer

Azure Databricks is correct because it provides an Apache Spark-based analytics platform optimized for batch processing large datasets, enabling ETL, data transformation, and machine learning at scale. It uses distributed computing to process data in parallel across clusters, making it ideal for big data batch workloads.

Azure HDInsight is also correct as it is a managed, full-spectrum, open-source analytics service for enterprises. It allows you to run popular open-source frameworks like Hadoop (for MapReduce batch processing), Spark (for batch and interactive processing), Hive, and others on Azure, making it suitable for big data batch processing scenarios.

Exam trap

The trap here is that candidates often confuse real-time analytics services (like Stream Analytics or Data Explorer) with batch processing services, or mistakenly think Analysis Services handles raw big data processing when it is actually a presentation layer for pre-aggregated data.

796
MCQeasy

You need to store JSON documents for a web application that requires low-latency reads and writes globally. The data has no fixed schema. Which Azure service should you use?

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

Azure Cosmos DB is a globally distributed, multi-model database with single-digit-millisecond latency at any region and schema-agnostic JSON storage. Its core SQL API stores documents without a fixed schema, directly satisfying the low-latency global read and write requirement.

Why this answer

Azure Cosmos DB is a globally distributed, multi-model NoSQL database that natively stores JSON documents, offers single-digit millisecond latency at the 99th percentile, and supports turnkey global distribution across regions. It is schema-agnostic, making it ideal for web applications with evolving document structures.

Exam trap

DP-900 often tests the confusion between Blob/Table storage and Cosmos DB, expecting candidates to recognize that global low-latency JSON document workloads require Cosmos DB.

How to eliminate wrong answers

Option A is wrong because Azure Table Storage is a key-attribute store with limited querying, no global distribution guarantees, and is not designed for low-latency global JSON document workloads. Option B is wrong because Blob Storage is object storage for unstructured files, not a low-latency queryable document database. Option C is wrong because Azure SQL Database is a relational engine requiring a fixed schema and is not globally distributed with single-digit millisecond latency by default.

797
MCQmedium

A company is designing a data analytics solution. They need to store large volumes of raw data in its native format and support schema-on-read for data science exploration. Which storage technology should they use?

A.Azure Data Lake Storage Gen2
B.Azure Blob Storage
C.Azure Cosmos DB
D.Azure SQL Database
AnswerA

Azure Data Lake Storage Gen2 is a purpose-built data lake that combines Blob Storage's low-cost object storage with a hierarchical namespace, enabling efficient directory-level operations and POSIX-compliant access control. It supports schema-on-read, so raw data in any format (JSON, CSV, Parquet, etc.) can be ingested without transformation, and it natively integrates with Azure Synapse, Databricks, and Data Factory for analytics workloads.

Why this answer

Azure Data Lake Storage Gen2 (ADLS Gen2) is the correct choice because it combines a hierarchical namespace with Azure Blob Storage's scalable object storage, allowing raw data to be stored in its native format (e.g., CSV, JSON, Parquet) without transformation. It supports schema-on-read, meaning the schema is applied at query time (e.g., via Apache Spark or Azure Synapse SQL), which is ideal for data science exploration where the data structure may not be predefined.

Exam trap

The trap here is that candidates often confuse Azure Blob Storage with ADLS Gen2 because both store objects, but Blob Storage lacks the hierarchical namespace and native schema-on-read support required for data science exploration, making it unsuitable for this specific analytics workload.

How to eliminate wrong answers

Option B (Azure Blob Storage) is wrong because while it can store raw data, it lacks a hierarchical namespace and native schema-on-read capabilities; it is optimized for unstructured object storage and requires additional services (like Azure Data Lake Analytics) to enable schema-on-read. Option C (Azure Cosmos DB) is wrong because it is a NoSQL database designed for low-latency transactional workloads with a fixed schema (or flexible schema via JSON), not for storing large volumes of raw data in native format for ad-hoc analytics. Option D (Azure SQL Database) is wrong because it is a relational database that enforces a rigid schema (schema-on-write), requiring data to be transformed and loaded before querying, which contradicts the need for schema-on-read and raw data storage.

798
MCQmedium

You are deploying the above ARM template snippet for a storage account. What is the effect of setting 'isHnsEnabled' to true?

A.Enables Azure Data Lake Storage Gen2.
B.Enables Azure Blob Storage lifecycle management.
C.Enables geo-redundant storage (GRS).
D.Enables Azure Files share.
AnswerA

Enabling the hierarchical namespace (HNS) on a storage account is exactly what turns on Azure Data Lake Storage Gen2. The HNS reorganizes blob objects into a directory hierarchy, enabling POSIX-like access control lists and efficient rename/move operations that are foundational to the Data Lake Gen2 offering.

Why this answer

Setting 'isHnsEnabled' to true enables the Hierarchical Namespace (HNS) feature on the Azure Storage account, which is the core requirement for Azure Data Lake Storage Gen2. This allows the storage account to support a file system-like directory structure with POSIX-compliant access control lists, enabling analytics workloads to use both blob and file system semantics.

Exam trap

The trap here is that candidates confuse 'isHnsEnabled' with enabling a general 'data lake' feature, but it specifically enables the Hierarchical Namespace, which is the fundamental difference between Azure Blob Storage and Azure Data Lake Storage Gen2.

How to eliminate wrong answers

Option B is wrong because lifecycle management is a separate feature enabled via the 'LifecycleManagement' policy on a storage account, not by setting 'isHnsEnabled'. Option C is wrong because geo-redundant storage (GRS) is a replication setting configured via the 'sku.name' property (e.g., 'Standard_GRS'), not via 'isHnsEnabled'. Option D is wrong because Azure Files shares are enabled by creating a file share resource within a storage account, not by enabling the Hierarchical Namespace; in fact, enabling HNS on a storage account prevents the creation of Azure file shares in that account.

799
MCQeasy

A company stores customer records in a relational table with columns like CustomerID, Name, and Email. Product reviews are stored as JSON documents, and marketing images are stored as PNG files. Which of the following correctly orders these data types from most structured to least structured?

A.A. Product reviews, Customer records, Marketing images
B.B. Customer records, Product reviews, Marketing images
C.C. Marketing images, Customer records, Product reviews
D.D. Customer records, Marketing images, Product reviews
AnswerB

Customer records in a relational table are strictly structured (fixed schema), product reviews as JSON are semi-structured (schema-on-read), and marketing images are unstructured (binary files). This is the correct order from most to least structured.

Why this answer

Customer records in a relational table have a fixed schema with defined columns (e.g., CustomerID, Name, Email), making them the most structured. Product reviews stored as JSON documents are semi-structured because they have a flexible schema with key-value pairs but no fixed columns. Marketing images as PNG files are unstructured binary data with no inherent schema.

Option B correctly orders these from most to least structured.

Exam trap

The trap here is that candidates often confuse semi-structured JSON with unstructured data, or assume that any file format (like PNG) has inherent structure, leading them to misorder the data types by perceived complexity rather than schema rigidity.

Why the other options are wrong

A

Product reviews as JSON documents are semi-structured, not more structured than relational customer records. The order should be from most structured (relational) to least structured (unstructured images), so customer records must come first.

C

Marketing images (unstructured binary files) are the least structured, not the most. Customer records (relational table) are most structured, followed by product reviews (semi-structured JSON), then images (unstructured).

D

Marketing images (PNG) are unstructured binary data, not more structured than JSON product reviews. The correct order is relational (most structured) > JSON (semi-structured) > images (unstructured).

When would these options actually be correct?

A

If the question asked to order from least structured to most structured, then product reviews (semi-structured) would come before customer records (structured), making A correct.

C

If the question asked to order from least structured to most structured, then C (Marketing images, Customer records, Product reviews) would be correct because images are unstructured, customer records are structured, and product reviews are semi-structured.

D

If the question asked to order from least to most structured, then D (Customer records, Marketing images, Product reviews) would be correct because relational tables are most structured, images are unstructured, and JSON is semi-structured.

Why candidates pick the wrong answer

A

Candidates may think JSON is highly structured because it has a schema, but they overlook that relational tables enforce a stricter schema, and images are unstructured.

C

Candidates may mistakenly think that JSON documents are more structured than relational tables due to their schema flexibility, or they may misread the ordering direction.

D

Candidates may mistakenly think images have some structure (e.g., file format) and place them before JSON, or they confuse the order of structured vs. unstructured.

800
MCQmedium

A retail company uses Azure SQL Database to store a large fact table of sales transactions with millions of rows. They run complex aggregate queries (SUM, COUNT, AVG) across many rows for monthly reports. These queries take too long. Which index type should they add to the table to improve performance?

A.Clustered B-tree index
B.Nonclustered rowstore index
C.Clustered columnstore index
D.Nonclustered columnstore index
AnswerC

As the table's primary storage structure, a clustered columnstore index organizes data column-wise, so an aggregation query reads only the needed column segments. This design delivers high compression and batch-mode processing, which drastically reduces I/O and CPU for full-table scans and GROUP BY operations on large fact tables. It is the default recommended indexing strategy for analytical and data warehousing workloads in Azure SQL Database.

Why this answer

Clustered columnstore indexes are optimized for large fact tables and analytical workloads because they store data in a columnar format, which significantly reduces the amount of data read from disk for aggregate queries like SUM, COUNT, and AVG. This index type also uses batch processing and compression to accelerate query performance on millions of rows, making it ideal for monthly reporting queries.

Exam trap

The trap here is that candidates often confuse nonclustered columnstore indexes with clustered columnstore indexes, assuming any columnstore index will suffice, but only the clustered version is designed for large fact tables with heavy aggregation workloads and avoids the overhead of maintaining a separate rowstore index.

Why the other options are wrong

A

A clustered B-tree index organizes data in sorted order, which is efficient for point lookups and range scans but not for large aggregations on many rows. For complex aggregate queries scanning millions of rows, a columnstore index provides much better compression and batch processing, reducing I/O and CPU time.

B

For complex aggregate queries on a large fact table, a nonclustered rowstore index does not provide the columnar storage and batch processing that columnstore indexes offer, so it will not significantly improve performance for SUM, COUNT, AVG across millions of rows.

D

For complex aggregate queries over millions of rows, a clustered columnstore index is optimal. A nonclustered columnstore index would require the base table to have a clustered index, adding overhead, and may not be as efficient for full-table scans needed for aggregates.

When would these options actually be correct?

A

A question where the table is frequently queried for individual row lookups or small range scans (e.g., 'Find the total sales for a specific product on a given date') and the table has high write activity would make a clustered B-tree index the correct choice.

B

A nonclustered rowstore index would be correct when queries involve searching for specific rows (e.g., WHERE clause on indexed columns) or when the table is used for OLTP workloads with many point lookups and updates, not for large-scale aggregations.

D

A question where the table already has a clustered rowstore index (e.g., a primary key) and you need to add a columnstore index for analytics on a subset of columns without restructuring the table. For example: 'You have a large fact table with a clustered index on OrderID. You need to improve performance of aggregate queries on SalesAmount and Quantity columns.

Which index should you add?'

Why candidates pick the wrong answer

A

Candidates may assume that any index improves query performance, and since clustered indexes are common, they might think it's the default best choice without considering the specific workload of large aggregations.

B

Candidates may think any index speeds up queries, and nonclustered indexes are common for covering queries, but they overlook that columnstore indexes are specifically designed for analytics and aggregation workloads.

D

Candidates may think a nonclustered columnstore index is sufficient because it still uses columnar storage, but they overlook that it requires a clustered index on the base table and may not be as performant for full-table scans as a clustered columnstore.

801
MCQeasy

You need to store a collection of JSON documents that contain user profile data. The data is frequently queried by user ID and by email address. The solution must support indexing on multiple fields and provide low-latency queries. Which Azure service should you use?

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

Azure Cosmos DB is a globally distributed, multi-model database service with native support for JSON documents and automatic indexing of every property. Its index engine allows filtering, ordering, and joining on any field without pre-defining schemas or secondary indexes, ensuring low-latency queries even at scale. With tunable consistency levels and a SQL API, it is the ideal choice for a collection of JSON documents that require flexible querying and indexing on multiple fields.

Why this answer

Azure Cosmos DB is a NoSQL database that supports indexing on multiple fields and provides low-latency queries on JSON documents. Option A is wrong because Azure Table Storage is a key-value store with limited indexing (only on partition key and row key). Option B is wrong because Azure Cache for Redis is an in-memory cache, not a durable indexed store.

Option D is wrong because Azure Blob Storage stores unstructured blobs and does not support indexing on document fields.

802
MCQhard

A company uses Azure SQL Database with geo-replication for disaster recovery. During a regional outage, they manually failover to the secondary region. After the primary region is restored, they need to re-establish geo-replication with minimal downtime. What should they do?

A.Initiate a planned failover to switch back to the original region
B.Drop the secondary database and create a new one
C.Delete the geo-replication link and create a new one
D.Manually swap the roles of the primary and secondary
AnswerA

A planned failover is the only supported way to reverse geo-replication roles without data loss. It synchronizes the secondary to the primary's latest committed transaction, then promotes the secondary to primary, and automatically re-establishes the replication link in the opposite direction. This is the correct failback procedure when the original region is healthy, because it preserves transactional consistency and avoids re-seeding.

Why this answer

After a manual failover to the secondary region, the original primary becomes a secondary database. To re-establish geo-replication with minimal downtime, you should initiate a planned failover (also called a graceful failover) to switch back to the original region. This operation reverses the roles without data loss and avoids the need to reseed the database, keeping downtime to seconds.

Exam trap

The trap here is that candidates confuse the initial failover (which may be forced) with the recovery process, assuming they must recreate the geo-replication link or drop the database, when in fact a planned failover cleanly reverses the roles with minimal downtime.

How to eliminate wrong answers

Option B is wrong because dropping the secondary database and creating a new one would require a full data reseed, causing significant downtime and data transfer. Option C is wrong because deleting the geo-replication link and creating a new one would also force a full reseed, which is unnecessary and introduces longer downtime. Option D is wrong because manually swapping roles is not a supported operation; Azure SQL Database uses the ALTER DATABASE ...

FAILOVER command to perform a controlled role swap, not a manual process.

803
MCQhard

A multinational corporation needs to store archival data for 10 years with the lowest possible storage cost, while still being able to retrieve it within 24 hours if needed. Which Azure storage tier should they use?

A.Archive Blob Storage
B.Cool Blob Storage
C.Premium Blob Storage
D.Hot Blob Storage
AnswerA

Archive Blob Storage is the correct choice because it offers the lowest storage cost of any Azure Blob access tier, which aligns with the archival requirement. Data is stored offline without instant access, but the service supports rehydration within up to 15 hours—well within the stated 24-hour retrieval window. The latency is acceptable here because the workload prioritizes cost minimization over immediate availability.

Why this answer

Archive Blob Storage is the correct choice because it is designed for long-term retention of data that is rarely accessed, offering the lowest storage cost among Azure blob tiers. The 10-year retention requirement and 24-hour retrieval window align perfectly with Archive's capabilities, as data can be rehydrated to a hot or cool tier within hours (typically up to 15 hours for standard priority rehydration).

Exam trap

The trap here is that candidates often confuse 'lowest storage cost' with 'lowest overall cost' and overlook the retrieval time constraint, mistakenly choosing Cool Blob Storage because it offers lower cost than Hot but still allows immediate access, ignoring that Archive is even cheaper and meets the 24-hour retrieval window.

How to eliminate wrong answers

Option B (Cool Blob Storage) is wrong because it is optimized for data accessed infrequently but with immediate retrieval needs, not for archival durations of 10 years, and its storage cost is higher than Archive. Option C (Premium Blob Storage) is wrong because it uses SSD-backed storage for low-latency, high-frequency access scenarios, making it the most expensive tier and unsuitable for archival data. Option D (Hot Blob Storage) is wrong because it is designed for data accessed frequently with millisecond latency, incurring the highest storage cost, which contradicts the requirement for lowest possible cost.

804
MCQhard

A logistics company ingests real-time GPS data from delivery vehicles via Azure Event Hubs. The data includes vehicle ID, latitude, longitude, and timestamp. The company also has historical route plan data stored as CSV files in Azure Data Lake Storage Gen2. Data analysts need to combine the live stream with the historical data in near real-time to create a dashboard showing if vehicles are on schedule. They also need to run complex T-SQL queries on the combined dataset for ad-hoc reporting. Which Azure service should they use as the primary analytics platform?

A.A: Azure Stream Analytics
B.B: Azure Data Lake Analytics
C.C: Azure Synapse Analytics
D.D: Azure Analysis Services
AnswerC

Azure Synapse Analytics is the correct choice because it unifies real-time stream ingestion and historical data analytics in one platform. It provides a SQL pool (dedicated or serverless) that runs standard T-SQL queries against both live streaming data (ingested via Event Hubs) and data lake files like Parquet or Delta, enabling ad-hoc reporting on the combined dataset. Synapse also natively integrates with Power BI, so the delivery-fleet dashboard can be built directly from the same query engine. Hence, it satisfies the requirements for real-time dashboards, T-SQL ad-hoc queries, and historical data access without additional services.

Why this answer

Azure Synapse Analytics is the correct choice because it provides a unified analytics platform that can ingest real-time data from Azure Event Hubs via its built-in streaming capabilities (e.g., using Synapse Pipelines or Spark Structured Streaming) and combine it with historical data stored in Azure Data Lake Storage Gen2. It supports complex T-SQL queries through its dedicated SQL pool (formerly SQL Data Warehouse) for ad-hoc reporting, enabling near real-time dashboards and interactive analytics on the combined dataset.

Exam trap

The trap here is that candidates often confuse Azure Stream Analytics as the primary analytics platform because it handles real-time streaming, but they overlook the requirement for complex T-SQL queries and ad-hoc reporting, which Stream Analytics cannot natively support, making Azure Synapse Analytics the correct unified solution.

Why the other options are wrong

A

Azure Stream Analytics is designed for real-time stream processing but lacks the ability to run complex T-SQL queries on combined streaming and historical data for ad-hoc reporting, which is a key requirement.

B

Azure Data Lake Analytics is a batch analytics service that uses U-SQL, not T-SQL, and is not designed for near real-time streaming or interactive T-SQL queries on combined streaming and historical data.

D

Azure Analysis Services is a semantic modeling and OLAP engine, not designed for near real-time streaming or complex T-SQL queries on raw data. It requires pre-processed data and does not directly query Event Hubs or Data Lake Storage.

When would these options actually be correct?

A

A question where the primary requirement is real-time analytics on streaming data only, such as detecting anomalies in IoT sensor data, without needing to combine with historical data or run ad-hoc T-SQL queries.

B

A company needs to run U-SQL queries on massive datasets stored in Azure Data Lake Storage, performing batch transformations and analytics without requiring real-time or interactive T-SQL capabilities.

D

A company needs to create a semantic data model for business users to perform interactive analysis and reporting using tools like Power BI, with data sourced from a pre-built data warehouse. The requirement is for fast, in-memory queries on aggregated data, not raw streaming or ad-hoc T-SQL.

Why candidates pick the wrong answer

A

Candidates see 'real-time GPS data' and 'near real-time' and immediately think of Stream Analytics, overlooking the need for complex T-SQL queries and combined historical data analysis.

B

Candidates may associate Data Lake Analytics with processing data in Azure Data Lake Storage, overlooking the need for T-SQL and near real-time streaming capabilities that Azure Synapse Analytics provides.

D

Candidates may confuse Azure Analysis Services with a general analytics platform due to its name, or think it can handle streaming data because it integrates with Azure services, but it lacks real-time ingestion and direct query capabilities.

805
MCQeasy

You are creating an Azure SQL Database and need to connect using Microsoft Entra ID authentication. Which user type must you create in the database to represent the authenticated Microsoft Entra ID identity?

A.SQL login with password
B.Contained database user mapped to a Microsoft Entra ID identity
C.External user from Microsoft Entra ID
D.Database user without login
AnswerB

A contained database user mapped to a Microsoft Entra ID identity is created with CREATE USER [user] FROM EXTERNAL PROVIDER. This provisions a database-level principal that is directly tied to a user or group in Microsoft Entra ID, enabling authentication with an Entra ID access token. This is the required approach for using Microsoft Entra ID authentication with Azure SQL Database.

Why this answer

To connect to Azure SQL Database using Microsoft Entra ID authentication, you must create a contained database user that is mapped to a Microsoft Entra ID identity (user, group, or service principal). This contained user resides in the database and is authenticated via Entra ID, allowing token-based or integrated authentication without a SQL login. The syntax is CREATE USER [name] FROM EXTERNAL PROVIDER.

Exam trap

DP-900 often tests the confusion between SQL logins and contained database users, tempting candidates to pick 'SQL login with password' because it's the traditional approach.

How to eliminate wrong answers

Option A is wrong because a SQL login with password uses SQL authentication, not Microsoft Entra ID authentication, and is not required for Entra ID access. Option C is wrong because 'External user from Microsoft Entra ID' is not the correct terminology — the correct T-SQL syntax is FROM EXTERNAL PROVIDER, and the user type is a contained database user. Option D is wrong because a database user without login is used for impersonation or application roles, not for representing an Entra ID identity for authentication.

806
MCQhard

A company uses Azure Synapse Analytics dedicated SQL pool to store a large fact table with billions of rows. The table is distributed using hash distribution on the SaleDate column. Queries that join this fact table with a small dimension table (Product) on ProductID are slow because the join requires shuffling data across distributions. Which design change would most improve the performance of these join queries?

A.Change the distribution of the fact table to round-robin.
B.Replicate the Product dimension table to all distributions.
C.Partition the fact table by SaleDate.
D.Create a nonclustered index on ProductID in the fact table.
AnswerB

Replication stores a full copy of the Product dimension table on every distribution in the dedicated SQL pool. When the fact table joins Product on ProductID, each distribution can perform the join locally using its own copy, eliminating all data movement and shuffle across distributions. This is the recommended approach for small-to-medium dimension tables in a star schema and directly resolves the join performance problem described.

Why this answer

Replicating the Product dimension table to all distributions eliminates the need to shuffle data across distributions during the join. In Azure Synapse dedicated SQL pool, hash distribution distributes rows across 60 distributions based on the hash of the distribution column (SaleDate). When joining on ProductID, which is not the distribution column, data must be moved between distributions.

Replicating the small dimension table ensures each distribution has a local copy, allowing the join to be performed without data movement, significantly improving performance.

Exam trap

The trap here is that candidates often confuse partitioning with distribution, thinking partitioning on SaleDate will help the join on ProductID, but partitioning only segments data within a distribution and does not reduce cross-distribution data movement for joins on a different column.

How to eliminate wrong answers

Option A is wrong because changing the distribution to round-robin would distribute data evenly but without any hash alignment, causing even more data movement for all joins, not just this one. Option C is wrong because partitioning by SaleDate organizes data within each distribution but does not reduce data shuffling across distributions for joins on ProductID; partitioning is primarily for partition elimination and maintenance operations. Option D is wrong because a nonclustered index on ProductID within each distribution can speed up local lookups but does not address the cross-distribution data movement required when the join key does not match the distribution key.

807
MCQmedium

A company needs to build a centralized analytics platform that can query both structured data in a relational data warehouse and unstructured data in a data lake using a single SQL-based interface. They want to minimize data movement and use a serverless, on-demand compute model for ad-hoc queries. Which Azure service should they use?

A.A. Azure SQL Database
B.B. Azure Synapse Serverless SQL pool
C.C. Azure HDInsight
D.D. Azure Analysis Services
AnswerB

Azure Synapse Serverless SQL pool is a serverless, on-demand T-SQL query engine built for directly reading data from Azure Data Lake Storage (ADLS Gen2) and Blob Storage. It uses OPENROWSET with AUTO_TYPE detection to query Parquet, CSV, Delta, and JSON files in place, with no data movement and no provisioning — you are billed only for bytes scanned. Its ability to create external tables and metadata over lake files makes it the right fit for a centralized analytics platform that must query the lake with standard SQL.

Why this answer

Azure Synapse Serverless SQL pool is correct because it provides a SQL-based interface to query both structured data in a relational data warehouse and unstructured data in a data lake (e.g., Parquet, CSV, JSON) without moving data. It uses a serverless, on-demand compute model that charges per query, making it ideal for ad-hoc analytics with minimal data movement.

Exam trap

The trap here is that candidates often confuse Azure Synapse Serverless SQL pool with Azure SQL Database or HDInsight, mistakenly thinking a traditional relational database or a managed cluster is needed for querying unstructured data, when the serverless SQL pool is specifically designed for this hybrid, on-demand scenario.

How to eliminate wrong answers

Option A is wrong because Azure SQL Database is a fully managed relational database service for OLTP workloads, not designed to query unstructured data in a data lake or provide a serverless on-demand model for ad-hoc analytics across heterogeneous sources. Option C is wrong because Azure HDInsight is a managed big data analytics service that uses Hadoop, Spark, or Hive, requiring cluster provisioning and management, not a serverless SQL-based interface for ad-hoc queries. Option D is wrong because Azure Analysis Services is an enterprise-grade analytics engine for semantic modeling and OLAP, not a serverless SQL query service for directly querying data lake files without data movement.

808
MCQeasy

A logistics company uses an online system to process incoming delivery requests one at a time, updating the database immediately upon each transaction. They also run a weekly job that analyzes thousands of delivery records to identify average delivery times and trends. Which set of terms correctly classifies these two workloads?

A.OLTP and OLAP
B.Batch processing and real-time processing
C.Relational and non-relational
D.Structured and semi-structured
AnswerA

OLTP and OLAP are the two standard workload categories in data processing. OLTP systems handle high-volume, low-latency transactional operations such as order entry and inventory updates, emphasizing ACID guarantees and row-level integrity. OLAP systems support analytical queries that aggregate and summarize large historical datasets, often using columnar storage and multidimensional schemas for business intelligence. Together they capture the fundamental divide between running day-to-day operations and analyzing those operations afterward.

Why this answer

The first workload processes individual delivery requests with immediate database updates, which is the definition of Online Transaction Processing (OLTP). The second workload runs a weekly job analyzing thousands of records for trends and averages, which is Online Analytical Processing (OLAP). These two terms correctly classify the transactional and analytical workloads described.

Exam trap

The trap here is that candidates confuse the processing mode (batch vs. real-time) with the workload classification (OLTP vs. OLAP), but the question specifically asks for the terms that classify the workloads, not describe their timing.

Why the other options are wrong

B

The question describes two distinct workloads: immediate transaction processing (OLTP) and analytical processing of historical data (OLAP). Option B incorrectly labels these as 'batch processing' and 'real-time processing' — while the weekly job is batch, the transaction system is real-time, but the terms 'batch' and 'real-time' describe processing timing, not the workload categories (OLTP vs OLAP) that the question asks for.

C

The question asks about classifying two workloads (transaction processing and analytical reporting), not about data storage models. 'Relational and non-relational' refers to database types, not workload types.

D

The question asks about classifying two workloads (transaction processing and analytical reporting), not about data formats. 'Structured and semi-structured' refers to data types, not workload types.

When would these options actually be correct?

B

This option would be correct if the question asked: 'A company processes incoming sensor data continuously and also runs a nightly job to aggregate historical data. Which terms describe the processing methods?' In that case, the continuous processing is real-time and the nightly job is batch processing.

C

A question that asks: 'A company stores customer orders in a SQL database and social media posts in a NoSQL database. Which terms describe these two data storage approaches?'

D

This option would be correct in a question like: 'A company stores customer records in a fixed-schema SQL database and also stores JSON logs from web servers. Which terms describe these two data formats?'

Why candidates pick the wrong answer

B

Candidates may confuse the concepts: OLTP is often real-time and OLAP often batch, so they incorrectly equate the pairs. They focus on the timing aspect rather than the fundamental workload classification (transaction vs analysis).

C

Candidates may confuse workload classification with data storage classification, especially if they associate OLTP with relational databases and OLAP with non-relational systems.

D

Candidates may confuse data structure categories (structured vs. semi-structured) with workload categories (OLTP vs. OLAP), especially when the question mentions 'database' and 'records'.

809
MCQeasy

A medical imaging company stores high-resolution MRI scans in Azure Blob Storage. The scans are accessed frequently for the first 6 months after being generated, then rarely after that, but must be available immediately when accessed for comparisons. The company wants to minimize storage costs. Which Azure Blob Storage access tier should they use for scans older than 6 months?

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

Because older MRI scans are rarely accessed but must be instantly retrievable during follow-ups or legal review, the Cool tier is the optimal trade-off. Cool charges lower per-gigabyte storage fees than Hot while preserving zero-latency reads, so you avoid the high cost of Hot without accepting the multi-hour rehydration delay of Archive. This matches the requirement to minimize cost while maintaining immediate availability.

Why this answer

The Cool access tier is ideal for data that is infrequently accessed but must be available immediately when needed. It offers lower storage costs than the Hot tier while maintaining low-latency retrieval, matching the requirement for scans older than 6 months that are rarely accessed but require instant availability.

Exam trap

The trap here is that candidates often confuse 'rarely accessed' with 'Archive tier,' forgetting that Archive requires hours of rehydration time, which fails the 'available immediately' constraint in the question.

Why the other options are wrong

A

The Hot tier is designed for data accessed frequently, but the question states that scans older than 6 months are rarely accessed. Using Hot would incur higher storage costs without benefit, as Cool tier provides lower cost for infrequently accessed data with immediate availability.

C

The Archive tier has the lowest storage cost but requires hours to rehydrate data before access, violating the requirement that scans must be available immediately when accessed.

D

The Premium access tier is designed for low-latency, high-performance scenarios with frequent access, not for minimizing costs on rarely accessed data. It has higher storage costs than Cool or Archive tiers, making it unsuitable for scans older than 6 months that are rarely accessed.

When would these options actually be correct?

A

If the question specified that the MRI scans are accessed frequently throughout their entire lifecycle (e.g., for ongoing treatment planning) and cost minimization is not the primary goal, then Hot tier would be correct to optimize for access performance.

C

A question where data is rarely accessed, immediate availability is not required, and the primary goal is minimizing storage costs above all else—e.g., 'A company stores backup tapes that are accessed only for annual audits and can tolerate a 24-hour retrieval delay.'

D

A question where the requirement is for the lowest possible latency for frequently accessed data, such as real-time medical image retrieval during surgery, and cost is not the primary concern. Premium tier would be correct for high-performance needs.

Why candidates pick the wrong answer

A

Candidates may assume that 'immediate availability' requires Hot tier, overlooking that Cool tier also offers low-latency access. They might also default to Hot as the default tier without considering cost implications for infrequent access.

C

Candidates see 'rarely accessed' and 'minimize storage costs' and assume Archive is the cheapest option, overlooking the critical 'available immediately' constraint.

D

Candidates may mistakenly think 'Premium' implies better cost savings or assume it's the default best tier, overlooking that it's optimized for performance, not cost efficiency for infrequent access.

810
MCQmedium

A company plans to migrate an on-premises SQL Server database to Azure. The database uses SQL Server Agent jobs for scheduled maintenance and relies on linked servers to query data from another SQL Server instance. It also performs cross-database queries within the same instance. The company wants a fully managed PaaS service that requires minimal application changes and provides automated backups and patching. Which Azure SQL service should they choose?

A.A. Azure SQL Database (single database)
B.B. Azure SQL Managed Instance
C.C. SQL Server on Azure Virtual Machines
D.D. Azure SQL Database elastic pool
AnswerB

Azure SQL Managed Instance is the correct PaaS choice because it provides near-complete compatibility with on-premises SQL Server, including SQL Server Agent jobs, linked servers, Service Broker, and cross-database queries. These instance-scoped features are preserved while Azure automatically handles patching, backups, and high availability, making it a fully managed lift-and-shift target with minimal application changes.

Why this answer

Azure SQL Managed Instance is the correct choice because it provides near 100% compatibility with on-premises SQL Server, including support for SQL Server Agent jobs, linked servers, and cross-database queries within the same instance. It is a fully managed PaaS service that offers automated backups and patching, minimizing application changes during migration.

Exam trap

The trap here is that candidates often confuse Azure SQL Database's limited feature set with the full SQL Server engine compatibility of Azure SQL Managed Instance, assuming all PaaS offerings support agent jobs and linked servers when only Managed Instance does.

Why the other options are wrong

A

Azure SQL Database (single database) does not support SQL Server Agent jobs, linked servers, or cross-database queries, which are required by the scenario.

C

SQL Server on Azure VMs is an IaaS solution requiring manual patching, backups, and management of the OS and SQL Server, contradicting the requirement for a fully managed PaaS service with automated backups and patching.

D

Azure SQL Database elastic pool does not support SQL Server Agent jobs, linked servers, or cross-database queries within the same instance, which are required by the company's existing database.

When would these options actually be correct?

A

A company wants a fully managed PaaS database with minimal management overhead, does not need SQL Server Agent jobs or linked servers, and requires only a single database with automated backups and patching.

C

This option would be correct if the company needs full control over the SQL Server environment, requires custom configurations not supported in PaaS (e.g., SQL Server Agent jobs with OS-level dependencies, linked servers to on-premises or non-Azure sources, or cross-database queries that exceed PaaS limitations), or must lift-and-shift existing applications with minimal changes without migrating to a PaaS service.

D

A company needs to manage multiple databases with varying and unpredictable usage patterns, wants to optimize cost by sharing resources among them, and does not require instance-level features like SQL Agent jobs or linked servers.

Why candidates pick the wrong answer

A

Candidates may think Azure SQL Database is the default PaaS option for SQL Server migration, overlooking the specific features like Agent jobs and linked servers that are only available in Azure SQL Managed Instance.

C

Candidates may think that since the on-premises database uses SQL Server Agent jobs and linked servers, a VM provides the most compatibility without realizing that Azure SQL Managed Instance also supports these features as a PaaS service.

D

Candidates may think elastic pools are a fully managed PaaS option that can handle multiple databases, but they overlook the specific instance-level features needed for the migration.

811
MCQmedium

A mobile app stores user preferences in Azure Cosmos DB using the NoSQL API. The app frequently reads a single user's profile by user ID (the partition key). The development team wants the fastest possible read performance globally and is willing to accept that reads might not reflect the latest write immediately. Which consistency level should they choose to minimize read latency?

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

Eventual consistency is the default in Cosmos DB for multi-region writes and offers the lowest latency and highest availability because replicas converge asynchronously without waiting for quorum. For mobile user preferences, the profile is typically read frequently and written occasionally; if a user updates a preference and reads it a moment later, eventual might show the old value briefly, but it will converge quickly. Because user preferences are non-critical and tolerate a brief stale read, eventual provides the optimal balance of performance and cost, making it the correct choice.

Why this answer

Eventual consistency offers the lowest read latency because it allows reads to return data from any replica without waiting for confirmation that the write has been fully replicated. Since the app can tolerate stale reads (i.e., not reflecting the latest write immediately), Eventual consistency eliminates the synchronization overhead required by stronger models, making it the fastest choice for global read performance.

Exam trap

The trap here is that candidates often confuse 'fastest read performance' with 'strongest consistency' and choose Strong or Bounded staleness, not realizing that the question explicitly allows stale reads, making Eventual the optimal choice for minimizing latency.

How to eliminate wrong answers

Option A is wrong because Strong consistency requires all replicas to acknowledge the write before the read is served, which introduces significant latency, especially across global regions. Option B is wrong because Bounded staleness still enforces a maximum lag (time or operations) before reads must reflect the latest write, adding coordination overhead that increases latency compared to Eventual. Option C is wrong because Session consistency guarantees monotonic reads and writes within a single client session, which requires session context tracking and can still introduce latency beyond the minimal possible with Eventual.

812
Multi-Selectmedium

Which THREE are benefits of using a data warehouse in Azure?

Select 3 answers
A.Optimizes query performance for analytical workloads
B.Centralizes data from multiple sources
C.Supports historical trend analysis
D.Stores unstructured data like videos
E.Enables real-time streaming analytics
AnswersA, B, C

In Azure Synapse Analytics, a dedicated SQL pool uses massively parallel processing (MPP) across distributed compute nodes and defaults to columnstore indexes, which compress data and scan only relevant columns for aggregations. This architecture is purpose-built for complex, read-intensive analytical queries over large relational datasets, delivering far faster response times than a traditional transaction-optimized OLTP database.

Why this answer

A data warehouse in Azure (e.g., Azure Synapse Analytics) is optimized for analytical workloads through columnar storage and massively parallel processing (MPP), which significantly improves query performance on large datasets. This architecture is designed for read-heavy, aggregation-based queries typical of business intelligence and reporting, not for transactional or real-time operations.

Exam trap

The trap here is that candidates confuse the capabilities of a data warehouse with those of a data lake or real-time analytics service, assuming a data warehouse can handle any data type or latency requirement, when in fact it is purpose-built for structured, batch-oriented analytical workloads.

813
MCQeasy

You need to store event data from multiple sources in a schema-less format for later analysis. The data arrives as JSON and must be durable and highly available. Which Azure service should you use?

A.Azure Blob Storage
B.Azure SQL Database
C.Azure Event Hubs
D.Azure Data Factory
AnswerA

Azure Blob Storage is the correct option because it is a durable, massively scalable object storage service that can hold event data from any number of sources in its native format, such as JSON, Avro, or CSV, without requiring a predefined schema. It supports schema-on-read, meaning the structure can be inferred or defined later during analysis, and it integrates with Azure Data Lake Gen2 for big data workloads. Storing raw events in Blob Storage also preserves them for long-term retention, auditing, and reprocessing, which is exactly what this scenario requires.

Why this answer

Azure Blob Storage is the correct choice because it natively stores unstructured and schema-less data such as JSON at massive scale, with built-in durability (LRS/GRS/ZRS) and high availability. It is designed for exactly this scenario: ingesting event data from multiple sources in raw format for later analytics via tools like Azure Synapse or Databricks. Blob Storage does not impose a schema, making it ideal for JSON payloads that may vary between sources.

Exam trap

DP-900 often tests the confusion between ingestion services (Event Hubs, IoT Hub) and storage services (Blob Storage) — candidates mistakenly pick Event Hubs because it 'handles events,' but it does not provide durable long-term storage.

How to eliminate wrong answers

Option B is wrong because Azure SQL Database is a relational engine that requires a defined schema and is not suited for schema-less JSON event storage at scale. Option C is wrong because Azure Event Hubs is an ingestion and streaming service, not a durable storage layer — it retains events for a limited time (default 1 day, max 90 days) and is meant to feed consumers, not serve as the system of record. Option D is wrong because Azure Data Factory is an orchestration and data movement service, not a storage service — it cannot itself store the event data.

814
MCQeasy

A company needs to create a relational database in Azure that is compatible with existing SQL Server applications and provides built-in high availability without requiring configuration. Which service should they choose?

A.SQL Server on Azure Virtual Machines
B.Azure Database for MariaDB
C.Azure Cosmos DB
D.Azure SQL Database
AnswerD

Azure SQL Database is a PaaS offering that is built on the SQL Server engine, so it is directly compatible with SQL Server features like T-SQL, stored procedures, and transparent data encryption. It provides built-in high availability with a 99.99% SLA, automated backups, patching, and monitoring, removing the need for manual infrastructure management. This matches the requirement for a relational database in Azure that is both managed and SQL Server-compatible.

Why this answer

Azure SQL Database is a fully managed Platform-as-a-Service (PaaS) relational database that is built on the latest stable version of the Microsoft SQL Server engine, ensuring compatibility with existing SQL Server applications. It provides built-in high availability with a 99.99% SLA through automatic failover groups and zone-redundant configurations, requiring no manual setup or configuration from the user.

Exam trap

The trap here is that candidates often confuse IaaS (SQL Server on VMs) with PaaS (Azure SQL Database) and assume both require manual HA setup, or they mistakenly think MariaDB or Cosmos DB can be used as drop-in replacements for SQL Server applications.

How to eliminate wrong answers

Option A is wrong because SQL Server on Azure Virtual Machines is an Infrastructure-as-a-Service (IaaS) offering that requires manual configuration of SQL Server Always On Availability Groups or failover clustering to achieve high availability, not built-in. Option B is wrong because Azure Database for MariaDB is a fork of MySQL and is not compatible with SQL Server applications, which rely on T-SQL and SQL Server-specific features. Option C is wrong because Azure Cosmos DB is a NoSQL multi-model database service that does not support the relational model or T-SQL, making it incompatible with existing SQL Server applications.

815
MCQhard

Your company runs a global e-commerce platform that generates over 5 TB of clickstream data daily. The data is currently stored as raw CSV files in Azure Blob Storage. The data engineering team needs to transform this data into a star schema for business intelligence reporting. They want to use a serverless, code-first approach where they can write Python or SQL transformations. The transformed data should be stored in a format that optimizes query performance for Power BI. You also need to ensure that the solution can handle variable data volumes without manual scaling. Which Azure service should you use for the transformation?

A.Azure Stream Analytics
B.Azure Databricks
C.Azure Synapse Serverless SQL
D.Azure Data Factory
AnswerB

Azure Databricks is an Apache Spark-based analytics platform that offers collaborative notebooks, autoscaling clusters, and supports Python, Scala, SQL, and R. It allows data engineers to read CSV files from Azure Data Lake Storage or Blob storage, perform complex transformations using DataFrames or SQL, and write results back — exactly the code-first, scalable batch processing required for a global e-commerce workload. Its serverless option removes infrastructure management while providing the flexibility to write custom transformation logic in Python, making it the ideal choice.

Why this answer

Azure Databricks is the correct choice because it provides a serverless, code-first environment where data engineers can write Python or SQL transformations using Apache Spark. It can handle variable data volumes without manual scaling, and it can output transformed data in optimized formats like Parquet, which significantly improves query performance for Power BI. This aligns perfectly with the requirement for a serverless, code-first approach and star schema transformation.

Exam trap

The trap here is that candidates often confuse Azure Data Factory as a transformation service, but it is actually an orchestration tool that requires a separate compute engine (like Databricks or Synapse) to perform the actual data transformations.

How to eliminate wrong answers

Option A is wrong because Azure Stream Analytics is designed for real-time stream processing, not batch transformations of large CSV files in Blob Storage, and it does not support writing Python transformations. Option C is wrong because Azure Synapse Serverless SQL is a SQL-only query engine that cannot execute Python transformations, and it is not a code-first transformation service. Option D is wrong because Azure Data Factory is primarily an orchestration and ETL/ELT pipeline service that uses visual pipelines or code snippets, but it is not designed for writing custom Python or SQL transformations on large datasets; it relies on compute engines like Databricks or Synapse for actual data processing.

816
MCQmedium

A data analyst needs to create a real-time dashboard in Power BI that displays streaming data from Azure Event Hubs. The data must be refreshed every second. Which Power BI feature should they use?

A.Streaming dataset
B.Import mode with scheduled refresh
C.DirectQuery
D.Power BI Dataflows
AnswerA

A streaming dataset pushes data to a Power BI tile in real time without storing it, supporting sub-second refresh from Azure Event Hubs. Import and DirectQuery datasets refresh on schedules or queries, so neither meets the one-second requirement.

Why this answer

A is correct because Power BI's streaming dataset feature is specifically designed to handle real-time data ingestion and visualization with sub-second latency. It supports direct integration with Azure Event Hubs, allowing the dashboard to refresh every second without the need for scheduled refresh or query-based retrieval.

Exam trap

The trap here is that candidates often confuse DirectQuery with real-time capabilities, but DirectQuery is not designed for sub-second streaming updates and relies on query execution latency, whereas streaming datasets use a push-based model for true real-time refresh.

How to eliminate wrong answers

Option B is wrong because Import mode with scheduled refresh can only refresh data at intervals of 30 minutes or more (minimum 30 minutes for shared capacity, 1 minute for Premium), not every second, and it requires data to be stored and reloaded. Option C is wrong because DirectQuery sends queries to the source on each interaction, but it is not optimized for high-frequency streaming updates like every second; it is designed for interactive querying of large datasets, not real-time push-based streaming. Option D is wrong because Power BI Dataflows are used for data preparation and transformation in the cloud, not for real-time streaming ingestion or dashboard refresh at sub-minute intervals.

817
MCQmedium

A ride-sharing application needs to store real-time GPS location updates from drivers and passengers. The data is ingested as key-value pairs where the key is the user ID and the value is a timestamped location. The application requires low-latency reads and writes for millions of concurrent users, and the data model is simple with no need for complex queries or joins. Which Azure NoSQL database API should be used for this workload?

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

The Table API is designed for key-value storage with simple queries by partition key and row key, providing low-latency access at global scale. It is ideal for this type of high-throughput, simple data access pattern.

Why this answer

Azure Cosmos DB Table API is the correct choice because it provides a key-value store with low-latency reads and writes, ideal for high-throughput scenarios like real-time GPS updates. It supports a simple schema-less data model where each item is a key-value pair, and it offers single-millisecond latency at the 99th percentile for both reads and writes, meeting the requirement for millions of concurrent users without complex queries or joins.

Exam trap

The trap here is that candidates often choose the SQL (Core) API because it is the most versatile and well-known, but they overlook that the Table API is specifically optimized for simple key-value workloads with lower latency and cost, as it avoids the overhead of document parsing and indexing for complex queries.

Why the other options are wrong

B

The SQL (Core) API supports complex queries and schema flexibility, but the question specifies a simple key-value data model with no need for complex queries or joins, making the Table API more appropriate due to its simpler key-value interface and lower overhead.

C

The MongoDB API is designed for document-oriented workloads with flexible schemas and complex queries, but the question specifies a simple key-value data model with no need for complex queries or joins. The Table API is more appropriate for such key-value scenarios.

D

The Gremlin API is designed for graph databases to model complex relationships, but this scenario only requires simple key-value storage with no graph traversals or relationships.

When would these options actually be correct?

B

If the application required complex queries (e.g., filtering by location range, aggregations) or needed to store JSON documents with varying schemas, the SQL (Core) API would be correct. For example, a real-time analytics dashboard querying GPS data with filters and projections.

C

A question where the application requires storing JSON documents with nested fields, needs to support ad-hoc queries and indexing on multiple properties, or requires compatibility with existing MongoDB drivers and ecosystems.

D

A question describing a social network application that needs to analyze connections between users, such as finding friends of friends or recommending connections, where graph queries are essential.

Why candidates pick the wrong answer

B

Candidates may assume the SQL (Core) API is the default or most capable option for any workload, overlooking that the Table API is optimized for simple key-value scenarios with lower latency and cost.

C

Candidates may associate MongoDB with high scalability and low latency for real-time data, but overlook that the Table API is optimized for simple key-value access patterns, which matches the described workload better.

D

Candidates may confuse 'real-time location updates' with graph data, thinking that tracking movements between locations requires graph capabilities, but the simple key-value model suffices.

818
Multi-Selecteasy

Which TWO of the following are benefits of using a data lake architecture? (Choose two.)

Select 2 answers
A.ACID transactions for all operations
B.Optimized for high-frequency OLTP workloads
C.Ability to store raw data in its native format
D.Built-in data governance without additional tools
E.Support for structured, semi-structured, and unstructured data
AnswersC, E

A core benefit of a data lake is its ability to ingest data in its original, raw form without requiring pre-defined schemas or transformation. Whether the data is CSV, JSON, Parquet, Avro, images, or video, the data lake stores it exactly as it arrives, preserving granular detail for future analysis. This schema-on-read approach allows data engineers and scientists to define and apply structures when needed, enabling agile exploration and preventing the loss of potentially valuable raw information.

Why this answer

A data lake architecture is designed to store raw data in its native format without requiring schema-on-write transformations. This allows organizations to ingest data as-is from various sources, preserving the original structure and enabling schema-on-read flexibility for analytics.

Exam trap

The trap here is that candidates often confuse data lakes with data warehouses, assuming data lakes enforce ACID transactions and schema-on-write, or they overestimate built-in governance capabilities without realizing additional tools are required.

819
MCQeasy

A data analyst needs to create a report in Power BI that combines sales data from Azure SQL Database and inventory data from Azure Cosmos DB. The report should refresh daily. Which Power BI feature should be used to combine these data sources?

A.Quick Measures
B.Data Analysis Expressions (DAX)
C.Power BI Desktop
D.Power Query
AnswerD

Power Query is Microsoft's data connection and transformation engine that supports hundreds of data sources, including databases, files, and web services. Its query editor allows merging tables (like SQL JOINs) and appending rows (like UNIONs) to combine sources into a single dataset before loading into the data model. This makes it the precise tool for the analyst's requirement to bring multiple data sources together for a report.

Why this answer

Power Query is the data transformation and mashup engine in Power BI that connects to multiple data sources, including Azure SQL Database and Azure Cosmos DB, and combines them into a single model. It supports scheduled refresh so the report can update daily. This is the correct feature for combining disparate sources.

Exam trap

DP-900 often tests the confusion between Power Query (data ingestion/transformation) and DAX (calculations), tricking candidates into choosing DAX for combining sources.

How to eliminate wrong answers

Option A is wrong because Quick Measures are prebuilt DAX calculations for analytics, not data source combination. Option B is wrong because DAX is a formula language for calculations on an existing model, not for ingesting or merging external sources. Option C is wrong because Power BI Desktop is the authoring tool, not a specific feature for combining data sources — the question asks which feature, and Power Query is the relevant one within Desktop.

820
Multi-Selectmedium

Which THREE components are part of a typical modern data warehouse architecture on Azure? (Choose three.)

Select 3 answers
A.Azure Synapse Analytics
B.Power BI
C.Azure Stream Analytics
D.Azure Data Factory
E.Azure Data Lake Storage Gen2
AnswersA, D, E

Azure Synapse Analytics is the analytical serving engine of a modern data warehouse, providing dedicated SQL pools for massive parallel processing and serverless SQL endpoints for on-demand querying. It unifies data warehousing with big data analytics via Apache Spark, making it the place where curated data is structured into tabular models for high-performance relational queries. Without a purpose-built query engine like this, the lake alone cannot deliver fast, consistent relational performance.

Why this answer

Azure Synapse Analytics is a core component of a modern data warehouse architecture on Azure because it provides a unified analytics platform that combines big data and data warehousing capabilities. It enables T-SQL-based querying of both relational and non-relational data, integrating with Azure Data Lake Storage Gen2 for scalable storage and Azure Data Factory for orchestration.

Exam trap

The trap here is that candidates may confuse Power BI as a data warehouse component because it is commonly used with Azure Synapse, but it is a reporting/visualization layer, not part of the core storage, compute, or ingestion architecture.

821
Multi-Selectmedium

A retail company ingests point-of-sale data into Azure Data Lake Storage Gen2, where it lands as CSV files. The analytics team wants to create a curated, query-optimized layer that can be consumed by Power BI and Azure Synapse Analytics. They plan to use Azure Databricks to transform the raw data. Which two capabilities does Azure Databricks provide for this analytics workload? (Choose two.)

Select 2 answers
A.It provides an Apache Spark-based engine that can process large volumes of data in parallel.
B.It includes a collaborative workspace with notebooks that support multiple languages such as Python, Scala, and SQL.
C.It stores data in a proprietary format that cannot be read by other Azure services.
D.It provides a fully managed extract, transform, and load (ETL) service with a drag-and-drop visual interface.
E.It automatically creates a dedicated SQL pool for each notebook session.
AnswersA, B

Azure Databricks is built on Apache Spark, which distributes processing across a cluster. In this scenario, the retail company needs to transform raw CSV files at scale, and Spark's in-memory, parallel execution handles large datasets efficiently. This makes it suitable for the transformation step before the curated layer is consumed by Power BI or Synapse.

Why this answer

Azure Databricks is a first-party Azure service built on Apache Spark, offering a collaborative notebook-based workspace and a distributed processing engine. For the retail company, these two capabilities directly support transforming raw CSV data into a curated, query-optimized layer. The other options describe features of different services or incorrect limitations, so they do not apply here.

Exam trap

The trap here is confusing Azure Databricks with Azure Data Factory or Synapse dedicated SQL pools, which provide visual ETL or provisioned SQL warehouses rather than Spark-based notebooks.

822
MCQhard

A company ingests streaming data from IoT devices into Azure Event Hubs. They need to perform real-time analytics on the data, such as aggregating temperature readings over 5-minute windows and triggering alerts when thresholds are exceeded. They also want to store the processed data in a data warehouse for historical analysis. Which Azure service should they use for the real-time processing?

A.Azure Data Factory
B.Azure Stream Analytics
C.Azure Databricks
D.Azure Logic Apps
AnswerB

Azure Stream Analytics is a fully managed real-time analytics service designed specifically for stream processing. It ingests high-throughput data from sources like IoT Hub or Event Hubs, applies SQL-like queries with built-in windowing functions (tumbling, hopping, sliding, session), and can perform aggregations, filtering, and alerting with sub-second latency. Its output sinks include Azure Data Lake, Synapse Analytics, and Power BI, making it the ideal choice for real-time IoT telemetry processing without managing infrastructure.

Why this answer

Azure Stream Analytics is purpose-built for real-time stream processing, allowing you to define SQL-like queries that aggregate data over tumbling or hopping windows (e.g., 5-minute windows) and trigger alerts based on thresholds. It integrates directly with Azure Event Hubs as a source and can output processed results to Azure Synapse Analytics or other data warehouses for historical storage, making it the correct choice for this real-time analytics workload.

Exam trap

The trap here is that candidates often confuse Azure Stream Analytics with Azure Databricks, thinking that any Spark-based service is required for streaming, but Stream Analytics is the simpler, fully managed service specifically designed for real-time analytics on Azure Event Hubs without needing to manage clusters or write complex code.

Why the other options are wrong

A

Azure Data Factory is an ETL and data orchestration service, not designed for real-time stream processing. It cannot perform windowed aggregations or trigger alerts on streaming data from Event Hubs.

C

Azure Databricks is a big data analytics platform that can process streaming data, but it is overkill for simple real-time aggregations and alerts on IoT data. The question specifically asks for a service to perform real-time analytics like windowed aggregations and threshold alerts, which is exactly what Azure Stream Analytics is designed for with its SQL-like language and built-in windowing functions.

D

Azure Logic Apps is designed for workflow automation and integration, not for real-time stream processing with windowed aggregations and alerts on streaming data from Event Hubs.

When would these options actually be correct?

A

A question asks: 'Which Azure service should be used to orchestrate and schedule data movement from on-premises SQL Server to Azure Blob Storage on a nightly basis?' In that scenario, Azure Data Factory is the correct answer.

C

Azure Databricks would be the correct answer if the question required complex machine learning model inference on streaming data, or if the processing needed custom transformations using Python/Scala/R that go beyond what Stream Analytics can handle. For example: 'A company needs to run a pre-trained anomaly detection model on streaming IoT data in real-time, and also perform custom feature engineering using Python libraries.'

D

A question asking for a service to orchestrate a business process that reacts to events from Event Hubs, such as sending an email or creating a ticket when a threshold is exceeded, without needing complex analytics or windowed aggregations.

Why candidates pick the wrong answer

A

Candidates may confuse Data Factory's data movement capabilities with real-time processing, or think it can handle streaming data because it integrates with various sources.

C

Candidates may choose Azure Databricks because they associate it with 'real-time' and 'analytics' due to its Spark Structured Streaming capabilities, and they might overestimate the complexity of the required processing, thinking that a full Spark environment is needed for any streaming task.

D

Candidates may confuse Logic Apps' ability to trigger on events with the need for real-time analytics, overlooking that Logic Apps lacks native stream processing capabilities like tumbling windows and built-in analytics functions.

823
MCQeasy

A startup wants to build a new web application with a relational database. They expect variable traffic and want to minimize costs by paying only for the compute resources they use. Which Azure SQL Database deployment option should they choose?

A.Provisioned compute tier
B.Elastic pool
C.SQL Server on Azure Virtual Machines
D.Serverless compute tier
AnswerD

In the serverless compute tier of Azure SQL Database, compute capacity automatically scales between a configurable minimum and maximum vCore range and can pause the database entirely after a user-defined period of inactivity. While running, billing is per second for the vCores actually consumed, and while paused no compute charges accrue, although storage and backups continue to incur cost. That makes it the best choice for startup traffic patterns, because an idle database can stop incurring compute costs and resume automatically when a request arrives.

Why this answer

The Serverless compute tier for Azure SQL Database automatically pauses the database during periods of inactivity and resumes it when traffic returns, charging only for the compute resources consumed. This makes it ideal for a startup with variable traffic that wants to minimize costs by paying only for what they use.

Exam trap

The trap here is that candidates often confuse the Serverless compute tier with the Provisioned tier or Elastic pools, mistakenly thinking that Elastic pools offer the same pay-per-use model, when in fact only the Serverless tier provides automatic pausing and billing strictly for compute consumed.

How to eliminate wrong answers

Option A is wrong because the Provisioned compute tier allocates a fixed amount of compute resources (DTUs or vCores) that are billed continuously, regardless of actual usage, which does not minimize costs for variable traffic. Option B is wrong because Elastic pools are designed to share resources among multiple databases with predictable, aggregated usage patterns, not for a single database with highly variable traffic, and they still incur baseline compute costs. Option C is wrong because SQL Server on Azure Virtual Machines requires paying for the underlying VM compute resources 24/7, even when the database is idle, and involves additional management overhead, making it more expensive and less cost-efficient for variable workloads.

824
MCQhard

A gaming application requires a high-performance leaderboard that stores player scores and retrieves the top 10 scores quickly. The data does not require complex queries or a fixed schema. The leaderboard must support updates as new scores are submitted. Which Azure data store is most appropriate for this scenario?

A.Azure Cosmos DB with SQL API
B.Azure Table storage
C.Azure Cache for Redis
D.Azure Blob Storage
AnswerC

Azure Cache for Redis is the correct choice because Redis natively supports sorted sets, a data structure perfect for leaderboards. Commands like ZADD and ZINCRBY update scores in O(log N) time, and ZREVRANGE retrieves the top scores in O(log N+M), all while data is held in RAM for sub-millisecond latency. This purpose-built in-memory design handles thousands of concurrent player updates and queries per second, making it the standard solution for real-time gaming leaderboards. Although Redis persistence is optional and typically not the primary concern, it can be configured to maintain data across restarts if needed.

Why this answer

Azure Cache for Redis is the most appropriate choice because it provides an in-memory data structure store with native support for sorted sets (via the ZADD and ZRANGE commands), which are ideal for maintaining a real-time leaderboard. It can handle high-throughput score updates and retrieve the top 10 scores in O(log(N)) time, meeting the low-latency and performance requirements without needing a fixed schema.

Exam trap

The trap here is that candidates often choose Azure Cosmos DB (Option A) because they associate it with high performance and NoSQL, but they overlook that Azure Cache for Redis is purpose-built for in-memory, sub-millisecond operations like sorted sets, which are exactly what a leaderboard requires.

How to eliminate wrong answers

Option A is wrong because Azure Cosmos DB with SQL API, while fast, is a fully managed NoSQL database that incurs higher latency and cost for simple leaderboard operations compared to an in-memory cache, and it requires provisioning throughput (RU/s) even for simple sorted set operations. Option B is wrong because Azure Table storage is a key-value store that does not support sorted sets or built-in ranking operations; retrieving the top 10 scores would require scanning all entities and sorting client-side, which is inefficient and slow. Option D is wrong because Azure Blob Storage is designed for unstructured large object storage (blobs) and does not support atomic score updates or real-time querying of individual scores; it would require downloading and rewriting entire files for each update, making it unsuitable for a high-performance leaderboard.

825
MCQmedium

A company stores large video files in Azure Blob Storage. The files are accessed frequently for the first 30 days after upload, then rarely for the next 180 days, and after that they are only needed for compliance but never accessed. The company wants to minimize storage costs while ensuring the files remain durable and accessible. Which strategy should they implement?

A.Store all files in the Cool access tier and apply lifecycle management to move files to the Archive tier after 30 days.
B.Store files initially in the Hot tier, then use lifecycle management to move files to Cool after 30 days and to Archive after 210 days.
C.Store files in the Archive tier from the beginning to maximize cost savings.
D.Store files in the Premium tier for fast access, then manually delete files after 30 days.
AnswerB

The Hot tier optimizes the initial 30 days when end users actively upload and retrieve video files; its storage cost is higher but it has no retrieval penalty, making frequent data movement inexpensive. A lifecycle management policy then automatically transitions each blob to Cool after 30 days because Cool reduces storage charges for the 180-day period of rare access, despite a small per-GB retrieval cost. After 210 days, the policy moves the blob to Archive, which provides the lowest storage cost for the compliance period when files are never accessed but must be retained. This staged approach exactly aligns costs with the actual access pattern while avoiding manual intervention and the risk of premature transitions.

Why this answer

It aligns the access patterns with the appropriate Azure Blob Storage access tiers: Hot for frequent initial access, Cool for reduced-cost infrequent access after 30 days, and Archive for the lowest-cost long-term retention after 210 days. Azure lifecycle management policies automate these transitions, ensuring durability and accessibility while minimizing costs.

Exam trap

The trap here is that candidates often assume the Cool tier is the cheapest option for long-term storage, overlooking the Archive tier's significantly lower cost for compliance data that is never accessed, and they may also forget that lifecycle management can automate multiple tier transitions over time.

How to eliminate wrong answers

Option A is wrong because storing files in the Cool tier from the start incurs higher early-access costs and a 30-day early deletion penalty, and moving to Archive after only 30 days ignores the 180-day period of rare access where Cool is more cost-effective than Archive. Option C is wrong because storing files in the Archive tier from the beginning makes them inaccessible for immediate frequent access (Archive requires rehydration, which can take hours) and violates the requirement for frequent access in the first 30 days. Option D is wrong because the Premium tier is designed for low-latency, high-transaction workloads (e.g., Azure Virtual Desktop) and is significantly more expensive than Hot or Cool; manually deleting files after 30 days loses the 180-day rare-access period and incurs unnecessary costs.

Page 10

Page 11 of 12

Page 12