Courseiva

Microsoft Azure Data Fundamentals DP-900 (DP-900) — Questions 301–375

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

Page 4

Page 5 of 12

Page 6
301
MCQhard

A healthcare organization stores patient records in Azure SQL Database. To comply with HIPAA, they need to encrypt sensitive columns like Social Security Numbers (SSNs) at rest and ensure that only authorized users can decrypt them. Which feature should they implement?

A.Always Encrypted
B.Transparent Data Encryption (TDE)
C.Dynamic Data Masking
D.Row-Level Security
AnswerA

Always Encrypted encrypts individual columns such as SSNs at rest and keeps the keys outside the database engine, so only clients holding the column master key can decrypt them. This satisfies HIPAA's requirement that only authorised users access sensitive data.

Why this answer

Always Encrypted (A) is correct because it encrypts sensitive columns such as SSNs at rest and keeps the encryption keys outside the database, so only clients with access to the column master key can decrypt the data. This satisfies HIPAA's requirement for column-level protection and strict control over who can decrypt values. TDE (B) encrypts the entire database at rest but does not provide column-level encryption or restrict decryption to specific authorized users.

Dynamic Data Masking (C) only obfuscates data in query results and does not encrypt stored values, and Row-Level Security (D) filters rows by user context rather than encrypting columns.

302
MCQmedium

A company runs a customer-facing web application that uses an Azure SQL Database. The database experiences highly variable workloads: high traffic during business hours and low traffic at night and on weekends. The company wants to pay only for the compute resources consumed and automatically scale compute capacity based on demand, while maintaining the ability to pause during inactivity. Which Azure SQL Database service tier should they choose?

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

The Serverless compute tier for Azure SQL Database dynamically scales compute resources between a minimum and maximum vCore range and automatically pauses an idle database—typically after one hour of inactivity—while billing only for the vCores consumed per second. This model is ideal for intermittent, variable workloads where demand fluctuates unpredictably, as it eliminates the cost of maintaining idle capacity. Unlike the other provisioned tiers, it does not charge for compute when paused, only for storage.

Why this answer

The Serverless tier is designed for workloads with variable traffic and idle periods, as it automatically scales compute resources based on demand and can pause the database during inactivity, charging only for consumed compute and storage. This matches the requirement to pay only for resources used and to pause when there is no traffic, such as at night and weekends.

Exam trap

The trap here is that candidates may confuse the Serverless tier's auto-scaling and pausing with the Hyperscale tier's storage scalability, but Hyperscale does not support compute pausing and is designed for continuous high-throughput workloads, not variable demand with idle periods.

Why the other options are wrong

A

Hyperscale is designed for very large databases (up to 100 TB) and high throughput, not for variable workloads with auto-pause and pay-per-use compute. It does not support the serverless compute model that pauses during inactivity.

C

Provisioned (General Purpose) does not support automatic scaling based on demand or the ability to pause during inactivity; it requires manual scaling and always runs, incurring costs even when idle.

D

Business Critical is designed for low-latency, high-availability workloads with provisioned compute, not for auto-scaling or pausing based on demand. It does not support the serverless compute model that automatically scales and pauses during inactivity.

When would these options actually be correct?

A

A company has a database exceeding 4 TB, requires fast scaling for high concurrency workloads, and needs read scale-out with multiple readable replicas. Hyperscale would be correct for such large-scale, high-performance requirements.

C

A company needs predictable performance for a production database with consistent workloads, requires manual scaling control, and does not need the ability to pause; they want a balance of compute and storage at a lower cost than Business Critical.

D

A question where the requirements include the highest resilience to failures, fast failover, and minimal performance impact during maintenance, such as a mission-critical OLTP application with strict SLA requirements for availability and latency.

Why candidates pick the wrong answer

A

Candidates may confuse Hyperscale's auto-scaling capabilities with serverless compute, or think that 'Hyperscale' implies automatic scaling for variable workloads, but it lacks the pause and per-second billing features.

C

Candidates may confuse 'General Purpose' with a general-purpose solution for variable workloads, not realizing it lacks serverless features like auto-scaling and auto-pause.

D

Candidates may associate 'Business Critical' with any production workload and overlook that it lacks the serverless auto-scaling and pause features, focusing instead on its high performance and availability guarantees.

303
MCQmedium

A company runs an e-commerce application on Azure SQL Database. The Orders table has millions of rows. Queries that filter on CustomerID and order by OrderDate DESC are slow. The table currently has a clustered index on OrderID (the primary key). Which indexing strategy will most improve performance for these queries?

A.Create a nonclustered index on CustomerID including OrderDate.
B.Create a nonclustered index on (CustomerID, OrderDate DESC) with included columns for other needed columns.
C.Rebuild the clustered index to be on CustomerID.
D.Create a nonclustered index on OrderDate.
AnswerB

This is the correct design because it creates a covering, composite index whose leftmost key column matches the equality filter on CustomerID, while the second key column OrderDate is flagged DESC to match the ORDER BY direction. The query optimizer can perform an index seek on CustomerID and then read rows from the index in exactly the required sort order, eliminating the sort operator entirely. By including any additional columns referenced in the SELECT list, the index becomes covering, avoiding expensive lookups back to the clustered index.

Why this answer

Creating a nonclustered index on (CustomerID, OrderDate DESC) with included columns allows the query to filter on CustomerID and sort by OrderDate in descending order using a single index seek, avoiding a sort operation. This leverages the index's key order to directly return rows in the desired order, which is critical for performance on large tables in Azure SQL Database.

Exam trap

The trap here is that candidates often think including a column in an index (as an included column) is sufficient for sorting, but only key columns determine the physical order of rows in the index, so a nonclustered index with OrderDate as an included column cannot eliminate the need for a sort operation.

How to eliminate wrong answers

Option A is wrong because including OrderDate as an included column does not make it part of the index key, so the index cannot provide sorted output for OrderDate DESC; the database would still need to perform a sort after filtering on CustomerID. Option C is wrong because rebuilding the clustered index on CustomerID would force the table to be physically ordered by CustomerID, which may help filtering but would not efficiently support ordering by OrderDate DESC, and it could degrade other queries that rely on the primary key OrderID. Option D is wrong because a nonclustered index on OrderDate alone does not support filtering on CustomerID, requiring a full scan or key lookup for each row, which is inefficient for millions of rows.

304
MCQmedium

A logistics company needs to analyze GPS data from delivery trucks in real time to detect delays and reroute deliveries. The GPS data is streamed into Azure Event Hubs. They also need to combine this live data with static route information stored in Azure SQL Database. Which Azure service should they use for the real-time processing?

A.Azure Data Factory
B.Azure Stream Analytics
C.Azure Analysis Services
D.Azure Synapse Pipelines
AnswerB

Azure Stream Analytics is a fully managed real-time analytics engine that executes SQL-like queries directly on streaming data from sources such as Azure Event Hubs, IoT Hub, or Blob storage. It can join live GPS event streams with reference data stored in Azure SQL Database to enrich delivery routes, and it supports windowing functions to detect patterns like delivery delays or geo-fence crossings. Its low-latency, continuous processing model makes it the appropriate service for analyzing GPS telemetry in motion, with outputs sent to Power BI, downstream alerts, or storage.

Why this answer

Azure Stream Analytics is the correct choice because it is designed for real-time stream processing, capable of ingesting data from Azure Event Hubs, applying SQL-like queries to detect delays, and joining live streams with static reference data from Azure SQL Database. This enables the logistics company to analyze GPS data as it arrives and trigger rerouting actions with minimal latency.

Exam trap

The trap here is that candidates often confuse Azure Stream Analytics with Azure Data Factory or Synapse Pipelines, mistakenly thinking that any data integration or pipeline service can handle real-time streaming, when in fact those services are batch-oriented and lack the low-latency stream processing engine required for live GPS analysis.

How to eliminate wrong answers

Option A is wrong because Azure Data Factory is a cloud-based ETL and data orchestration service for batch data movement and transformation, not for real-time stream processing. Option C is wrong because Azure Analysis Services is an analytical engine for building semantic models and performing OLAP queries on historical data, not for processing live streaming data. Option D is wrong because Azure Synapse Pipelines (part of Azure Synapse Analytics) are primarily used for orchestrating batch data integration and ETL workflows, not for real-time stream analytics.

305
MCQmedium

A manufacturing company uses IoT sensors to collect temperature and vibration data from machinery. They need to analyze the streaming data in real time to detect anomalies and trigger alerts. Additionally, they need to run complex historical queries on months of sensor data to identify equipment failure patterns. They want a single Azure service that can handle both real-time stream processing and large-scale batch analytics using a unified query language, minimizing the need for separate technologies. Which Azure service should they use?

A.Azure Stream Analytics
B.Azure Data Lake Storage Gen2
C.Azure Synapse Analytics
D.Azure HDInsight
AnswerC

Azure Synapse Analytics is a unified analytics platform that supports both real-time stream processing (via pipelines and Spark streaming) and batch analytics with T-SQL and Apache Spark, all within a single service. It provides a unified query language and minimizes architecture complexity.

Why this answer

Azure Synapse Analytics is the correct choice because it provides a unified platform that combines both real-time stream processing (via Synapse Pipelines and Spark Streaming) and large-scale batch analytics (via Synapse SQL and Spark) using a single query language (T-SQL or Spark SQL). This eliminates the need for separate technologies, directly addressing the requirement for a single service to handle both streaming and historical batch analysis.

Exam trap

The trap here is that candidates often confuse Azure Stream Analytics as a one-stop solution for both streaming and batch, overlooking its lack of native batch analytics capabilities, while Azure Synapse Analytics is designed specifically to unify these workloads.

Why the other options are wrong

A

Azure Stream Analytics is designed for real-time stream processing but lacks native support for complex historical batch queries and a unified query language for both streaming and batch analytics, requiring separate technologies for batch processing.

B

Azure Data Lake Storage Gen2 is a storage service, not a real-time stream processing or batch analytics engine. It cannot analyze streaming data or run complex queries directly; it only stores data for later processing by other services.

D

Azure HDInsight requires separate cluster configurations for real-time (e.g., Spark Streaming) and batch (e.g., Spark SQL) processing, and does not offer a unified query language across both paradigms. The question emphasizes a single service with a unified query language, which HDInsight does not provide out-of-the-box.

When would these options actually be correct?

A

A question that asks for a service to perform real-time analytics on streaming data (e.g., from IoT devices) and output results to a dashboard or alert system, without requiring batch analytics or a unified query language for both stream and batch.

B

A company needs a scalable, cost-effective data lake for storing petabytes of structured and unstructured data from various sources, with hierarchical namespace support for fine-grained access control, and plans to use separate analytics services like Azure Synapse or Databricks for processing.

D

A company needs to process large-scale batch and interactive queries on historical data using open-source frameworks like Hadoop, Spark, or Hive, and is willing to manage separate clusters for streaming and batch. They prioritize flexibility and custom cluster configurations over a unified query language.

Why candidates pick the wrong answer

A

Candidates may choose Stream Analytics because it is a well-known Azure service for real-time stream processing, and they might overlook the requirement for unified batch and streaming analytics, assuming Stream Analytics can handle both.

B

Candidates may confuse Data Lake Storage with analytics services because it is often used in big data architectures, and the term 'analytics' in the question might lead them to think storage is sufficient for analysis.

D

Candidates may associate HDInsight with big data analytics and streaming via Spark Streaming, overlooking that it lacks a single unified query language and requires separate cluster setups for real-time and batch workloads.

306
MCQhard

You are implementing a data pipeline that ingests millions of events per second from IoT devices. The pipeline must tolerate failures and guarantee exactly-once processing. Which Azure service should you use to ingest the events?

A.Azure IoT Hub
B.Azure Event Hubs
C.Azure Service Bus
D.Azure Queue Storage
AnswerB

Azure Event Hubs is a fully managed event streaming platform built for high-throughput telemetry, capable of ingesting millions of events per second across partitioned consumer groups. It supports checkpointing to track processing progress, allowing at-least-once delivery that, when combined with idempotent consumers, enables effectively exactly-once processing. Its design as a distributed log with sequential writes and parallel reads makes it the right choice for massive ingestion workloads.

Why this answer

Azure Event Hubs is the correct choice because it is a big data streaming platform and event ingestion service designed for high-throughput scenarios, capable of ingesting millions of events per second. It supports exactly-once processing through checkpointing and partition-based offset management, and its built-in replication and availability zones provide fault tolerance.

Exam trap

The trap here is that candidates confuse Azure IoT Hub with Event Hubs because both handle IoT data, but IoT Hub is for device management and control, not for high-throughput event ingestion with exactly-once guarantees.

How to eliminate wrong answers

Option A is wrong because Azure IoT Hub is optimized for device management and bi-directional communication with IoT devices, not for high-throughput event ingestion at millions of events per second; it has lower throughput limits and is not designed for exactly-once processing at that scale. Option C is wrong because Azure Service Bus is a message broker for enterprise messaging with features like topics and queues, but it is not built for high-throughput event streaming and has lower throughput ceilings, making it unsuitable for millions of events per second. Option D is wrong because Azure Queue Storage is a simple message queue for decoupling application components with at-least-once delivery semantics and limited throughput, not supporting exactly-once processing or the high ingestion rates required.

307
MCQmedium

Refer to the exhibit. A data engineer needs to query the orders.csv file using Azure Synapse Serverless SQL. What is the most efficient way to access this data?

A.Use PolyBase to create external table
B.Use OPENROWSET in Serverless SQL
C.Copy data to Azure SQL Database using ADF
D.Load data into a dedicated SQL pool
AnswerB

OPENROWSET is a T-SQL function available in the built-in serverless SQL endpoint that reads files directly from Azure Data Lake or Blob storage without loading them into a database. You can query CSV, Parquet, JSON, and Delta Lake files by specifying a path and optional WITH clause for schema; the engine processes only the requested data and you pay only for the data scanned. This is the optimal choice for an ad-hoc query because no compute pool, external table, or pipeline must be provisioned beforehand.

Why this answer

Azure Synapse Serverless SQL is designed for on-demand querying of data stored in data lakes without provisioning storage. The OPENROWSET function with the BULK option allows direct querying of CSV files using T-SQL, making it the most efficient method for ad-hoc analysis of the orders.csv file without data movement or schema management.

Exam trap

The trap here is that candidates often confuse PolyBase (which is for dedicated SQL pools) with Serverless SQL's OPENROWSET, or assume that data must be moved to a database before querying, missing the serverless paradigm of query-in-place.

How to eliminate wrong answers

Option A is wrong because PolyBase is used to create external tables in dedicated SQL pools, not in Serverless SQL, and requires defining external data sources and file formats, adding unnecessary overhead for a simple query. Option C is wrong because copying data to Azure SQL Database using ADF involves data movement and additional costs, which is inefficient for a one-time or ad-hoc query. Option D is wrong because loading data into a dedicated SQL pool requires provisioning and managing a dedicated resource, which is overkill and costly for querying a single CSV file.

308
MCQmedium

A company wants to build a modern data warehouse using a lakehouse architecture. They need to store raw data in its native format (e.g., CSV, JSON, Parquet) and also support BI reporting on curated, transformed data. They want to use a single storage layer for both raw and curated data. Which Azure service should they use as the core storage layer?

A.Azure SQL Database
B.Azure Synapse Analytics
C.Azure Data Lake Storage Gen2
D.Azure Cosmos DB
AnswerC

Azure Data Lake Storage Gen2 combines a hierarchical namespace with scalable object storage, enabling it to hold both raw ingest and curated, analytics-ready data in any format (Parquet, Delta, CSV, etc.). This dual role as a unified storage layer makes it the foundational component of a lakehouse architecture, where the same files can serve BI, data science, and machine learning workloads. Its integration with Azure Synapse, Databricks, and Power BI further cements it as the correct answer for building a modern data warehouse on a lakehouse.

Why this answer

Azure Data Lake Storage Gen2 (ADLS Gen2) is the correct choice because it provides a single, unified storage layer that can store raw data in its native format (CSV, JSON, Parquet) in a hierarchical namespace, while also serving as the foundation for curated, transformed data used in BI reporting. It combines the scalability and cost-effectiveness of Azure Blob Storage with the file system semantics and ACLs needed for analytics workloads, making it the ideal core storage layer for a lakehouse architecture.

Exam trap

The trap here is that candidates confuse Azure Synapse Analytics (a compute/query service) with a storage layer, when the question explicitly asks for the 'core storage layer' that holds both raw and curated data, which is ADLS Gen2.

Why the other options are wrong

A

Azure SQL Database is a relational database service for structured, transactional data, not designed for storing raw data in native formats like CSV, JSON, or Parquet, nor for supporting a lakehouse architecture with a unified storage layer for raw and curated data.

B

Azure Synapse Analytics is a unified analytics service that includes dedicated SQL pools and serverless SQL, but it is not a storage layer; it relies on Azure Data Lake Storage Gen2 for storage. The question asks for the core storage layer, not the compute/analytics service.

D

Azure Cosmos DB is a NoSQL database optimized for low-latency, globally distributed transactional workloads, not for storing raw files in native formats or supporting a lakehouse architecture with a single storage layer for raw and curated data.

