Courseiva

Microsoft Azure Data Fundamentals DP-900 (DP-900) — Questions 451–525

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

Page 6

Page 7 of 12

Page 8
451
MCQhard

A healthcare organization needs to store patient records that must be immutable and cannot be modified or deleted for 7 years due to regulatory compliance. Which Azure feature should they use?

A.Microsoft Purview
B.Azure Policy
C.Azure Blob Storage immutable storage
D.Microsoft Defender for Cloud
AnswerC

Immutable blob storage applies time-based retention or legal hold policies, preventing modification or deletion for a specified period. This satisfies the healthcare scenario's seven-year regulatory requirement for records that cannot be altered or removed, enforced at the storage layer.

Why this answer

Azure Blob Storage immutable storage is correct because it provides WORM (Write Once, Read Many) capabilities that prevent data from being modified or deleted for a specified retention period. This directly meets the regulatory requirement for patient records to remain immutable for 7 years, as the policy is enforced at the storage level and cannot be overridden by any user, including administrators.

Exam trap

The trap here is that candidates confuse Azure Policy (which enforces resource-level compliance rules) with data-level immutability, but Azure Policy cannot prevent data modification within a blob—only Azure Blob Storage immutable storage provides that guarantee.

How to eliminate wrong answers

Option A is wrong because Microsoft Purview is a data governance and catalog service for discovering and classifying data, not a storage-level immutability enforcement mechanism. Option B is wrong because Azure Policy enforces organizational rules and compliance across Azure resources (e.g., restricting resource locations), but it cannot prevent modification or deletion of data within a storage blob. Option D is wrong because Microsoft Defender for Cloud is a security posture management and threat protection service, not a data immutability feature.

452
Multi-Selecteasy

Which TWO Azure services can be used to store semi-structured data? (Choose two.)

Select 2 answers
A.Azure Cosmos DB
B.Azure Blob Storage
C.Azure SQL Database
D.Azure Synapse Analytics
E.Power BI
AnswersA, B

Azure Cosmos DB is a multi-model NoSQL database service that stores documents natively in JSON. Rather than imposing a fixed relational schema, it allows each item to have a different shape, with properties mapped to indexes automatically. This makes it a first-class store for semi-structured data such as sensor telemetry, IoT events, or any payload that evolves over time.

Why this answer

Azure Cosmos DB is a NoSQL database service that natively supports semi-structured data through its flexible schema model. It allows storing JSON documents, key-value pairs, and graph data without requiring a fixed schema, making it ideal for semi-structured data like user profiles, IoT telemetry, or product catalogs.

Exam trap

The trap here is that candidates often confuse 'semi-structured data' with 'unstructured data' and incorrectly assume only NoSQL databases qualify, forgetting that Azure Blob Storage can store semi-structured files like JSON or XML as blobs, even though it is not a database.

453
MCQmedium

A retail company wants to run real-time analytics on streaming clickstream data from their website. Which Azure service should they use to ingest and process the data?

A.Azure Analysis Services
B.Azure Data Lake Storage
C.Azure SQL Database
D.Azure Stream Analytics
AnswerD

Azure Stream Analytics is a fully managed, real-time data stream processing engine that can continuously ingest events from Azure Event Hubs, IoT Hub, and Blob Storage, then apply time-windowed SQL-like queries without infrastructure management. It supports sub-second to minute-level latencies, event ordering and late-arrival handling, and can produce alerting, dashboards, or aggregated results in real time. Because it is purpose-built for streaming data, it is the appropriate choice for the retail company’s requirement to run real-time analytics on a live stream rather than storing and batch-processing it later.

Why this answer

Azure Stream Analytics is a real-time analytics and event-processing engine designed to ingest, process, and analyze high-velocity streaming data, such as clickstream data from a website. It can directly consume data from Azure Event Hubs or IoT Hub and output results to sinks like Power BI, Azure SQL Database, or Azure Data Lake Storage, making it the correct choice for real-time analytics on streaming data.

Exam trap

The trap here is that candidates often confuse Azure Stream Analytics with Azure SQL Database or Azure Data Lake Storage, mistakenly thinking a traditional database or storage service can handle real-time streaming ingestion and processing, when in fact they lack the necessary low-latency, event-driven architecture.

How to eliminate wrong answers

Option A is wrong because Azure Analysis Services is an OLAP engine for creating semantic models and running ad-hoc analytical queries on pre-processed data, not for ingesting or processing real-time streaming data. Option B is wrong because Azure Data Lake Storage is a scalable and secure data lake for storing large volumes of raw or processed data, but it does not provide real-time stream ingestion or processing capabilities. Option C is wrong because Azure SQL Database is a relational database service for storing and querying structured data, not designed for high-throughput, low-latency stream ingestion or real-time event processing.

454
MCQeasy

A healthcare organization stores patient medical records in a relational database with columns such as PatientID, Name, and DateOfBirth. They also store radiology images as DICOM files in Azure Blob Storage. Which statement correctly classifies these data types?

A.Both patient records and radiology images are structured data.
B.Patient records are semi-structured, and radiology images are unstructured.
C.Patient records are structured, and radiology images are unstructured.
D.Patient records are unstructured, and radiology images are semi-structured.
AnswerC

In a relational database, patient records are assigned to tables with predefined columns and data types, such as integer IDs, VARCHAR names, and DATE fields, making them structured data that can be queried with SQL. Radiology images, by contrast, are stored as DICOM binary files containing raw pixel data; they lack a schema and cannot be queried directly, so they are unstructured. This distinction drives storage choices, such as using SQL for records and BLOB/object storage for images.

Why this answer

Patient records in a relational database with fixed columns like PatientID, Name, and DateOfBirth adhere to a predefined schema, making them structured data. Radiology images stored as DICOM files in Azure Blob Storage have no internal schema or tabular format and are therefore unstructured data. Option C correctly matches these classifications.

Exam trap

The trap here is conflating 'semi-structured' with 'structured' or 'unstructured'—candidates often misclassify relational database records as semi-structured because they have multiple columns, but the key is the rigid schema enforced by the relational model.

Why the other options are wrong

A

Patient records in a relational database with defined columns like PatientID, Name, and DateOfBirth are structured data, not semi-structured. Radiology images as DICOM files in Blob Storage are unstructured, not structured.

B

Patient records in a relational database with fixed columns like PatientID, Name, and DateOfBirth are structured data, not semi-structured. Radiology images as DICOM files are binary files without a predefined schema, making them unstructured.

D

Patient records in a relational database with fixed columns are structured data, not unstructured. Radiology images as DICOM files are binary files without a predefined schema, making them unstructured, not semi-structured.

When would these options actually be correct?

A

This option would be correct if the question described patient records as JSON or XML files (semi-structured) and radiology images as structured data (e.g., a table of image metadata).

B

This option would be correct if patient records were stored as JSON or XML files (semi-structured) and radiology images were stored as unstructured files (e.g., in a data lake).

D

If the question described patient records stored as free-text notes in a NoSQL database (e.g., MongoDB) and radiology images stored with metadata tags in a format like JSON, then patient records would be unstructured and radiology images semi-structured.

Why candidates pick the wrong answer

A

Candidates may mistakenly think all healthcare data is structured because it's organized, or confuse 'structured' with 'organized data', not realizing that images lack a predefined schema.

B

Candidates may confuse 'semi-structured' with structured data that has some flexibility, or they might think medical records with varying fields are semi-structured, but in a relational database they are strictly structured.

D

Candidates may confuse 'unstructured' with 'non-tabular' and incorrectly assume that any data not in a simple table is unstructured, or they may think DICOM files have some structure (metadata) making them semi-structured.

455
MCQeasy

A company wants to provide self-service analytics to business users, allowing them to create reports and dashboards from data stored in Azure Data Lake Storage. Which tool should they use?

A.Azure Synapse Studio
B.Azure Machine Learning studio
C.Power BI
D.Azure Data Studio
AnswerC

Power BI is the correct tool because it provides self-service analytics capabilities, allowing business users to connect to data stored in Azure Data Lake Storage, create interactive reports and dashboards, and share insights without requiring deep technical skills.

Why this answer

Power BI is the correct tool because it provides self-service analytics capabilities, allowing business users to connect to data stored in Azure Data Lake Storage, create interactive reports and dashboards, and share insights without requiring deep technical skills. Options A, B, and D are incorrect: Azure Synapse Studio is a big data and data warehousing tool, not designed for self-service business user dashboard creation; Azure Machine Learning studio is for building, training, and deploying machine learning models, not for creating reports; Azure Data Studio is a database management and query tool, not a reporting tool.

Exam trap

The trap here is that candidates often confuse Azure Synapse Studio (a big data and data warehousing tool) with a reporting tool, but it is not designed for self-service business user dashboard creation like Power BI is.

How to eliminate wrong answers

Option A is wrong because Azure Synapse Studio is an integrated analytics service designed for data engineers and data scientists to perform big data analytics, data integration, and data warehousing, not for self-service business user reporting. Option B is wrong because Azure Machine Learning studio is focused on building, training, and deploying machine learning models, not on creating reports and dashboards for business users. Option D is wrong because Azure Data Studio is a database management and query tool primarily used by database administrators and developers for SQL Server and Azure SQL databases, not for self-service analytics and dashboard creation.

456
MCQmedium

A logistics company tracks shipment locations using GPS devices that send JSON data with fields: shipmentId, latitude, longitude, timestamp, speed. The data is stored in Azure Cosmos DB using the Core (SQL) API. The application needs to query all shipments that are currently within a specific geographic bounding box and have a speed greater than 0. Which query approach should they use to efficiently retrieve the data?

A.Use a BETWEEN clause on latitude and longitude and a WHERE clause for speed.
B.Use ST_WITHIN to specify the bounding box polygon and add a WHERE clause for speed.
C.Use ST_DISTANCE to measure distance from a center point and also filter on speed.
D.Use the IN operator to list all acceptable coordinate pairs and a speed filter.
AnswerB

ST_WITHIN is the correct geospatial operator here because it accepts a GeoJSON Polygon representing the bounding box and uses Cosmos DB's spatial index to efficiently find all location points contained inside it. Adding a separate WHERE clause on the speed field is a non-spatial predicate that is applied after the spatial index seek narrows the result set, which minimizes request units (RUs) and latency.

Why this answer

Azure Cosmos DB's Core (SQL) API supports geospatial queries using the ST_WITHIN function, which efficiently checks if a point (latitude/longitude) lies inside a polygon (bounding box). Adding a WHERE clause for speed > 0 further filters the results, and Cosmos DB can leverage a composite index on the geospatial field and speed to optimize query performance.

Exam trap

The trap here is that candidates often assume simple range filters (BETWEEN) are sufficient for geospatial queries, overlooking that Cosmos DB requires dedicated spatial functions (ST_WITHIN, ST_DISTANCE) to utilize its spatial index and achieve efficient bounding box queries.

Why the other options are wrong

A

Cosmos DB's SQL API does not support BETWEEN for geospatial queries; it requires geospatial functions like ST_WITHIN to filter by bounding box.

C

ST_DISTANCE measures distance from a center point, which is inefficient for bounding box queries and may return shipments outside the box but within the radius, not matching the requirement for a specific bounding box.

D

The IN operator is used to match a field against a list of discrete values, not for spatial bounding box queries. It cannot efficiently filter coordinates within a geographic area.

When would these options actually be correct?

A

If the question involved a non-geospatial range query (e.g., filtering numeric fields like price or date) and the data was stored in a relational database or Cosmos DB with indexed numeric fields, BETWEEN would be appropriate.

C

A question asks: 'Find all shipments within 10 km of a central warehouse location.' Using ST_DISTANCE with a radius filter would be the correct approach to retrieve shipments within a circular area.

D

When the query needs to retrieve documents where a field (e.g., shipmentId) matches any value from a predefined list (e.g., ['id1', 'id2', 'id3']), and no spatial filtering is required.

Why candidates pick the wrong answer

A

Candidates may assume BETWEEN works for coordinate ranges because it works for numeric ranges in SQL, not realizing Cosmos DB requires dedicated geospatial functions for spatial queries.

C

Candidates may think ST_DISTANCE can approximate a bounding box by using a small radius, but they overlook that it doesn't guarantee rectangular boundaries and is less efficient for exact bounding box queries.

D

Candidates may mistakenly think that listing coordinate pairs in an IN clause can define a bounding box, not realizing that IN only checks exact equality and cannot handle range or spatial conditions.

457
MCQmedium

A company uses Azure SQL Database for its e-commerce platform. The reporting team runs complex, long-running queries that join multiple tables and would degrade performance of the transactional workload if executed on the primary database. Which Azure SQL Database feature should the company enable to isolate the reporting queries while ensuring read-only access to the most current data?

A.Automatic tuning
B.Geo-replication
C.Read scale-out (read-only replicas)
D.Elastic query
AnswerC

Azure SQL Database's read scale-out uses a built-in read-only replica in the same region as the primary; when clients set ApplicationIntent=ReadOnly, read-only queries are routed to that replica. This offloads reporting/BI/analytics queries from the primary replica, preventing them from competing for CPU, I/O, and memory with the e-commerce transaction workload. The replica is continuously updated and is intended for exactly this same-region read offload scenario.

Why this answer

Read scale-out (read-only replicas) allows you to offload reporting queries to a read-only replica of the Azure SQL Database, ensuring that complex, long-running queries do not degrade the performance of the primary transactional workload. The replica provides access to the most current data because it uses snapshot isolation and is transactionally consistent with the primary database.

Exam trap

The trap here is that candidates often confuse Geo-replication (which also provides readable secondaries) with read scale-out, but Geo-replication is primarily for disaster recovery and involves asynchronous replication, whereas read scale-out is designed for read workload isolation within the same region with synchronous consistency.

Why the other options are wrong

A

Automatic tuning automatically adjusts query performance based on workload patterns, but it does not create a separate read-only replica to isolate reporting queries from the transactional workload.

B

Geo-replication provides disaster recovery and read-only access to a secondary replica in a different region, but it does not guarantee the most current data due to asynchronous replication lag, and it is not designed for offloading reporting queries within the same region.

D

Elastic query enables querying across multiple Azure SQL databases, but it does not provide isolated read-only replicas for offloading reporting workloads from the primary database.

When would these options actually be correct?

A

A company experiences performance degradation due to suboptimal query plans and wants Azure to automatically identify and fix performance issues without manual intervention. In that scenario, enabling automatic tuning would be the correct answer.

B

A company needs to ensure business continuity and disaster recovery for its Azure SQL Database, with the ability to fail over to a secondary region in case of an outage. The question would specify a requirement for cross-region read-only access to a near-real-time copy of the database for reporting during normal operations.

D

A company has data spread across multiple Azure SQL databases in different regions and needs to run cross-database queries for consolidated reporting without moving data. Elastic query would allow querying these distributed databases as a single source.

Why candidates pick the wrong answer

A

Candidates may think 'tuning' implies optimizing performance for reporting queries, but they overlook that the question specifically requires isolating queries via a separate read-only replica, not just tuning the existing database.

B

Candidates may confuse geo-replication's read-only secondary with read scale-out replicas, assuming both provide read-only access to current data for reporting, without understanding the synchronous vs. asynchronous replication and regional scope differences.

D

Candidates may confuse 'elastic' with scalability or offloading, and think it can distribute query load, but it is designed for cross-database queries, not read-only replicas.

458
Multi-Selecthard

Which TWO tools can be used to transform data in an Azure data pipeline?

Select 2 answers
A.Power BI Desktop
B.Microsoft Purview
C.Azure Databricks notebooks
D.Azure Storage Explorer
E.Azure Data Factory Data Flow
AnswersC, E

Azure Databricks notebooks are a correct transformation tool because they provide a collaborative, code-first environment running on Apache Spark for distributed data processing. Engineers can execute Python, Scala, SQL, or R to perform complex cleanses, joins, aggregations, and machine learning pre-processing, then write results to any connected data store. The notebooks can be triggered by Azure Data Factory pipelines, enabling automated, production-grade transformations at scale.

Why this answer

Azure Databricks notebooks (C) are correct because they run Apache Spark code (Python, Scala, SQL, R) that can perform arbitrary data transformations such as filtering, joining, aggregating, and cleansing at scale within an Azure data pipeline. Azure Data Factory Data Flow (E) is correct because it provides a visual, code-free way to build scalable data transformation logic (mapping data flows) that executes on Azure Databricks-backed Spark clusters as part of an ADF pipeline. Power BI Desktop (A) is a reporting and visualization tool, not a pipeline data transformation service.

Microsoft Purview (B) is a data governance, cataloging, and lineage service rather than a transformation engine. Azure Storage Explorer (D) is a client utility for browsing and managing storage accounts, not for transforming data.

Exam trap

The trap here is that candidates often confuse data transformation tools with data governance or storage management tools, leading them to select options like Microsoft Purview or Azure Storage Explorer, which serve entirely different purposes in the Azure analytics ecosystem.

459
MCQhard

You are a data architect for a healthcare organization. The organization needs to build a real-time analytics solution to monitor patient vital signs from IoT devices. The data arrives at a rate of 10,000 events per second. Each event contains patient ID, timestamp, heart rate, blood pressure, and oxygen saturation. The solution must alert clinicians within 10 seconds when a patient's vital signs exceed predefined thresholds. Additionally, the solution must store the raw data for historical analysis and compliance. You plan to use Azure Event Hubs for ingestion. Which combination of services should you use to meet the requirements? Consider: processing low latency alerts, storing raw data in cost-effective storage, and enabling historical analytics. You also need to ensure that the solution can scale to handle future growth.

A.Use Azure Databricks with Structured Streaming, store data in Delta Lake, and use Power BI for real-time dashboards
B.Use Azure Data Factory to batch ingest events every minute, store in Azure Blob Storage, and use Azure Analysis Services for historical analytics
C.Use Azure Functions to process events, store data in Azure Cosmos DB, and use Power BI for historical analytics
D.Use Azure Stream Analytics for real-time processing and alerting, output data to Azure Data Lake Storage, and use Azure Synapse Serverless SQL for historical analytics
AnswerD