When would these options actually be correct?

A

A company needs to migrate an on-premises SQL Server database to Azure with minimal changes, requiring a fully managed relational database that supports existing T-SQL queries, stored procedures, and high availability. The correct answer would be Azure SQL Database.

B

A company wants to run large-scale analytics and data warehousing workloads with T-SQL queries on structured and semi-structured data, and needs integrated data integration, big data analytics, and BI capabilities. In that case, Azure Synapse Analytics would be the correct answer as the analytics platform.

D

A question asking for a globally distributed, multi-model database service to handle high-throughput, low-latency transactions for a real-time application (e.g., IoT telemetry, e-commerce cart) where schema flexibility and horizontal scaling are critical.

Why candidates pick the wrong answer

A

Candidates may associate Azure SQL Database with data warehousing and BI reporting due to its support for analytical queries and integration with Power BI, overlooking that it is not designed for storing raw, multi-format files as a data lake.

B

Candidates may confuse Synapse Analytics as a storage layer because it is often used in lakehouse architectures and can directly query data in ADLS Gen2, leading them to think it replaces storage.

D

Candidates may confuse Cosmos DB's support for multiple data models (document, key-value, graph) with the ability to store raw files, or think its flexibility fits a lakehouse scenario without understanding the fundamental difference between a database and a data lake.

309
MCQeasy

A healthcare organization stores patient records in a relational database table with fixed columns for PatientID, Name, and DateOfBirth. Additionally, they store clinical notes as free-form text files for each patient visit. Which statement correctly classifies these data types?

A.Both patient records and clinical notes are examples of unstructured data.
B.Patient records are structured data, and clinical notes are unstructured data.
C.Both patient records and clinical notes are examples of structured data.
D.Patient records are unstructured data, and clinical notes are semi-structured data.
AnswerB

Patient records are structured because the relational model imposes a predetermined schema: each row is a record, each column is an attribute with a defined data type, and relationships are enforced via keys. Clinical notes are unstructured because they are free-form natural language—physicians type observations, diagnoses, and treatment plans with no fixed length, order, or columnar organization. This distinction is fundamental to choosing appropriate storage and analytics tools.

Why this answer

Patient records stored in a relational database table with fixed columns (PatientID, Name, DateOfBirth) conform to a predefined schema, making them structured data. Clinical notes stored as free-form text files lack a fixed schema or organization, which classifies them as unstructured data. Option B correctly identifies this distinction.

Exam trap

The trap here is that candidates confuse 'free-form text' with semi-structured data (e.g., JSON or XML), but semi-structured data has tags or key-value pairs, whereas free-form text has no inherent structure at all.

Why the other options are wrong

A

Patient records with fixed columns (PatientID, Name, DateOfBirth) are structured data, not unstructured. Clinical notes as free-form text files are unstructured, but the option incorrectly classifies both as unstructured.

C

Clinical notes are free-form text files without a predefined schema, making them unstructured data, not structured.

D

Patient records with fixed columns (PatientID, Name, DateOfBirth) are structured data, not unstructured. Clinical notes as free-form text are unstructured, not semi-structured.

When would these options actually be correct?

A

This option would be correct if the question described both patient records and clinical notes as free-form text files or images, with no fixed schema or column structure, such as storing all patient information in narrative text documents.

C

If the question described both patient records and clinical notes as being stored in a relational database with fixed columns (e.g., clinical notes stored as a VARCHAR column with a defined format), then both would be structured data.

D

If the question described patient records as free-form text documents (e.g., scanned PDFs) and clinical notes as JSON files with tags (e.g., diagnosis codes), then patient records would be unstructured and clinical notes semi-structured.

Why candidates pick the wrong answer

A

Candidates may confuse 'unstructured' with 'non-numeric' or think that any data containing text (like clinical notes) makes the entire dataset unstructured, overlooking the structured nature of the relational table.

C

Candidates may think that because both are stored in a database, they are structured, failing to recognize that free-form text files are unstructured regardless of storage location.

D

Candidates may confuse 'unstructured' with 'not numeric' or think that any text is unstructured, and they may overestimate the structure of free-form notes by imagining metadata or formatting.

310
MCQeasy

A company processes sales transactions in real-time from a retail website. Each transaction is recorded as a row in a relational database. Additionally, the company stores weekly sales reports as PDF files. Which statement correctly describes these data types?

A.Transactions are unstructured, reports are semi-structured.
B.Transactions are structured, reports are unstructured.
C.Both are structured because they are files.
D.Both are unstructured because they are digital.
AnswerB

Transaction rows fit a predefined relational schema with typed columns, making them structured data. PDF sales reports have no fixed schema and are stored as whole documents, making them unstructured. This distinction matches the stem's split between relational transaction records and PDF files.

Why this answer

Transactions are structured because they are stored as rows in a relational database, which imposes a fixed schema with defined columns and data types. Weekly sales reports as PDF files are unstructured because they lack a predefined data model and cannot be easily queried using SQL without additional processing. Option B correctly identifies this distinction.

Exam trap

The trap here is that candidates confuse 'file format' with 'data structure', assuming all files are structured, when in fact PDFs are unstructured binary files that lack the row/column schema of relational data.

How to eliminate wrong answers

Option A is wrong because it reverses the definitions: transactions are structured (not unstructured) and reports are unstructured (not semi-structured). Option C is wrong because not all files are structured; PDF files are binary blobs without a row/column schema, unlike relational database tables. Option D is wrong because being digital does not imply unstructured; structured data like relational tables is also digital but has a rigid schema.

311
MCQeasy

You need to store JSON documents that are frequently read and written by a web application. Each document is about 10 KB. The solution must provide low-latency access globally. Which Azure data store should you use?

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

Azure Cosmos DB stores JSON natively and offers single-digit-millisecond latency with global distribution across regions, meeting the low-latency worldwide requirement for 10 KB documents. Azure SQL Database and Blob storage cannot match that global read-write latency profile.

Why this answer

Azure Cosmos DB (option A) is correct because it is a globally distributed, multi-model database designed for low-latency reads and writes at any scale, and it natively supports JSON documents through its Core (SQL) API, making it ideal for a web application storing ~10 KB JSON documents with worldwide access. Its multi-region replication and single-digit-millisecond latency guarantees directly satisfy the global low-latency requirement. Azure Blob Storage (B) is object storage optimized for large unstructured blobs, not for frequent low-latency document reads/writes with querying.

Azure SQL Database (C) is a relational engine that can store JSON but is not globally distributed for low-latency access and is less suited to schema-flexible document workloads. Azure Table Storage (D) is a key-value NoSQL store with limited querying and no multi-region low-latency replication comparable to Cosmos DB.

312
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the data were accessed frequently (e.g., multiple times per day or week) and required low latency, Hot would be the correct tier to minimize access costs and ensure fast retrieval.

C

If the data is rarely accessed and can tolerate a retrieval time of up to 15 hours (e.g., for long-term backup or archival compliance with no time-sensitive retrieval), Archive tier would minimize storage costs.

D

When the question specifies that data requires sub-millisecond latency for frequent reads (e.g., real-time analytics) and cost is not the primary concern, Premium would be correct.

Why candidates pick the wrong answer

A

Candidates may assume that 'Hot' is always the best for availability, overlooking that the question prioritizes cost minimization over access speed, and that the 15-minute retrieval requirement is still met by Cool.

C

Candidates may assume 'historical' and 'few times per year' automatically mean Archive, overlooking the specific 15-minute retrieval requirement.

D

Candidates may mistakenly think 'Premium' implies better overall value or faster retrieval for any scenario, overlooking its high cost and that it's meant for high-performance workloads.

313
MCQmedium

You need to choose a data store for a mobile app that requires real-time synchronization of user preferences across devices. The data is small per user and key-value oriented. Which Azure service is most appropriate?

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

Azure Cosmos DB is correct because it is a globally distributed, multi-model NoSQL database that provides a key-value API along with single-digit-millisecond read and write latency, which directly satisfies a mobile app's need for fast, scalable access. It also offers SDKs for iOS and Android, turnkey global distribution, and multiple consistency levels, enabling low-latency access from any region and supporting offline or sync-based scenarios.

Why this answer

Azure Cosmos DB is the most appropriate choice because it provides global distribution, low-latency reads and writes, and automatic conflict resolution, which are essential for real-time synchronization of user preferences across devices. Its key-value API (e.g., Table API or Core SQL API with a simple partition key) efficiently handles small, per-user data with a key-value orientation, ensuring that changes made on one device are quickly reflected on others.

Exam trap

The trap here is that candidates often confuse Azure Cache for Redis as a primary data store for persistent, synchronized user preferences, overlooking its transient nature and lack of built-in conflict resolution for multi-device scenarios.

How to eliminate wrong answers

Option B (Azure Cache for Redis) is wrong because it is an in-memory cache designed for temporary, volatile data with limited persistence options; it does not provide built-in conflict resolution or durable, globally distributed synchronization for user preferences that must persist across sessions. Option C (Azure Blob Storage) is wrong because it is optimized for large, unstructured binary objects (e.g., images, videos) and lacks the low-latency, key-value access patterns and real-time sync capabilities needed for small, frequently updated user preferences. Option D (Azure SQL Database) is wrong because it is a relational database that requires a fixed schema and is not optimized for simple key-value workloads; its overhead and lack of native conflict resolution make it unsuitable for real-time synchronization of small, per-user key-value data.

314
MCQeasy

A company needs to migrate a large on-premises SQL Server database to Azure. The migration must have minimal downtime and support ongoing replication. Which Azure service should they use?

A.Azure Data Box
B.Azure Data Factory
C.Azure SQL Database
D.Azure Database Migration Service
AnswerD

Azure Database Migration Service (DMS) is the correct choice because it provides online migration capabilities with minimal downtime for on-premises SQL Server databases. DMS performs an initial data and schema copy, then continuously replicates ongoing changes using transaction log shipping, allowing you to cut over only when you are ready. This near-zero downtime approach satisfies the requirement for migrating a large database without an extended outage.

Why this answer

Azure Database Migration Service (DMS) is designed for online migrations with minimal downtime, supporting ongoing replication from SQL Server to Azure SQL Database. It uses the Data Migration Assistant (DMA) for assessment and the Azure DMS for continuous sync, enabling near-zero downtime during cutover.

Exam trap

The trap here is that candidates confuse the target service (Azure SQL Database) with the migration tool, or assume Data Factory can handle live replication, when in fact only DMS provides the necessary online migration and ongoing sync capabilities.

How to eliminate wrong answers

Option A is wrong because Azure Data Box is a physical data transfer appliance for offline bulk data migration, not suitable for minimal downtime or ongoing replication. Option B is wrong because Azure Data Factory is an ETL and orchestration service for data movement and transformation, not a dedicated migration tool with built-in replication and minimal downtime capabilities. Option C is wrong because Azure SQL Database is the target platform, not a migration service; it does not handle the migration process or replication itself.

315
MCQmedium

A company uses Azure SQL Database for an e-commerce platform. The 'Orders' table has millions of rows with columns OrderID (primary key), CustomerID, OrderDate, and TotalAmount. Queries often filter by CustomerID (equality) and OrderDate (range). Currently, these queries are slow. Which index should be created to improve performance?

A.A nonclustered index on OrderID
B.A nonclustered index on (CustomerID, OrderDate)
C.A nonclustered index on OrderDate
D.A clustered index on CustomerID
AnswerB

This composite index covers the query predicate perfectly. CustomerID is the equality column, and OrderDate is the range column. The index allows the database engine to efficiently locate rows for a specific customer and then scan a small range of dates.

Why this answer

The query pattern filters by CustomerID (equality) and OrderDate (range). A composite nonclustered index on (CustomerID, OrderDate) allows SQL Database to seek directly to the matching CustomerID rows and then efficiently scan the ordered OrderDate range within that partition, avoiding a full table scan or key lookup. This index order leverages the index's B-tree structure for both equality and range predicates.

Exam trap

The trap here is that candidates often choose a single-column index on OrderDate (Option C) thinking it covers the range filter, but they overlook that without CustomerID as the leading key, the index cannot efficiently narrow down to a specific customer, resulting in a full index scan instead of a seek.

Why the other options are wrong

A

OrderID is the primary key and likely already has a clustered index. Adding a nonclustered index on OrderID does not help queries filtering by CustomerID and OrderDate, as it does not cover those columns.

C

An index on OrderDate alone would not efficiently support queries filtering by both CustomerID and OrderDate, as it cannot narrow down the search by CustomerID first, leading to unnecessary index scans.

D

A clustered index on CustomerID would physically reorder the entire table by CustomerID, which is not the primary key. This could disrupt the existing primary key structure and may not efficiently support range queries on OrderDate, as the data would be sorted by CustomerID first.

When would these options actually be correct?

A

If the query frequently filters or sorts by OrderID (e.g., searching for a specific order) and the table is a heap (no clustered index), a nonclustered index on OrderID would improve performance.

C

This option would be correct for a question where queries filter only by OrderDate (e.g., range queries) and not by CustomerID, such as 'Find all orders placed in a specific date range'.

D

If the question specified that the primary key is not clustered (e.g., a heap table) and queries frequently filter by CustomerID with equality conditions only (no range on OrderDate), then a clustered index on CustomerID could be beneficial to quickly locate all rows for a given customer.

Why candidates pick the wrong answer

A

Candidates may think indexing the primary key always speeds up queries, without considering that the query predicates are on different columns.

C

Candidates may think indexing the column used in the range filter (OrderDate) is sufficient, overlooking the need to also cover the equality filter (CustomerID) for optimal performance.

D

Candidates may think that indexing the column used in equality filters (CustomerID) is always optimal, and clustering the table on that column seems like a logical way to physically organize data for fast lookups, overlooking the impact on range queries and primary key structure.

316
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

A company stores player session data as JSON documents and needs to query by userId and startTime range using MongoDB-compatible syntax, and also requires the ability to use existing MongoDB drivers and tools without modification.

C

A company needs to store structured data (e.g., user profiles) with a partition key and row key, and queries are limited to point lookups or range scans on those keys, with no need for JSON or SQL queries.

D

A social network application needs to model relationships between users (e.g., friends, followers) and perform graph traversals like 'find all friends of friends'. The Gremlin API would be the correct choice for such graph-based queries.

Why candidates pick the wrong answer

B

Candidates may assume that because the data is JSON and requires SQL-like queries, the MongoDB API is suitable, but they overlook that the SQL (Core) API is the native Cosmos DB API with broader query capabilities and better integration with Azure services.

C

Candidates may confuse the Table API's ability to store semi-structured data with the flexibility of JSON documents, or think it supports SQL-like queries because of its name.

D

Candidates may think that because the data is JSON, any API works, or they might confuse 'graph' with 'flexible schema' and assume Gremlin can handle document queries.

317
MCQeasy

An organization needs to run complex queries on petabytes of data stored in Azure Data Lake Storage. They want to use serverless compute to avoid managing infrastructure. Which Azure service should they use?

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

Azure Synapse Serverless SQL pool is the correct choice because it lets you run complex T-SQL queries directly over data stored in Azure Data Lake Storage using built-in OPENROWSET options. It provisions compute automatically and scales transparently based on query needs, so you can query petabytes without managing cluster infrastructure. Because there is no dedicated compute to provision, you are billed only for the data processed, making it ideal for this petabyte-scale, lake-based workload.

Why this answer

Azure Synapse Serverless SQL pool is the correct choice because it provides serverless compute that can run complex T-SQL queries directly against data stored in Azure Data Lake Storage without requiring any infrastructure management. It uses a pay-per-query billing model and can scale automatically to handle petabytes of data, making it ideal for ad-hoc analytics on large-scale data lakes.

Exam trap

The trap here is that candidates often confuse Azure Synapse Serverless SQL pool with Azure SQL Database or HDInsight, mistakenly thinking that any SQL-based service can handle serverless data lake queries, but only Synapse Serverless SQL pool provides true serverless compute with direct, on-demand querying of external data in Azure Data Lake Storage.

How to eliminate wrong answers

Option A is wrong because Azure Analysis Services is a fully managed platform-as-a-service (PaaS) that provides semantic modeling and in-memory analytics, but it is not serverless and requires provisioning of a dedicated server instance; it also does not directly query Data Lake Storage without additional data import or gateway configuration. Option C is wrong because Azure HDInsight is a managed cluster service that requires provisioning and managing virtual machines (e.g., for Hadoop, Spark, or Hive), which contradicts the requirement for serverless compute to avoid infrastructure management. Option D is wrong because Azure SQL Database is a relational database service that requires provisioning a logical server and managing database resources (DTUs or vCores), and it is not designed for serverless querying of petabytes of data in Data Lake Storage; it stores data in its own managed storage, not directly on the data lake.

318
MCQmedium

A company is migrating a legacy on-premises database to Azure. They require the ability to run cross-database queries within the same logical server, full control over database collation settings, and want to minimize management overhead for infrastructure patching. The database size is under 1 TB and they do not need instance-level features like SQL Agent jobs or linked servers. Which Azure SQL offering should they choose?

A.Azure SQL Database
B.Azure SQL Managed Instance
C.SQL Server on Azure Virtual Machine
D.Azure Synapse SQL pool
AnswerA

Azure SQL Database is a PaaS service that handles patching, supports elastic query for cross-database queries, and allows collation settings on a per-database level. It does not include SQL Agent or linked servers, which are not required here.

Why this answer

Azure SQL Database is the correct choice because it supports cross-database queries within the same logical server via elastic queries, allows full control over database-level collation settings, and is a fully managed Platform-as-a-Service (PaaS) offering that handles infrastructure patching automatically. With a database size under 1 TB and no need for instance-level features like SQL Agent jobs or linked servers, Azure SQL Database meets all requirements while minimizing management overhead.

Exam trap

The trap here is that candidates often confuse Azure SQL Database with Azure SQL Managed Instance, assuming that cross-database queries require instance-level features like linked servers, but Azure SQL Database supports this via elastic queries without the need for instance-level management.

Why the other options are wrong

B

Azure SQL Managed Instance provides instance-level features like SQL Agent jobs and linked servers, which the company does not need, and it does not support cross-database queries within the same logical server as easily as Azure SQL Database's elastic query. Additionally, it has more management overhead than Azure SQL Database.

C

SQL Server on Azure VMs requires you to manage patching and infrastructure, contradicting the requirement to minimize management overhead. It also does not support cross-database queries within the same logical server without linked servers, which is not desired.

D

Azure Synapse SQL pool is designed for large-scale data warehousing and analytics, not for general-purpose transactional workloads. It lacks support for cross-database queries within the same logical server and does not provide full control over database collation settings.

When would these options actually be correct?

B

A company needs to migrate an on-premises database to Azure with minimal changes, requires instance-scoped features such as SQL Agent jobs, linked servers, or cross-database transactions, and has databases up to 8 TB. They also want automated patching and backups, but need higher compatibility with on-premises SQL Server.

C

A question requiring full control over the operating system, need to install custom software, or need for instance-level features like SQL Agent jobs, linked servers, or legacy dependencies that are not supported in PaaS offerings.

D

A company needs to run complex analytical queries on petabyte-scale data, integrating with big data and machine learning pipelines, and requires massive parallel processing (MPP) architecture. They do not need transactional consistency or fine-grained collation control.

Why candidates pick the wrong answer

B

Candidates may think Managed Instance is the best of both worlds—offering more compatibility than Azure SQL Database while still being PaaS—but they overlook that the question explicitly states no need for instance-level features and prioritizes minimal management overhead.

C

Candidates may think that a VM offers the most control and flexibility, and they might overlook the management overhead and the specific requirement for cross-database queries within the same logical server without linked servers.

D

Candidates may confuse Synapse SQL pool with a general-purpose database offering because it supports T-SQL queries and can handle large datasets, overlooking its specialized data warehousing focus and lack of transactional features.

319
MCQeasy

A company uses Azure SQL Database and needs to audit all data modifications (INSERT, UPDATE, DELETE) for compliance purposes. The audit logs must be stored for 7 years. Which feature should they enable?

A.Advanced Threat Protection
B.SQL Database auditing
C.Vulnerability assessment
D.Transparent Data Encryption (TDE)
AnswerB

Azure SQL Database auditing tracks database events and writes them to an audit log in Azure Storage, Azure Monitor, or Log Analytics, capturing actions like INSERT, UPDATE, and DELETE along with user, time, and affected data. This feature retains the logs for a configurable period, which can be years, enabling the company to prove and review exactly what data was modified and by whom. It directly meets the need to audit all data modifications.

Why this answer

SQL Database auditing captures all data modifications (INSERT, UPDATE, DELETE) and can store logs in Azure storage, Log Analytics, or Event Hubs with retention up to 7 years. Option A is wrong because Advanced Threat Protection detects suspicious activities, not audits modifications. Option C is wrong because vulnerability assessment scans for security weaknesses, not logging changes.

Option D is wrong because Transparent Data Encryption (TDE) encrypts data at rest, it does not log modifications.

320
MCQmedium

In a banking application, a transaction transfers $100 from Account A to Account B. The system deducts $100 from Account A successfully, but due to a network error, the credit to Account B fails. The application rolls back the deduction from Account A, ensuring that neither account is affected. Which ACID property is being enforced?

A.Atomicity
B.Consistency
C.Isolation
D.Durability
AnswerA

Atomicity guarantees that a transaction's operations are executed as an all-or-nothing unit. If the $100 debit from one account succeeds but the $100 credit to another account fails, atomicity requires the entire transaction to be rolled back, returning the database to its pre-transaction state. Without atomicity, a partial transfer would leave the bank with inconsistent balances and potential lost or duplicated funds.

Why this answer

Atomicity ensures that a transaction is treated as a single, indivisible unit of work. In this scenario, the deduction from Account A and the credit to Account B must both succeed or both fail entirely. When the credit to Account B fails, the system rolls back the deduction from Account A, preserving the all-or-nothing nature of the transaction.

This is the core behavior of atomicity in ACID-compliant database systems like Azure SQL Database or SQL Server.

Exam trap

The trap here is that candidates confuse the rollback action with consistency, because both involve maintaining a correct state, but atomicity specifically governs the all-or-nothing completion of the transaction itself, not the validity of the data rules.

Why the other options are wrong

B

Consistency ensures that a transaction transforms the database from one valid state to another, but here the rollback due to failure maintains consistency. The key property demonstrated is atomicity, which ensures the entire transaction is treated as a single unit that either fully completes or fully rolls back.

C

Isolation ensures concurrent transactions do not interfere with each other, but this scenario involves a single transaction that fails partway; the rollback enforces atomicity (all-or-nothing), not isolation.

D

Durability ensures that committed transactions persist permanently, even after system failures. In this scenario, the transaction was rolled back, not committed, so durability is not relevant.

When would these options actually be correct?

B