Azure Stream Analytics is a fully managed stream processing engine that uses SQL-like queries to filter, aggregate, and emit alerts in real time, easily handling 10,000 events/sec with partitioning and low latency. It can write raw or processed output to Azure Data Lake Storage, which provides cost-effective, scalable storage for high-volume telemetry. Azure Synapse Serverless SQL can then query those files directly using T-SQL, enabling historical analytics on the same data lake without loading it into a separate store or managing compute. This combination cleanly separates the hot path (real-time alerting) from the cold path (historical analytics) while minimizing operational overhead and meeting all latency requirements.

Why this answer

Azure Stream Analytics provides low-latency (sub-second) stream processing and can trigger alerts within the 10-second requirement. Outputting raw data to Azure Data Lake Storage (ADLS) offers cost-effective storage for compliance, and Azure Synapse Serverless SQL enables on-demand historical analytics without provisioning dedicated compute, scaling automatically for future growth.

Exam trap

The trap here is that candidates often confuse real-time processing with batch or micro-batch tools (like Databricks or Data Factory) or choose a transactional database (Cosmos DB) for raw storage, overlooking the cost and latency trade-offs required for high-throughput IoT scenarios.

How to eliminate wrong answers

Option A is wrong because Azure Databricks with Structured Streaming introduces higher latency (typically seconds to minutes) and operational overhead, making it less suitable for sub-10-second alerting, and Delta Lake on Databricks is not as cost-effective for raw data storage as ADLS. Option B is wrong because Azure Data Factory batch ingestion every minute violates the 10-second alert requirement, and Azure Analysis Services is designed for OLAP on pre-aggregated data, not for direct historical analytics on raw event data. Option C is wrong because Azure Functions are stateless and not optimized for high-throughput (10,000 events/sec) real-time stream processing, and Azure Cosmos DB is a transactional database with higher cost per GB, making it less cost-effective for storing raw historical data compared to ADLS.

460
MCQmedium

A SaaS provider hosts databases for hundreds of clients, each with light and sporadic usage. They notice that using separate single databases with provisioned DTUs is cost-inefficient. They need to consolidate the databases while optimizing cost and ensuring that a busy client does not monopolize resources. Which Azure SQL Database option should they use?

A.Single database with provisioned DTU
B.Elastic pool
C.Managed Instance
D.SQL Server on Azure VM
AnswerB

Elastic pools place multiple tenant databases into a single shared resource pool with per-database minimum and maximum DTU settings, so the pool's aggregate capacity absorbs each tenant's spikes while idle databases contribute unused capacity back to the pool. This matches the SaaS pattern of many small databases with low average usage: you pay for the pooled DTUs actually needed rather than a fixed amount per tenant, and the built-in performance isolation prevents one tenant from starving others.

Why this answer

An Azure SQL Database elastic pool is designed to optimize cost for multiple databases with light and sporadic usage by sharing a fixed set of resources (eDTUs) across all databases in the pool. This prevents a busy client from monopolizing resources through per-database resource limits (min and max DTU), ensuring performance isolation while consolidating costs.

Exam trap

The trap here is that candidates often confuse elastic pools with single databases, thinking that provisioned DTUs are always cheaper for sporadic workloads, but they miss that elastic pools share resources across databases to eliminate over-provisioning waste.

How to eliminate wrong answers

Option A is wrong because a single database with provisioned DTUs allocates dedicated resources per database, which is cost-inefficient for hundreds of lightly used databases due to wasted capacity and higher per-database costs. Option C is wrong because Azure SQL Managed Instance is a fully managed instance with fixed resources, designed for lift-and-shift migrations, not for consolidating hundreds of small databases with sporadic usage; it lacks the elastic pooling feature for shared resource allocation. Option D is wrong because SQL Server on Azure VM requires manual management of OS and SQL Server, including resource governance, and incurs costs for the VM and licensing, making it more expensive and complex than an elastic pool for this scenario.

461
MCQmedium

A company uses Azure Data Factory to run a pipeline that copies new orders from an on-premises SQL Server database to Azure Data Lake Storage every hour. After the data is in the data lake, an Azure Databricks notebook transforms it and loads it into Azure Synapse Analytics for reporting. Which type of data processing does the hourly copy operation represent?

A.Real-time streaming
B.Batch processing
C.Interactive query
D.Transactional processing
AnswerB

The hourly copy operation runs on a schedule, pulling a set of source records accumulated since the previous run and moving them as one discrete data chunk. This is the classic batch processing model used in Azure Data Factory for ETL/ELT workloads, where data is processed in fixed, configurable intervals rather than continuously or on demand. The copy activity treats the entire dataset as a bounded unit, with timeout, retry, and concurrency semantics designed for bulk transfer, not per-record interaction.

Why this answer

The hourly copy operation from on-premises SQL Server to Azure Data Lake Storage is a classic batch processing pattern: data is collected over a fixed time interval (1 hour) and processed as a single unit. Azure Data Factory orchestrates this scheduled, non-continuous transfer, which aligns with batch processing's definition of handling data in discrete, periodic chunks rather than in real-time.

Exam trap

The trap here is that candidates confuse scheduled data movement (batch) with real-time streaming, especially when the pipeline runs frequently (e.g., every hour), but the key distinction is that batch processes data in discrete intervals, not continuously as it arrives.

Why the other options are wrong

A

The hourly copy operation processes data in fixed intervals (every hour), not continuously as data arrives, so it is batch processing, not real-time streaming.

C

Interactive query typically refers to on-demand, ad-hoc analysis of data using tools like Azure Synapse Serverless SQL or Azure Databricks SQL, not scheduled, periodic data movement.

D

Transactional processing typically involves ACID-compliant, real-time operations on individual transactions, whereas the hourly copy of new orders is a scheduled, bulk data movement without transactional guarantees.

When would these options actually be correct?

A

A scenario where data must be ingested and processed with minimal latency (e.g., under 1 second) as it is generated, such as streaming IoT sensor data into Azure Event Hubs and then into Azure Stream Analytics for real-time dashboards.

C

A question describing a user running ad-hoc SQL queries against data in Azure Data Lake Storage using Azure Synapse Serverless SQL to explore sales trends would make interactive query the correct answer.

D

A question describing a system that processes individual sales transactions (e.g., order placement, payment) in real-time with rollback capabilities would make transactional processing correct.

Why candidates pick the wrong answer

A

Candidates may confuse 'hourly' with 'real-time' because the pipeline runs frequently, but real-time streaming requires continuous, low-latency processing, not scheduled intervals.

C

Candidates may confuse the interactive nature of Databricks notebooks later in the pipeline with the copy operation itself, or think that any query against data is interactive.

D

Candidates may confuse the movement of 'orders' data with transactional processing, not realizing that the batch copy does not handle individual transactions with ACID properties.

462
MCQmedium

A company is migrating an on-premises SQL Server database to Azure. They want to ensure that database administrators (DBAs) can perform administrative tasks but cannot view sensitive customer data in query results. Which Azure SQL feature should they implement?

A.Dynamic Data Masking
B.Always Encrypted
C.Transparent Data Encryption
D.Row-Level Security
AnswerB

Always Encrypted is correct because it encrypts sensitive data client-side, meaning the plaintext values are never transmitted to or stored in the SQL database. The database engine and DBAs only see ciphertext; the column master key that would permit decryption is held outside the database, typically in Azure Key Vault or the client's key store. Without that key, even a DBA with full server privileges cannot read the original data, which directly satisfies the requirement.

Why this answer

Always Encrypted ensures that sensitive data is encrypted at all times, including during query processing, and that the encryption keys are never revealed to the database engine. This allows DBAs to perform administrative tasks (e.g., backups, index maintenance) while being unable to view the plaintext data in query results, because the decryption occurs only on the client side.

Exam trap

The trap here is that candidates confuse Dynamic Data Masking with Always Encrypted, assuming masking prevents DBAs from seeing data, when in fact masking can be overridden by users with higher permissions, whereas Always Encrypted cryptographically prevents any server-side access to plaintext.

Why the other options are wrong

A

Dynamic Data Masking obfuscates data in query results but does not prevent DBAs from viewing the actual data; they can still access the unmasked data by altering permissions or using queries that bypass the mask. The requirement is to prevent DBAs from viewing sensitive data entirely, which Dynamic Data Masking cannot guarantee.

C

Transparent Data Encryption (TDE) encrypts data at rest but does not prevent DBAs from viewing sensitive data in query results; it protects against unauthorized access to the physical storage, not from authorized users querying the database.

D

Row-Level Security (RLS) restricts access to rows based on user predicates, but it does not prevent DBAs from viewing sensitive data in query results because DBAs typically have elevated permissions that bypass RLS policies.

When would these options actually be correct?

A

A company wants to limit exposure of sensitive data to non-privileged users (e.g., support staff) while allowing DBAs to see the full data. Dynamic Data Masking would be correct because it masks data at the application layer without changing the underlying database, and DBAs can still access the original data.

C

A company needs to protect an Azure SQL database against theft of physical media or backup files by encrypting the database files at rest. The question would specify that the concern is about unauthorized access to storage, not about DBAs viewing data.

D

A scenario where you need to restrict users to see only their own data (e.g., customers seeing only their orders) without requiring encryption or masking, and where the DBA is not a concern (e.g., the DBA is trusted or not part of the threat model).

Why candidates pick the wrong answer

A

Candidates may confuse masking with encryption, thinking that masking prevents DBAs from seeing data, but masking is a presentation-layer feature that does not secure data from users with elevated permissions.

C

Candidates may confuse encryption at rest (TDE) with encryption in use (Always Encrypted), or assume that any encryption prevents DBAs from seeing data, overlooking that TDE does not control access at the query level.

D

Candidates may confuse RLS with data protection features, thinking it can hide sensitive columns from administrators, but RLS is row-based and does not protect against users with high privileges like db_owner.

463
Multi-Selectmedium

Which TWO Azure services can be used to host a relational database that is compatible with SQL Server?

Select 2 answers
A.Azure SQL Database
B.Azure Database for PostgreSQL
C.Azure Cosmos DB
D.Azure SQL Managed Instance
E.Azure Database for MySQL
AnswersA, D

Azure SQL Database is a fully managed platform-as-a-service engine built on the SQL Server database engine, so it satisfies the SQL Server compatibility constraint. It hosts relational data without you managing the underlying operating system or patching, making it a direct fit for the scenario.

Why this answer

Azure SQL Database (A) is correct because it is a fully managed PaaS relational database engine built on the same SQL Server engine, so it is directly compatible with SQL Server T-SQL, tooling, and drivers. Azure SQL Managed Instance (D) is also correct because it runs the SQL Server database engine with near-100% compatibility, including features like SQL Agent, cross-database queries, and CLR, making it a relational SQL Server-compatible service. Azure Database for PostgreSQL (B) is not correct because it is a PostgreSQL-compatible relational service, not SQL Server-compatible.

Azure Cosmos DB (C) is not correct because it is a multi-model NoSQL database, not a relational SQL Server-compatible engine. Azure Database for MySQL (E) is not correct because it is a MySQL-compatible relational service, not SQL Server-compatible.

Exam trap

DP-900 often tests the distinction between SQL Server-compatible services and other relational databases — candidates may incorrectly include PostgreSQL or MySQL as SQL Server-compatible because they are all relational.

464
MCQmedium

A data analyst needs to combine sales data from Azure SQL Database and inventory data from Azure Cosmos DB into a single Power BI report. Which Power BI feature should they use?

A.Power Query
B.Power BI Desktop
C.DAX formulas
D.Dataflows
AnswerA

Power Query is the data transformation and connectivity engine built into Power BI Desktop, Excel, and other products. It lets analysts connect to Azure SQL Database, preview and shape the data, and then combine it with other sources using merge (join) or append (union) operations. Its M language provides precise control over transforms before data is loaded into the model, making it the correct direct tool for combining sales data.

Why this answer

Power Query is the correct feature because it is the data connection and transformation engine in Power BI that allows you to connect to multiple data sources—such as Azure SQL Database and Azure Cosmos DB—and combine them into a single dataset for reporting. It provides a graphical interface to merge, append, and shape data from disparate sources before loading it into the data model, which is exactly what the analyst needs to do.

Exam trap

The trap here is that candidates often confuse the tool (Power BI Desktop) with the feature (Power Query), or they mistakenly think DAX is used for data integration, when in fact DAX operates only on data already in the model, not on source connections.

How to eliminate wrong answers

Option B (Power BI Desktop) is wrong because Power BI Desktop is the application that hosts Power Query, not the specific feature for combining data from multiple sources; it is the environment where the report is built, not the tool for data integration. Option C (DAX formulas) is wrong because DAX (Data Analysis Expressions) is used for creating calculated columns, measures, and custom aggregations within the data model after data is loaded, not for connecting to or combining data from different source systems. Option D (Dataflows) is wrong because Dataflows are a cloud-based ETL tool for preparing and reusing data across workspaces, but they are not the direct feature used within a single Power BI Desktop report to combine live connections from Azure SQL Database and Azure Cosmos DB; Power Query is the immediate tool for that task.

465
MCQmedium

A social media company stores user posts in Azure Cosmos DB. Posts are frequently queried by user ID and creation timestamp. To minimize Request Units (RU) per query, which property should be chosen as the partition key?

A.User ID
B.Timestamp
C.Post content
D.A composite key of user ID and timestamp
AnswerA

User ID is the optimal partition key because it is a high-cardinality attribute that appears in nearly every query for a social media application, such as 'retrieve all posts by a user' or 'find posts by a user within a date range'. It distributes documents evenly across logical partitions to avoid hot partitions, and because each physical partition can store up to 20GB, even high-volume users' posts are typically collocated for efficient range reads with minimal routing cost. A well-chosen partition key like User ID ensures that point reads and queries scoped to a single partition consume fewer RUs and avoid cross-partition fan-out.

Why this answer

User ID is the correct partition key because it evenly distributes writes and reads across physical partitions, ensuring that queries filtering by user ID and timestamp are scoped to a single partition. This minimizes cross-partition queries, which consume more Request Units (RU) than single-partition queries. Azure Cosmos DB routes each query to the partition containing the matching partition key value, so choosing User ID keeps most queries efficient.

Exam trap

The trap here is that candidates often choose a composite key (Option D) thinking it improves query efficiency, but they overlook that Azure Cosmos DB requires the partition key to be a single property in the filter for single-partition queries, and a composite key would not be used as a single partition key unless explicitly defined as such in the container.

How to eliminate wrong answers

Option B (Timestamp) is wrong because using timestamp as the partition key would cause hot partitions—all posts created at the same time would land on the same physical partition, leading to throttling and uneven RU consumption. Option C (Post content) is wrong because post content is not a query filter and would result in unpredictable, non-uniform data distribution, causing cross-partition scans for every query. Option D (A composite key of user ID and timestamp) is wrong because while it might seem logical, it would force every query to include both values in the filter to target a single partition; queries filtering only by user ID would become cross-partition, increasing RU cost.

466
Multi-Selecthard

Which THREE of the following are valid considerations when choosing between Azure Cosmos DB and Azure Table Storage?

Select 3 answers
A.Table Storage supports multi-region writes
B.Cosmos DB provides multiple consistency levels
C.Cosmos DB supports multi-region writes
D.Cosmos DB does not support JSON documents
E.Cosmos DB automatically indexes all properties
AnswersB, C, E

Cosmos DB offers five well-defined consistency levels, from strong to eventual, letting architects tune the latency-versus-consistency trade-off per workload. Table Storage provides only strong consistency within a partition, so this difference is a genuine selection consideration between the two services.

Why this answer

Option B is correct because Azure Cosmos DB exposes five well-defined consistency levels (strong, bounded staleness, session, consistent prefix, and eventual), letting you trade off latency and consistency per workload, whereas Azure Table Storage offers only strong consistency within a region. Option C is correct because Cosmos DB supports multi-region writes (multi-master) across its configured regions, allowing writes to any region and automatic conflict resolution, which is a key differentiator from Table Storage. Option E is correct because Cosmos DB automatically indexes every property in a document by default (with an indexing policy you can tune), so no manual index management is needed, unlike Table Storage where you must design and maintain partition/row key indexes yourself.

Option A is not correct because Azure Table Storage is single-region for writes; it supports read-access geo-redundant storage (RA-GRS) for read-only replicas, not multi-region writes. Option D is not correct because Cosmos DB's SQL (Core) API stores data as JSON documents, and it also offers APIs for other models, so it fully supports JSON.

467
MCQeasy

A data analyst needs to query a large dataset stored in Azure Blob Storage using serverless SQL pool in Azure Synapse Analytics. Which data format should they use to minimize storage costs while still supporting efficient querying?

A.CSV
B.JSON
C.Parquet
D.Avro
AnswerC

Parquet is a columnar storage format that groups values by column, enabling modern compression techniques like dictionary and run-length encoding to dramatically reduce storage footprint. Analytical engines can push predicate filters and column projections down to the file layer, reading only the needed columns and row groups, which minimizes I/O and query latency. This design makes Parquet the optimal choice for large analytical workloads in Azure, including Azure Synapse, Databricks, and Data Lake Storage.

Why this answer

Parquet is a columnar storage format that compresses data efficiently and supports predicate pushdown, allowing serverless SQL pool in Azure Synapse to read only the necessary columns and rows. This minimizes storage costs while maintaining high query performance, unlike row-oriented formats such as CSV or JSON.

Exam trap

The trap here is that candidates often assume all compressed formats (like Avro) are equally efficient for analytics, but Azure Synapse serverless SQL pool is specifically optimized for columnar formats like Parquet, not row-oriented ones.

How to eliminate wrong answers

Option A is wrong because CSV is a row-oriented, plain-text format with no compression or schema, leading to larger storage footprint and slower queries due to full file scans. Option B is wrong because JSON is also row-oriented and self-describing, resulting in poor compression and inefficient querying as serverless SQL pool must parse the entire file. Option D is wrong because Avro, while compact and schema-based, is row-oriented and not optimized for analytical queries that benefit from columnar storage and predicate pushdown.

468
MCQeasy

A retail company wants to store product catalog data in a non-relational format. The data includes product ID, name, description, price, and an array of tags. The data is frequently updated and must support low-latency reads and writes at global scale. Which Azure service should they use?

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

Azure Cosmos DB is a globally distributed, multi-model NoSQL database service that stores data as schema-agnostic JSON documents, making it a natural fit for a product catalog. It provides turnkey global distribution across Azure regions, automatic indexing of all properties, and read and write latencies in the single-digit milliseconds at the 99th percentile. Cosmos DB also offers multiple consistency levels (strong, bounded staleness, session, consistent prefix, eventual) so you can tailor data freshness versus performance. For a retail catalog that must be always available and queried at scale, Cosmos DB's document API and dedicated throughput (RU/s) deliver both flexibility and predictable performance.

Why this answer

Azure Cosmos DB is a globally distributed NoSQL database service that supports low-latency reads and writes at global scale. It can store JSON documents with arrays, making it suitable for product catalog data that includes tags. Azure Table Storage is a key-value store but lacks global distribution and support for complex queries.

Azure Blob Storage is designed for unstructured blob data, not transactional updates. Azure Cache for Redis is an in-memory cache, not a durable data store for product catalogs.

469
MCQmedium

Your team is building a real-time dashboard for monitoring website traffic. The data source is streaming click events from Azure Event Hubs. The dashboard must update within seconds. Which Azure service should you use to process the stream?

A.Azure Stream Analytics
B.Azure Synapse Pipelines
C.Azure Data Factory
D.Azure Databricks Structured Streaming
AnswerA

Azure Stream Analytics is a fully managed stream processing engine that natively supports real-time ingestion from Azure Event Hubs and IoT Hub. It provides sub-second latency via continual SQL-like queries over temporal windows, and it has a built-in Power BI output adapter, making it ideal for live dashboards. Unlike batch tools, it executes queries continuously on unbounded streams, delivering results as events arrive.

Why this answer

Azure Stream Analytics is designed for real-time stream processing with low-latency output, making it ideal for processing click events from Event Hubs and updating a dashboard within seconds. It provides a SQL-like query language to define transformations and can output directly to Power BI or other visualization tools for near-instantaneous dashboard updates.

Exam trap

Microsoft often tests the misconception that any data processing service can handle streaming, but the trap here is that Azure Data Factory and Synapse Pipelines are batch-oriented, while Databricks Structured Streaming, though capable, is not the simplest or most cost-effective choice for a quick, SQL-based real-time dashboard.

How to eliminate wrong answers

Option B (Azure Synapse Pipelines) is wrong because it is primarily an orchestration tool for data movement and transformation in batch scenarios, not for real-time stream processing with sub-second latency. Option C (Azure Data Factory) is wrong because it is a cloud-based ETL service for batch data integration and scheduling, lacking native support for continuous streaming inputs like Event Hubs. Option D (Azure Databricks Structured Streaming) is wrong because while it can process streams, it is a more complex, code-heavy solution (Spark-based) that is overkill for simple dashboard updates and does not offer the same turnkey, low-latency output to Power BI as Stream Analytics.

470
MCQmedium

A retail company runs analytical reporting queries on a large Sales table in Azure SQL Database. The table contains over 100 million rows and is updated daily with new transactions. The queries aggregate data by product and month, scanning millions of rows per query. The company wants to significantly reduce query execution time without changing the queries. Which indexing strategy should they implement?

A.Create a clustered columnstore index on the table.
B.Create a nonclustered index on the ProductID column.
C.Create a filtered index for the most recent month's data.
D.Create a clustered rowstore index (default) and rely on database compression.
AnswerA

A clustered columnstore index is the optimal choice for an analytical warehouse table because it physically stores each column separately, allowing the query engine to read only the columns needed for aggregations (e.g., ProductID, Month, SalesAmount). This columnar layout enables higher compression ratios (often 5-10x) and uses vectorized batch mode execution, which accelerates scans and SUM/COUNT/GROUP BY operations dramatically compared to row-based storage. The fact that it is clustered means the entire table is organized as a columnstore, eliminating rowstore lookups and making full-scan analytical queries extremely efficient.

Why this answer

A clustered columnstore index is ideal for large data warehousing and analytical workloads because it stores data column-wise, enabling high compression and batch-mode processing. For queries that aggregate millions of rows by product and month, columnstore indexes dramatically reduce I/O and CPU by scanning only the necessary columns and using segment elimination, which directly addresses the requirement to reduce query execution time without changing the queries.

Exam trap

The trap here is that candidates often choose a nonclustered index (B) thinking it will speed up all queries, but they overlook that analytical aggregations on millions of rows require columnstore's batch processing and column elimination, not row-based index seeks.

How to eliminate wrong answers

Option B is wrong because a nonclustered index on ProductID would only speed up point lookups or small range scans, not large aggregations scanning millions of rows; it would likely cause key lookups and still require scanning most of the table. Option C is wrong because a filtered index for the most recent month's data would only benefit queries restricted to that month, but the existing queries aggregate across all months and would not use the filtered index, leaving the full scan overhead unchanged. Option D is wrong because a clustered rowstore index with compression reduces storage size but does not change the fundamental row-based storage and scan pattern; queries still scan all rows and columns, so execution time remains high for large aggregations.

471
MCQhard

A healthcare organization must store patient health records for 7 years to meet regulatory requirements. After 7 years, data must be deleted immediately. They use Azure Blob Storage. Which policy should they implement?

A.Soft delete policy
B.Legal hold policy
C.Lifecycle management policy with deletion after 7 years
D.Time-based retention policy
AnswerD

A time-based retention policy, often implemented as immutable blob storage, locks data in a write-once, read-many (WORM) state for a specified interval, preventing modification or deletion until that interval elapses. In Azure, you set a retention period in days or years, and the service enforces the policy globally, blocking any attempts to overwrite or remove the data. This satisfies the healthcare requirement to preserve patient records for exactly seven years, after which deletion is allowed.

Why this answer

A time-based retention policy (immutability policy) in Azure Blob Storage ensures that blobs are stored in a WORM (Write Once, Read Many) state for a specified period, preventing modification or deletion. After the retention period expires, the data can be deleted immediately, meeting the 7-year regulatory requirement. This policy is designed specifically for compliance scenarios where data must be preserved for a fixed duration and then removed.

Exam trap

The trap here is that candidates confuse lifecycle management (which automates deletion but does not prevent premature modification) with time-based retention (which enforces immutability during the retention period), leading them to choose lifecycle management despite its inability to guarantee data integrity before deletion.

How to eliminate wrong answers

Option A is wrong because a soft delete policy only protects against accidental deletion by retaining deleted blobs for a configurable period, but it does not enforce a minimum retention duration or guarantee immediate deletion after 7 years. Option B is wrong because a legal hold policy indefinitely prevents deletion or modification of blobs for legal or investigation purposes, with no automatic expiration, so it cannot enforce a fixed 7-year retention followed by deletion. Option C is wrong because a lifecycle management policy can delete blobs after a specified age, but it does not prevent modification or deletion during the retention period, meaning data could be altered or deleted before 7 years, violating compliance requirements.

472
MCQmedium

A company has an Azure SQL Database that stores sensitive financial data. They need to ensure that database administrators (DBAs) cannot view the actual data but can still perform administrative tasks. Which feature should they implement?

A.Azure role-based access control (RBAC)
B.Dynamic data masking
C.Transparent data encryption (TDE)
D.Azure SQL Database auditing
AnswerB

Dynamic data masking (DDM) is a column-level security feature that applies masking rules (e.g., partial, default, random, email) to specified sensitive columns. For non-privileged users lacking the UNMASK permission, the database engine transforms the query result set to show obfuscated values, while privileged users with UNMASK see the original data. Because DDM operates at query time without altering stored data, it directly addresses the need to hide sensitive information from specific users and is the correct answer.

Why this answer

Dynamic data masking hides sensitive data from non-privileged users, including DBAs if they are not exempted. Option A is wrong because Azure RBAC controls access but doesn't mask data. Option C is wrong because TDE encrypts at rest but does not hide data from DBAs.

Option D is wrong because Azure SQL Database auditing logs actions but doesn't prevent viewing.

473
MCQmedium

A smart building company stores IoT sensor data in Azure Cosmos DB using the NoSQL API. Each document contains fields: deviceId (partition key), timestamp, temperature, and humidity. The most common query is to retrieve all readings for a specific device within a time range, which runs efficiently. However, the analytics team occasionally runs a query to find all devices that reported a temperature above 50 degrees Celsius in the last hour, without specifying deviceId. This query is very slow and consumes a high number of request units (RUs). What is the most likely reason for the slow performance and high RU consumption?

A.The query does not use the partition key, causing a cross-partition scan.
B.The query is not using an index on the temperature field.
C.The time range filter is too large, causing a full table scan.
D.The document size is too large, increasing RU per read.
AnswerA

In Azure Cosmos DB, a query's RU cost and latency heavily depend on whether its filter includes the partition key. When the WHERE clause lacks the partition key, the request cannot be routed to a single physical partition, so the query is fanned out to every partition and scans each one for matching documents. This cross-partition scan multiplies the amount of data read and the RU consumption, and it also introduces network round-trips across partitions, which is why the query is slow and expensive. Including the partition key in the filter would constrain the query to one partition and avoid this overhead.

Why this answer

The query does not include the partition key (deviceId) in the filter, so Azure Cosmos DB cannot route it to a single physical partition. Instead, it must fan out the query to every partition, scanning all documents across the container. This cross-partition query consumes significantly more RUs and takes longer because each partition must be queried sequentially or in parallel, and the results are merged server-side.

Exam trap

The trap here is that candidates may assume indexing is the culprit (Option B) because they think a missing index causes slow queries, but Azure Cosmos DB indexes all fields automatically, so the real issue is the missing partition key forcing a cross-partition scan.

How to eliminate wrong answers

Option B is wrong because Azure Cosmos DB automatically indexes all fields by default (unless the indexing policy is explicitly overridden), so the temperature field is already indexed; the slowness is not due to a missing index. Option C is wrong because the time range filter is only one hour, which is a narrow window; the performance issue is caused by the lack of partition key, not the size of the time range. Option D is wrong because document size affects RU cost per read, but the primary reason for the high RU consumption and slowness is the cross-partition scan, not the size of individual documents.

474
MCQeasy

Your team needs to store JSON documents that require schema flexibility and global distribution. Which Azure data store should you choose?

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

Azure Cosmos DB is the correct choice because it is a natively schema-agnostic, multi-model NoSQL database. It stores JSON documents as first-class items in an indexable, physically contiguous format, and its SQL-like query engine can directly reference nested JSON properties without any pre-defined table structure. Documents with completely different fields can sit side-by-side in the same container, and the service also provides global distribution, multiple consistency levels, and tunable indexing to meet operational requirements.

Why this answer

Azure Cosmos DB is a globally distributed, multi-model database service that natively supports JSON documents with schema flexibility. It offers turnkey global distribution, multi-master replication, and low-latency access worldwide, making it the ideal choice for JSON documents requiring global distribution.

Exam trap

DP-900 often tests the difference between Cosmos DB (globally distributed, schema-flexible NoSQL) and Azure SQL Database (relational, schema-fixed), tricking candidates who overlook global distribution requirements.

How to eliminate wrong answers

Option A is wrong because Azure Table Storage is a key-value store with limited querying and no global distribution or schema flexibility for complex JSON documents. Option B is wrong because Azure SQL Database is a relational database with a fixed schema, not ideal for schema-flexible JSON documents, and global distribution requires additional configuration like geo-replication. Option C is wrong because Azure Blob Storage is object storage for unstructured data, not a database with querying and indexing capabilities for JSON documents.

475
MCQeasy

A company stores user profile images in Azure Blob Storage. Each image is accessed via a URL that includes a Shared Access Signature (SAS) token generated using the storage account key. The company needs to immediately revoke access to all images for a specific user. Which action should they take?

A.Delete the individual SAS tokens associated with that user's images.
B.Change the storage account access keys.
C.Delete the container containing the user's images.
D.Regenerate the SAS token for each image.
AnswerB

Rotating an Azure Storage account access key immediately invalidates every SAS token whose signature was computed with that key, because the signature is a keyed hash that can no longer be verified. This provides a definitive way to revoke the user's images access without deleting any data, though it also revokes all other SAS tokens that used the same key, so new tokens must be issued to legitimate users. The account key is the root credential for all types of SAS tokens, making this the most forceful revocation mechanism available.

Why this answer

Changing the storage account access keys invalidates all SAS tokens that were generated using those keys, including any existing tokens. This immediately revokes access to all images for all users, including the specific user, without needing to manage individual tokens. SAS tokens are signed with the account key, so rotating the key renders all tokens generated with the old key invalid.

Exam trap

The trap here is that candidates think SAS tokens can be individually deleted or regenerated, but Azure does not maintain a token registry; the only way to invalidate all tokens derived from an account key is to rotate the key itself.

How to eliminate wrong answers

Option A is wrong because SAS tokens are not stored or managed individually by Azure; they are generated on-the-fly and embedded in URLs, so there is no central list of tokens to delete. Option C is wrong because deleting the entire container would remove all images for all users, which is excessive and not targeted to a specific user. Option D is wrong because regenerating the SAS token for each image would require knowing each token and would not revoke access to existing tokens that are already distributed; it also does not scale for immediate revocation.

476
MCQmedium

An e-commerce application processes customer orders. When an order is placed, the system must decrement the inventory count and process the payment. The application ensures that either both operations complete successfully or both are rolled back if any error occurs. Which database property does this guarantee?

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

Atomicity is the ACID property that treats a transaction as a single, indivisible unit of work. If any statement within the transaction (such as updating inventory or recording the order) fails, the entire transaction is rolled back, leaving the database exactly as it was before the transaction began. This all-or-nothing behavior prevents partial updates, ensuring that a customer order is either fully recorded or not recorded at all.

Why this answer

Atomicity ensures that a transaction is treated as a single, indivisible unit of work: either all operations within it (decrement inventory and process payment) complete successfully, or none are applied. If any part fails, the database rolls back all changes, maintaining the 'all-or-nothing' guarantee. This is the core property described in the scenario.

Exam trap

The trap here is that candidates confuse atomicity with consistency, thinking that 'keeping data valid' is the same as 'all-or-nothing execution,' but atomicity is specifically about the transaction's indivisibility, not about data integrity rules.

Why the other options are wrong

B

Consistency ensures that a transaction transforms the database from one valid state to another, but the question specifically describes the 'all-or-nothing' execution of multiple operations, which is the definition of atomicity, not consistency.

C

Isolation ensures concurrent transactions do not interfere, but the question describes a single transaction that must complete entirely or not at all, which is Atomicity, not Isolation.

D

Durability ensures that once a transaction is committed, its changes persist even after a system failure. The question describes a scenario where operations are rolled back on error, which is about atomicity (all-or-nothing), not durability.

When would these options actually be correct?

B

A question that asks: 'A database constraint ensures that after an order is placed, the total inventory count across all warehouses remains non-negative. Which property does this enforce?' would make consistency the correct answer, as it maintains data integrity rules.

C

If the question described two concurrent transactions, such as one updating inventory and another reading inventory, and the system must prevent the read from seeing an intermediate state, then Isolation would be the correct property.

D

A question asks: 'After a successful order transaction, the system crashes. The database guarantees that the order and inventory updates are not lost. Which property ensures this?' The correct answer would be Durability.

Why candidates pick the wrong answer

B

Candidates may confuse atomicity with consistency because both are ACID properties related to transaction correctness, and the scenario of ensuring both operations succeed or fail together might be misconstrued as maintaining data consistency.

C

Candidates may confuse the 'all or nothing' requirement with the idea of isolating operations from each other, or they may think that ensuring both operations complete without interference relates to Isolation.

D

Candidates may confuse durability with atomicity because both involve transaction reliability, but durability focuses on persistence after commit, not the all-or-nothing execution during the transaction.

477
MCQmedium

Your application uses Azure Table storage to store user preferences. You need to retrieve all preferences for a specific user quickly. Which key should you use as the partition key?

A.Region
B.Random GUID
C.UserID
D.Timestamp
AnswerC

UserID is the natural partition key because it groups every preference row for a single user into the same partition, allowing their data to be retrieved with a fast, single-partition query. This design also enables entity group transactions, so multiple preference updates for a user can be applied atomically. Since each user forms a distinct, evenly distributed partition when user IDs are varied, it avoids hot partitions while matching the application's primary access pattern.

Why this answer

In Azure Table Storage, the partition key determines which partition stores the entity, and entities with the same partition key are stored together and can be retrieved with a single partition scan. Using UserID as the partition key groups all preferences for a user into one partition, enabling fast point queries by PartitionKey + RowKey.

Exam trap

DP-900 often tests the trade-off between even write distribution and query efficiency; candidates pick a random GUID for 'scalability' without realizing it destroys the ability to query by user efficiently.

How to eliminate wrong answers

Option A is wrong because Region would group users by geography, so retrieving one user's preferences would require scanning many entities in a large partition. Option B is wrong because a random GUID spreads entities across partitions, making per-user retrieval a cross-partition query — the opposite of what is needed. Option D is wrong because Timestamp as partition key groups by time, so a user's preferences would be scattered across many partitions, requiring a full table scan.

478
MCQhard

An organization stores sensitive customer data in Azure SQL Database. They need to encrypt the data at rest and ensure that only authorized applications can decrypt it. Which combination of features should they implement?

A.Row-Level Security (RLS) and Transparent Data Encryption (TDE)
B.Azure SQL Database Auditing and Transparent Data Encryption (TDE)
C.Transparent Data Encryption (TDE) and Always Encrypted
D.Dynamic Data Masking and Always Encrypted
AnswerC

TDE encrypts the underlying database file, transaction log, and backups so data at rest cannot be read if the physical media is stolen, but it does not protect data from users who have valid access to the database. Always Encrypted elevates protection by keeping encryption keys entirely on the client side, so for selected columns SQL Server only stores and processes ciphertext; only the authorized client application can decrypt the values, and even high-privilege database admins cannot see the plaintext. Together, TDE secures the entire database at rest while Always Encrypted provides column-level confidentiality and controlled decryption by the application, making this the correct pair for end-to-end encryption of sensitive customer data.

Why this answer

Transparent Data Encryption (TDE) encrypts the database, backups, and logs at rest at the storage layer, protecting against physical media theft. Always Encrypted goes further by encrypting specific columns client-side so that even DBAs and the SQL engine cannot see plaintext — only authorized client applications holding the column encryption keys can decrypt. Together they satisfy both 'encrypt at rest' and 'only authorized applications can decrypt'.