In a scenario where a transaction deducts $100 from Account A and credits $100 to Account B, but the credit violates a constraint (e.g., Account B's balance exceeds a limit), causing the transaction to fail and roll back. The question would ask which property ensures the database remains in a valid state before and after the transaction.

C

A question where two transactions run simultaneously, e.g., Transaction 1 reads Account A balance while Transaction 2 transfers money from Account A to B, and the system prevents Transaction 1 from seeing intermediate states (e.g., uncommitted debit). Isolation would be the property ensuring each transaction appears to execute in isolation.

D

Durability would be correct if the question described a transaction that successfully completed (e.g., both debit and credit were committed) and then the system crashed, but upon recovery the changes were still present.

Why candidates pick the wrong answer

B

Candidates may confuse consistency with atomicity because both involve transaction correctness. They might think that rolling back to maintain data integrity is a consistency property, not realizing that atomicity is the mechanism that enables the rollback.

C

Candidates confuse isolation with atomicity because both deal with transaction boundaries; they think preventing partial effects is about isolation rather than the all-or-nothing guarantee of atomicity.

D

Candidates may confuse durability with the overall reliability of transactions, or think that because the system recovers from a network error, durability is being enforced.

321
MCQhard

A company uses Azure Databricks for data engineering. The team wants to implement a medallion architecture (bronze, silver, gold) to organize data quality layers. In which layer should data be stored in a format optimized for analytics and reporting?

A.Bronze layer
B.Gold layer
C.Silver layer
D.Lakehouse layer
AnswerB

The gold layer holds refined, aggregated data modelled for business analytics and reporting. Bronze stores raw ingested data and silver holds cleansed, conformed data, so only gold satisfies the stem's requirement for a format optimised for analytics and reporting output.

Why this answer

The gold layer in a medallion architecture contains data that has been refined, aggregated, and validated for business-level analytics and reporting. This layer stores data in a format optimized for query performance, such as Delta Lake with partitioning and Z-ordering, enabling efficient consumption by tools like Power BI or Azure Synapse.

Exam trap

The trap here is that candidates confuse the gold layer with the silver layer, assuming that cleaned data (silver) is sufficient for reporting, but the gold layer is specifically designed for analytics with aggregations and business logic applied.

How to eliminate wrong answers

Option A is wrong because the bronze layer stores raw ingested data in its original format, optimized for data ingestion and replay, not for analytics or reporting. Option C is wrong because the silver layer contains cleaned and deduplicated data but is still optimized for data science and intermediate transformations, not for final reporting. Option D is wrong because 'Lakehouse layer' is not a defined layer in the medallion architecture; the lakehouse is an architectural pattern that encompasses all layers (bronze, silver, gold), not a specific data quality layer.

322
MCQeasy

A banking system processes a money transfer between two accounts. The system is designed so that after the transaction is committed, the results are permanently saved and survive any subsequent system failure, such as a power outage. Which ACID property ensures this behavior?

A.Durability
B.Atomicity
C.Consistency
D.Isolation
AnswerA

Durability is the ACID property that guarantees once a transaction is committed, its changes are permanently recorded in non-volatile storage, even if a crash occurs immediately afterward. In a money transfer scenario, the updated balances in both the source and destination accounts must survive a power loss, disk failure, or system restart to prevent the transferred funds from disappearing. This is implemented via write-ahead logging or journaling (e.g., SQL Server transaction log), where commit records are forced to disk before the transaction is acknowledged as successful.

Why this answer

Durability ensures that once a transaction is committed, its changes are permanently stored and survive system failures, such as power outages or crashes. In this banking scenario, the money transfer results are written to non-volatile storage (e.g., disk) via a write-ahead log, guaranteeing that the committed state is recoverable even after a restart.

Exam trap

The trap here is that candidates often confuse durability with atomicity, thinking that 'surviving failures' means the transaction either completes fully or not at all, but atomicity handles the rollback of partial transactions, not the persistence of committed ones.

How to eliminate wrong answers

Option B (Atomicity) is wrong because atomicity ensures that a transaction is treated as an all-or-nothing unit, meaning either all operations complete or none do, but it does not guarantee that committed data survives failures. Option C (Consistency) is wrong because consistency ensures that a transaction brings the database from one valid state to another, preserving integrity constraints, but it does not address persistence after a commit. Option D (Isolation) is wrong because isolation ensures that concurrent transactions do not interfere with each other, preventing dirty reads or lost updates, but it does not provide durability against system crashes.

323
MCQhard

Refer to the exhibit. A developer is creating an ARM template for an Azure Synapse workspace. What is the purpose of the 'defaultDataLakeStorage' property?

A.Sets the location for pipeline execution history
B.Defines the primary storage account for the workspace
C.Specifies the storage account for Apache Spark logs
D.Configures the storage for SQL pool backups
AnswerB

This property, required in the ARM template for Microsoft.MachineLearningServices/workspaces, accepts the resource ID of an Azure Storage account that becomes the workspace's default datastore. The workspace then uses that account for storing datasets, model artifacts, and run outputs. It serves as the primary storage backing the workspace's file and artifact persistency, which is why it is called the primary storage account.

Why this answer

The 'defaultDataLakeStorage' property in an ARM template for Azure Synapse Analytics defines the primary Azure Data Lake Storage Gen2 account that the workspace uses as its default storage. This storage account is where the workspace stores its data, including the data lake files and the metadata for the SQL and Spark engines. It is essential for the workspace to function, as it provides the underlying storage for tables, pipelines, and other workspace assets.

Exam trap

The trap here is that candidates confuse the 'defaultDataLakeStorage' property with a configuration for specific features like Spark logs or backups, when in fact it is the foundational storage account that the entire workspace relies on for its primary data lake operations.

How to eliminate wrong answers

Option A is wrong because pipeline execution history is stored in the Azure Synapse workspace's built-in database (the 'control' database) or in a user-configured log analytics workspace, not in the defaultDataLakeStorage property. Option C is wrong because Apache Spark logs are written to a separate storage location (often a user-specified container or a workspace-managed location) and are not configured via the defaultDataLakeStorage property; that property is for the primary data lake, not Spark-specific logs. Option D is wrong because SQL pool backups are managed by Azure Synapse's built-in backup service and are stored in the workspace's default storage account automatically, but the 'defaultDataLakeStorage' property does not configure backup settings; it defines the primary storage account for the workspace's data.

324
MCQmedium

A database designer wants to reduce data redundancy and improve data integrity by splitting a large table into multiple related tables based on functional dependencies. This process is known as:

A.Denormalization
B.Normalization
C.Partitioning
D.Indexing
AnswerB

Normalization is the formal process of decomposing large tables into smaller, related tables based on functional dependencies, with the goal of eliminating duplicate data and ensuring each fact is stored only once. By applying normal forms such as 1NF, 2NF, and 3NF, the designer removes update anomalies and ensures consistency, directly satisfying the requirement to reduce data redundancy.

Why this answer

Normalization is the process of organizing a relational database into multiple related tables to reduce data redundancy and improve data integrity by eliminating functional dependencies that cause anomalies. This is a core concept in relational database design, directly aligning with the scenario described in the question.

Exam trap

The trap here is that candidates often confuse normalization with partitioning, because both involve splitting tables, but partitioning is a physical storage optimization, not a logical design technique for reducing redundancy.

How to eliminate wrong answers

Option A is wrong because denormalization is the opposite process—it intentionally adds redundancy by merging tables to improve read performance, often at the cost of data integrity. Option C is wrong because partitioning splits a table horizontally or vertically for performance or manageability, but it does not inherently reduce redundancy or address functional dependencies. Option D is wrong because indexing creates data structures to speed up query performance on existing tables, but it does not restructure tables to eliminate redundancy or enforce integrity.

325
MCQeasy

A company stores customer names, addresses, and order history. They need to perform complex queries that join customer and order data. Which type of data store is most appropriate for this scenario?

A.Key-value store
B.Relational database
C.Document database
D.Graph database
AnswerB

A relational database is the best fit because it stores customers and order history in separate, normalized tables linked by foreign keys, such as a customer ID. ANSI SQL supports JOIN operations to combine these tables on demand, so you can query a specific customer's details alongside all their past orders. Enforcing a defined schema and referential integrity ensures names, addresses, and order records remain consistent and accurate. This matches the structured, transactional nature of customer/order data.

Why this answer

A relational database (e.g., Azure SQL Database) is most appropriate because the scenario requires joining customer and order data via complex queries. Relational databases enforce a fixed schema with tables, primary keys, and foreign keys, enabling efficient JOIN operations using SQL. This structure ensures data integrity and supports ACID transactions, which are essential for accurate order history and customer records.

Exam trap

The trap here is that candidates often choose a document database (Option C) because they associate 'complex queries' with JSON flexibility, but fail to recognize that 'joining' specifically requires relational database features like SQL JOINs and foreign keys, which document stores lack.

Why the other options are wrong

A

Key-value stores do not support complex queries or joins across multiple data types; they are optimized for simple lookups by key, not for joining customer and order data.

C

Document databases store semi-structured data (e.g., JSON) and are optimized for queries within a single document, not for complex joins across multiple collections. The requirement for joining customer and order data makes a relational database more appropriate.

D

Graph databases are optimized for highly interconnected data with complex relationships (e.g., social networks), not for joining structured tabular data like customer and order history, which is better handled by relational databases.

When would these options actually be correct?

A

A question that asks for a data store to cache user session data or store simple key-value pairs like configuration settings, where low latency and high throughput are required and no complex queries are needed.

C

A company stores product catalogs with varying attributes (e.g., electronics, clothing) and needs to retrieve entire product details without complex joins. A document database would be correct because it handles schema flexibility and nested data efficiently.

D

A question requiring analysis of relationships between entities, such as 'Which data store is best for mapping fraud rings by analyzing connections between accounts, transactions, and devices?' would make graph database correct.

Why candidates pick the wrong answer

A

Candidates may think key-value stores are fast for any data retrieval, overlooking that they lack query capabilities for relational data and joins.

C

Candidates may confuse document databases with relational databases, thinking that JSON documents can easily represent relationships, but they overlook that complex joins are inefficient in document stores.

D

Candidates may think 'complex queries' and 'join' imply graph databases because they handle relationships well, but they overlook that the data is structured and the joins are typical SQL joins, not graph traversals.

326
MCQhard

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

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

Azure Cosmos DB (NoSQL API) stores schema-free JSON documents, giving the flexibility the evolving attributes demand, and its partition key on SessionID delivers low-latency point reads. It also provides secondary indexing for UserID and time-range queries, satisfying every stated constraint.

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

327
MCQmedium

Refer to the exhibit. You are reviewing an ARM template for a new storage account. The storage account will store data that must be accessible from any Azure region and must be highly durable. Which change should you make to the template?

A.Set supportsHttpsTrafficOnly to false
B.Change the SKU name to Premium_LRS
C.Change the SKU name to Standard_GRS
D.Change the kind to BlobStorage
AnswerC

Changing the SKU name to Standard_GRS switches the storage account to geo-redundant storage, which synchronously copies your data three times within the primary region and then asynchronously copies it to a paired secondary region. If the primary region becomes unavailable, Azure can fail over to the secondary copy, so data survives a regional outage. This directly meets the ARM template requirement for higher durability across regions.

Why this answer

Standard_GRS (Geo-Redundant Storage) is the correct SKU because it replicates data synchronously three times within a primary region and asynchronously to a secondary region hundreds of miles away, ensuring high durability (11 nines) and accessibility from any Azure region via read-access (RA-GRS). The requirement for data to be accessible from any Azure region and highly durable aligns with GRS's geo-replication, whereas LRS only replicates within a single datacenter and Premium_LRS is for low-latency workloads, not geo-accessibility.

Exam trap

Microsoft often tests the misconception that changing the 'kind' (e.g., to BlobStorage) or disabling HTTPS affects durability or geo-accessibility, when in fact only the SKU name (replication strategy) controls these properties, and candidates confuse security settings with replication settings.

How to eliminate wrong answers

Option A is wrong because setting supportsHttpsTrafficOnly to false disables HTTPS enforcement, which is a security setting unrelated to durability or regional accessibility; it would expose data to insecure HTTP traffic. Option B is wrong because Premium_LRS uses SSD-based storage with local redundancy only, offering lower durability (11 nines vs. 16 nines for GRS) and no geo-replication, failing the 'accessible from any Azure region' requirement. Option D is wrong because changing the kind to BlobStorage restricts the account to blob-only storage (block blobs and append blobs), but the question does not specify blob-only data; moreover, the kind does not affect durability or geo-accessibility—that is determined by the SKU.

328
MCQhard

A company operates a high-volume order processing system on Azure SQL Database. During peak hours, many concurrent transactions try to insert and update rows in the same table, causing contention on page latches. Indexing and query optimization are already tuned. Which feature should the company implement to reduce write contention while preserving ACID properties?

A.Read Scale-out
B.In-Memory OLTP
C.Elastic Database Query
D.Transparent Data Encryption (TDE)
AnswerB

In-Memory OLTP creates memory-optimized tables and can use natively compiled stored procedures, which avoid the latch and lock overhead typical of disk-based tables by using optimistic concurrency and row-versioning. For a high-volume order processing system, this directly attacks the primary bottlenecks—latch contention and blocking on hot b-tree pages—so more transactions can commit concurrently with fewer retries and lower wait times. This makes it the appropriate choice from the listed options for improving write performance under heavy concurrent transaction load.

Why this answer

In-Memory OLTP is correct because it uses memory-optimized tables and natively compiled stored procedures to reduce latch contention by eliminating the need for page latches entirely. Transactions operate directly on in-memory data structures, using optimistic multi-version concurrency control (MVCC) to detect conflicts without blocking, which preserves ACID properties while allowing high concurrency.

Exam trap

The trap here is that candidates confuse In-Memory OLTP with caching or read optimization, but the question specifically targets write contention and ACID preservation, which In-Memory OLTP uniquely addresses through latch-free design and optimistic concurrency.

How to eliminate wrong answers

Option A is wrong because Read Scale-out is designed to offload read-only workloads to a read-only replica, not to reduce write contention on the primary database. Option C is wrong because Elastic Database Query enables cross-database querying across shards or databases, but does not address intra-table latch contention or improve write performance. Option D is wrong because Transparent Data Encryption (TDE) performs real-time encryption/decryption of data at rest and has no effect on concurrency, locking, or latch contention.

329
MCQhard

A healthcare application stores patient medical history in a relational database. The system must ensure that after a transaction updates multiple records (e.g., diagnosis and medication), all changes are saved or none are saved. This property is best described as:

A.Atomicity
B.Consistency
C.Durability
D.Isolation
AnswerA

In this healthcare scenario, Atomicity guarantees that a multi-step transaction—such as writing a patient diagnosis, associated medications, and lab results together—either commits all changes to the medical history or rolls back completely. If any statement in the transaction fails, the database discards all earlier writes, leaving the patient record untouched. This all-or-nothing behavior directly matches the requirement that incomplete updates never appear, which is why Atomicity is correct. Azure SQL Database uses a transaction log and rollback segments to enforce this property even when the service fails mid-transaction.

Why this answer

Atomicity ensures that a transaction is treated as a single, indivisible unit of work. In the context of a relational database storing patient medical history, if a transaction updates both the diagnosis and medication records, atomicity guarantees that either both updates are committed or both are rolled back, preventing partial updates that could leave the data in an inconsistent state.

Exam trap

The trap here is that candidates often confuse atomicity with consistency, mistakenly thinking that 'all-or-nothing' is about maintaining data rules, when in fact atomicity is specifically about the transaction's indivisibility at the write level.

How to eliminate wrong answers

Option B (Consistency) is wrong because consistency ensures that a transaction brings the database from one valid state to another, respecting all defined rules (e.g., constraints, triggers), but it does not directly enforce the all-or-nothing behavior of multiple record updates. Option C (Durability) is wrong because durability guarantees that once a transaction is committed, its changes persist even after a system failure, but it does not control whether the transaction is fully applied or rolled back. Option D (Isolation) is wrong because isolation ensures that concurrent transactions do not interfere with each other, preventing dirty reads or lost updates, but it does not mandate that all changes within a single transaction are saved or none are saved.

330
Multi-Selectmedium

Which TWO Azure services can be used to orchestrate and automate data pipelines? (Choose two.)

Select 2 answers
A.Azure SQL Database
B.Azure Synapse Pipelines
C.Power BI
D.Azure Databricks
E.Azure Data Factory
AnswersB, E

Azure Synapse Pipelines provide cloud-scale data integration and orchestration within the Azure Synapse Analytics workspace. They are built on the same engine as Azure Data Factory, allowing you to create and schedule data-driven pipelines to ingest, transform, and publish data across hybrid and multi-cloud environments.

Why this answer

Azure Data Factory (E) is a dedicated cloud-based ETL and data integration service that allows you to create, schedule, and orchestrate data pipelines at scale. Azure Synapse Pipelines (B) is built on the same engine as Azure Data Factory and provides native pipeline orchestration within the Synapse Analytics workspace, enabling you to move and transform data across various sources and sinks. Both services offer visual design tools, code-free transformations, and robust scheduling capabilities for automating data workflows.

Exam trap

The trap here is that candidates often confuse Azure Databricks (which can run data transformation code) with a pipeline orchestration service, but it lacks the native scheduling, dependency management, and visual pipeline designer that Azure Data Factory and Synapse Pipelines provide.

331
MCQhard

A company uses Azure Synapse Analytics to run both interactive queries and large batch loads. The interactive queries must have consistent performance regardless of batch load activity. Which Synapse feature should the company use?

A.Workload management with workload isolation.
B.Result-set caching for frequently run queries.
C.Materialized views for aggregate data.
D.Data compression with columnstore indexes.
AnswerA

Workload management with workload isolation in Azure Synapse uses workload groups and classifiers to assign queries to groups with a reserved amount of resources, such as MIN_PERCENTAGE_RESOURCE. This guarantees that critical queries receive a defined proportion of compute capacity, preventing concurrent workloads from starving them. Unlike caching or compression, it actively enforces resource allocation rather than simply speeding up individual queries.

Why this answer

Workload management with workload isolation in Azure Synapse Analytics allows you to reserve resources for specific workloads, such as interactive queries, ensuring they have consistent performance even when large batch loads are running. By creating a workload group with 'REQUEST_MIN_RESOURCE_PERCENT' set to a non-zero value, you guarantee a minimum amount of resources are always available for that group, preventing contention from other workloads.

Exam trap

The trap here is that candidates confuse performance optimization features like caching or materialized views with resource governance features, assuming they provide isolation when they only improve query speed without guaranteeing resource availability.

How to eliminate wrong answers

Option B is wrong because result-set caching improves performance for repeated queries by storing results in memory, but it does not isolate resources or guarantee consistent performance during concurrent batch loads. Option C is wrong because materialized views pre-compute and store aggregated data, reducing query execution time, but they do not provide resource isolation or protect interactive queries from batch load activity. Option D is wrong because data compression with columnstore indexes improves storage efficiency and query performance through data compression and columnar storage, but it does not manage resource allocation or prevent performance degradation from concurrent workloads.

332
MCQeasy

A company needs to migrate a large on-premises SQL Server database to Azure with minimal downtime. Which Azure service should they use for the migration?

A.Azure SQL Database
B.Azure Backup
C.Azure Data Factory
D.Azure Database Migration Service
AnswerD

Azure Database Migration Service performs online migrations, continuously replicating source changes to the target while the database stays operational. This satisfies the minimal-downtime constraint, since the cutover occurs only after replication catches up, unlike backup-and-restore approaches that require taking the on-premises SQL Server offline for the entire transfer.

Why this answer

Azure Database Migration Service (D) is correct because it is purpose-built to migrate on-premises SQL Server databases to Azure with minimal downtime, using online migration mode that continuously replicates changes until cutover. Azure SQL Database (A) is a target platform, not a migration tool, so it does not perform the migration itself. Azure Backup (B) only backs up and restores data and does not support live database migration with minimal downtime.

Azure Data Factory (C) is an orchestration and data-integration service suited to data movement and ETL, not seamless SQL Server database migration with minimal downtime.

333
Multi-Selecthard

Which THREE of the following are valid Azure data storage services? (Choose three.)

Select 3 answers
A.Azure Files
B.Azure Blob Storage
C.Azure Redis Cache
D.Azure Table Storage
E.Azure Service Bus
AnswersA, B, D

Azure Files is a fully managed file share service that provides Server Message Block (SMB) and Network File System (NFS) protocols, enabling typical network-mounted drive access from multiple VMs or on-premises clients. It is a valid Azure data storage option because it stores files in a shared, persistent manner, similar to a traditional file server but without the maintenance overhead. This differentiates it from block or object storage, making it the correct answer for scenarios requiring file-level access and standard file-sharing protocols.

Why this answer

Azure Files provides fully managed file shares in the cloud that can be accessed via the Server Message Block (SMB) protocol or the Network File System (NFS) protocol. It is a valid Azure data storage service because it stores data as files in a hierarchical structure, making it suitable for lift-and-shift scenarios for on-premises file servers.

Exam trap

The trap here is that candidates may confuse Azure Redis Cache and Azure Service Bus as data storage services because they store data temporarily, but the DP-900 exam defines 'data storage services' as those designed for persistent, structured or unstructured data storage, not transient messaging or caching.

334
MCQeasy

A retail company stores product information in a relational database table with fixed columns: ProductID (integer), Name (string), Price (decimal). They also store customer reviews as JSON documents where each review may contain different fields such as rating, comment, and optional images. Additionally, they store product images as JPEG files in Azure Blob Storage. Which of the following correctly classifies these data types from most structured to least structured?

A.Structured (product info), Semi-structured (reviews), Unstructured (images)
B.Semi-structured (product info), Structured (reviews), Unstructured (images)
C.Unstructured (product info), Semi-structured (reviews), Structured (images)
D.Structured (product info), Unstructured (reviews), Semi-structured (images)
AnswerA

This pairing is correct because the product table resides in a relational database where each row maps to a fixed set of typed columns, making it structured data. Customer reviews stored as JSON documents contain key-value pairs and nested objects that can vary between records, which is the defining characteristic of semi-structured data. JPEG images are stored as compressed binary files that have no inherent row, column, or field structure, so they are unstructured. Together, these three categories accurately reflect the data-types question being tested.

Why this answer

Product info in a relational table with fixed columns (ProductID, Name, Price) is structured data. Customer reviews stored as JSON documents, which may have varying fields like rating, comment, and optional images, are semi-structured because they have a flexible schema. Product images stored as JPEG files in Azure Blob Storage are unstructured binary data.

This ordering from most to least structured matches option A.

Exam trap

Microsoft often tests the distinction between semi-structured and unstructured data, where candidates mistakenly classify JSON as unstructured because it lacks a fixed schema, but JSON is semi-structured due to its inherent key-value structure and optional fields.

Why the other options are wrong

B

Product info uses fixed columns (ProductID, Name, Price) making it structured, not semi-structured. Reviews are JSON with varying fields, which is semi-structured, not structured.

C

Product info is stored in a relational table with fixed columns, making it structured, not unstructured. Images are binary files without schema, making them unstructured, not structured.

D

Customer reviews are stored as JSON documents with varying fields, which is semi-structured data, not unstructured. Unstructured data lacks a predefined data model, like images, not JSON.

When would these options actually be correct?

B

If the product info were stored as JSON with varying fields (e.g., optional attributes) and reviews were stored in a fixed-schema table, then B would be correct: semi-structured (product info), structured (reviews), unstructured (images).

C

If the question asked to classify data from least structured to most structured, then unstructured (images), semi-structured (reviews), structured (product info) would be correct.

D

If the question described reviews as free-text comments without any schema (e.g., stored as plain text files) and product info as JSON with flexible fields, then product info would be semi-structured, reviews unstructured, and images semi-structured (if metadata is stored).

Why candidates pick the wrong answer

B

Candidates may confuse 'relational database' with semi-structured data, or mistakenly think JSON is always structured because it has key-value pairs, overlooking schema flexibility.

C

Candidates may confuse the terms 'structured' and 'unstructured' or misread the ordering direction (most to least vs. least to most).

D

Candidates may confuse 'unstructured' with 'non-tabular' or think JSON is unstructured because it lacks a fixed schema, overlooking that JSON still has a structure of key-value pairs.

335
MCQmedium

A company uses Azure SQL Database for a financial system. The Transactions table contains millions of rows. Queries frequently aggregate data for the current month, but also need to retain historical data for 7 years. The company wants to improve query performance for the monthly aggregations and simplify data archiving. Which design should they implement?

A.Create a clustered columnstore index on the entire table.
B.Partition the table by month and create aligned indexes.
C.Use Azure SQL Database elastic pool for the database.
D.Implement transparent data encryption.
AnswerB

Partitioning the table by month and creating aligned indexes is correct because it enables partition elimination for queries that filter on months, directly improving performance for monthly reporting. Aligned indexes—where every index is partitioned on the same partition column—allow partition switching to be fast and atomic: you can move an entire month of historical data to an archive table in seconds without touching the rest of the table. This both simplifies archiving and keeps indexes consistent, solving both stated requirements.

Why this answer

Partitioning the Transactions table by month allows SQL Server to perform partition elimination during queries that aggregate data for the current month, scanning only the relevant partition(s) instead of the entire table. Aligned indexes ensure that index structures follow the same partition scheme, maintaining efficiency for both queries and maintenance. This design also simplifies data archiving by enabling fast partition switching to move older months out of the table without costly delete operations.

Exam trap

The trap here is that candidates confuse performance features like columnstore indexes or elastic pools with the specific need for partition elimination and data archiving, overlooking that partitioning directly addresses both the query performance and data lifecycle requirements.

How to eliminate wrong answers

Option A is wrong because a clustered columnstore index is optimized for large-scale analytical workloads and data warehousing, not for transactional systems with frequent point lookups or updates; it would degrade performance for the financial system's mixed workload. Option C is wrong because an elastic pool is a resource management feature for scaling multiple databases, not a design choice to improve query performance or archiving for a single table. Option D is wrong because transparent data encryption (TDE) provides security at rest but has no impact on query performance or data archiving capabilities.

336
MCQhard

A financial services company uses Azure Synapse Analytics to process large volumes of transaction data. They have a dedicated SQL pool (formerly SQL DW) that ingests curated, aggregated data nightly from a data lake. Data analysts need to run ad-hoc, exploratory T-SQL queries on raw transaction data stored as Parquet files in Azure Data Lake Storage Gen2. These queries vary widely in complexity and frequency. The company wants to minimize costs for these ad-hoc queries while still using full T-SQL capabilities. Which approach should they recommend?

A.Use external tables in the dedicated SQL pool to query the data lake directly.
B.Create a serverless SQL pool endpoint to query the data lake directly.
C.Load the raw data into the dedicated SQL pool before querying.
D.Use Azure Data Explorer to query the data lake.
AnswerB

Creating a serverless SQL pool endpoint lets you issue standard T-SQL queries directly against Parquet, JSON, CSV, or other files in the data lake using OPENROWSET or external tables, with compute resources dynamically spawned only while a query is executing. Because billing is per byte of data scanned rather than per minute of provisioned capacity, the service auto-scales to the query at hand and is ideal for sporadic, ad-hoc exploration. There is no need to ingest or transform data first, so analysts can run immediate exploratory queries with full T-SQL projection, filtering, and joins across lake files.

Why this answer

Serverless SQL pool in Azure Synapse Analytics is designed for ad-hoc, on-demand querying of data lake files (like Parquet) without provisioning or paying for dedicated compute resources. It supports full T-SQL syntax and charges only for the data processed per query, making it cost-effective for exploratory workloads with variable complexity and frequency.

Exam trap

The trap here is that candidates often confuse external tables in a dedicated SQL pool with serverless SQL pool, assuming both are equally cost-effective, but they overlook that dedicated SQL pool incurs fixed compute costs regardless of usage, while serverless SQL pool is truly pay-per-query.

Why the other options are wrong

A

External tables in a dedicated SQL pool require the pool to be running and incur compute costs even when idle, making them cost-inefficient for ad-hoc, infrequent queries on raw data. Serverless SQL pool is pay-per-query and better suited for this scenario.

C

Loading raw data into the dedicated SQL pool incurs storage and compute costs for data that is only queried ad-hoc, and the dedicated SQL pool is optimized for curated, aggregated data, not raw exploratory queries.

D

Azure Data Explorer (ADX) is optimized for interactive analytics on large volumes of streaming and time-series data, not for full T-SQL capabilities. The question requires full T-SQL support for ad-hoc queries, which ADX does not provide (it uses KQL).

When would these options actually be correct?

A

If the company needed to combine raw data from the data lake with curated data already in the dedicated SQL pool in a single query, and the dedicated SQL pool was already active for other workloads, external tables would allow seamless joins without moving data.

C

This option would be correct if the company required frequent, high-performance queries on the raw data, and the data volume was manageable within the dedicated SQL pool's storage, or if the queries needed to join raw data with the curated data in the pool frequently.

D

A company needs to run high-performance, interactive queries on large volumes of streaming telemetry data (e.g., IoT sensor logs) with low latency, and they are comfortable using Kusto Query Language (KQL) instead of T-SQL. They prioritize speed and scalability over full T-SQL compatibility.

Why candidates pick the wrong answer

A

Candidates may assume that any T-SQL query on data lake files requires external tables, and they might overlook the cost implications of keeping a dedicated SQL pool running for sporadic queries.

C

Candidates may think loading data into the dedicated SQL pool is necessary to use T-SQL, or assume that the pool's performance is always better, overlooking the cost and suitability for ad-hoc workloads.

D

Candidates may associate Azure Data Explorer with fast querying of large datasets in data lakes, overlooking that it does not support T-SQL and is designed for different query patterns (time-series, logs) rather than general-purpose SQL analytics.

337
MCQeasy

A data analyst needs to create interactive reports from data stored in an Azure SQL Database. They want to use a self-service tool that requires minimal IT support. Which tool should they use?

A.Azure Synapse Studio
B.SQL Server Management Studio
C.Power BI Desktop
D.Azure Data Studio
AnswerC

Power BI Desktop is the correct choice because it is a dedicated self-service business intelligence tool that lets an analyst connect to an Azure SQL Database, import or DirectQuery data, shape it with Power Query, and build a semantic model with relationships and DAX measures. It provides drag-and-drop, interactive visuals—like slicers, cross-filtering, and drill-through—that can be published to the Power BI service for sharing and collaboration. This aligns with the analyst's requirement to create interactive reports without needing IT administrator intervention.

Why this answer

Power BI Desktop is a self-service business intelligence tool designed for creating interactive reports and dashboards with minimal IT support. It connects directly to Azure SQL Database, allowing analysts to import or query data using DirectQuery, and provides drag-and-drop visualizations without requiring database administration skills.

Exam trap

The trap here is that candidates confuse Azure Synapse Studio or Azure Data Studio as reporting tools, but they are primarily for data engineering and development, not for self-service interactive report creation.

How to eliminate wrong answers

Option A is wrong because Azure Synapse Studio is a unified analytics platform for large-scale data warehousing and big data processing, requiring more IT setup and expertise than a self-service tool. Option B is wrong because SQL Server Management Studio (SSMS) is a database management tool for administering and querying SQL Server, not for creating interactive reports. Option D is wrong because Azure Data Studio is a cross-platform database tool focused on querying and development, lacking the rich visualization and report-authoring capabilities of Power BI Desktop.

338
Multi-Selecteasy

Which TWO factors should you consider when choosing between Azure SQL Database and SQL Server on Azure Virtual Machines?

Select 2 answers
A.Need for database auditing
B.Support for geo-replication
C.Compatibility with on-premises SQL Server features
D.Need for Transparent Data Encryption
E.Level of administrative control required
AnswersC, E

Azure SQL Database runs a fixed, Microsoft-managed engine version, so features absent from that surface (for example certain CLR, cross-database or legacy constructs) are unavailable. SQL Server on Azure Virtual Machines preserves full engine compatibility, satisfying workloads depending on on-premises feature parity.

Why this answer

Option C is correct because SQL Server on Azure Virtual Machines runs the full SQL Server engine on an IaaS VM, so it supports the broadest compatibility with on-premises SQL Server features (for example, cross-database queries, SQL Server Agent, CLR, FILESTREAM, and specific legacy features) that Azure SQL Database may not fully support in its PaaS model. Option E is correct because the two services differ fundamentally in administrative control: SQL Server on Azure VMs gives you OS-level and instance-level control (patching, configuration, sysadmin rights, custom settings), while Azure SQL Database is a fully managed PaaS where Microsoft handles most administration and limits control. Options A, B, and D are not the deciding factors: auditing, geo-replication, and Transparent Data Encryption are capabilities available in both Azure SQL Database and SQL Server on Azure VMs, so they do not differentiate the two choices.

339
MCQeasy

Refer to the exhibit. You are deploying an Azure Storage account. The JSON snippet represents a template parameter. What does the 'isHnsEnabled' property enable?

A.Blob versioning
B.Soft delete for blobs
C.Geo-redundant storage
D.Hierarchical namespace for the storage account
AnswerD

The hierarchical namespace is a creation-time flag that organizes blobs into directories and nested folder structures, enabling Azure Data Lake Storage Gen2 features like POSIX-like ACLs, atomic directory renames, and higher-throughput analytics workloads. This property cannot be changed after the storage account is provisioned, so it must be set during deployment. Unlike versioning or soft delete, which are optional post-creation protections, this namespace fundamentally changes the account's data model, making it the correct capability referenced in the exhibit.

Why this answer

The 'isHnsEnabled' property enables the hierarchical namespace for the storage account, which is a core feature of Azure Data Lake Storage Gen2. When set to true, it allows the storage account to organize blobs into a directory hierarchy, enabling POSIX-like access control lists (ACLs) and file system semantics. This is essential for big data analytics workloads that require a file system structure rather than a flat blob storage model.

Exam trap

The trap here is that candidates often confuse 'isHnsEnabled' with blob-level features like versioning or soft delete, because all three are related to data management, but only the hierarchical namespace fundamentally changes the storage account's architecture to support file system semantics.

How to eliminate wrong answers

Option A is wrong because blob versioning is enabled via the 'Versioning' property in the Blob service settings, not by 'isHnsEnabled'. Option B is wrong because soft delete for blobs is configured through the 'DeleteRetentionPolicy' property in the Blob service, not through the hierarchical namespace flag. Option C is wrong because geo-redundant storage (GRS) is a replication option set via the 'sku.name' property (e.g., 'Standard_GRS'), not by enabling a hierarchical namespace.

340
MCQhard

A company uses Azure Synapse Analytics to run complex queries against large datasets stored in Parquet files in Azure Data Lake Storage Gen2. They notice that queries scanning entire partitions are slow due to high I/O overhead on the compute nodes. Investigation shows each daily partition contains thousands of small files (under 1 MB each). Which optimization should be implemented first to improve query performance?

A.Increase the number of compute nodes
B.Use columnstore indexes on external tables
C.Compact small files into larger ones before querying
D.Change the partition column to a different date granularity
AnswerC

Compacting many small files into fewer large files (e.g., roughly 256 MB each) directly reduces the number of file open operations, metadata lookups, and read requests that distributed workers must perform. With larger contiguous files, the query engine can scan data more efficiently, use better I/O parallelism, and push predicates more effectively. This addresses the actual cause of poor performance: excessive per-file overhead dominating the scan across many tiny inputs.

Why this answer

The high I/O overhead is caused by the thousands of small files per partition. When Synapse compute nodes read many small files, the overhead of opening, reading metadata, and closing each file dominates, even though the total data volume is small. Compacting these small files into fewer, larger files (e.g., 128 MB or more) reduces the number of file operations, improves read throughput, and allows more efficient predicate pushdown and parallelism.

Exam trap

The trap here is that candidates often confuse scaling out compute nodes (Option A) with solving a data layout problem, or mistakenly think columnstore indexes (Option B) apply to external tables, when in fact the issue is purely about file size and count in the storage layer.

How to eliminate wrong answers

Option A is wrong because increasing compute nodes adds more parallelism but does not address the root cause of excessive file open/close overhead; it may even worsen the problem by distributing the many small files across more nodes. Option B is wrong because columnstore indexes are not supported on external tables in Azure Synapse; they apply only to tables in a dedicated SQL pool, and the question describes queries against Parquet files in Data Lake Storage, not a SQL pool table. Option D is wrong because changing the partition column granularity (e.g., from daily to monthly) would create even larger partitions with more small files, exacerbating the I/O overhead, and does not solve the small-file problem.

341
MCQhard

A financial services firm runs a securities trading platform. Trades must be recorded atomically, with either all parts of a trade committing or none, and the committed records must survive a database node failure. The firm also needs enforcement of referential integrity between trade and account tables. Which data store characteristic best matches these requirements?

A.Relational storage with ACID transactions and referential integrity constraints
B.Key-value storage with tunable consistency and no schema enforcement
C.Columnar analytical storage optimized for large scans and aggregations
D.Schema-on-read storage with eventual consistency across replicas
AnswerA

Atomicity, consistency, isolation, and durability, collectively ACID, guarantee that a trade either commits fully or not at all and survives node failure. Foreign key constraints enforce the referential integrity between trade and account tables. This combination is the defining strength of relational engines such as Azure SQL Database, which is why it matches the firm's requirements.

Why this answer

The requirements describe ACID transaction guarantees plus referential integrity, which are core capabilities of relational storage such as Azure SQL Database. Eventual consistency, key-value stores, and columnar analytical engines each optimize for other priorities, such as availability, fast key lookups, or scan performance, and none provides the atomic, integrity-enforced writes the trading platform needs.

Exam trap

The trap here is focusing on the word durable in isolation and matching it to any highly available store, when the full requirement set is atomic multi-part commitment plus referential integrity.

342
MCQmedium

A manufacturing company ingests real-time sensor data from assembly line machines into Azure Event Hubs. The company needs to calculate a 5-minute rolling average of temperature readings for each machine and compare it against a static threshold value stored in a CSV file in Azure Blob Storage. If the average exceeds the threshold, an alert must be triggered. Which Azure service should be used for this real-time data processing?

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

Azure Stream Analytics is the correct choice because it is a fully managed, serverless stream-processing engine built specifically for real-time analytics on high-throughput data from sources like Event Hubs. It natively supports temporal windows (tumbling, hopping, sliding, and session) to compute a 5-minute rolling average with a simple SQL-like query, and it can join the live stream with static reference data held in Blob Storage to compare against a threshold. The service scales automatically, provides exactly-once event delivery, and requires no cluster provisioning or manual code beyond the streaming query.

Why this answer

Azure Stream Analytics is the correct choice because it is designed for real-time stream processing, including windowed aggregations like a 5-minute rolling average. It can directly ingest data from Azure Event Hubs, perform the calculation using a TumblingWindow or HoppingWindow function, and reference static data (the threshold CSV) from Azure Blob Storage via a reference data input. If the computed average exceeds the threshold, Stream Analytics can output the alert to a sink like Azure Functions or a notification service.

Exam trap

The trap here is that candidates often confuse Azure Stream Analytics with Azure Data Factory or Synapse Analytics, mistakenly thinking that any data processing involving Blob Storage or SQL-like queries must use a batch-oriented service, when in fact Stream Analytics is the only option that natively supports real-time windowed aggregations and reference data joins from Blob Storage.

How to eliminate wrong answers

Option B (Azure Data Factory) is wrong because it is an orchestration and ETL service for batch data movement and transformation, not a real-time stream processing engine; it cannot perform continuous windowed aggregations on live Event Hubs data. Option C (Azure Synapse Analytics) is wrong because it is a unified analytics platform primarily for large-scale data warehousing and batch/query processing, not for real-time stream processing with sub-second latency requirements. Option D (Azure HDInsight) is wrong because it is a managed cluster service for big data frameworks like Apache Spark and Hadoop, which can handle streaming but requires manual cluster management and is overkill for a simple rolling average and threshold comparison; Azure Stream Analytics is a purpose-built, serverless alternative for this exact use case.

343
MCQmedium

You are designing a relational database for a multi-tenant SaaS application. Each tenant's data must be isolated for security and compliance. Which design approach best ensures data isolation while keeping cost manageable?

A.Use Azure Synapse Analytics with workload isolation
B.Use a separate database per tenant
C.Use a single database with a TenantID column and row-level security
D.Use a single database with separate schemas per tenant
AnswerB

A dedicated database per tenant, often called the silo model, provides the strongest possible isolation because each tenant's data resides in its own independent database with its own security credentials, backup schedule, and performance tier. This eliminates the risk of cross-tenant data leakage from application errors or misconfigured queries, and it allows you to restore, scale, or upgrade a single tenant without affecting any other tenant. It also simplifies compliance and audit because data is physically separated at the server level, making it the clear choice for strict multi-tenant isolation requirements.

Why this answer

A separate database per tenant provides strong isolation, ensuring each tenant's data is completely separate for security and compliance, while keeping costs manageable through elastic pools or other cost-effective deployment models. Option A is incorrect because Azure Synapse Analytics is a data warehousing and analytics service, not designed for OLTP multi-tenant isolation. Option C is incorrect because row-level security can help but does not provide the same level of isolation as separate databases.

Option D is incorrect because separate schemas within a single database do not provide full data isolation; they share the same database and resources.

344
MCQmedium

A company stores log files in Azure Blob Storage. Each log file is a CSV file ranging from 100 MB to 1 GB. They need to query the logs using SQL queries and plan to use Azure Synapse Serverless SQL. The logs are stored in a container named 'logs' with a folder structure like 'year=2023/month=01/day=01/logfile.csv'. They want to optimize query performance and reduce data scanned. Which partitioning strategy should they implement?

A.Convert logs to Parquet format and store in a single folder.
B.Use the existing folder structure with year/month/day partitions.
C.Consolidate all logs into a single large CSV file.
D.Use random file names to distribute load.
AnswerB

Serverless SQL reads only the folders matching the query's date predicates, so the year/month/day hierarchy acts as partition pruning and cuts bytes scanned. Without it, every query scans the whole container. The folder layout already encodes the partition columns, so no data movement is needed.

Why this answer

Option B is correct because Synapse Serverless SQL can use the existing Hive-style folder hierarchy (year=2023/month=01/day=01/) as partition columns, so queries that filter on year, month, or day can prune irrelevant folders and scan far less data. This directly reduces the amount of data scanned and improves performance without moving or rewriting the logs. Option A is wrong because a single folder removes the partition pruning benefit, and while Parquet is more efficient than CSV, the question asks for a partitioning strategy.

Option C is wrong because one large CSV file eliminates all partition granularity and forces a full scan. Option D is wrong because random file names provide no queryable partition structure and do not reduce data scanned.

345
Multi-Selectmedium

Which TWO of the following are common characteristics of a NoSQL database?

Select 2 answers
A.Flexible schema
B.Normalized data storage
C.Strong ACID transaction support
D.Relational data model
E.Horizontal scaling
AnswersA, E

NoSQL databases store documents, key-value pairs, or graphs without a fixed relational schema, so each record may carry different fields. This satisfies the stem's requirement for a common characteristic: schema flexibility lets developers evolve data structures without migrations, unlike rigid tabular models in relational systems.

Why this answer

Option A (Flexible schema) is correct because NoSQL databases such as document stores (MongoDB), key-value stores (Redis), and wide-column stores (Cassandra) do not enforce a fixed table schema, allowing each record to have different fields and structures. Option E (Horizontal scaling) is correct because NoSQL systems are designed to scale out by distributing data across many commodity nodes via sharding and partitioning, rather than scaling up on a single server. Option B (Normalized data storage) is incorrect because NoSQL databases typically denormalize data, embedding related data in a single document or row to avoid joins.

Option C (Strong ACID transaction support) is incorrect as a general characteristic because many NoSQL databases follow BASE (Basically Available, Soft state, Eventual consistency) and offer only limited or eventual consistency, though some now add ACID features. Option D (Relational data model) is incorrect because NoSQL databases use non-relational models such as document, key-value, graph, or column-family, not tables with foreign-key relationships.

Exam trap

The trap here is that candidates confuse 'flexible schema' with 'no schema at all' or mistakenly think NoSQL always supports strong ACID transactions, when in reality most NoSQL systems trade ACID for scalability and performance.

346
MCQhard

A financial institution runs complex analytical queries on trading data stored in Parquet files in Azure Data Lake Storage Gen2. The data is partitioned by date and contains billions of rows. Analysts frequently query within a specific date range, and the queries must return results in under 5 seconds. The current solution uses Azure Synapse Serverless SQL pool, but queries are slow because the serverless pool scans all partitions even when the WHERE clause filters on the date column. Which optimization should be implemented to improve query performance?

A.Switch to Azure Synapse dedicated SQL pool with proper table partitioning
B.Create a clustered columnstore index on the external table
C.Convert the Parquet files to CSV format
D.Use Azure Databricks with Delta Lake for querying
AnswerA

Switching to Azure Synapse dedicated SQL pool is correct because it uses a massively parallel processing (MPP) architecture that supports table partitioning. Proper partitioning on a frequently filtered column, such as date, enables partition elimination where the query optimizer prunes whole partition sets before scanning, significantly reducing I/O. In contrast, Synapse Serverless has no table partitions to eliminate—it must scan and filter the entire file set unless you use file-path-based pruning, which is far less robust for complex analytical workloads.

Why this answer

Azure Synapse Serverless SQL pool does not support partition elimination based on the partitioning of the underlying Parquet files in Azure Data Lake Storage Gen2. By switching to an Azure Synapse dedicated SQL pool with proper table partitioning on the date column, the query engine can perform partition pruning, scanning only the relevant partitions for the specified date range, which drastically reduces I/O and improves query performance to meet the sub-5-second requirement.

Exam trap

The trap here is that candidates may assume serverless SQL pool automatically performs partition elimination on folder-partitioned data, but it does not; it scans all files unless explicit filepath() filtering is used, making dedicated SQL pool with table partitioning the correct choice for guaranteed partition pruning.

How to eliminate wrong answers

Option B is wrong because creating a clustered columnstore index on an external table is not supported in Azure Synapse Serverless SQL pool; external tables are read-only and cannot have indexes. Option C is wrong because converting Parquet files to CSV format would increase file size and degrade performance due to lack of compression and columnar storage benefits, making queries slower. Option D is wrong because while Azure Databricks with Delta Lake can provide performance optimizations, it is not the most direct or cost-effective solution for the described scenario, and the question specifically asks for an optimization to the existing Azure Synapse Serverless SQL pool solution.

347
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

A question that asks for storing and serving large media files (e.g., user-uploaded photos or videos) with high throughput and low cost, where querying by content attributes is not required.

B

A question where the application needs to store large amounts of structured, non-relational data (e.g., device logs or metadata) and query primarily by a known partition key and row key, with no requirement for flexible schema or querying by arbitrary attributes.

D

A question where the data has a fixed schema, requires complex relational queries (e.g., JOINs, aggregations), and needs ACID transactions. For example: 'An e-commerce application stores orders with line items and needs to generate sales reports using SQL queries.'

Why candidates pick the wrong answer

A

Candidates may think JSON documents are just files, so Blob Storage seems suitable. They overlook the need for flexible querying across varying attributes, which Blob Storage does not support efficiently.

B

Candidates may confuse Table Storage's NoSQL nature with Cosmos DB's document capabilities, or assume that any NoSQL store can handle flexible schema queries efficiently, overlooking Table Storage's limited querying model.

D

Candidates may associate 'query by any attribute' with SQL's querying capabilities, overlooking the schema flexibility requirement. They might also assume that any structured data store can handle JSON, ignoring the need for native document support.

348
MCQmedium

A startup is building a web application with a relational database backend. They expect variable traffic and want to minimize costs by scaling the database automatically based on demand. Which Azure service should they use?

A.Azure SQL Database serverless
B.Azure SQL Managed Instance
C.SQL Server on Azure Virtual Machines
D.Azure Database for MariaDB
AnswerA

Azure SQL Database serverless provides automatic compute scaling that responds to workload demand, and it can pause the database entirely during idle periods. Billing is per-second based on actual compute usage, not provisioned capacity, making it cost-efficient for intermittent or unpredictable application traffic. The startup's web application with variable load fits this model perfectly.

Why this answer

Azure SQL Database serverless is the correct choice because it automatically scales compute resources based on demand and pauses the database during idle periods, charging only for storage and minimal compute. This aligns with the startup's need for variable traffic and cost minimization, as it eliminates the need to provision for peak capacity manually.

Exam trap

The trap here is that candidates may confuse 'serverless' with 'PaaS' broadly, assuming all Azure relational PaaS offerings (like Azure SQL Managed Instance or Azure Database for MariaDB) automatically scale, when in fact only Azure SQL Database serverless provides the specific auto-scaling and auto-pause features for cost optimization under variable traffic.

How to eliminate wrong answers

Option B is wrong because Azure SQL Managed Instance is a fully managed instance of SQL Server with fixed compute resources, requiring manual scaling and incurring costs even when idle, making it unsuitable for variable traffic and cost minimization. Option C is wrong because SQL Server on Azure Virtual Machines requires manual configuration of scaling and auto-scaling via VM scale sets, adding operational overhead and not providing automatic database-level scaling based on demand. Option D is wrong because Azure Database for MariaDB is a relational database but lacks a serverless compute tier; it requires manual scaling of vCores and storage, and does not offer auto-pause or auto-scale features for variable workloads.

349
MCQmedium

Your organization uses Azure SQL Database and needs to ensure that all customer data is encrypted at rest and in transit with minimal administrative overhead. Which solution should you recommend?

A.Use Microsoft Purview Information Protection to label and encrypt the data.
B.Enable Transparent Data Encryption (TDE) and enforce TLS 1.2 for connections.
C.Implement Dynamic Data Masking on the customer table.
D.Enable Always Encrypted for all sensitive columns and use client-side encryption.
AnswerB

Transparent Data Encryption (TDE) automatically encrypts Azure SQL Database data and log files at rest using AES-256, requiring no changes to existing applications or schemas. Enforcing TLS 1.2 as the minimum connection protocol ensures all data is encrypted in transit between the client and the database server. Together, these features provide comprehensive encryption with minimal administrative overhead, making this the correct answer for this requirement.

Why this answer

Transparent Data Encryption (TDE) encrypts Azure SQL Database data files at rest without requiring any application changes, and enforcing TLS 1.2 ensures all data in transit is encrypted using a strong, industry-standard protocol. This combination meets the requirement for encryption at rest and in transit with minimal administrative overhead, as TDE is managed by the platform and TLS enforcement is a simple server-level setting.

Exam trap

The trap here is that candidates often confuse Dynamic Data Masking (which only hides data in results) with encryption, or they overcomplicate the solution by choosing Always Encrypted, which requires client-side changes and key management, when the question explicitly asks for minimal administrative overhead.

How to eliminate wrong answers

Option A is wrong because Microsoft Purview Information Protection is a data classification and labeling service, not a native encryption mechanism for Azure SQL Database; it does not encrypt data at rest or in transit within the database engine. Option C is wrong because Dynamic Data Masking only obfuscates data in query results for unauthorized users, it does not encrypt data at rest or in transit. Option D is wrong because Always Encrypted requires client-side encryption and key management, which adds significant administrative overhead and application changes, contradicting the 'minimal administrative overhead' requirement.

350
MCQeasy

A company stores employee records in a database. Each employee record contains an EmployeeID (unique), Name, Department, and HireDate. The EmployeeID is used to uniquely identify each employee. Which data concept does the EmployeeID represent?

A.Index
B.Foreign key
C.Primary key
D.Unique constraint
AnswerC

A primary key is the column or set of columns declared to hold a unique, non-null value for every row, and it serves as the table's authoritative identifier for each entity record. For an employee table, an EmployeeID column or a composite of first name, last name, and birth date would be a primary key because it guarantees that each employee row can be individually referenced, updated, or joined to related tables. This is the fundamental relational mechanism for row identity and is what other tables use when they need to reference a specific employee.

Why this answer

The EmployeeID is used to uniquely identify each employee record, which is the defining characteristic of a primary key. In relational databases, a primary key enforces entity integrity by ensuring each row has a unique, non-null identifier. This aligns with the core data concept of a primary key as the unique identifier for a table.

Exam trap

The trap here is that candidates often confuse a unique constraint with a primary key because both enforce uniqueness, but the primary key uniquely identifies the row and cannot contain NULLs, while a unique constraint is a secondary uniqueness enforcement that can allow a single NULL value.

How to eliminate wrong answers

Option A is wrong because an index is a performance optimization structure that speeds up data retrieval, not a constraint that uniquely identifies rows. Option B is wrong because a foreign key is a column that references a primary key in another table to establish a relationship, not a unique identifier within its own table. Option D is wrong because a unique constraint ensures all values in a column are distinct but does not inherently designate the column as the table's primary identifier; a table can have multiple unique constraints but only one primary key.

351
MCQhard

A data analyst needs to run ad-hoc SQL queries on large volumes of data stored as Parquet files in Azure Data Lake Storage Gen2. The queries are unpredictable, and the analyst wants to pay only for the compute resources consumed by each query. Which Azure Synapse Analytics compute model should be used?

A.Serverless SQL pool
B.Dedicated SQL pool
C.Apache Spark pool
D.Azure Data Explorer pool
AnswerA

Serverless SQL pool fits ad hoc SQL queries on large lake volumes because it provisions no fixed compute; the service spins up compute per query, reads data directly from Azure Data Lake files (Parquet, Delta, CSV), and bills only for the amount of data scanned. This on-demand model eliminates idle costs and delivers fast T-SQL responses for unpredictable workloads, making it ideal for occasional analytical bursts. Of the four options, it is the only one designed specifically as a serverless T-SQL query endpoint over data lake files.

Why this answer

Serverless SQL pool is the correct choice because it allows running ad-hoc SQL queries directly on data in Azure Data Lake Storage Gen2 without provisioning any fixed compute resources. It uses a pay-per-query billing model, charging only for the amount of data processed by each query, which aligns perfectly with the unpredictable query patterns described.

Exam trap

The trap here is that candidates often confuse 'serverless' with 'dedicated' SQL pools, assuming that any SQL query requires a provisioned warehouse, when in fact Serverless SQL pool is purpose-built for ad-hoc, pay-per-query scenarios on data lakes.

How to eliminate wrong answers

Option B (Dedicated SQL pool) is wrong because it requires provisioning a fixed set of compute resources (DWUs) that are billed per hour regardless of usage, making it unsuitable for unpredictable, ad-hoc workloads where you want to pay only per query. Option C (Apache Spark pool) is wrong because it is designed for big data processing using Spark (Scala, Python, .NET) and not for running ad-hoc SQL queries directly on Parquet files; it also requires a running cluster that incurs costs even when idle. Option D (Azure Data Explorer pool) is wrong because it is optimized for interactive analytics on time-series and log data using Kusto Query Language (KQL), not for standard SQL queries on Parquet files in Data Lake Storage.

352
MCQhard

Refer to the exhibit. You are reviewing an ARM template for an Azure SQL Database deployment. The database must support a read-only workload that requires low latency. The current configuration uses General Purpose tier with 4 vCores. What is the most significant performance improvement you can make without changing the tier?

A.Increase maxSizeBytes to 1 TB
B.Set the edition to 'Serverless'
C.Enable read scale-out by adding 'readScale' property
D.Change requestedBackupStorageRedundancy to 'Local'
AnswerC

Enabling read scale-out by adding the 'readScale' property to your ARM template routes read-only connections to an automatically provisioned read-only replica. This offloads read-heavy query load from the primary replica, freeing up its CPU, memory, and I/O for write operations and transactional workloads. This is the only option that directly improves query performance by scaling out the read path, especially for workloads that separate reporting or analytical queries from OLTP traffic.

Why this answer

Enabling read scale-out by adding the 'readScale' property allows the database to use a read-only replica, offloading read workloads from the primary and providing low-latency reads. This is the most significant performance improvement within the General Purpose tier because it directly addresses the read-only workload requirement without changing the tier or incurring additional compute costs.

Exam trap

The trap here is that candidates often confuse scaling storage (maxSizeBytes) or changing backup redundancy with performance improvements, but the question specifically targets read latency for a read-only workload, which is directly addressed by read scale-out rather than storage or backup changes.

How to eliminate wrong answers

Option A is wrong because increasing maxSizeBytes to 1 TB only expands storage capacity, which does not improve read performance or latency for a read-only workload. Option B is wrong because setting the edition to 'Serverless' changes the tier (from provisioned to serverless compute), which violates the constraint of not changing the tier, and serverless is designed for intermittent workloads, not low-latency read performance. Option D is wrong because changing requestedBackupStorageRedundancy to 'Local' affects backup storage redundancy (e.g., LRS vs.

GRS), not query performance or read latency.

353
MCQhard

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

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

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

Why this answer

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

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

354
MCQeasy

A company uses Azure Table Storage to store customer session data. Each session has a PartitionKey (CustomerId) and RowKey (SessionId). They need to retrieve all sessions for a specific customer quickly. Which query design will be most efficient?

A.Select all entities and filter client-side.
B.Create a secondary index on RowKey.
C.Query with RowKey equal to a specific SessionId.
D.Query with PartitionKey equal to the specific CustomerId.
AnswerD

PartitionKey queries route to a single partition, so filtering on PartitionKey equal to the CustomerId avoids cross-partition fan-out and returns all that customer's sessions from one server. This satisfies the requirement to retrieve a specific customer's sessions quickly, since RowKey alone would force a full table scan.

Why this answer

Option D is correct because in Azure Table Storage the PartitionKey defines a contiguous, indexed partition, so querying with PartitionKey equal to the specific CustomerId retrieves all of that customer's sessions in a single efficient partition scan without crossing partitions. Since CustomerId is the PartitionKey, this query targets exactly the data needed and is the fastest supported pattern. Option A is wrong because retrieving all entities and filtering client-side forces a full table scan and transfers unnecessary data.

Option B is wrong because Azure Table Storage does not support secondary indexes on RowKey. Option C is wrong because querying by a specific RowKey (SessionId) returns only one session, not all sessions for the customer.

355
MCQhard

A SaaS company manages hundreds of customer databases, each representing a tenant. Each tenant database has its own predictable usage pattern, but the aggregate workload across all tenants is variable. The company wants to optimize costs by pooling compute resources across tenants while still ensuring that each tenant benefits from resource isolation under normal loads. Which Azure SQL Database deployment model should they choose?

A.Single database
B.Elastic pool
C.Managed Instance
D.SQL Server on Azure Virtual Machine
AnswerB

Elastic pools share provisioned compute and storage across many databases, so costs are pooled while each tenant database still receives guaranteed resources under normal load. This matches the variable aggregate workload and per-tenant isolation requirement, unlike single databases or managed instances.

Why this answer

Elastic pools are designed for SaaS multi-tenant scenarios where each tenant has a predictable, low average usage but the aggregate workload across tenants is variable. They allow pooling of compute resources (eDTUs or vCores) across multiple databases, providing resource isolation under normal loads via per-database min/max resource limits, while optimizing cost by sharing unused capacity among tenants.

Exam trap

The trap here is that candidates often confuse 'resource isolation' with 'dedicated resources' and choose Single Database, failing to recognize that Elastic Pools provide isolation via per-database resource limits while still pooling compute for cost efficiency.

Why the other options are wrong

A

Single database provides resource isolation but does not allow pooling compute resources across multiple databases to handle variable aggregate workloads cost-effectively.

C

Managed Instance is designed for lift-and-shift migrations of on-premises SQL Server workloads with high compatibility requirements, not for multi-tenant cost optimization with resource pooling and isolation.

D

SQL Server on Azure Virtual Machine requires manual management of compute resources and does not provide built-in pooling or resource isolation across multiple tenant databases, making it unsuitable for optimizing costs with variable aggregate workloads.

When would these options actually be correct?

A

A company needs a single, predictable workload with guaranteed resource isolation and no need to share resources across multiple databases. For example, a critical application database with steady performance requirements.

C

A company needs to migrate an existing on-premises SQL Server application to Azure with minimal changes, requiring near 100% compatibility with SQL Server features like SQL Agent, CLR, or cross-database queries, and does not need multi-tenant resource pooling.

D

A question requiring full control over the SQL Server environment, custom configurations, or legacy application compatibility that cannot be met by PaaS offerings, such as 'A company needs to run a third-party application that requires SQL Server Agent and CLR integration with specific OS-level settings.'

Why candidates pick the wrong answer

A

Candidates may think 'single database' is simpler and still provides isolation, overlooking the cost optimization benefits of pooling for variable aggregate workloads.

C

Candidates may think Managed Instance offers better isolation and performance for multiple databases, but they overlook that it does not provide the cost-effective resource pooling across tenants that elastic pools offer.

D

Candidates may think that running SQL Server on a VM offers flexibility to manage multiple databases and scale resources, but they overlook the operational overhead and lack of automated resource pooling and isolation that Elastic Pools provide.

356
Multi-Selectmedium

Which TWO Azure services can be used to perform interactive data analytics on large datasets without managing infrastructure? (Choose two.)

Select 2 answers
A.Azure Synapse Analytics Serverless SQL pool
B.Azure SQL Database
C.Azure Databricks
D.Azure Data Factory
E.Azure Data Lake Storage Gen2
AnswersA, C

Azure Synapse Analytics Serverless SQL pool is a PaaS analytics engine that lets you run interactive T-SQL queries directly against files in Azure Data Lake Storage, without provisioning or managing any infrastructure. Because it charges per terabyte of data processed and scales automatically, it is well suited for exploratory and on-demand analytical workloads. Its ability to query diverse file formats like Parquet, CSV, and JSON in place makes it a true interactive analytics service.

Why this answer

Azure Synapse Analytics Serverless SQL pool (A) is correct because it lets you run T-SQL queries directly against files in Azure Data Lake Storage using a pay-per-query, on-demand model with no cluster provisioning or infrastructure management, making it ideal for interactive exploration of large datasets. Azure Databricks (C) is correct because it provides an Apache Spark-based, fully managed analytics platform where the service handles cluster provisioning, scaling, and maintenance, enabling interactive notebooks and SQL analytics on large datasets without the user managing infrastructure. Azure SQL Database (B) is a managed relational database for transactional/OLTP workloads rather than an interactive big-data analytics service, so it does not fit.

Azure Data Factory (D) is a data integration and orchestration service for pipelines and ETL/ELT movement, not an interactive analytics engine. Azure Data Lake Storage Gen2 (E) is a storage layer for holding data, not a compute/analytics service that performs interactive queries.

Exam trap

The trap here is that candidates confuse Azure Data Lake Storage Gen2 as an analytics service rather than a storage service, or mistake Azure Data Factory's orchestration capabilities for interactive querying, leading them to select options that do not provide direct interactive analytics.

357
MCQmedium

Refer to the exhibit. An analyst runs this Kusto Query Language (KQL) query in Azure Data Explorer. What is the primary purpose of this query?

A.Find the top 5 most common event types in Texas
B.Calculate total damage in Texas
C.Identify events with the highest damage
D.List all storm events in Texas
AnswerA

This query uses a `summarize` operator to group storm events in Texas by `EventType` and count the number of rows in each group, then a `top 5` operator ordering by that count descending. The result is exactly the five event-type categories with the highest frequency in the Texas dataset. Because it counts occurrences per category rather than measuring impact or listing raw records, it answers the 'most common' question precisely.

Why this answer

The query uses the `summarize` operator with `count()` to count events per `EventType`, then `top 5 by count_` to return the five event types with the highest counts, filtered to only rows where `State == 'TEXAS'`. This directly finds the top 5 most common event types in Texas.

Exam trap

Microsoft often tests the distinction between counting occurrences (using `count()` with `summarize`) versus summing numeric values (using `sum()`), leading candidates to confuse 'most common' with 'highest damage'.

How to eliminate wrong answers

Option B is wrong because the query does not include any aggregation of damage amounts (e.g., `sum(Damage)` or `avg(Damage)`), so it cannot calculate total damage. Option C is wrong because the query counts events by type, not by damage amount; to identify events with the highest damage, you would need to sort or top by a damage column, not by `count_`. Option D is wrong because the query does not list individual storm events; it aggregates events into groups by `EventType` and returns only the top 5 counts, not a list of all events.

358
MCQmedium

A company has an Azure SQL Database and needs to run a weekly data aggregation job that takes several hours. They want to minimize cost and avoid impacting production workload. Which approach should they use?

A.Migrate the database to the Hyperscale service tier
B.Use Azure Elastic Jobs to run the aggregation during off-peak hours
C.Increase the DTU or vCore size of the database to handle the load
D.Create a read-only replica and run the aggregation on the replica
AnswerD

Creating a read-only replica and directing the weekly aggregation to it is the correct approach because it physically separates the heavy read workload from the primary write workload. Azure SQL Database read scale-out (Premium and Business Critical) or a geo-replicated secondary can serve read-only connections with ApplicationIntent=ReadOnly, allowing the aggregation to run on a separate compute and storage footprint. This offloading ensures the primary remains dedicated to production OLTP transactions, minimizing contention and preserving performance.

Why this answer

Creating a read-only replica allows the weekly aggregation job to run against a separate copy of the database without affecting the production workload. Since the replica is read-only, it incurs additional compute costs only during the aggregation window, and you can scale it down or stop it when not in use, minimizing overall cost.

Exam trap

The trap here is that candidates may confuse Azure Elastic Jobs as a workload isolation tool, when in fact it only schedules jobs on the same database and does not provide a separate compute resource.

How to eliminate wrong answers

Option A is wrong because migrating to the Hyperscale service tier is designed for large databases and high throughput, not for cost-effective batch processing; it increases cost and complexity without addressing the need to avoid impacting production. Option B is wrong because Azure Elastic Jobs is a scheduling service for running T-SQL scripts across multiple databases, but it does not isolate the workload from the production database; the aggregation would still run on the same primary database, impacting performance. Option C is wrong because increasing DTU or vCore size on the primary database would temporarily improve performance but would significantly increase cost and still risk impacting production workload during the aggregation run.

359
MCQhard

A manufacturing company connects thousands of IoT sensors on an assembly line, each sending telemetry data every second. The data volume is terabyte-scale per day. The company needs to analyze the sensor data in near real-time to detect anomalies (e.g., temperature spikes) and also allow data scientists to run interactive ad-hoc queries on the historical data to find patterns. They prefer using a query language similar to SQL. Which Azure service should they choose?

A.Azure Stream Analytics
B.Azure Data Explorer
C.Azure Synapse Analytics dedicated SQL pool
D.Azure Databricks with Structured Streaming
AnswerB

Azure Data Explorer (ADX) is purpose-built for high-velocity time-series telemetry, using columnar storage with a clustered columnstore index and the Kusto Query Language (KQL) for powerful time-series functions like series_fft and anomaly detection. It supports streaming ingestion with sub-second latency and retains both hot and cold caches, allowing the same KQL queries to run interactively over both live and historical data. This makes it the optimal choice for IoT sensor data requiring near real-time monitoring and ad-hoc exploration.

Why this answer

Azure Data Explorer (ADX) is designed for high-velocity telemetry data, ingesting terabytes per day from IoT sensors with sub-second latency. It supports Kusto Query Language (KQL), which is SQL-like and optimized for time-series analysis, anomaly detection, and interactive ad-hoc queries on both real-time and historical data. This makes it the ideal choice for the described scenario.

Exam trap

The trap here is that candidates often choose Azure Stream Analytics because it handles real-time streaming and uses SQL-like syntax, but they overlook the requirement for interactive ad-hoc queries on historical data, which Stream Analytics cannot efficiently support.

Why the other options are wrong

A

Azure Stream Analytics is designed for real-time stream processing but lacks native support for interactive ad-hoc queries on historical data at terabyte scale. It cannot serve as a single service for both real-time anomaly detection and historical pattern analysis with SQL-like queries.

C

Azure Synapse Analytics dedicated SQL pool is optimized for large-scale data warehousing and complex queries on structured data, but it is not designed for near real-time ingestion and analysis of high-velocity streaming data like IoT telemetry at terabyte-per-day scale. Its batch-oriented architecture introduces latency that conflicts with the near real-time anomaly detection requirement.

D

Azure Databricks with Structured Streaming is optimized for complex ETL and machine learning pipelines, not for low-latency interactive ad-hoc queries on terabyte-scale historical data with SQL-like syntax. It requires more setup and is less efficient for pure analytics compared to Azure Data Explorer.

When would these options actually be correct?

A

A company needs to process real-time streaming data from IoT devices and output alerts or aggregated results to a storage or dashboard, without requiring interactive ad-hoc querying on historical data. For example, filtering sensor readings and sending alerts when temperature exceeds a threshold.

C

A company needs to run complex SQL-based analytics on petabytes of structured historical data from multiple sources (e.g., sales, inventory) with high concurrency and predictable performance. They do not require real-time ingestion or streaming, and the data is already stored in a data lake or warehouse.

D

A company needs to process streaming data from IoT sensors, perform complex transformations (e.g., joining with static datasets), and train machine learning models on the processed data using Python or Scala. They require a unified platform for both stream processing and advanced analytics.

Why candidates pick the wrong answer

A

Candidates may think Stream Analytics can handle both real-time and historical analysis because it uses SQL-like queries, but they overlook its limitations in storing and interactively querying large historical datasets.

C

Candidates may associate 'SQL-like queries on large datasets' with Synapse's dedicated SQL pool, overlooking the near real-time and high-velocity streaming requirements that make Azure Data Explorer a better fit.

D

Candidates may associate 'near real-time' and 'IoT sensors' with streaming solutions like Databricks Structured Streaming, overlooking that the primary requirement is interactive ad-hoc querying on historical data, which is not a strength of Databricks.

360
MCQeasy

A company runs an e-commerce application on Azure SQL Database. During seasonal promotions, traffic spikes significantly, but at other times traffic is low. They want to automatically adjust compute resources based on demand without manual intervention or provisioning. Which Azure SQL Database feature should they use?

A.Geo-replication
B.Elastic pools
C.Serverless compute
D.Hyperscale
AnswerC

Azure SQL Database serverless automatically scales the compute capacity between a configured minimum and maximum number of vCores based on actual workload demand, and it pauses the database when idle to eliminate compute billing. This makes it ideal for intermittent or unpredictable workloads, as it requires no manual intervention and computes billing per second. Note that serverless does not auto-scale storage; storage is billed separately and remains available even while paused.

Why this answer

Serverless compute for Azure SQL Database automatically scales compute resources based on workload demand and pauses the database during inactive periods, charging only for storage and compute used per second. This matches the requirement for automatic adjustment without manual intervention or provisioning, especially for intermittent, unpredictable traffic spikes like seasonal promotions.

Exam trap

The trap here is that candidates confuse Elastic pools (which scale shared resources across multiple databases) with the single-database auto-scaling behavior of Serverless compute, or they assume Hyperscale's high scalability automatically includes dynamic compute scaling without manual intervention.

How to eliminate wrong answers

Option A is wrong because Geo-replication is a disaster recovery and business continuity feature that creates readable replicas in different Azure regions, not an auto-scaling mechanism for compute resources. Option B is wrong because Elastic pools are designed for managing and scaling multiple databases with shared resources in a predictable pattern, not for automatically adjusting compute of a single database based on demand spikes. Option D is wrong because Hyperscale is a service tier for very large databases (up to 100 TB) with fast scaling of storage and compute, but it requires manual scaling of compute replicas and does not provide the automatic pause/resume or per-second billing of serverless compute.

361
Multi-Selecteasy

Which TWO Azure data services are classified as NoSQL databases? (Choose two.)

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

Azure Cosmos DB is a globally distributed, multi-model NoSQL database that supports document, graph, column-family, and key-value data models through APIs like SQL (the Cosmos DB core API), MongoDB, Cassandra, Gremlin, and Table. Its schema-agnostic, horizontally scalable architecture is explicitly designed for NoSQL workloads, making it one of the two correct NoSQL services.

Why this answer

Azure Cosmos DB (B) is Microsoft's globally distributed, multi-model NoSQL database service, supporting APIs such as Core (SQL), MongoDB, Cassandra, Gremlin, and Table, which makes it a canonical NoSQL offering. Azure Table Storage (C) is a key-attribute (key-value) NoSQL store for semi-structured data, exposing entities via PartitionKey/RowKey without a fixed relational schema. By contrast, Azure SQL Managed Instance (A) and Azure SQL Database (E) are relational PaaS engines built on the SQL Server engine using T-SQL, and Azure Database for PostgreSQL (D) is a relational open-source engine, so all three are relational (SQL) rather than NoSQL databases.

Exam trap

The trap here is that candidates often confuse Azure Table Storage (a NoSQL key-value store) with Azure SQL Database or Managed Instance, assuming 'Table' implies a relational table, but it is actually a NoSQL service.

362
MCQhard

Your data engineering team is designing a data pipeline that ingests data from multiple sources into Azure Data Lake Storage Gen2. The data must be cataloged in Azure Purview for discoverability. Which approach ensures that the data lineage is automatically captured?

A.Use Azure Data Factory to copy data and manually register the datasets in Purview.
B.Use Azure Data Factory with Purview integration enabled to copy data.
C.Use Azure Databricks to write data and call Purview's Atlas API to update lineage.
D.Schedule Purview scans on the data lake after data ingestion.
AnswerB

Enabling Purview integration on Azure Data Factory causes every executed copy activity to automatically emit lineage metadata to Purview, including the source and sink datasets and the column-level mappings defined in the activity. This is a first-class, out-of-the-box integration that captures lineage as part of the pipeline run rather than as a separate manual step. The result is reliable, up-to-date lineage without custom code, which is exactly what the data engineering team needs.

Why this answer

Azure Data Factory's native Purview integration automatically captures lineage metadata during data copy activities. When enabled, Data Factory pushes runtime lineage information (source, sink, transformation steps) directly to Purview without manual intervention, ensuring complete and accurate data provenance.

Exam trap

The trap here is that candidates often confuse data cataloging (scanning) with lineage capture, assuming that scanning the data lake after ingestion (Option D) will automatically show how data got there, but scanning only reveals schema and classification, not the data flow path.

How to eliminate wrong answers

Option A is wrong because manually registering datasets in Purview after copying data does not capture lineage automatically; it only adds static metadata without the runtime execution details that show data flow. Option C is wrong because while Azure Databricks can call Purview's Atlas API, this requires custom code and does not provide the automatic, out-of-the-box lineage capture that Data Factory's integration offers. Option D is wrong because scheduling Purview scans on the data lake after ingestion only catalogs the data at rest and captures schema/classification metadata, but it does not capture the lineage of how data moved from source to destination.

363
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A company needs to store structured, non-relational data (e.g., device telemetry) with simple key-based lookups and high scalability, but does not require SQL queries or complex indexing. The application uses partition key and row key for fast access and can tolerate eventual consistency.

C

A company needs to store and serve large media files (e.g., images, videos) for a web application with high throughput, and does not require querying individual fields within the files. The data is accessed via URLs and needs to be globally distributed with CDN integration.

D

A question requiring a high-performance, low-latency cache layer to accelerate read-heavy workloads, such as caching frequently accessed user profiles or session data, where data can be regenerated from a persistent store.

Why candidates pick the wrong answer

A

Candidates may confuse Table Storage's NoSQL nature with Cosmos DB, or assume that JSON documents can be stored and queried in Table Storage because it supports entity properties, but they overlook the lack of native JSON support and advanced querying.

C

Candidates may associate JSON documents with blob storage because blobs can store any file type, including JSON, and overlook the need for querying and indexing capabilities that Cosmos DB provides.

D

Candidates may think Redis's low-latency key-value lookups are suitable for querying posts by userId and timestamp, overlooking that it lacks persistence and SQL query capabilities.

364
MCQeasy

A retail company collects data from online transactions including order ID, customer details, product IDs, quantities, and timestamps. The data is stored in a relational database and used for order processing and inventory management. Which characteristic of this data makes it structured?

A.It is stored in rows and columns with a predefined schema.
B.It is stored as key-value pairs.
C.It is stored in JSON format with variable fields.
D.It is stored in unstructured text files.
AnswerA

Structured data is defined by a rigid, predefined schema, which means each record conforms to a specified set of columns with fixed data types. This tabular format—rows and columns—enables relational database features such as ACID transactions (atomicity, consistency, isolation, durability), primary/foreign key constraints, and efficient SQL querying. The schema is enforced at write time, so every inserted row matches the expected structure, making it the foundational model for transactional systems like online order processing.

Why this answer

Structured data is defined by a fixed schema where each entity (e.g., orders) is stored in rows and columns with predefined data types (e.g., INT for order ID, VARCHAR for customer details). This relational model enforces consistency and enables efficient querying via SQL for order processing and inventory management.

Exam trap

The trap here is that candidates confuse 'structured' with any organized storage format (like JSON or key-value pairs), but the DP-900 exam specifically defines structured data as having a fixed schema with rows and columns in a relational database.

How to eliminate wrong answers

Option B is wrong because key-value pairs (e.g., in Redis or DynamoDB) are a NoSQL model that does not enforce a fixed schema or relational integrity, unlike the structured data described. Option C is wrong because JSON with variable fields is semi-structured data; it allows flexible schemas and nested structures, not the rigid rows-and-columns format of a relational database. Option D is wrong because unstructured text files (e.g., .txt or .log files) lack any predefined schema or organization, making them unsuitable for direct SQL-based order processing and inventory management.

365
MCQmedium

You need to design a data storage solution for an e-commerce platform that requires ACID transactions for order processing and high availability across regions. Which Azure service meets these requirements?

A.Azure Database for MySQL with read replicas
B.Azure Synapse Analytics
C.Azure SQL Database with active geo-replication
D.Azure Cosmos DB with multiple write regions
AnswerC

Azure SQL Database with active geo-replication maintains asynchronous, readable secondary replicas in paired or other Azure regions, preserving a mature relational database engine with full ACID transactions on the primary. This design provides a geographically distributed read scale and enables a controlled failover to a secondary region if an outage occurs, delivering a strong high-availability and disaster-recovery posture for a business-critical e-commerce application. The secondaries can also serve read-only traffic, offloading workload from the primary, while writes remain on the primary to maintain consistency.

Why this answer

Azure SQL Database with active geo-region replication supports ACID transactions natively and provides automatic failover to a secondary region, ensuring high availability across regions. This meets the e-commerce platform's need for transactional consistency and regional resilience.

Exam trap

The trap here is that candidates often confuse 'high availability' with 'multi-region writes' and choose Cosmos DB, overlooking that ACID transactions require a relational database with strict consistency guarantees, not just eventual consistency or single-document atomicity.

How to eliminate wrong answers

Option A is wrong because Azure Database for MySQL with read replicas supports ACID transactions but read replicas are read-only and do not provide automatic failover for write workloads, thus failing high availability for order processing writes. Option B is wrong because Azure Synapse Analytics is a big data analytics service optimized for large-scale data warehousing and analytics, not for OLTP workloads requiring ACID transactions. Option D is wrong because Azure Cosmos DB with multiple write regions provides multi-region writes and high availability but does not support full ACID transactions across multiple documents; it offers single-document atomicity and eventual consistency by default, not the strict ACID guarantees needed for order processing.

366
MCQmedium

A company has a data warehouse in Azure Synapse Analytics dedicated SQL pool. They need to load new sales data every night from a CSV file stored in Azure Data Lake Storage Gen2. The load process must be automated, scheduled, and have error handling for failed loads. Which Azure service should they use to orchestrate this process?

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

Azure Data Factory is the correct choice for orchestrating scheduled batch loading from ADLS Gen2 into a Synapse dedicated SQL pool. Its Copy activity provides high-throughput, parallelized data movement with native connectors for both ADLS Gen2 and Azure Synapse, while pipeline triggers (such as schedule or tumbling window) enable reliable recurring execution. ADF also offers robust error handling, retries, and monitoring, and can invoke Stored Procedure activities to run Synapse transformations, making it the definitive ETL orchestration service for this scenario.

Why this answer

Azure Data Factory is the correct choice because it is a cloud-based ETL service designed specifically for orchestrating and automating data movement and transformation at scale. It supports scheduled triggers, native connectors to Azure Data Lake Storage Gen2 and Azure Synapse Analytics, and built-in error handling via retry policies and failure activities, making it ideal for nightly CSV file loads.

Exam trap

The trap here is that candidates may confuse Azure Data Factory with Azure Logic Apps because both can schedule and automate tasks, but Logic Apps lacks native data warehouse connectors and high-throughput data movement capabilities required for enterprise ETL workloads.

How to eliminate wrong answers

Option B (Azure Stream Analytics) is wrong because it is a real-time stream processing service for analyzing data in motion, not a batch orchestration tool for scheduled file loads. Option C (Azure Databricks) is wrong because it is an Apache Spark-based analytics platform focused on big data processing and machine learning, not a native orchestration service for scheduled data movement with built-in error handling. Option D (Azure Logic Apps) is wrong because it is a low-code workflow automation service primarily for integrating SaaS applications and APIs, not designed for high-throughput data warehouse loading with enterprise-grade error handling and scheduling.

367
MCQmedium

Refer to the exhibit. You are designing an Azure Table storage schema for user settings. The JSON shows a sample entity. Which query will retrieve all settings for user123 efficiently?

A.Filter by RowKey eq 'settings'
B.Filter by PartitionKey eq 'user123' and RowKey eq 'settings'
C.Filter by PartitionKey eq 'user123'
D.Filter by PartitionKey eq 'user123' or RowKey eq 'settings'
AnswerB

This is a point query, the most efficient.

Why this answer

Option B is correct because in Azure Table storage the PartitionKey groups all entities belonging to the same logical partition, and specifying both PartitionKey eq 'user123' and RowKey eq 'settings' performs a precise point query that targets a single entity with the lowest latency and lowest RU cost. Since the scenario asks for all settings for user123, using PartitionKey 'user123' with the specific RowKey 'settings' retrieves exactly that entity efficiently. Option A is inefficient because filtering only on RowKey forces a full table scan across all partitions.

Option C would return all entities for user123 across different RowKeys, which may be broader than needed and less efficient than a point query. Option D uses an OR condition on PartitionKey and RowKey, which prevents an efficient index seek and results in a full table scan.

368
Multi-Selecthard

Which THREE components are part of a typical modern data warehouse architecture on Azure?

Select 3 answers
A.Azure Data Factory
B.Azure Cosmos DB
C.Azure Analysis Services
D.Azure Synapse Analytics
E.Azure Data Lake Storage Gen2
AnswersA, D, E

Azure Data Factory is the cloud-based ETL/ELT orchestration service that connects to over 90 built-in connectors, allowing you to ingest data from on-premises and cloud sources, then transform it via mapping data flows or external compute (e.g., Azure Databricks, HDInsight) before loading it into a destination such as Azure Synapse Analytics or Azure Data Lake Storage Gen2. In a modern data warehouse, Data Factory is the integration backbone that automates and schedules data movement, making it a core component alongside storage and compute. Without it, raw data would remain siloed and untransformed, preventing a unified analytics pipeline.

Why this answer

Azure Data Factory (A) is correct because it is the orchestration and data-integration service in a modern Azure data warehouse architecture, used to build pipelines that copy and transform data from source systems into the warehouse. Azure Synapse Analytics (D) is correct because it is the core analytics/warehouse engine, providing dedicated SQL pools (formerly SQL DW), serverless SQL pools, and Spark pools for large-scale analytical workloads. Azure Data Lake Storage Gen2 (E) is correct because it serves as the scalable, hierarchical-namespace storage layer (built on Blob Storage with HNS enabled) that holds raw and curated data in formats like Parquet and Delta before and after loading into the warehouse.

Azure Cosmos DB (B) is not part of a typical data warehouse architecture; it is a globally distributed operational NoSQL database for transactional (OLTP) workloads, not analytical warehousing. Azure Analysis Services (C) is a semantic/tabular modeling layer for BI, and while it can complement analytics solutions, it is not one of the core components of a modern Azure data warehouse architecture as represented by ingestion, storage, and warehouse compute.

Exam trap

The trap here is that candidates often confuse Azure Cosmos DB (a transactional NoSQL database) with an analytical store, or mistakenly think Azure Analysis Services is a required part of the data warehouse architecture when it is actually an optional semantic layer.

369
MCQmedium

A company uses Azure SQL Database for a sales application. They need to replicate the database to a secondary region for disaster recovery. The secondary should be readable for reporting purposes and data should be synchronized within seconds. Which feature should they use?

A.Active Geo-Replication
B.Auto-failover groups
C.Point-in-time restore
D.Long-term retention
AnswerA

Active Geo-Replication asynchronously replicates committed transactions from the primary Azure SQL database to a readable secondary in a different region, keeping the copy continuously synchronized with a lag usually measured in seconds. This provides a warm, readable target that can serve reporting workloads without impacting the primary, and because Azure manages the replication process, administrative overhead remains minimal. It also supports manual failover for disaster recovery, but for a persistent reporting secondary it is the simplest and most direct fit.

Why this answer

Active Geo-Replication is the correct choice because it creates a readable secondary replica in a different Azure region, with data synchronized within seconds via asynchronous replication. This meets the requirement for both disaster recovery and read-only reporting access, as the secondary can be queried directly without impacting the primary database.

Exam trap

The trap here is that candidates often confuse Auto-failover groups with Active Geo-Replication, assuming the group feature provides faster synchronization, when in fact both use the same asynchronous replication and the key difference is that Auto-failover groups add automatic failover and endpoint management, not lower latency.

How to eliminate wrong answers

Option B (Auto-failover groups) is wrong because while it supports readable secondaries and automatic failover, it is designed for group-level failover of multiple databases and does not guarantee sub-second synchronization; it uses the same underlying geo-replication but adds orchestration, not faster sync. Option C (Point-in-time restore) is wrong because it restores a database to a past state from backups, not a continuously synchronized readable secondary for disaster recovery. Option D (Long-term retention) is wrong because it preserves backups for years for compliance, not for real-time replication or readable secondaries.

370
MCQmedium

A company stores customer data in an Azure SQL Database. To comply with data residency requirements, they need to ensure that all customer data remains within a specific Azure region. Which feature should they use?

A.Use Azure Policy to restrict resource creation to allowed regions
B.Enable geo-replication
C.Configure dynamic data masking
D.Enable transparent data encryption (TDE)
AnswerA

Azure Policy can enforce data residency by applying a policy definition to deny or audit the creation of Azure SQL Database resources outside an approved region. You can target the resource types Microsoft.Sql/servers and Microsoft.Sql/servers/databases, and include parameters for allowed locations so both server and database must be in the required geography. The Deny effect blocks any non-compliant deployment before it happens, while Audit logs violations, making this a governance and compliance control rather than a data-protection feature.

Why this answer

Azure Policy can enforce that resources are only created in approved Azure regions, which directly satisfies data residency requirements by preventing deployment of the Azure SQL Database (or any resource) outside the permitted geography. This is the governance control designed for exactly this compliance scenario.

Exam trap

DP-900 often tests the confusion between encryption, masking, and residency controls — candidates pick TDE or masking because they sound like 'data protection,' missing that only Azure Policy enforces location.

How to eliminate wrong answers

Option B is wrong because geo-replication copies data to a secondary region, which would actually violate data residency by moving data outside the required region. Option C is wrong because dynamic data masking hides sensitive columns from non-privileged users but does not control where data is stored. Option D is wrong because TDE encrypts data at rest within the same region — it addresses confidentiality, not residency.

371
MCQeasy

An organization wants to build a real-time dashboard that visualizes IoT sensor data as it arrives. Which Azure service should they use for processing the streaming data?

A.Azure Analysis Services
B.Azure Data Factory
C.Azure Databricks
D.Azure Stream Analytics
AnswerD

Azure Stream Analytics is a fully managed stream processing engine that executes SQL-like queries continuously on data arriving from sources like Azure Event Hubs, IoT Hub, or Blob Storage, and it can output directly to Power BI for real-time dashboards. It supports time-based windowing, aggregations, and filtering, allowing you to compute meaningful metrics like averages or counts over a defined time slice with latency in the range of a second. Being purpose-built for real-time stream processing, it offers a simple declarative query model and the easiest integration path to live visuals, making it the correct choice here.

Why this answer

Azure Stream Analytics is a real-time analytics service designed to process streaming data from sources like IoT devices. It can ingest data from Azure Event Hubs or IoT Hub, apply SQL-based queries to detect patterns or anomalies, and output results to a dashboard or storage with sub-second latency, making it ideal for real-time IoT dashboards.

Exam trap

Microsoft often tests the distinction between batch processing (Data Factory) and real-time stream processing (Stream Analytics), and candidates mistakenly choose Azure Databricks because they associate it with 'big data' without recognizing Stream Analytics as the simpler, purpose-built service for streaming IoT dashboards.

How to eliminate wrong answers

Option A is wrong because Azure Analysis Services is an OLAP engine for semantic modeling and reporting on historical data, not for real-time stream processing. Option B is wrong because Azure Data Factory is a cloud-based ETL and data orchestration service for batch data movement and transformation, not designed for low-latency streaming. Option C is wrong because Azure Databricks is a big data analytics platform that can handle streaming via Structured Streaming, but it is overkill for simple real-time dashboards and requires more complex setup compared to the purpose-built Stream Analytics service.

372
MCQhard

A company uses Azure SQL Database for a financial system. The Transactions table contains millions of rows with a TransactionDate column. Queries frequently aggregate sales totals for the current month, but historical data must be retained for 7 years. Currently, queries scan the entire table, causing performance issues. The company also wants to simplify archiving of old data. Which design should they implement?

A.Create a non-clustered index on the TransactionDate column.
B.Implement table partitioning by month on TransactionDate.
C.Create a materialized view for the current month's data.
D.Convert the table to use a clustered columnstore index.
AnswerB

Partitioning splits the Transactions table into monthly partitions on TransactionDate, enabling partition elimination so current-month aggregates scan only the relevant partition rather than millions of rows. Switching partitions also simplifies archiving by moving old partitions out efficiently.

Why this answer

Table partitioning by month on TransactionDate allows Azure SQL Database to efficiently manage and query large tables by splitting data into manageable segments. Queries that filter on TransactionDate for the current month will only scan the relevant partition(s), eliminating full table scans. Additionally, partitioning simplifies archiving by enabling swift partition switching to move old data to archive tables without complex ETL processes.

Exam trap

The trap here is that candidates often choose a non-clustered index (Option A) thinking it will speed up range queries, but they overlook that partitioning is specifically designed for both performance on large tables and simplified data lifecycle management, which the question explicitly requires.

How to eliminate wrong answers

Option A is wrong because a non-clustered index on TransactionDate would still require key lookups for non-indexed columns and does not eliminate scanning all partitions of historical data; it also does not simplify archiving. Option B is wrong because a materialized view for the current month's data would require manual maintenance and does not address the need to retain and efficiently query 7 years of historical data; it also does not simplify archiving of old data. Option D is wrong because a clustered columnstore index is optimized for analytical workloads on large tables but does not inherently partition data by month, so queries for the current month would still scan all column segments, and it does not provide a built-in mechanism for archiving old data.

373
MCQhard

A multinational corporation is deploying a global application using Azure SQL Database. They need to ensure that users in different geographic regions experience low latency reads. The application can tolerate slightly stale data for reads, but writes must be strongly consistent and must occur in a single primary region. Which feature should they implement?

A.Azure Cosmos DB with multi-master
B.Active geo-replication
C.Failover groups
D.Read scale-out
AnswerB

Active geo-replication is the correct choice because it creates readable secondary replicas of an Azure SQL database in different regions, allowing applications to direct read-only queries to the nearest secondary for low-latency access. These secondaries are maintained through asynchronous replication, so they are near-real-time but not guaranteed to be transaction-consistent with the primary. This directly addresses the need for global read performance while keeping the primary as the sole write endpoint, which is simpler and more predictable than multi-master.

Why this answer

Active geo-replication in Azure SQL Database allows up to four readable secondary databases in different Azure regions, providing low-latency reads for geographically distributed users while maintaining a single writable primary. Because the application tolerates slightly stale reads, the asynchronous replication of active geo-replication is acceptable, and writes remain strongly consistent on the single primary. This matches the requirement exactly.

Exam trap

The trap is confusing active geo-replication (readable cross-region secondaries for latency) with failover groups (DR orchestration with listeners) and read scale-out (same-region read offload) — candidates must match the feature to the specific requirement of cross-region low-latency reads with a single write primary.

How to eliminate wrong answers

Option A is wrong because Azure Cosmos DB with multi-master is a different database platform entirely — the question specifies Azure SQL Database, and multi-master also allows writes in multiple regions, contradicting the single-primary write requirement. Option C is wrong because failover groups are designed for disaster recovery and automatic failover of a group of databases, not for providing readable secondaries for latency reduction; they also do not provide the read-scale capability described. Option D is wrong because read scale-out uses the built-in read-only replica in the same region (or via the read-only routing listener) and does not provide cross-region low-latency reads for global users.

374
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

A banking application that processes financial transactions (e.g., account balance updates) where any read must reflect the latest write to prevent overdrafts or double-spending. The question would specify zero tolerance for staleness and require linearizability.

B

An application requires that all reads see the same latest write within a defined time window (e.g., 5 seconds) or after a certain number of operations, but does not need immediate consistency for any specific user. For example, a stock ticker that must show prices updated within 2 seconds across all clients.

D

Eventual consistency would be correct for a scenario where the application can tolerate temporary staleness for all reads, including the user's own writes, and high availability and low latency are prioritized over immediate consistency, such as in a global leaderboard that updates periodically.

Why candidates pick the wrong answer

A

Candidates may think 'strong' is always the safest choice for consistency, overlooking that the application explicitly tolerates temporary staleness for other users' posts, making a weaker level sufficient.

B

Candidates may think 'bounded staleness' is a middle ground that offers some freshness guarantee, but they overlook that session consistency is specifically designed for per-user write-read consistency, which is the exact need here.

D

Candidates may choose Eventual because the question mentions tolerance for temporary staleness for other users' posts, but they overlook the critical requirement that the user must immediately see their own post, which Session consistency guarantees via read-your-writes.

375
MCQeasy

A startup is building a mobile app that allows users to share short text updates. Each update includes a user ID, timestamp, and message text. The development team expects rapid growth and needs a storage solution that can scale horizontally, handle high write throughput, and provide low-latency reads globally. Which Azure data service is most appropriate?

A.Azure SQL Database with a single database.
B.Azure Cosmos DB with a multi-master configuration and partition on user ID.
C.Azure Blob Storage with append blobs.
D.Azure Table Storage with user ID as partition key and timestamp as row key.
AnswerB

Azure Cosmos DB with multi-master configuration and partition on user ID is correct because it provides active-active multi-region writes, 99.999% availability, and tunable consistency with single-digit millisecond latencies at the 99th percentile. Using user ID as the partition key co-locates all posts from one user on the same logical partition, enabling efficient queries and scalable writes. Multi-master lets users write to the nearest region while Cosmos DB reconciles conflicts, which is exactly what a high-throughput, globally distributed short-text app needs.

Why this answer

Azure Cosmos DB with a multi-master configuration is the most appropriate choice because it provides global distribution with multiple write regions, enabling horizontal scaling and low-latency reads and writes worldwide. Partitioning on user ID ensures even data distribution and efficient query performance for the app's high write throughput requirements.

Exam trap

The trap here is that candidates often confuse Azure Table Storage's horizontal scaling with the global, multi-master capabilities of Cosmos DB, assuming Table Storage can provide low-latency writes worldwide when it lacks native multi-region write support and has higher latency for cross-region scenarios.

How to eliminate wrong answers

Option A is wrong because Azure SQL Database with a single database is a relational database that scales vertically (up to a maximum size and DTU/vCore limit) and cannot natively handle global low-latency reads or multi-region writes without complex sharding or read replicas. Option C is wrong because Azure Blob Storage with append blobs is designed for unstructured data like logs or files, not for low-latency, high-throughput transactional updates with querying by user ID and timestamp. Option D is wrong because Azure Table Storage, while scalable, does not support multi-master writes or global low-latency reads natively; it is a key-value store with limited query capabilities and eventual consistency by default, which may not meet the app's need for low-latency writes globally.

Page 4

Page 5 of 12

Page 6