Exam trap

DP-900 often tests the misconception that Dynamic Data Masking or Row-Level Security provides encryption — candidates confuse 'hiding data in results' with 'encrypting data at rest' and pick the masking option.

How to eliminate wrong answers

Option A is wrong because Row-Level Security restricts which rows a user can query based on predicates; it does not encrypt data at rest or control decryption by applications. Option B is wrong because Auditing only logs activity for compliance and forensics; it provides no encryption or decryption control. Option D is wrong because Dynamic Data Masking only obscures data in query results for non-privileged users — the underlying data remains plaintext and any user with SELECT can potentially see it via other queries; it is not encryption.

479
MCQeasy

A company stores three types of data: 1) Customer orders in a SQL table with fixed columns for OrderID, CustomerID, and OrderDate. 2) Product reviews in XML files where each file contains varying tags such as <rating> and <comment>. 3) Video files of product demonstrations. Which of the following correctly classifies these data types in order from first to third?

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

This classification is correct because each data type is matched to its intrinsic format. Customer orders in a SQL table have a fixed schema with rows and columns, enforcing structured data. XML files use custom tags and a hierarchical tag-based format that does not require a rigid relational schema, making them semi-structured. Video files are binary streams with no predefined data model or queryable structure, so they are unstructured.

Why this answer

Customer orders in a SQL table with fixed columns (OrderID, CustomerID, OrderDate) are structured data because they conform to a rigid schema. Product reviews in XML files with varying tags like <rating> and <comment> are semi-structured data because they have tags/metadata but no fixed schema. Video files of product demonstrations are unstructured data because they lack any predefined data model or organization.

Exam trap

Microsoft often tests the distinction between semi-structured and unstructured data by using XML/JSON as semi-structured examples, where candidates mistakenly classify them as unstructured due to the lack of a fixed schema, ignoring the presence of metadata tags.

Why the other options are wrong

C

The order is incorrect: video files are unstructured, not semi-structured; product reviews in XML are semi-structured, not unstructured.

D

The third data type (video files) is unstructured, not semi-structured. Semi-structured data has some organizational properties (like XML tags), but video files lack any structure or schema.

When would these options actually be correct?

C

If the data types were: 1) Video files (unstructured), 2) SQL table (structured), 3) XML reviews (semi-structured), then C would be correct.

D

If the question listed data types as: 1) JSON files with varying fields, 2) Video files, 3) SQL tables with fixed columns, then the correct order would be semi-structured, unstructured, structured.

Why candidates pick the wrong answer

C

Candidates may confuse XML as unstructured because it is not a fixed table, or think video files are semi-structured due to metadata.

D

Candidates may confuse the order of data types, mistakenly thinking that video files are semi-structured because they can contain metadata, or they may misremember the classification hierarchy.

480
MCQeasy

A company wants to build a near-real-time analytics solution on Azure. IoT devices send telemetry data to Azure Event Hubs. The data must be processed and stored in Azure Cosmos DB for low-latency queries. Which Azure service should be used to process the streaming data?

A.Azure Logic Apps
B.Azure Functions
C.Azure Stream Analytics
D.Azure Data Factory
AnswerC

Azure Stream Analytics is purpose-built for real-time analytics on unbounded data streams. It natively ingests from services like Event Hubs and IoT Hub, lets you express complex temporal queries in a SQL-like language with built-in windows and event-time handling, and can write results to Cosmos DB, Power BI, or other sinks with sub-second latency. As a fully managed platform, it handles checkpointing, failure recovery, and scaling so you can process high-volume streaming data without managing infrastructure.

Why this answer

Azure Stream Analytics is the correct choice because it is a fully managed stream processing engine designed specifically for real-time analytics on high-throughput data streams from sources like Azure Event Hubs. It can run SQL-like queries to filter, aggregate, and join streaming data, and output results directly to Azure Cosmos DB for low-latency queries, making it ideal for near-real-time IoT analytics.

Exam trap

The trap here is that candidates often confuse Azure Functions (a general-purpose event-driven compute service) with a dedicated stream processing engine, overlooking that Functions lacks native support for continuous streaming, windowing, and exactly-once semantics required for near-real-time analytics.

How to eliminate wrong answers

Option A is wrong because Azure Logic Apps is a workflow orchestration service for integrating apps and data, not a stream processing engine; it lacks the ability to handle high-throughput, continuous streaming data with sub-second latency. Option B is wrong because Azure Functions is an event-driven compute service that can process individual events, but it is not optimized for continuous stream processing across large volumes of data and does not provide built-in windowing, aggregation, or exactly-once semantics for streaming analytics. Option D is wrong because Azure Data Factory is a data integration and orchestration service for batch and scheduled data movement, not for real-time stream processing; it cannot process streaming data from Event Hubs in near-real-time.

481
MCQmedium

A data analyst needs to run interactive SQL queries against petabytes of sales data stored in Parquet format in Azure Data Lake Storage Gen2. The analyst wants the fastest query performance for ad-hoc exploration without provisioning or managing any infrastructure. Which Azure service should they use?

A.A. Azure SQL Database
B.B. Azure Synapse Serverless SQL pool
C.C. Azure HDInsight
D.D. Azure Data Factory
AnswerB

Serverless SQL pool in Azure Synapse Analytics provides a distributed query engine that can query data directly in Azure Data Lake Storage (including Parquet) using T-SQL. It is serverless, scales automatically, and charges per query, making it ideal for interactive ad-hoc analytics.

Why this answer

Azure Synapse Serverless SQL pool is correct because it enables running interactive T-SQL queries directly against Parquet files in Azure Data Lake Storage Gen2 without provisioning any infrastructure. It uses a pay-per-query model and leverages a distributed query engine to deliver fast performance on petabytes of data, making it ideal for ad-hoc exploration.

Exam trap

The trap here is that candidates often confuse Azure Synapse Serverless SQL pool with Azure SQL Database, assuming both are for querying data, but Azure SQL Database cannot directly query external files in Data Lake Storage without additional tools like PolyBase.

How to eliminate wrong answers

Option A is wrong because Azure SQL Database is a provisioned, managed relational database service designed for transactional workloads, not for querying petabytes of data in Parquet format in Data Lake Storage. Option C is wrong because Azure HDInsight requires provisioning and managing a cluster (e.g., Spark or Hive) and is not serverless, contradicting the requirement of no infrastructure management. Option D is wrong because Azure Data Factory is an orchestration and data movement service, not an interactive query engine; it cannot run SQL queries directly against data in Data Lake Storage.

482
MCQeasy

A startup has an application with unpredictable usage patterns on Azure SQL Database. They want to minimize cost by paying only for the compute they use and the database should automatically pause during idle periods. Which Azure SQL Database option should they choose?

A.Serverless
B.Provisioned (DTU or vCore)
C.Hyperscale
D.Business Critical
AnswerA

Serverless is the correct choice because it decouples compute billing from database uptime: you are billed per vCore-second only while actively processing queries, and the database auto-pauses after a configurable idle period (default 60 minutes). This means a workload with unpredictable spikes and long quiet stretches only pays for compute during those spikes, while storage (separately billed) remains intact. The resume-from-pause typically takes tens of seconds, making it practical for sporadic app usage.

Why this answer

Azure SQL Database Serverless is designed for applications with unpredictable usage patterns, as it automatically scales compute resources based on demand and pauses the database during idle periods to eliminate compute costs. This model charges per second for the compute used, making it the most cost-effective choice for workloads that have periods of inactivity.

Exam trap

The trap here is that candidates often confuse 'serverless' with 'Hyperscale' or assume all Azure SQL tiers support auto-pause, but only the Serverless tier provides automatic compute pausing and per-second billing for idle periods.

How to eliminate wrong answers

Option B (Provisioned DTU or vCore) is wrong because it requires a fixed amount of compute resources to be allocated at all times, even when the database is idle, leading to continuous billing and no auto-pause capability. Option C (Hyperscale) is wrong because it is optimized for large databases with high scalability and fast recovery, not for cost savings through auto-pause; it uses a provisioned compute model with no idle pause feature. Option D (Business Critical) is wrong because it is a high-availability tier with multiple replicas and fast failover, designed for mission-critical workloads, and does not support auto-pause or pay-per-use compute billing.

483
MCQeasy

A data analyst receives a dataset containing customer order details stored in a CSV file, a JSON file with product reviews, and a folder of JPEG images of products. Which of the following correctly categorizes these data types from most structured to least structured?

A.CSV → JPEG → JSON
B.JSON → CSV → JPEG
C.CSV → JSON → JPEG
D.JPEG → JSON → CSV
AnswerC

CSV is the most structured because it enforces a tabular schema—every row has the same ordered columns and each field is a scalar value. JSON is semi-structured: it uses named key-value pairs and can nest arrays/objects, but no fixed schema is required and structure can vary per record. JPEG is unstructured: its binary encoding represents compressed pixel data, not queryable fields or relationships. Ordering them most-to-least structured therefore must place CSV first, JSON second, and JPEG last.

Why this answer

CSV files are highly structured with rows and columns defined by a schema, making them the most structured. JSON files are semi-structured, using key-value pairs and nested objects that allow flexibility but lack a fixed schema. JPEG images are unstructured binary data with no inherent schema, so the correct order from most to least structured is CSV → JSON → JPEG, making option C correct.

Exam trap

Microsoft often tests the misconception that JSON is more structured than CSV because it uses named keys, but in reality, CSV's fixed schema makes it more structured than JSON's flexible, self-describing format.

Why the other options are wrong

A

CSV is structured (rows/columns), JSON is semi-structured (key-value pairs), and JPEG is unstructured (binary). Option A incorrectly places JSON after JPEG, but JSON is more structured than JPEG.

B

JSON is less structured than CSV because CSV has a strict tabular schema with rows and columns, while JSON allows nested, hierarchical data without a fixed schema. JPEG images have no inherent structure, so the correct order from most to least structured is CSV → JSON → JPEG.

D

JPEG images are unstructured data, while JSON is semi-structured and CSV is structured. Ordering JPEG before JSON and CSV incorrectly suggests images are more structured than text-based formats.

When would these options actually be correct?

A

If the question asked to order from least to most structured, then JPEG (unstructured) → JSON (semi-structured) → CSV (structured) would be correct, making A the right choice.

B

If the question asked for data types from least to most structured, or if the JSON file contained only flat key-value pairs with no nesting and the CSV had inconsistent columns, then JSON could be considered more structured than CSV.

D

If the question asked to order data types from least to most structured, then D (JPEG → JSON → CSV) would be correct, as JPEG is unstructured, JSON semi-structured, and CSV structured.

Why candidates pick the wrong answer

A

Candidates may mistakenly think JSON is less structured than CSV because JSON allows nested data, or they may confuse the order of the options and not carefully read 'most structured to least structured'.

B

Candidates may think JSON is more structured because it uses explicit key-value pairs and supports data types, whereas CSV is just plain text. They overlook that CSV enforces a rigid table structure, making it more structured overall.

D

Candidates may mistakenly think JSON is more structured than CSV because JSON has nested objects, or they may confuse the concept of 'structure' with 'complexity' or 'file size'.

484
MCQhard

A company's data engineering team uses Azure Data Factory to orchestrate a pipeline that ingests data from Azure Blob Storage, transforms it using Azure Databricks, and loads it into Azure Synapse Dedicated SQL Pool. The pipeline fails intermittently due to transient errors. Which pattern should they implement to improve reliability?

A.Replace Azure Databricks with Azure Functions
B.Increase the pipeline timeout to 24 hours
C.Split the pipeline into multiple smaller pipelines
D.Configure retry policy with exponential backoff on activities
AnswerD

Configuring a retry policy on the failing activity causes Azure Data Factory to automatically re-attempt the operation when it detects an error, and adding exponential backoff spaces out those attempts so the transient condition (such as throttling or a temporary service outage) has time to clear. With a retry count and interval set on the activity, you avoid hard failures caused by intermittent issues without manual intervention. This is the standard, directly-scoped solution for transient errors in ADF pipelines.

Why this answer

Configuring a retry policy with exponential backoff on the Azure Data Factory activities directly addresses transient errors (e.g., network blips, throttling) by automatically retrying the failed activity after increasing delays. This pattern is specifically designed for intermittent failures and is a built-in feature of Azure Data Factory, improving pipeline reliability without architectural changes.

Exam trap

The trap here is that candidates confuse increasing timeout (Option B) with retry logic, or think splitting pipelines (Option C) improves reliability against transient errors, when in fact only a retry policy with backoff directly mitigates intermittent failures in Azure Data Factory.

How to eliminate wrong answers

Option A is wrong because replacing Azure Databricks with Azure Functions would remove the distributed compute engine needed for complex transformations, and Azure Functions are not designed for long-running, data-intensive ETL workloads. Option B is wrong because increasing the pipeline timeout to 24 hours does not handle transient errors; it only allows the pipeline to run longer, but a single transient failure still causes the entire pipeline to fail. Option C is wrong because splitting the pipeline into multiple smaller pipelines does not inherently handle transient errors; it may reduce blast radius but does not provide automatic retry logic for intermittent failures.

485
MCQeasy

A company plans to migrate an on-premises SQL Server database to Azure. The database uses SQL Server Agent to run scheduled jobs and performs cross-database queries within the same instance. The company wants a fully managed PaaS solution that requires minimal application changes. Which Azure SQL deployment option should they choose?

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

Azure SQL Managed Instance offers high compatibility with on-premises SQL Server, including SQL Server Agent, cross-database queries, and linked servers. It is fully managed and requires minimal changes to existing applications, making it the best fit for this migration.

Why this answer

Azure SQL Managed Instance is the correct choice because it provides full SQL Server Agent support for scheduled jobs and enables cross-database queries within the same instance, while being a fully managed PaaS service. It offers near 100% compatibility with on-premises SQL Server, minimizing application changes during migration.

Exam trap

The trap here is that candidates often choose Azure SQL Database (single database) or elastic pool because they are more commonly discussed as PaaS, but they overlook the specific requirements for SQL Server Agent and cross-database queries, which only Managed Instance supports.

Why the other options are wrong

A

Azure SQL Database (single database) does not support SQL Server Agent or cross-database queries within the same instance, which are required by the company's existing workloads.

C

Azure SQL Database elastic pool does not support SQL Server Agent or cross-database queries, which are required by the company's workload.

D

SQL Server on Azure VMs is an IaaS solution requiring manual management of OS, SQL Server, and backups, and it does not provide the fully managed PaaS experience the company wants. It also requires more application changes than Azure SQL Managed Instance.

When would these options actually be correct?

A

A company needs a fully managed PaaS database with high scalability and built-in high availability, but does not require SQL Server Agent, cross-database queries, or instance-level features. They are migrating a single database with no dependencies on other databases in the same instance.

C

A company needs to manage multiple databases with varying and unpredictable usage patterns, and wants to optimize cost by sharing resources across databases without needing instance-level features like SQL Agent or cross-database queries.

D

This option would be correct if the company requires full control over the SQL Server instance, needs to install custom software or run legacy applications that are not supported in PaaS, or must maintain compatibility with on-premises SQL Server features not available in Azure SQL Managed Instance.

Why candidates pick the wrong answer

A

Candidates may think Azure SQL Database is the default PaaS option and overlook the specific requirements for SQL Server Agent and cross-database queries, assuming all SQL Server features are available.

C

Candidates may think elastic pool is a fully managed PaaS option that can handle multiple databases, but overlook that it lacks instance-scoped features like SQL Agent and cross-database queries.

D

Candidates may think that running SQL Server on a VM is the simplest migration path because it offers full compatibility with on-premises SQL Server, overlooking that it is not a fully managed PaaS solution and requires more administrative overhead.

486
MCQmedium

A development team is designing a relational database for a hospital patient management system. They need to ensure that each patient's medical record number is unique and not null. Which database constraint should they use?

A.FOREIGN KEY
B.CHECK
C.UNIQUE
D.PRIMARY KEY
AnswerD

A PRIMARY KEY constraint enforces both uniqueness and non-nullness in a single declaration: the column cannot contain any NULL values, and every value must be unique across the table. This makes it the ideal choice for a medical record number, which must always be present and uniquely identify each patient. Additionally, a primary key automatically creates an index (typically clustered) to support fast lookups and enforce data integrity.

Why this answer

The PRIMARY KEY constraint enforces both uniqueness and non-nullability on the column(s) it is applied to. In a relational database, the medical record number is the natural candidate for the primary key of the Patient table because it uniquely identifies each patient and must always have a value. This directly meets the requirement that each patient's medical record number is unique and not null.

Exam trap

The trap here is that candidates often confuse UNIQUE with PRIMARY KEY, forgetting that UNIQUE allows NULL values (in most RDBMS implementations) and therefore does not satisfy the 'not null' requirement without an additional NOT NULL constraint.

How to eliminate wrong answers

Option A is wrong because a FOREIGN KEY constraint enforces referential integrity between two tables, not uniqueness or non-nullability on a single column. Option B is wrong because a CHECK constraint validates that column values meet a specified condition (e.g., age > 0) but does not enforce uniqueness or non-nullability by itself. Option C is wrong because a UNIQUE constraint ensures all values in a column are distinct but allows NULL values (unless combined with a NOT NULL constraint), so it does not guarantee the 'not null' requirement on its own.

487
MCQeasy

A retail company operates an online store. The store processes each customer's order immediately upon submission, updating inventory and payment records in real-time. Additionally, the company's business analysts run weekly reports that aggregate sales data over the past month to identify trends. Which of the following correctly describes the two workload types represented in this scenario?

A.The order processing is an OLTP workload; the weekly reporting is an OLAP workload.
B.The order processing is an OLAP workload; the weekly reporting is an OLTP workload.
C.Both workloads are OLTP workloads.
D.Both workloads are batch processing workloads.
AnswerA

This correctly distinguishes the two workloads. Order processing captures discrete, high-frequency events such as placing an item in a cart and confirming payment, which are classic OLTP transactions requiring atomicity and low latency. Weekly reporting, by contrast, reads and aggregates large volumes of historical order data across the week to produce revenue summaries, a classic OLAP analytical workload.

Why this answer

The order processing system handles individual transactions (inserts/updates) in real-time, which is the hallmark of an Online Transaction Processing (OLTP) workload. The weekly reporting aggregates large volumes of historical data for trend analysis, which is an Online Analytical Processing (OLAP) workload. OLTP is optimized for high-volume, low-latency writes, while OLAP is optimized for complex read-heavy queries over large datasets.

Exam trap

The trap here is that candidates confuse the real-time nature of order processing with batch processing or mistakenly think that any reporting is OLTP, failing to recognize that OLAP is specifically designed for analytical queries over historical data.

Why the other options are wrong

B

Order processing involves real-time transactions (OLTP), not analytical queries (OLAP). Weekly reporting aggregates historical data (OLAP), not transactional processing (OLTP).

C

The weekly reporting aggregates historical data for trend analysis, which is an OLAP workload, not OLTP. OLTP is for real-time transaction processing, not for both workloads.

D

The weekly reporting is not batch processing in the traditional sense; it is an OLAP workload that aggregates data for analysis, not a batch processing workload that processes large volumes of data in batches without real-time requirements.

When would these options actually be correct?

B

If the question described a system where order processing involved complex aggregations on historical data (e.g., real-time sales analytics) and weekly reporting involved high-volume transactional updates (e.g., batch order entry), then option B would be correct.

C

If the question described two real-time transaction processing systems, such as an order processing system and a real-time inventory update system, both would be OLTP workloads.

D

In a scenario where both workloads involve processing large volumes of data in scheduled batches, such as a nightly batch job that updates inventory and a monthly batch job that generates sales reports, both would be correctly described as batch processing workloads.

Why candidates pick the wrong answer

B

Candidates may confuse the terms OLTP and OLAP, or mistakenly think that 'real-time' implies OLAP and 'weekly' implies OLTP, reversing the correct mapping.

C

Candidates may mistakenly think that since both involve data processing, they are the same type, overlooking the fundamental difference between transactional and analytical processing.

D

Candidates may confuse the weekly reporting as batch processing because it runs on a schedule, but they overlook that batch processing typically refers to the execution of non-interactive, high-volume data processing tasks, not analytical queries.

488
MCQhard

A retail company uses Azure SQL Database to store transactional data. They need to ensure that reporting queries do not impact the performance of the transactional workload. Which solution should you recommend?

A.Configure a read replica in Azure SQL Database
B.Increase the DTU or vCore limit of the database
C.Add indexes to the reporting tables
D.Partition the largest tables by date
AnswerA

Configuring a read replica in Azure SQL Database creates a separate, readable secondary instance that handles reporting and analytical queries without consuming the primary's CPU, I/O, or locks. Azure SQL Database's active geo-replication or built-in read scale-out allows the replica to maintain a transactionally consistent (though potentially slightly delayed) copy of the data, enabling reporting workloads to run alongside OLTP without interference. This is the correct approach because it physically isolates the reporting load from the transactional database engine.

Why this answer

A read replica in Azure SQL Database allows reporting queries to be offloaded to a read-only copy of the database, isolating them from the primary transactional workload. This ensures that reporting activities do not consume resources (CPU, IO, memory) on the primary instance, preventing performance degradation for transactional operations.

Exam trap

The trap here is that candidates often confuse scaling up the database (Option B) with workload isolation, not realizing that scaling up only adds more resources but does not separate read and write operations, so reporting queries can still cause blocking or resource contention on the primary.

How to eliminate wrong answers

Option B is wrong because increasing DTU or vCore limits scales up the entire database, which does not isolate reporting queries from transactional workloads; both workloads still compete for the same resources. Option C is wrong because adding indexes to reporting tables can improve query performance but does not prevent reporting queries from impacting the transactional workload, as they still run on the same database engine. Option D is wrong because partitioning tables by date can improve query performance and manageability but does not provide workload isolation; reporting queries still execute on the same primary database and can contend with transactional operations.

489
Multi-Selectmedium

Which TWO Azure services can be used to perform data transformation in an analytics pipeline? (Choose two.)

Select 2 answers
A.Azure Data Lake Storage Gen2
B.Azure Event Hubs
C.Azure Data Factory
D.Power BI
E.Azure Databricks
AnswersC, E

Azure Data Factory is a cloud-based data integration service that enables the creation of ETL and ELT pipelines, orchestrating data movement and transformation across many sources and destinations. It offers Mapping Data Flows, which provide a visual, code-free interface for performing scalable transformations like joins, aggregations, and pivots, as well as the ability to call external compute services for more complex logic. This makes it a dedicated and correct choice for data transformation tasks.

Why this answer

Azure Data Factory is a cloud-based ETL service that allows you to create data pipelines to transform data at scale using mapping data flows or by invoking external compute services like Azure Databricks. It supports code-free visual transformations as well as custom code via Azure HDInsight or Databricks, making it a core service for data transformation in analytics pipelines.

Exam trap

The trap here is that candidates confuse storage services (Data Lake Storage) or ingestion services (Event Hubs) with transformation services, or assume that visualization tools like Power BI can perform data transformation, when in fact they only consume pre-transformed data.

490
MCQeasy

A retail company uses a point-of-sale (POS) system that records each sales transaction in a database. Each transaction involves reading the current inventory, updating the stock level, and recording the sale. The database must ensure that concurrent transactions do not interfere with each other, so that one transaction does not see partially updated data from another. Which property of a database transaction ensures this isolation?

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

Isolation is the ACID property that separates the effects of concurrent transactions so that one transaction cannot see the intermediate, uncommitted state of another. Without isolation, a POS system could read inventory levels that another sale is in the middle of updating, leading to overselling or duplicate charges. Isolation ensures that the concurrent execution produces the same result as some serial order of the transactions, thereby preventing dirty reads, non-repeatable reads, and phantom reads. This directly addresses the retail scenario described.

Why this answer

Isolation ensures that concurrent transactions do not interfere with each other, so each transaction sees a consistent snapshot of the database as if it were the only transaction running. In the POS scenario, isolation prevents one transaction from reading partially updated inventory data from another transaction, which could lead to overselling or stock discrepancies. This property is typically implemented through locking mechanisms or multi-version concurrency control (MVCC).

Exam trap

The trap here is that candidates often confuse isolation with atomicity, thinking that 'not seeing partially updated data' is about the transaction being all-or-nothing, when in fact it is about preventing interference between concurrent transactions.

How to eliminate wrong answers

Option A is wrong because atomicity ensures that a transaction is treated as a single, indivisible unit that either fully completes or fully rolls back, but it does not control how concurrent transactions interact. Option B is wrong because consistency ensures that a transaction brings the database from one valid state to another, preserving integrity constraints, but it does not manage concurrent access. Option D is wrong because durability guarantees that once a transaction is committed, its changes persist even in the event of a system failure, but it has no role in isolating concurrent transactions.

491
MCQeasy

A company stores customer contact information in a table with columns for CustomerID, Name, Email, and Phone. They also store customer support chat transcripts as plain text files. Which of the following correctly classifies these data types?

A.Both are structured data
B.Customer contact information is structured; chat transcripts are semi-structured
C.Customer contact information is structured; chat transcripts are unstructured
D.Both are semi-structured
AnswerC

Customer contact information is structured because it resides in a table with a fixed, predefined schema: each column (name, phone, email) has a strict data type and every row must conform to that schema, making it directly queryable via SQL. Chat transcripts, by contrast, are unstructured because the conversation is free-flowing natural language with no fixed format, row/column structure, or guaranteed fields; the text is stored as a whole and cannot be reliably queried by column value without additional processing like text mining or NLP.

Why this answer

Customer contact information stored in a table with columns like CustomerID, Name, Email, and Phone is structured data because it has a fixed schema with rows and columns. Chat transcripts stored as plain text files have no predefined schema or organization, making them unstructured data. Therefore, option C correctly classifies the contact info as structured and the chat transcripts as unstructured.

Exam trap

The trap here is that candidates often confuse semi-structured data (like JSON or XML) with unstructured data (like plain text), incorrectly classifying chat transcripts as semi-structured because they contain some implicit structure (e.g., timestamps or user names) when in fact they lack a formal schema or metadata tags.

Why the other options are wrong

A

Customer contact information in a table with defined columns (CustomerID, Name, Email, Phone) is structured data, but chat transcripts as plain text files have no predefined schema or organization, making them unstructured, not structured.

B

Chat transcripts are plain text files without any inherent structure or metadata, making them unstructured data, not semi-structured (which requires tags or markers like JSON or XML).

D

Chat transcripts are plain text files without a predefined schema or structure, making them unstructured data, not semi-structured. Semi-structured data (e.g., JSON, XML) has tags or markers to separate elements, which plain text lacks.

When would these options actually be correct?

A

If the question stated that both datasets are stored in relational database tables with defined schemas (e.g., chat transcripts are stored in a table with columns like ChatID, CustomerID, TranscriptText), then both would be structured data.

B

If the chat transcripts were stored in a format like JSON or XML with tags for each message, sender, and timestamp, they would be semi-structured, and this option would be correct.

D

If the chat transcripts were stored in a format like JSON or XML with tags for each message, timestamp, and agent ID, they would be semi-structured. In that case, both the customer contact table (structured) and the chat logs (semi-structured) would be correctly classified as such.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that all data stored in files is structured, or they may not distinguish between structured and unstructured data, assuming that any tabular data implies structure for all data types.

B

Candidates may confuse 'unstructured' with 'semi-structured' because chat transcripts have some implicit structure (e.g., speaker turns), but without explicit schema or tags, they remain unstructured.

D

Candidates may confuse 'unstructured' with 'semi-structured' because chat transcripts have some inherent organization (e.g., timestamps, speaker labels) but lack a formal schema, leading them to incorrectly label them as semi-structured.

492
MCQmedium

A retail company receives daily sales data as CSV files in Azure Data Lake Storage Gen2. They need to load this data into an Azure Synapse Analytics dedicated SQL pool every night. The process must be automated, scheduled, and include error handling for failed loads. Which Azure service should they use to orchestrate this pipeline?

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

Azure Data Factory is the correct choice because it is a cloud-based ETL and data-integration service designed specifically for orchestrating and automating batch pipelines. Its Copy Activity can reliably move CSV files from Azure Data Lake Storage into a dedicated SQL pool in Azure Synapse Analytics, while a scheduled trigger (e.g., daily recurrence) handles the nightly cadence. Data Factory also provides native error handling—such as retry policies, activity-level logging, and failure alerts—that are essential for unattended batch loads. This makes it the purpose-built service for this scenario, unlike generic compute or workflow tools.

Why this answer

Azure Data Factory (ADF) is the correct choice because it is a cloud-based ETL and data integration service designed specifically for orchestrating and automating data pipelines. It supports scheduled triggers, can copy CSV files from Azure Data Lake Storage Gen2 into an Azure Synapse dedicated SQL pool, and provides built-in error handling via retry policies, activity-level error outputs, and pipeline failure notifications.

Exam trap

The trap here is that candidates may confuse Azure Data Factory with Azure Logic Apps because both can schedule and trigger actions, but Logic Apps is designed for lightweight API integrations and lacks the native data movement capabilities and PolyBase support required for bulk loading into a dedicated SQL pool.

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 (e.g., from IoT devices or event hubs), not for scheduled batch loading of CSV files. 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; while it can load data, it lacks built-in scheduling and error-handling features for pipeline orchestration without additional tooling. Option D (Azure Logic Apps) is wrong because it is a low-code workflow automation service for integrating applications and services (e.g., email, Office 365), not designed for high-throughput data movement or complex ETL pipelines with dedicated SQL pool sinks.

493
MCQhard

A financial services company stores transaction data in Azure Data Lake Storage Gen2 as Parquet files, partitioned by date. The data volume is 5 TB per day. The analytics team runs ad-hoc SQL queries to detect fraudulent patterns. Queries are highly selective (filtering on AccountID and date range). The team also needs to create external tables and views for use in Power BI. They want to pay only for the data processed by each query and avoid provisioning any compute resources. Which Azure service should they use?

A.Azure Synapse Serverless SQL pool
B.Azure Databricks with interactive clusters
C.Azure Stream Analytics
D.Azure HDInsight with Spark
AnswerA

Azure Synapse Serverless SQL pool is the correct choice because it lets you run T-SQL queries directly against transaction files in Azure Data Lake Storage Gen2 without provisioning any dedicated compute. The service spins up compute on demand, charges only for the amount of data scanned per query, and supports creating external tables and views that expose a relational layer for tools like Power BI, making it a genuine pay-per-query analytics engine.

Why this answer

Azure Synapse Serverless SQL pool is the correct choice because it allows querying data directly from Azure Data Lake Storage Gen2 using T-SQL without provisioning any compute resources. It charges per terabyte of data processed, aligning with the requirement to pay only for data scanned by each query. It also supports creating external tables and views for Power BI, making it ideal for ad-hoc, selective queries on partitioned Parquet files.

Exam trap

The trap here is that candidates may confuse Azure Synapse Serverless SQL pool with Azure Synapse Dedicated SQL pool (which requires provisioning compute) or assume that any Spark-based service (like Databricks or HDInsight) is serverless, but only the serverless SQL pool offers true pay-per-query without compute provisioning.

How to eliminate wrong answers

Option B is wrong because Azure Databricks with interactive clusters requires provisioning and managing compute clusters (even if auto-terminating), incurring costs for running VMs regardless of query execution, and does not offer a true pay-per-query model. Option C is wrong because Azure Stream Analytics is designed for real-time stream processing (e.g., from Event Hubs or IoT Hub), not for ad-hoc SQL queries on stored Parquet files in Data Lake Storage. Option D is wrong because Azure HDInsight with Spark requires provisioning a persistent cluster (with associated compute costs) and is not a serverless, pay-per-query service; it also lacks the direct T-SQL external table creation for Power BI without additional setup.

494
MCQmedium

A startup is deploying a new application on Azure SQL Database. They expect the database to start at 10 GB but grow to 500 GB over time. They want to be able to scale compute independently of storage and only pay for the compute resources they use. They also want to avoid over-provisioning and automatically pause during idle periods. Which purchasing model and service tier should they choose?

A.DTU-based model with Basic tier
B.vCore-based model with General Purpose serverless tier
C.vCore-based model with Business Critical provisioned tier
D.DTU-based model with Standard tier
AnswerB

The vCore-based General Purpose serverless tier decouples compute and storage, letting the database independently scale compute from 1 to 16 vCores and automatically pause when the session is idle. This means compute is billed only when active, while storage remains separately billed and durable, precisely matching an intermittent new application's desire to avoid paying for unused capacity.

Why this answer

The vCore-based General Purpose serverless tier is correct because it allows independent scaling of compute and storage, automatically pauses the database during idle periods to eliminate compute costs, and supports growth from 10 GB to 500 GB without manual intervention. This model aligns with the startup's need to pay only for consumed compute resources and avoid over-provisioning.

Exam trap

The trap here is that candidates often confuse the DTU model's 'auto-pause' feature (which does not exist) with the vCore serverless tier's auto-pause, or assume the Basic tier's low cost and simplicity fit a growing database without checking its 2 GB storage limit.

Why the other options are wrong

A

The DTU-based Basic tier offers limited storage (max 2 GB) and does not support scaling compute independently of storage, nor does it provide auto-pause capabilities. It cannot accommodate growth from 10 GB to 500 GB.

C

The Business Critical tier is provisioned, not serverless, so it cannot automatically pause during idle periods, and it does not allow independent scaling of compute and storage with pay-per-use billing.

When would these options actually be correct?

A

A question where the database is small (under 2 GB), requires minimal performance, and the priority is lowest cost with no need for scaling compute independently or auto-pause. For example, a simple test database with predictable low usage.

C

A question requiring high performance, low latency, and built-in high availability for mission-critical workloads, where the database size is stable and predictable, and the organization is willing to over-provision compute to guarantee performance.

Why candidates pick the wrong answer

A

Candidates may assume the Basic tier is sufficient for a startup due to its low cost, overlooking the storage and scalability requirements specified in the question.

C

Candidates may associate vCore with flexibility and Business Critical with high performance, overlooking that the question specifically requires serverless auto-pause and pay-per-use compute, which are not available in provisioned tiers.

495
MCQmedium

A marketing team needs to analyze customer purchase history data stored in Azure SQL Database. They want to create interactive dashboards with drill-down capabilities. Which Microsoft tool should they use?

A.Power BI
B.Azure Data Studio
C.Microsoft Excel
D.Azure Analysis Services
AnswerA

Power BI connects directly to Azure SQL Database and provides interactive dashboards with drill-down, satisfying the marketing team's visualisation requirement. Unlike static reporting tools, its semantic model supports hierarchical navigation, letting users explore purchase history across customer, product and time dimensions without writing queries.

Why this answer

Power BI is the correct tool because it is designed specifically for creating interactive dashboards with drill-down capabilities using data from Azure SQL Database. It connects directly to Azure SQL Database via built-in connectors, allowing users to build visualizations that support hierarchical navigation and real-time filtering.

Exam trap

The trap here is that candidates confuse Azure Analysis Services as a visualization tool, when in fact it is a backend analytical engine that requires Power BI or another client for dashboard creation.

How to eliminate wrong answers

Option B is wrong because Azure Data Studio is a database management and query tool, not a dashboarding or visualization tool; it lacks native interactive dashboard and drill-down features. Option C is wrong because Microsoft Excel can create charts and pivot tables, but it does not provide native drill-down capabilities for interactive dashboards and is not optimized for real-time, cloud-based data exploration. Option D is wrong because Azure Analysis Services is a data modeling and analytical engine that provides OLAP cubes and tabular models, but it is not a front-end visualization tool; it requires a separate client like Power BI to render interactive dashboards.

496
MCQeasy

The exhibit shows a KQL query in Azure Data Explorer. What is the output of this query?

A.Bottom 5 states by total property damage
B.Top 5 states by total property damage
C.All states with total property damage
D.All storm events after 2024-01-01
AnswerB

This query filters storm events to those on or after 2024-01-01, groups the remaining rows by State using `summarize`, and computes the sum of DamageProperty for each state. The subsequent `top 5 by DamageProperty desc` operator sorts these state-level sums in descending order and returns the first five rows, which are exactly the five states with the highest total property damage. The result is a ranked list of the top 5 states by total damage.

Why this answer

The KQL query uses `summarize` to aggregate total property damage by state, then `top 5 by total_property_damage` to return the five states with the highest total damage. The `desc` argument (default) orders the results in descending order, making option B correct.

Exam trap

The trap here is that candidates may confuse `top` with `take` or `limit`, forgetting that `top` implicitly sorts in descending order unless `asc` is specified, leading them to think it returns the bottom values or all rows.

How to eliminate wrong answers

Option A is wrong because `top 5` returns the highest values, not the lowest; to get bottom 5, you would need `top 5 by total_property_damage asc`. Option C is wrong because `top 5` limits the output to exactly five rows, not all states. Option D is wrong because the query does not filter by date; it aggregates all storm events regardless of date.

497
MCQmedium

A data analyst needs to run ad-hoc SQL queries on petabytes of data stored as Parquet files in Azure Data Lake Storage Gen2. The queries are infrequent but must return results within seconds. The analyst wants to pay only for the amount of data processed and does not want to manage any compute infrastructure. Additionally, they need to create views to simplify future reporting in Power BI. Which Azure service should they use?

A.Azure Synapse Serverless SQL pool
B.Azure SQL Database
C.Azure Synapse Dedicated SQL pool
D.Azure HDInsight with Spark
AnswerA

Serverless SQL pool queries Parquet files directly in Data Lake Storage Gen2 via OPENROWSET, charging per terabyte of data processed with no infrastructure to manage. Its distributed engine returns results in seconds, and it supports creating views that Power BI can consume, satisfying every stated constraint.

Why this answer

Azure Synapse Serverless SQL pool is the correct choice because it allows querying petabytes of data in Azure Data Lake Storage Gen2 using standard T-SQL without provisioning any compute infrastructure. It charges only for the amount of data processed per query (pay-per-query model) and supports creating views for Power BI reporting, meeting all stated requirements.

Exam trap

The trap here is that candidates often confuse 'serverless' with 'Dedicated SQL pool' (Option C) because both are part of Azure Synapse Analytics, but Dedicated SQL pool requires provisioning and pays for reserved compute, not data processed.

How to eliminate wrong answers

Option B is wrong because Azure SQL Database is a fully managed relational database with provisioned compute and storage, not designed for ad-hoc queries on external Parquet files in Data Lake Storage, and it charges for reserved resources rather than data processed. Option C is wrong because Azure Synapse Dedicated SQL pool requires provisioning and managing a fixed-size compute cluster, incurring costs even when idle, and does not support the pay-per-query model. Option D is wrong because Azure HDInsight with Spark requires managing a Spark cluster (provisioned compute) and is not a serverless, pay-per-query service; it also does not natively support creating T-SQL views for Power BI without additional configuration.

498
MCQeasy

A company stores customer orders in a database. Each order has an OrderID (integer), CustomerName (text), OrderDate (date), and a JSON column for order details that contains varying fields such as discount codes or gift messages. Which statement best describes the data types in this table?

A.The table stores only structured data.
B.The table stores both structured and semi-structured data.
C.The table stores only unstructured data.
D.The table stores only semi-structured data.
AnswerB

The OrderID, CustomerName, and OrderDate columns have fixed data types and enforce a rigid schema, exactly fitting the structured category. In contrast, the JSON column stores order details that can differ per customer order, such as optional fields or nested line items, which is typical of semi-structured data. A single table can therefore mix both categories, and that is precisely what this design does.

Why this answer

The table includes structured columns (OrderID integer, CustomerName text, OrderDate date) and a JSON column for order details, which stores semi-structured data because JSON allows flexible schemas with varying fields like discount codes or gift messages. This combination of fixed-schema columns and a schema-less JSON column means the table holds both structured and semi-structured data, making option B correct.

Exam trap

The trap here is that candidates often mistake JSON for unstructured data, but JSON is semi-structured because it has a logical structure (key-value pairs) even though the schema is flexible, leading them to incorrectly choose option C.

How to eliminate wrong answers

Option A is wrong because the JSON column contains semi-structured data, not purely structured data, as structured data requires a fixed schema with consistent fields. Option C is wrong because unstructured data (e.g., images, videos, raw text files) is not present; JSON is semi-structured, not unstructured. Option D is wrong because the table also includes structured columns (OrderID, CustomerName, OrderDate) with fixed data types, so it does not store only semi-structured data.

499
MCQhard

A financial services company needs to run ad-hoc SQL queries on petabytes of data stored in Azure Data Lake Storage without provisioning a dedicated data warehouse. Which Azure service should they use?

A.Azure Synapse Analytics serverless SQL pool
B.Azure Analysis Services
C.Azure SQL Database
D.Azure Data Lake Storage
AnswerA

Azure Synapse Analytics serverless SQL pool is a query service that runs T-SQL directly over files in Azure Data Lake Storage, using a distributed compute model that scales to petabyte-scale datasets without provisioning or managing dedicated infrastructure. It supports familiar SQL syntax for ad-hoc exploration, including OPENROWSET queries, and charges only for data scanned, making it ideal for ad-hoc SQL analytics on lake data.

Why this answer

Azure Synapse Analytics serverless SQL pool is the correct choice because it allows you to run ad-hoc SQL queries directly against data in Azure Data Lake Storage without provisioning any dedicated compute resources. It uses a pay-per-query model, automatically scaling compute to handle petabytes of data, making it ideal for intermittent, exploratory workloads.

Exam trap

The trap here is that candidates often confuse Azure Data Lake Storage (a storage service) with a query engine, or assume that a provisioned data warehouse like Azure SQL Database is required for any SQL workload, missing the serverless, on-demand nature of Synapse serverless SQL pool.

How to eliminate wrong answers

Option B is wrong because Azure Analysis Services is an OLAP engine for semantic models and pre-aggregated data, not designed for direct ad-hoc SQL queries on raw petabyte-scale data in Data Lake Storage. Option C is wrong because Azure SQL Database is a provisioned, transactional relational database with fixed storage limits, unsuitable for petabyte-scale data lake queries without prior data loading. Option D is wrong because Azure Data Lake Storage is a storage service, not a query engine; it provides the data layer but cannot execute SQL queries itself.

500
MCQeasy

A manufacturing company stores IoT sensor data as blobs in Azure Blob Storage. Each blob is named with a device ID and a timestamp, and they need to quickly find all blobs for a specific device within a date range. Which Azure Blob Storage feature should they use to query blobs based on custom metadata?

A.Blob snapshots
B.Blob soft delete
C.Blob index tags
D.Blob lifecycle management
AnswerC

Blob index tags are user-defined key-value pairs that Azure stores as metadata on each blob and maintains in an internal searchable index. You can query blobs using the Find Blobs by Tags API, filtering on tags such as deviceID and sensorTimestamp, without needing to ingest the blob content or scan containers. This is exactly the capability needed to retrieve IoT sensor blobs by device and time criteria.

Why this answer

Blob index tags allow you to apply custom key-value metadata to blobs and then query them using a filtered query across containers or storage accounts. This enables efficient retrieval of blobs by device ID and timestamp without scanning all blob names or maintaining a separate index.

Exam trap

The trap here is that candidates confuse blob index tags with blob naming conventions or metadata stored in a separate database, thinking that blob name patterns alone are sufficient for efficient querying, but Azure Blob Storage does not natively support server-side filtering by name patterns.

Why the other options are wrong

A

Blob snapshots capture point-in-time read-only copies of blobs, but they do not support querying blobs based on custom metadata like device ID or timestamp.

B

Blob soft delete protects blobs from accidental deletion or overwriting by retaining them for a specified retention period; it does not support querying blobs based on custom metadata or indexing.

D

Blob lifecycle management automates tier transitions or deletion based on age or last modification, not querying blobs by custom metadata like device ID and timestamp.

When would these options actually be correct?

A

A question asks how to preserve previous versions of a blob for rollback or comparison purposes, such as restoring a blob to an earlier state without enabling versioning.

B

A company wants to recover blobs that were accidentally deleted or overwritten within the last 30 days. They need a feature that preserves deleted blobs for a configurable period and allows restoration. Blob soft delete would be the correct answer.

D

A question asking how to automatically move blobs older than 30 days to cool storage or delete blobs after 90 days to reduce costs would make lifecycle management the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse snapshots with metadata indexing because both involve blob properties, but snapshots are for versioning, not querying.

B

Candidates may confuse 'soft delete' with a way to filter or search blobs, thinking it provides a queryable state, or they may misremember the purpose of soft delete as a metadata management feature.

D

Candidates may confuse lifecycle management with indexing because both involve rules based on time, but lifecycle management is for storage optimization, not metadata search.

501
MCQmedium

A data engineering team needs to build a real-time dashboard showing sales totals by region. Sales transactions are streamed from point-of-sale systems into Azure Event Hubs. The team wants to aggregate the data in near real-time (e.g., every minute) and store the results in Azure SQL Database for visualization in Power BI. Which Azure service should they use for the aggregation step?

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

Azure Stream Analytics is a fully managed real-time stream processing engine within Azure, designed to run continuous, low-latency SQL-like queries over data from sources such as Event Hubs and IoT Hub. It supports windowed aggregations (tumbling, hopping, sliding, session) and can output results directly to Azure SQL Database or Power BI, making it the appropriate service for a real-time dashboard. Unlike the other options, its entire runtime is optimized for streaming data rather than batch movement or workflow integration.

Why this answer

Azure Stream Analytics is the correct choice because it is designed for real-time stream processing, allowing you to define a query that aggregates sales data from Event Hubs over a one-minute tumbling window and output the results directly to Azure SQL Database. This meets the requirement for near real-time aggregation without needing to write custom code or manage infrastructure.

Exam trap

The trap here is that candidates often confuse Azure Data Factory or Synapse Pipelines (which are batch-oriented) with real-time processing, overlooking that Stream Analytics is the only service among the options purpose-built for continuous, low-latency stream aggregation.

How to eliminate wrong answers

Option B (Azure Data Factory) is wrong because it is a cloud-based ETL and data integration service for batch-oriented data movement and orchestration, not designed for real-time stream processing or sub-minute aggregations. Option C (Azure Synapse Pipelines) is wrong because it is essentially the same as Azure Data Factory within Synapse Analytics, focused on batch data integration and orchestration, lacking native real-time stream processing capabilities. Option D (Azure Logic Apps) is wrong because it is a workflow automation service for integrating applications and services using connectors, not built for high-throughput, low-latency stream aggregation or windowed computations on event streams.

502
MCQeasy

A company collects customer feedback in three forms: a structured table with customer ID and rating (1-5), free-text comments, and audio recordings of phone calls. Which of the following correctly orders these data from least structured to most structured?

A.Audio recordings, free-text comments, structured table
B.Structured table, free-text comments, audio recordings
C.Free-text comments, structured table, audio recordings
D.Audio recordings, structured table, free-text comments
AnswerA

Correct. Audio and free-text are both unstructured; the structured table is most structured.

Why this answer

Ly orders the data from least structured to most structured. Audio recordings are unstructured (no schema). Free-text comments are also unstructured (no fixed format in DP-900 classification).

The structured table has defined columns and data types. Thus, the order is audio (unstructured), free-text (unstructured), structured table.

Exam trap

Candidates may mistakenly classify free-text comments as semi-structured, but in DP-900, free-text is considered unstructured. The trap is to recognize that both audio and free-text are unstructured, so the correct ordering places them before structured data.

Why the other options are wrong

B

This option orders data from least structured to most structured incorrectly. Structured data (table) is the most structured, not the least; audio recordings are unstructured, and free-text comments are semi-structured.

C

This option incorrectly orders free-text comments as less structured than a structured table. Free-text comments are semi-structured (unorganized text), while structured tables are fully structured with defined schema. Audio recordings are unstructured, so the correct order is audio, free-text, structured table.

D

This option incorrectly places the structured table before free-text comments, but structured data (table) is the most structured, not intermediate. Audio recordings are least structured, free-text comments are semi-structured, and structured table is most structured.

When would these options actually be correct?

B

If the question asked to order data from most structured to least structured, then this option (structured table, free-text comments, audio recordings) would be correct.

C

If the question asked to order data from most structured to least structured, then option C (free-text comments, structured table, audio recordings) would be correct, as it places structured table second and audio last.

D

If the question asked to order from most structured to least structured, then D (Audio recordings, structured table, free-text comments) would be correct because it starts with the most structured (table) and ends with the least structured (audio).

Why candidates pick the wrong answer

B

Candidates may mistakenly think that structured data is 'simple' and thus least structured, or they confuse the direction of ordering (least to most vs. most to least).

C

Candidates may mistakenly think free-text comments are more structured than a table because they are text-based, or they may confuse 'structured' with 'organized content' rather than schema-defined data.

D

Candidates may mistakenly think that free-text comments are more structured than audio because they are text, but they lack a predefined schema, making them semi-structured, while audio is unstructured.

503
MCQmedium

A manufacturing company collects real-time temperature data from thousands of IoT sensors. They need to build an analytics solution that processes the streaming data, computes the average temperature per device every minute, and outputs the results to a Power BI dashboard for near real-time visualization. Which Azure service should they use for the real-time stream processing?

A.Azure Stream Analytics
B.Azure Data Factory
C.Azure Databricks
D.Azure SQL Database
AnswerA

Azure Stream Analytics is a fully managed, serverless real-time stream processing engine that ingests telemetry from IoT Hub or Event Hubs, applies SQL-like temporal queries to compute rolling aggregations such as average temperature, and writes directly to Power BI via its built-in output sink. Its tumbling, hopping, and sliding window functions are purpose-built for sub-minute analytics on high-velocity sensor data, which is why this is the correct choice.

Why this answer

Azure Stream Analytics is the correct choice because it is a fully managed, real-time stream processing engine designed specifically for scenarios like this: ingesting high-velocity data from IoT sensors, performing time-windowed aggregations (e.g., average temperature per device every minute), and outputting results directly to Power BI for near real-time dashboards. It natively supports SQL-like query language for defining windowed computations and has built-in connectors for both IoT Hub/Event Hubs (input) and Power BI (output), making it the most efficient and purpose-built service for this streaming analytics workload.

Exam trap

The trap here is that candidates often confuse Azure Data Factory (a batch ETL tool) with a real-time processing service, or assume that Azure Databricks is always the best choice for streaming because of its Spark foundation, overlooking the simpler, fully managed, and cost-effective alternative of Azure Stream Analytics for straightforward windowed aggregations.

How to eliminate wrong answers

Option B (Azure Data Factory) is wrong because it is a cloud-based ETL and data orchestration service designed for batch data movement and transformation, not for real-time stream processing; it cannot compute sliding-window averages on streaming data in sub-minute latency. Option C (Azure Databricks) is wrong because while it can process streaming data via Structured Streaming, it is a general-purpose analytics platform that requires more complex setup, cluster management, and coding (Scala/Python/SQL) compared to the simpler, declarative SQL-based approach of Stream Analytics; it is overkill for a straightforward windowed aggregation and not the simplest or most cost-effective choice for this specific requirement. Option D (Azure SQL Database) is wrong because it is a relational database for storing and querying structured data, not a stream processing engine; it cannot ingest real-time streaming data or perform continuous time-windowed aggregations without additional services like Stream Analytics or a custom application layer.

504
MCQmedium

A gaming company stores player profiles as JSON documents. Each profile can have different attributes; for example, some profiles include an 'achievements' field while others include a 'purchaseHistory' field. The application must retrieve profiles by player ID with single-digit-millisecond latency and also support SQL-like queries on any attribute. Which Azure data store should the company use?

A.A. Azure Table Storage
B.B. Azure Cosmos DB Core (SQL) API
C.C. Azure Blob Storage
D.D. Azure Database for PostgreSQL
AnswerB

Azure Cosmos DB Core (SQL) API is a multi-model NoSQL database service that natively stores JSON documents with flexible schemas. It automatically indexes every property without requiring explicit schema definitions, so you can run SQL-like JOINs, projections, and filters on any attribute while retaining single-digit-millisecond point reads via a well-chosen partition key. This makes it the ideal choice for player profiles that vary in structure and are accessed frequently by player ID.

Why this answer

Azure Cosmos DB Core (SQL) API is the correct choice because it natively stores JSON documents with flexible schemas, supports indexing on any attribute for SQL-like queries, and guarantees single-digit-millisecond latency for point reads by player ID. This meets the requirement for both fast key-based lookups and ad-hoc querying across varying profile attributes.

Exam trap

The trap here is that candidates may confuse Azure Table Storage's key-value capabilities with the need for flexible schema and SQL-like queries, overlooking that Table Storage does not support querying arbitrary attributes or guarantee single-digit-millisecond latency for such queries.

Why the other options are wrong

A

Azure Table Storage does not support SQL-like queries on arbitrary attributes; it only allows queries on partition key and row key, and lacks indexing for flexible JSON attribute queries.

C

Azure Blob Storage is optimized for storing large unstructured data like images, videos, and backups, not for low-latency queries on JSON documents with SQL-like capabilities. It lacks native support for indexing and querying individual attributes within JSON files.

D

Azure Database for PostgreSQL is a relational database that requires a fixed schema, but the player profiles have varying attributes (e.g., 'achievements' and 'purchaseHistory' may be absent). It cannot natively store flexible JSON documents with single-digit-millisecond latency for ID-based lookups and SQL-like queries on any attribute without complex schema design.

When would these options actually be correct?

A

A company needs to store large amounts of structured, non-relational data (e.g., device telemetry) with key-based lookups and does not require complex queries or indexing on multiple attributes. The application can tolerate higher latency than single-digit milliseconds.

C

A company needs to store and serve large media files (e.g., game videos, screenshots) with high throughput and low cost, and does not require querying on document attributes. The application retrieves files by URL and latency of seconds is acceptable.

D

A company needs a fully managed relational database for structured data with complex joins, ACID transactions, and standard SQL queries. For example, an e-commerce platform storing orders, customers, and products in normalized tables requiring referential integrity and complex reporting.

Why candidates pick the wrong answer

A

Candidates may confuse Azure Table Storage with a NoSQL solution that supports JSON, but they overlook its limited query capabilities and lack of indexing for arbitrary attributes.

C

Candidates may think Blob Storage can store JSON files and assume it supports querying, but they overlook the lack of indexing and SQL-like query support, confusing it with a document database.

D

Candidates may think PostgreSQL's JSON support (e.g., JSONB) can handle semi-structured data, but it lacks the low-latency, schema-agnostic indexing and global distribution of Cosmos DB required for this gaming scenario.

505
MCQhard

The exhibit shows a Kusto Query Language (KQL) query run in Azure Data Explorer. What is the output of this query?

A.All storm events in Texas with property damage
B.The total property damage for all event types in Texas
C.The top 5 event types in Texas by total property damage
D.A list of the top 5 property damage amounts in Texas
AnswerC

This is exactly what the query does: summarize by EventType groups the Texas storm records by event category, sum(PropertyDamage) totals the damage within each group, and the top operator (or order by + take) selects the five highest groups. Each output row pairs an EventType with its aggregated damage, which is the standard KQL pattern for a ranked breakdown. The result therefore identifies which event types had the most total property damage in Texas.

Why this answer

The query uses `summarize sum(PropertyDamage) by EventType` to aggregate total property damage per event type, then `top 5 by TotalPropertyDamage` to return the five event types with the highest totals. The `where State == 'TEXAS'` filter ensures only Texas storms are considered. This directly yields the top 5 event types in Texas by total property damage.

Exam trap

The trap here is that candidates confuse 'top 5 property damage amounts' (raw values) with 'top 5 event types by total property damage' (aggregated categories), or they think the query lists individual events rather than summarized groups.

How to eliminate wrong answers

Option A is wrong because the query does not list individual storm events; it aggregates damage by event type, so it cannot output 'all storm events'. Option B is wrong because the query groups by EventType and returns multiple rows (top 5), not a single total for all event types combined. Option D is wrong because the query outputs event types, not raw property damage amounts; the `top 5` operator returns the entire row (EventType and TotalPropertyDamage), not just the damage values.

506
MCQhard

A banking application processes a funds transfer transaction consisting of two steps: debit $100 from Account A and credit $100 to Account B. If the system crashes after debiting Account A but before crediting Account B, the database automatically reverts the debit, restoring Account A to its original balance. Which ACID property guarantees this behavior?

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

Atomicity is the correct property here because it enforces the all-or-nothing execution of a transaction. In this funds transfer, the debit step was written, but the corresponding credit never completed before the crash. Atomicity requires the entire transaction to be treated as a single, indivisible unit, so the partial debit must be rolled back and the account restored to its original state. Without atomicity, a system failure could leave a half-applied transaction, corrupting financial records.

Why this answer

Atomicity ensures that a transaction is treated as a single, indivisible unit of work. In this scenario, the debit and credit are part of one transaction; if the system crashes after the debit but before the credit, the database management system (DBMS) automatically rolls back the entire transaction, undoing the debit to restore Account A's original balance. This all-or-nothing behavior is the defining characteristic of atomicity.

Exam trap

The trap here is that candidates often confuse atomicity with consistency, thinking that 'restoring the original balance' is about maintaining data rules, when in fact it is the rollback of an incomplete transaction that demonstrates atomicity.

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, preserving all defined rules (e.g., constraints, triggers), but it does not inherently handle crash recovery or rollback of partial changes. Option C (Isolation) is wrong because isolation governs how concurrent transactions are executed independently to prevent interference, not how a single transaction recovers from a crash. Option D (Durability) is wrong because durability guarantees that once a transaction is committed, its changes persist even after a system failure; it does not apply to uncommitted transactions that need to be rolled back.

507
MCQhard

You are designing a data lake architecture for a large enterprise. You need to organize data into zones (raw, curated, and analytics) and enforce data lineage tracking. Which Azure service should you use to catalog and govern the data?

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

Microsoft Purview is a unified data governance and cataloging service that automatically scans Azure, on-premises, and multi-cloud sources, building a data map of technical and business metadata. It provides a searchable catalog, sensitive data classification, glossary, and end-to-end lineage across various data processes. This makes Purview the correct choice for governing a data lake, ensuring data is discoverable, understandable, and compliant.

Why this answer

Microsoft Purview is the correct choice because it is a unified data governance service designed specifically for cataloging data assets, tracking lineage across hybrid and multi-cloud environments, and enforcing data policies. Unlike the other options, Purview provides out-of-the-box lineage scanning, a business glossary, and automated classification, making it the appropriate tool for organizing data into zones and ensuring end-to-end lineage in a data lake architecture.

Exam trap

The trap here is that candidates confuse data integration or analytics services (like Azure Data Factory or Synapse) with a dedicated governance and cataloging tool, assuming lineage tracking is a built-in feature of those services rather than a separate function provided by Microsoft Purview.

How to eliminate wrong answers

Option A is wrong because Azure Synapse Analytics is an analytics service that combines data warehousing and big data processing, but it does not provide native data cataloging or lineage tracking capabilities beyond basic metadata; it relies on Purview for governance. Option B is wrong because Azure Data Factory is an ETL and data integration service that can capture lineage during pipeline runs, but it is not a dedicated catalog or governance tool; it lacks persistent cataloging, business glossary, and policy enforcement features. Option D is wrong because Azure Databricks is a unified analytics platform for data engineering and machine learning, but it does not include a built-in data catalog or lineage governance; it integrates with Purview for such purposes.

508
MCQmedium

A logistics company ingests millions of telemetry events per minute from vehicles into Azure. They need a service that can capture and store these events for later processing by multiple downstream analytics applications. The solution must support massive scale and retain data for up to seven days by default. Which Azure service should they use?

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

Azure Event Hubs is a big data streaming platform and event ingestion service capable of receiving and processing millions of events per second. It provides a time-based retention buffer (default 1 day, configurable up to 90 days) and allows multiple consumers to read the stream independently via consumer groups. This matches the need for massive scale and temporary storage for downstream processing.

Why this answer

Azure Event Hubs is built for high-throughput event ingestion and provides a durable buffer that multiple downstream applications can read from independently. Its ability to scale to millions of events per second and retain data for a configurable period makes it the right choice for capturing vehicle telemetry for later analysis.

Exam trap

The trap here is confusing Azure Service Bus with Event Hubs, as both handle messaging, but Service Bus is for enterprise messaging, not high-volume telemetry ingestion.

509
MCQeasy

Your organization wants to run SQL queries on data stored in Azure Blob Storage without moving the data. Which Azure service supports this?

A.Azure SQL Database
B.Azure Analysis Services
C.Azure Synapse Serverless SQL pool
D.Azure Data Lake Storage Gen2
AnswerC

Azure Synapse Serverless SQL pool is a serverless query service that lets you run T-SQL queries directly against files stored in Azure Blob Storage or Azure Data Lake Storage Gen2. Using OPENROWSET or external tables, you can query CSV, JSON, or Parquet files without loading them into a database first. It scales on demand and charges by the amount of data processed, making it the correct choice for running SQL directly on stored data.

Why this answer

Azure Synapse Serverless SQL pool allows you to query data directly from Azure Blob Storage using T-SQL without moving the data. It uses a distributed query engine that reads files in place, supporting formats like Parquet, CSV, and JSON, making it ideal for ad-hoc analytics on stored data.

Exam trap

The trap here is that candidates confuse Azure Data Lake Storage Gen2 (a storage service) with a query engine, or assume Azure SQL Database can query external blobs natively, when in fact only Synapse Serverless SQL pool provides serverless T-SQL querying over Blob Storage without data movement.

How to eliminate wrong answers

Option A is wrong because Azure SQL Database is a fully managed relational database that requires data to be imported or loaded into its storage; it cannot query external Blob Storage directly without additional tools like PolyBase. Option B is wrong because Azure Analysis Services is an OLAP engine that requires data to be loaded into its in-memory tabular model from sources like SQL databases; it does not support direct querying of Blob Storage. Option D is wrong because Azure Data Lake Storage Gen2 is a storage service built on Blob Storage with a hierarchical namespace, but it is not a query engine; it stores data but does not provide SQL query capabilities itself.

510
MCQeasy

A company stores customer information in a table with columns CustomerID, Name, Address, and PhoneNumber. Every row has values for all these columns, and the data follows a fixed schema. Which type of data does this represent?

A.Unstructured data
B.Semi-structured data
C.Structured data
D.Streaming data
AnswerC

This option is correct because a table with defined columns and specified data types is the hallmark of structured data, which conforms to a fixed schema typical of relational database management systems. Each customer record will have the same set of attributes, and constraints enforce consistency, allowing efficient querying with SQL. Since the company stores customer information in such a normalized, column-based format, the data is structured.

Why this answer

Structured data conforms to a fixed schema where each row has the same columns and data types. The table with CustomerID, Name, Address, and PhoneNumber, where every row contains values for all columns, perfectly fits this definition. This is typical of relational database tables (e.g., in Azure SQL Database) where the schema is enforced at the table level.

Exam trap

The trap here is that candidates may confuse 'semi-structured' with 'structured' because both have some organization, but the key distinction is that structured data enforces a fixed schema for all rows, while semi-structured data allows schema flexibility (e.g., missing attributes or varying data types).

How to eliminate wrong answers

Option A is wrong because unstructured data has no predefined schema or organization (e.g., text files, images, videos), whereas the table has a fixed schema with defined columns. Option B is wrong because semi-structured data has some organizational properties (like tags or key-value pairs) but does not enforce a rigid schema across all records (e.g., JSON or XML files), unlike the fixed schema described. Option D is wrong because streaming data refers to data that is continuously generated and processed in real time (e.g., from IoT devices or event hubs), not to the static storage format of a table.

511
MCQmedium

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

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

GameID directly matches the query predicate, so all score documents for a given game are stored contiguously on the same logical partition. A query filtering on GameID is a single-partition query, which is the most RU-efficient and lowest-latency pattern in Azure Cosmos DB. GameID also offers sufficient cardinality and activity distribution to avoid hot partitions.

Why this answer

GameID is the correct partition key because the most common query filters on GameID, and Cosmos DB routes each query to the physical partition(s) containing that GameID's data. Using GameID ensures the query touches only the relevant partition(s), minimizing RU consumption by avoiding cross-partition fan-out. A partition key that matches the filter predicate is essential for efficient, single-partition queries.

Exam trap

The trap here is that candidates often pick PlayerID because it's unique and seems like a natural key, but they fail to realize that a partition key must align with the most common query filter to avoid costly cross-partition queries, not just be unique.

How to eliminate wrong answers

Option A is wrong because PlayerID is unique per player, causing each query for a GameID to scatter across all partitions (since scores for the same GameID would be distributed across many PlayerID partitions), resulting in a cross-partition query that consumes more RUs. Option C is wrong because Score is a high-cardinality, frequently updated value that would cause hot partitions and inefficient queries, as filtering on GameID would still require scanning all partitions. Option D is wrong because Timestamp is monotonically increasing, leading to hot partitions on the latest timestamp and requiring cross-partition queries when filtering by GameID, which increases RU cost.

512
MCQeasy

A company stores employee records in a relational database table with columns EmployeeID, FirstName, LastName, Department. They also store employee handbooks as PDF files, and customer feedback as XML documents. Which of the following correctly classifies these data types?

A.Employee records: structured, Employee handbooks: semi-structured, Customer feedback: unstructured
B.Employee records: structured, Employee handbooks: unstructured, Customer feedback: semi-structured
C.Employee records: semi-structured, Employee handbooks: unstructured, Customer feedback: structured
D.Employee records: unstructured, Employee handbooks: semi-structured, Customer feedback: structured
AnswerB

Employee records stored in a relational database have a fixed, predefined schema with columns, data types, and constraints, making them structured data. Employee handbooks are PDF documents containing free-form prose and formatting without any uniform data model, so they are unstructured. Customer feedback in XML uses custom tags and nesting such as <response> and <sentiment> to describe the content, giving it a self-describing yet flexible schema that qualifies as semi-structured.

Why this answer

Employee records in a relational database table have a fixed schema (columns and data types), making them structured data. Employee handbooks stored as PDF files have no internal schema and are binary blobs, classifying them as unstructured data. Customer feedback stored as XML documents have a flexible, self-describing schema with tags, making them semi-structured data.

Exam trap

The trap here is confusing semi-structured data (which has some organizational properties like tags in XML) with unstructured data (which has no inherent structure), leading candidates to misclassify PDFs as semi-structured or XML as structured.

Why the other options are wrong

A

Employee handbooks as PDF files are unstructured data, not semi-structured, because they lack a predefined schema or tags. Customer feedback as XML documents is semi-structured, not unstructured, because XML has a hierarchical structure with tags.

C

Employee records in a relational database are structured (rows and columns), not semi-structured. Customer feedback as XML documents is semi-structured (tags with schema), not structured.

D

Employee records in a relational database are structured, not unstructured. Customer feedback as XML documents is semi-structured, not structured.

When would these options actually be correct?

A

If the question classified PDF files as semi-structured (e.g., because they contain metadata or internal structure) and XML as unstructured (e.g., if the XML is free-form without a schema), then option A would be correct.

C

If the question described employee records stored as JSON files (semi-structured) and customer feedback stored in a relational database table (structured), then option C would be correct.

D

If the question described employee records as free-form text files (e.g., .txt), employee handbooks as JSON files, and customer feedback as a fixed-schema SQL table, then option D would be correct.

Why candidates pick the wrong answer

A

Candidates may mistakenly think PDF files have some structure (like headings) and thus classify them as semi-structured, while XML's tags might be overlooked as structure, leading to the reverse classification.

C

Candidates may confuse XML as structured because it has tags, but it is semi-structured. They might also incorrectly think relational data is semi-structured due to schema flexibility.

D

Candidates may confuse 'unstructured' with 'not a traditional database' and incorrectly classify relational data as unstructured, or think XML is fully structured due to its tags.

513
MCQeasy

A small business wants to migrate their on-premises SQL Server database to Azure. They have limited budget and want to minimize ongoing management overhead. The database is less than 50 GB and is used by a single application with low concurrent users. The application requires compatibility with SQL Server features such as T-SQL, stored procedures, and functions. The business does not require high availability or disaster recovery. Which Azure relational database service should they choose?

A.SQL Server on Azure Virtual Machines
B.Azure SQL Database (serverless tier)
C.Azure SQL Managed Instance
D.Azure Database for MySQL
AnswerB

Azure SQL Database's serverless tier automatically pauses the database after a period of inactivity and resumes when traffic returns, so you are only billed for compute when it's actually in use. It is a fully managed PaaS offering that includes automatic backups, high availability, and built-in security, while remaining compatible with SQL Server T-SQL. For a small business, this eliminates most administrative work and aligns compute cost with sporadic usage.

Why this answer

Azure SQL Database serverless tier is the best choice because it provides a fully managed, PaaS relational database service that supports T-SQL, stored procedures, and functions, while automatically pausing during idle periods to reduce costs. With a database under 50 GB, low concurrency, and no HA/DR requirements, the serverless tier minimizes both management overhead and cost, as it charges only for compute used per second and storage consumed.

Exam trap

The trap here is that candidates often choose Azure SQL Managed Instance because of its full SQL Server compatibility, overlooking that the serverless tier of Azure SQL Database also supports T-SQL, stored procedures, and functions, and is far more cost-effective for small, low-usage workloads without HA/DR needs.

How to eliminate wrong answers

Option A is wrong because SQL Server on Azure Virtual Machines is an IaaS solution that requires ongoing management of the OS, SQL Server patches, and backups, increasing overhead and cost, which contradicts the business goal of minimizing management. Option C is wrong because Azure SQL Managed Instance is a PaaS service with near-100% SQL Server compatibility but includes built-in high availability and a higher base cost, making it overkill for a small, low-concurrency database that does not need HA/DR. Option D is wrong because Azure Database for MySQL does not support SQL Server-specific features like T-SQL, stored procedures, and functions; it uses a different SQL dialect, so the application would require significant code changes.

514
Multi-Selectmedium

Which TWO of the following are benefits of using Azure SQL Database over SQL Server on Azure Virtual Machines?

Select 2 answers
A.Built-in high availability with automatic failover
B.Automated patching and updates
C.Lower cost because you can choose any number of vCores
D.Ability to install custom software on the database server
E.Full control over the operating system
AnswersA, B

Azure SQL Database's built-in high availability uses multiple synchronous replicas and automatic failover at the database level, so if a node fails, connections are transparently redirected to a healthy replica. This is provisioned and managed by Microsoft without you having to configure Always On Availability Groups or deploy additional VMs. Consequently, you receive a 99.99% uptime SLA while avoiding the operational burden of designing your own HA stack.

Why this answer

Option A is correct because Azure SQL Database is a fully managed PaaS offering that includes built-in high availability with automatic failover, typically using a 99.99% SLA and replicas managed by the service, whereas SQL Server on Azure VMs requires you to configure Always On availability groups or failover cluster instances yourself. Option B is correct because Azure SQL Database handles automated patching and updates of the database engine and underlying OS transparently, while SQL Server on Azure VMs leaves OS and SQL Server patching to the customer. Option C is not a benefit because Azure SQL Database does not let you choose any number of vCores arbitrarily; vCore counts are tied to specific hardware generations and service tiers, and cost depends on the chosen tier and compute size.

Option D is incorrect because installing custom software on the database server is not possible in Azure SQL Database, but it is possible on SQL Server on Azure VMs. Option E is incorrect because full control over the operating system is a characteristic of SQL Server on Azure VMs (IaaS), not Azure SQL Database, which abstracts the OS away from the customer.

Exam trap

The trap is mixing IaaS benefits (OS control, custom software) with PaaS benefits (automated patching, built-in HA); candidates who don't clearly distinguish the two models pick options that belong to the VM deployment.

515
MCQeasy

Refer to the exhibit. You have a Power BI measure defined as shown. What does this measure return?

A.The count of online sales transactions.
B.The sum of Amount for each product sold online.
C.The total sales amount for all channels.
D.The total sales amount for online channel only.
AnswerD

This is correct because CALCULATE evaluates the SUM(Amount) while applying the filter Channel='Online'. This filter context restricts the rows used by SUM to only online transactions, so the measure returns the total sales amount attributed to the online channel. The result is a single scalar, and any external filters in a report are also applied unless overridden.

Why this answer

The measure uses CALCULATE to modify the filter context, summing the Amount column only where Channel is 'Online'. Therefore, it returns the total sales amount for the online channel only. Option D is correct.

Option A is incorrect because it counts rows, not sums amounts. Option B is incorrect because it sums Amount for each product, not the total. Option C is incorrect because it sums amounts for all channels, not just online.

516
MCQhard

A company stores terabytes of historical sales data as Parquet files in Azure Data Lake Storage Gen2. Business analysts need to run ad-hoc SQL queries that involve complex joins and aggregations over this data. They want to avoid provisioning a dedicated cluster or moving data into a separate database. The queries must be executed using standard T-SQL syntax. Which Azure service should they use?

A.Azure Synapse Analytics dedicated SQL pool
B.Azure Synapse Analytics serverless SQL pool
C.Azure Databricks
D.Azure HDInsight
AnswerB

Azure Synapse Analytics serverless SQL pool directly queries Parquet files in Azure Data Lake Storage using standard T-SQL via OPENROWSET, without provisioning any compute infrastructure. It scales automatically to handle terabytes of data, charges only for the data processed per query, and requires no data movement or loading into a dedicated store. This makes it the only option that combines ad hoc serverless access, T-SQL syntax, and a pure pay-per-query model for historical sales data.

Why this answer

Azure Synapse Analytics serverless SQL pool (B) is the correct choice because it allows you to query Parquet files directly in Azure Data Lake Storage Gen2 using standard T-SQL syntax without provisioning any dedicated cluster or moving data. It automatically scales compute resources to handle complex joins and aggregations on terabytes of data, charging only for the data processed. This matches the requirement for ad-hoc, serverless querying with familiar T-SQL.

Exam trap

The trap here is that candidates often confuse 'serverless SQL pool' with 'dedicated SQL pool' (Option A), assuming both require provisioning, or they mistakenly think Databricks (Option C) supports standard T-SQL, when it actually uses Spark SQL or Python.

Why the other options are wrong

A

A dedicated SQL pool requires provisioning a fixed cluster and incurs ongoing costs even when idle, contradicting the requirement to avoid provisioning a dedicated cluster. It also typically involves moving data into the pool, which the question explicitly wants to avoid.

C

Azure Databricks is optimized for big data analytics and machine learning using Spark, not for ad-hoc SQL queries with standard T-SQL syntax. It requires provisioning a cluster and does not natively support T-SQL without additional configuration.

D

HDInsight requires provisioning a dedicated cluster and does not support ad-hoc T-SQL queries without additional configuration; it is primarily for big data processing with Hadoop/Spark, not serverless SQL.

When would these options actually be correct?

A

A company needs consistent, high-performance querying on large datasets with predictable workloads, and is willing to provision a dedicated cluster and manage data loading. The question would specify that performance and concurrency are critical, and the analysts can tolerate data movement and cluster management overhead.

C

A company needs to perform advanced analytics and machine learning on large datasets using Apache Spark, with support for collaborative notebooks and automated cluster management. The question would specify the need for Spark-based processing or ML workflows.

D

A question requiring processing of massive unstructured or semi-structured data (e.g., terabytes of clickstream logs) using custom MapReduce, Spark, or Hive jobs, where a managed cluster with flexible scaling is needed and T-SQL is not a requirement.

Why candidates pick the wrong answer

A

Candidates may confuse 'dedicated SQL pool' with the general SQL analytics capabilities of Azure Synapse, not realizing that 'serverless' is the option for ad-hoc, on-demand querying without provisioning. They might also assume that dedicated pools are the standard way to run T-SQL on large data.

C

Candidates may associate Azure Databricks with big data and Parquet files, overlooking the requirement for standard T-SQL syntax and the desire to avoid cluster provisioning.

D

Candidates may associate HDInsight with big data and Parquet files, overlooking that it lacks serverless SQL capabilities and requires cluster management, unlike the serverless SQL pool.

517
MCQeasy

A company wants to provide self-service analytics to business users who need to create reports and dashboards from data in Azure Synapse Analytics. Which tool should you recommend?

A.Power BI
B.Microsoft Excel
C.Azure Synapse Studio
D.Azure Data Studio
AnswerA

Power BI is a SaaS-based business analytics service specifically designed for self-service analytics. It provides a low-code environment with drag-and-drop visuals, natural language Q&A, and direct connectivity to a wide range of data sources. Power BI supports self-service data preparation via Power Query and enables governed sharing through workspaces, apps, and row-level security, making it the primary enterprise tool for business users to create and distribute interactive reports and dashboards independently.

Why this answer

Power BI is the correct tool because it is designed specifically for self-service analytics, enabling business users to create interactive reports and dashboards from data stored in Azure Synapse Analytics. Power BI connects directly to Synapse via its built-in connector, allowing users to build visualizations without writing code or relying on IT. This aligns with the requirement for business users to perform ad-hoc analysis and reporting.

Exam trap

The trap here is that candidates may confuse Azure Synapse Studio (a development tool) with a reporting tool, overlooking that Power BI is the designated Microsoft solution for self-service business intelligence and dashboards.

How to eliminate wrong answers

Option B is wrong because Microsoft Excel, while capable of basic data analysis and charting, lacks the native connectivity and interactive dashboard capabilities required for self-service analytics on Azure Synapse Analytics; it is not designed for real-time, large-scale data visualization. Option C is wrong because Azure Synapse Studio is a development and management interface for data engineers and data scientists to build pipelines, write SQL scripts, and manage Spark jobs, not a self-service reporting tool for business users. Option D is wrong because Azure Data Studio is a lightweight database management tool for querying and developing with SQL Server and Azure SQL, focused on developers and DBAs, not on creating business reports and dashboards.

518
MCQhard

Refer to the exhibit. You are reviewing an ARM template snippet for an Azure storage account. You need to ensure that the storage account supports POSIX-like permissions for data lake workloads. Which property must be enabled?

A."allowBlobPublicAccess": false
B."hierarchicalNamespace": {"enabled": true}
C."kind": "DataLakeStorageGen2"
D."keySource": "Microsoft.Storage"
AnswerB

Enabling hierarchicalNamespace converts the storage account to Data Lake Storage Gen2, which replaces flat blob naming with a true directory hierarchy. Only this namespace structure supports POSIX-style access control lists (ACLs) at file and directory level, satisfying the stem's data lake permission requirement.

Why this answer

The correct option is B, "hierarchicalNamespace": {"enabled": true}, because enabling a hierarchical namespace on an Azure Storage account is what upgrades it to Data Lake Storage Gen2 capabilities, including POSIX-like access control lists (ACLs) and directory-level permissions required for data lake workloads. Without this property set to enabled, the account remains a flat Blob Storage namespace and cannot apply POSIX-style permissions. Option A (allowBlobPublicAccess: false) only restricts anonymous public read access and has no bearing on POSIX permissions.

Option C (kind: DataLakeStorageGen2) is not a valid value for the kind property in ARM templates; the valid kind is StorageV2 (or BlockBlobStorage/BlobStorage/FileStorage), and Data Lake behavior is enabled via the hierarchical namespace flag. Option D (keySource: Microsoft.Storage) only specifies that encryption keys are managed by Microsoft, which is unrelated to POSIX-like permissions.

519
MCQmedium

A company uses Azure SQL Database and wants to ensure that a specific query always uses a particular index. What should they do?

A.Update statistics on the table
B.Use a query hint to force the index
C.Rebuild the index
D.Enable Query Store
AnswerB

Using a query hint such as WITH (INDEX(index_name)) or OPTION (TABLE HINT(...)) explicitly instructs the Azure SQL Database query optimizer to use that index for the specific query, effectively overriding the cost-based decision. This is the only listed technique that directly forces the index at execution time. Apply it sparingly because it overrides the optimizer and may become stale as data distributions change.

Why this answer

Query hints, specifically the INDEX hint, allow you to force the query optimizer to use a particular index for a specific query. In Azure SQL Database, this is done by adding `OPTION (TABLE HINT (table_name, INDEX (index_name)))` to the query, overriding the optimizer's default index selection.

Exam trap

The trap here is that candidates confuse index maintenance (rebuilding, updating stats) with query plan control, thinking that a well-maintained index will automatically be used, when in fact the optimizer may still choose a different index based on cost estimates.

How to eliminate wrong answers

Option A is wrong because updating statistics helps the optimizer make better decisions but does not force a specific index; it only improves the accuracy of cardinality estimates. Option C is wrong because rebuilding an index defragments it and updates statistics, but it does not guarantee the query will use that index; the optimizer may still choose a different index. Option D is wrong because Query Store is a monitoring and troubleshooting feature that tracks query performance and plan changes, but it cannot force a specific index for a query; it can only force a specific query plan, not an index within that plan.

520
MCQhard

Refer to the exhibit. The JSON shows an Azure Policy definition. Which effect should be used to proactively prevent creation of storage accounts without encryption?

A.AuditIfNotExists
B.Deny
C.Disabled
D.Append
AnswerB

The Deny effect actively intercepts resource creation or update requests and compares the request against the policy rule. If the condition matches, Azure returns a 403 Forbidden error, preventing the resource from being provisioned. This is the correct effect when the requirement is to block non-compliant resources, because it enforces the policy at request time and does not allow the deployment to continue.

Why this answer

The 'Deny' effect is correct because it proactively blocks the creation or update of a storage account that does not meet the encryption requirement, preventing non-compliant resources from being provisioned. This aligns with Azure Policy's ability to enforce compliance at resource creation time, rather than auditing or remediating after the fact.

Exam trap

The trap here is that candidates often confuse 'AuditIfNotExists' with a proactive block, not realizing it only logs non-compliance after the resource is created, whereas 'Deny' is the only effect that prevents creation entirely.

How to eliminate wrong answers

Option A (AuditIfNotExists) is wrong because it only logs a compliance warning when a storage account lacks encryption, but does not prevent its creation; it is a reactive audit effect. Option C (Disabled) is wrong because it turns off the policy entirely, allowing any storage account to be created without encryption. Option D (Append) is wrong because it adds additional fields to a resource during creation or update, but it cannot block a request; it is used to add tags or settings, not to deny non-compliant resources.

521
MCQmedium

A financial application requires strict consistency and transaction support (ACID). Which Azure data service is most appropriate for storing its core transactional data?

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

Azure SQL Database is the correct choice because it is a fully relational database engine that enforces ACID (Atomicity, Consistency, Isolation, Durability) properties for every transaction. Using T-SQL, it provides multi-statement transactions with commit/rollback semantics, row-level locking, and configurable isolation levels to guarantee strict consistency even under concurrent access. This makes it suitable for financial applications where data integrity must be preserved across related tables.

Why this answer

Azure SQL Database is a fully managed relational database service that provides full ACID (Atomicity, Consistency, Isolation, Durability) transaction support through its SQL Server engine. It is the correct choice for a financial application requiring strict consistency and transactional integrity, as it guarantees that all transactions are processed reliably and adhere to the ACID properties.

Exam trap

The trap here is that candidates often confuse Azure Cosmos DB's 'consistency levels' with full ACID transaction support, not realizing that Cosmos DB sacrifices strict transactional guarantees for global scalability and low latency.

How to eliminate wrong answers

Option A is wrong because Azure Cosmos DB is a NoSQL database that offers multiple consistency models (e.g., eventual, session, bounded staleness) but does not provide full ACID transaction support across multiple documents or partitions; it is optimized for global distribution and low latency, not strict transactional consistency. Option C is wrong because Azure Table Storage is a NoSQL key-value store that does not support ACID transactions; it offers only eventual consistency and lacks the relational integrity and transaction management required for core financial data. Option D is wrong because Azure Data Lake Storage is a massively scalable data lake for big data analytics, not a transactional database; it does not support ACID transactions or provide the relational query capabilities needed for core transactional data.

522
MCQmedium

You are designing a data solution for a retail company that needs to store transactional data (orders, payments) with strong consistency and support for complex joins. The data volume is moderate but expected to grow. Which Azure service should you choose?

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

Azure SQL Database is a fully managed PaaS relational database built on the SQL Server engine, offering the full T-SQL language, complex joins, stored procedures, and ACID-compliant transactions. It delivers strong consistency by default, guaranteeing that every query sees the latest committed data, which is essential for retail operations like order management and inventory control. Its relational and transactional capabilities make it the natural choice for a transactional data solution that does not require the massive scale-out of analytics engines.

Why this answer

Azure SQL Database is a fully managed relational database that provides ACID transactions with strong consistency and supports complex joins via T-SQL. It is ideal for transactional workloads like orders and payments where data integrity and relational queries are critical, and it scales elastically to accommodate growing data volumes.

Exam trap

The trap here is that candidates confuse 'scalability' with 'suitability for transactional workloads' and choose Cosmos DB for its global distribution, overlooking that strong consistency and complex joins are not its core strengths.

How to eliminate wrong answers

Option A is wrong because Azure Cosmos DB is a NoSQL database that prioritizes horizontal scaling and low latency over strong consistency (defaulting to eventual consistency unless configured for higher cost) and does not natively support complex joins across multiple entities. Option B is wrong because Azure Table Storage is a key-value NoSQL store with no support for joins, foreign keys, or ACID transactions, making it unsuitable for relational transactional data. Option D is wrong because Azure Synapse Analytics is a big data analytics service designed for large-scale data warehousing and complex analytical queries, not for OLTP workloads requiring real-time transactional consistency and frequent small writes.

523
MCQmedium

A retail company needs to run complex SQL queries on petabytes of historical sales data stored in Parquet files in Azure Data Lake Storage Gen2. They want a solution that provides fast query performance without managing infrastructure, and they prefer a pay-per-query pricing model. Which Azure service should they use?

A.Azure Synapse Analytics dedicated SQL pool
B.Azure SQL Database
C.Azure Synapse Serverless SQL pool
D.Azure HDInsight with Hive
AnswerC

Azure Synapse Serverless SQL pool is a distributed query engine that can directly read data from Azure Data Lake Storage using T-SQL, without provisioning any dedicated infrastructure. It charges only for the amount of data processed per query, making it a true pay-per-query service ideal for ad-hoc and interactive analysis of petabytes of data stored in open formats like Parquet or CSV. Because it is serverless, it automatically scales resources to handle large queries and requires no cluster management or idle time billing.

Why this answer

Azure Synapse Serverless SQL pool is correct because it allows querying petabytes of Parquet files in Azure Data Lake Storage Gen2 using T-SQL without provisioning any infrastructure, and it charges per terabyte of data processed (pay-per-query). This matches the requirements for fast query performance on historical sales data with a serverless, consumption-based pricing model.

Exam trap

The trap here is that candidates often confuse Azure Synapse Analytics dedicated SQL pool (provisioned, always-on) with the serverless SQL pool (pay-per-query), or assume that Azure SQL Database can handle big data analytics on Parquet files, when it is designed for OLTP workloads and lacks native support for querying external data lakes without additional services like PolyBase.

How to eliminate wrong answers

Option A is wrong because Azure Synapse Analytics dedicated SQL pool requires provisioning and managing dedicated compute resources (e.g., DWUs), incurring ongoing costs regardless of query usage, and does not offer a pay-per-query model. Option B is wrong because Azure SQL Database is a relational database service designed for transactional workloads, not for querying petabytes of Parquet files in Data Lake Storage Gen2, and it lacks native support for serverless querying of external data formats. Option D is wrong because Azure HDInsight with Hive requires managing a Hadoop cluster (provisioning VMs, scaling, patching), does not offer a pay-per-query pricing model, and incurs costs for running the cluster even when idle.

524
MCQeasy

A development team needs to store semi-structured telemetry data in Azure. They require a schema-less store that supports automatic indexing and can be queried using a SQL-like syntax. Which Azure service should they use?

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

Azure Cosmos DB for NoSQL is a schema-agnostic, globally distributed database that stores JSON documents. It automatically indexes all properties and supports a SQL-like query language. This makes it ideal for semi-structured telemetry data that may evolve over time, and it provides low-latency reads and writes at scale.

Why this answer

Azure Cosmos DB for NoSQL is the best choice because it natively stores JSON documents without requiring a fixed schema, automatically indexes all properties, and supports a familiar SQL-like query language. These features directly address the need for a schema-less store with automatic indexing and SQL-like querying for semi-structured telemetry data.

Exam trap

The trap here is assuming that any storage service can handle semi-structured data with SQL-like queries, when only Azure Cosmos DB for NoSQL provides automatic indexing and a SQL query language natively.

525
Multi-Selecthard

Which THREE of the following are benefits of using a columnar storage format like Parquet for analytical workloads?

Select 3 answers
A.Enforced referential integrity constraints
B.Reduced I/O when querying a subset of columns
C.Optimized for frequent row updates
D.Better compression ratios due to similar data types in columns
E.Support for predicate pushdown to skip irrelevant data
AnswersB, D, E

With a columnar layout, each column is stored contiguously, so a query that needs only a few of a wide table's many columns can read exactly those column segments from disk. This drastically lowers I/O traffic and memory consumption compared to row-oriented storage, where the whole row must be pulled even when only one attribute is needed. Because analytics queries tend to aggregate a small subset of columns over huge numbers of rows, this column pruning is a major performance advantage.

Why this answer

Option B is correct because columnar formats like Parquet store each column contiguously, so a query that references only a subset of columns reads only those column chunks rather than full rows, dramatically reducing I/O. Option D is correct because values within a single column share the same data type and tend to be similar, which allows efficient encoding schemes (e.g., dictionary, run-length, delta encoding) and yields much better compression ratios than row-oriented storage. Option E is correct because Parquet stores per-row-group and per-column-chunk statistics (min/max, null counts), enabling predicate pushdown so the engine can skip row groups and column chunks that cannot satisfy the filter.

Option A is not a benefit of Parquet: it is a file format, not a database, and it does not enforce referential integrity constraints such as foreign keys. Option C is also wrong because columnar layouts are optimized for bulk scans and aggregations, not frequent single-row updates; row-oriented stores handle point updates far better.

Exam trap

The trap here is that candidates confuse the benefits of columnar storage (optimized for read-heavy, aggregate queries) with row-oriented storage benefits (optimized for frequent updates and transactional integrity), leading them to incorrectly select Option C.

Page 6

Page 7 of 12

Page 8