Azure Solutions Architect · Domain 2 of 4 · 22% of the exam

Azure Solutions Architect Domain 2: Design Data Storage Solutions

44 free practice questions for Design Data Storage Solutions in the Microsoft Azure Solutions Architect Expert (AZ-305) exam. Try each question first, then open "Show answer" for the correct option and explanation.

Design Data Storage Solutions practice questions

  1. Question 1. An e-commerce app needs a relational database with automatic tuning, built-in high availability, and no OS management. What should be recommended?

    1. SQL Server on Azure VMs
    2. Azure Table Storage
    3. Azure SQL Database
    4. Azure Files
    Show answer

    Answer: C. Azure SQL Database

    Azure SQL Database is PaaS with patching, backups, and HA managed by Azure.

  2. Question 2. A company is migrating a SQL Server app that uses SQL Agent jobs, cross-database queries, and CLR, with minimal changes. What fits BEST?

    1. Azure SQL Database single database
    2. Azure Cosmos DB
    3. Azure Database for PostgreSQL
    4. Azure SQL Managed Instance
    Show answer

    Answer: D. Azure SQL Managed Instance

    Managed Instance offers near-full SQL Server compatibility as a managed service.

  3. Question 3. An app requires OS-level access to SQL Server and a feature not supported in PaaS. What should be recommended?

    1. Azure SQL Database serverless
    2. Azure SQL Managed Instance
    3. Azure Cosmos DB for NoSQL
    4. SQL Server on Azure Virtual Machines
    Show answer

    Answer: D. SQL Server on Azure Virtual Machines

    IaaS gives full control of the OS and SQL Server, at the cost of managing it.

  4. Question 4. Many small SaaS tenant databases have unpredictable, mostly low usage. How can costs be reduced in Azure SQL Database?

    1. Give each database a large dedicated tier
    2. Move each database to its own VM
    3. Use Hyperscale for every database
    4. Put them in an elastic pool sharing resources
    Show answer

    Answer: D. Put them in an elastic pool sharing resources

    Elastic pools share compute among databases with varying usage peaks.

  5. Question 5. A development database is used a few hours a day and idle otherwise. Which Azure SQL option reduces cost automatically?

    1. The Business Critical tier
    2. Hyperscale with named replicas
    3. A larger provisioned vCore count
    4. The serverless compute tier with auto-pause
    Show answer

    Answer: D. The serverless compute tier with auto-pause

    Serverless scales compute with demand and pauses when idle, billing only storage then.

  6. Question 6. A SQL database will grow to 60 TB and needs fast backups and restores regardless of size. Which tier fits?

    1. General Purpose
    2. Basic
    3. Standard DTU
    4. Hyperscale
    Show answer

    Answer: D. Hyperscale

    Hyperscale scales storage up to 128 TB with snapshot-based backups and fast restore.

  7. Question 7. A SQL workload needs the lowest latency storage and built-in readable secondary replicas. Which Azure SQL tier fits?

    1. General Purpose
    2. Basic
    3. Serverless General Purpose
    4. Business Critical
    Show answer

    Answer: D. Business Critical

    Business Critical uses local SSD storage and an Always On availability group with a readable secondary.

  8. Question 8. A globally distributed app needs single-digit millisecond reads and writes in multiple regions with a NoSQL document model. What fits?

    1. Azure SQL Database with geo-replication
    2. Azure Table Storage
    3. Azure Files premium
    4. Azure Cosmos DB with multi-region writes
    Show answer

    Answer: D. Azure Cosmos DB with multi-region writes

    Cosmos DB replicates across regions and can accept writes in all of them.

  9. Question 9. Which Cosmos DB consistency level gives the strongest guarantees for reads in multi-region setups?

    1. Eventual
    2. Session
    3. Consistent prefix
    4. Strong
    Show answer

    Answer: D. Strong

    Strong guarantees linearizable reads but adds latency and has regional limits. Session is the default.

  10. Question 10. A Cosmos DB app reads its own writes within a user session and needs good performance. Which consistency level is the default and fits?

    1. Strong
    2. Bounded staleness
    3. Eventual
    4. Session
    Show answer

    Answer: D. Session

    Session consistency gives read-your-writes within a session with low latency.

  11. Question 11. Cosmos DB throughput is spiky and unpredictable. Which capacity model avoids over-provisioning?

    1. Fixed manual throughput set to peak
    2. A reserved capacity purchase only
    3. A second container for spikes
    4. Autoscale throughput or serverless
    Show answer

    Answer: D. Autoscale throughput or serverless

    Autoscale scales RU/s between 10% and max, and serverless bills per request for low traffic.

  12. Question 12. A Cosmos DB container has a hot partition. What is the design fix?

    1. Increase the item size limit
    2. Use a single logical partition for all data
    3. Turn off indexing on the container
    4. Choose a partition key with high cardinality and even access
    Show answer

    Answer: D. Choose a partition key with high cardinality and even access

    Good partition keys spread storage and requests evenly across physical partitions.

  13. Question 13. An app is moving from MongoDB and wants a managed service with minimal code changes. What should be recommended?

    1. Azure SQL Database
    2. Azure Table Storage
    3. Azure Database for MySQL
    4. Azure Cosmos DB for MongoDB
    Show answer

    Answer: D. Azure Cosmos DB for MongoDB

    Cosmos DB for MongoDB supports the MongoDB wire protocol, including a vCore option.

  14. Question 14. A PostgreSQL app needs a managed service with zone-redundant high availability. What fits?

    1. PostgreSQL installed on a single VM
    2. PostgreSQL flexible server with zone-redundant HA
    3. Azure SQL Managed Instance with failover
    4. Azure Cosmos DB for Table with backups
    Show answer

    Answer: B. PostgreSQL flexible server with zone-redundant HA

    Flexible server supports a standby in another zone with automatic failover.

  15. Question 15. Which storage solution fits unstructured data, such as images and backups, accessed over HTTP by many apps?

    1. Azure Files SMB shares
    2. Azure Managed Disks
    3. Azure Blob Storage
    4. Azure Queue Storage
    Show answer

    Answer: C. Azure Blob Storage

    Blob Storage scales for unstructured objects, with access tiers and lifecycle management.

  16. Question 16. A data lake for big data analytics needs a hierarchical namespace and POSIX-like ACLs. What should be used?

    1. Azure Files premium shares
    2. Azure Table Storage entities
    3. Azure Data Lake Storage Gen2
    4. Azure Queue Storage messages
    Show answer

    Answer: C. Azure Data Lake Storage Gen2

    ADLS Gen2 adds directories and ACLs to Blob Storage for analytics engines.

  17. Question 17. Blobs are accessed often for 30 days, rarely for a year, and then must be kept for 7 years. What design minimizes cost?

    1. Lifecycle rules: Hot to Cool or Cold, then Archive
    2. Keep every blob in the Hot tier
    3. Store the data on premium managed disks
    4. Delete and re-upload the blobs each month
    Show answer

    Answer: A. Lifecycle rules: Hot to Cool or Cold, then Archive

    Lifecycle policies change tiers by age automatically. Archive is the cheapest for rarely read data.

  18. Question 18. Legal records in Blob Storage must be kept unchangeable for 5 years. What should be configured?

    1. Soft delete enabled for the blobs
    2. A resource lock on the storage account
    3. Immutable storage with a locked retention policy
    4. Blob versioning with no other settings
    Show answer

    Answer: C. Immutable storage with a locked retention policy

    WORM immutability prevents modification and deletion until retention ends.

  19. Question 19. Lift-and-shift apps need shared SMB file storage, and on-premises servers should cache it locally. What fits?

    1. Blob Storage with static websites
    2. Azure Queue Storage
    3. Azure NetApp Files only for Linux
    4. Azure Files with Azure File Sync
    Show answer

    Answer: D. Azure Files with Azure File Sync

    File Sync caches Azure file shares on Windows servers with cloud tiering.

  20. Question 20. An enterprise app needs very high-performance NFS file storage with sub-millisecond latency. What should be recommended?

    1. Azure NetApp Files
    2. Azure Files Standard
    3. Azure Blob Storage Cool tier
    4. Azure Table Storage
    Show answer

    Answer: A. Azure NetApp Files

    Azure NetApp Files is designed for demanding file workloads like SAP and HPC.

  21. Question 21. Which storage redundancy keeps data available if a zone fails and also replicates to a secondary region?

    1. Geo-zone-redundant storage (GZRS)
    2. Locally redundant storage (LRS)
    3. Zone-redundant storage (ZRS)
    4. Geo-redundant storage (GRS)
    Show answer

    Answer: A. Geo-zone-redundant storage (GZRS)

    GZRS combines ZRS in the primary region with asynchronous copy to a secondary region.

  22. Question 22. Applications must read data from the secondary region even before a failover. What should be chosen?

    1. ZRS
    2. RA-GRS or RA-GZRS
    3. LRS
    4. GRS without read access
    Show answer

    Answer: B. RA-GRS or RA-GZRS

    Read-access geo-redundancy exposes a read-only secondary endpoint.

  23. Question 23. A storage account must be reachable only from specific virtual networks over private IPs. What should be designed?

    1. Anonymous blob access with a random URL
    2. A shared account key given to each app
    3. Private endpoints, with public network access off
    4. A resource lock on the storage account
    Show answer

    Answer: C. Private endpoints, with public network access off

    Private endpoints map services such as blob or file to private IPs in the VNet.

  24. Question 24. Apps must access blobs with Microsoft Entra identities instead of shared keys. What should the design use?

    1. Entra data roles (e.g. Storage Blob Data Reader), shared keys off
    2. Account keys stored in each application's config
    3. Anonymous public read access on the containers
    4. SAS tokens issued with no expiry time
    Show answer

    Answer: A. Entra data roles (e.g. Storage Blob Data Reader), shared keys off

    Entra authorization supports least privilege and audit, and disabling shared keys removes a risk.

  25. Question 25. A partner needs time-limited access to upload files to one container. What should be issued?

    1. The storage account key
    2. An account SAS with all permissions and no expiry
    3. Public write access to the container
    4. A user delegation SAS with limited permissions and expiry
    Show answer

    Answer: D. A user delegation SAS with limited permissions and expiry

    User delegation SAS is signed with Entra credentials and can be scoped and time-bound.

  26. Question 26. Data at rest in a storage account must be encrypted with a key the company controls and can revoke. What should be configured?

    1. Microsoft-managed keys only
    2. Client-side encoding with Base64
    3. Customer-managed keys in Key Vault
    4. A resource lock on the storage account
    Show answer

    Answer: C. Customer-managed keys in Key Vault

    CMK lets the company rotate or revoke the key, which makes data unreadable.

  27. Question 27. Data in Azure SQL Database must stay encrypted in memory and during processing so DBAs can't see it. What fits?

    1. Transparent Data Encryption only
    2. TLS for client connections only
    3. Always Encrypted, optionally with enclaves
    4. Dynamic data masking on the columns
    Show answer

    Answer: C. Always Encrypted, optionally with enclaves

    Always Encrypted keeps keys on the client side, so the database engine never sees plaintext.

  28. Question 28. Support staff should see only the last four digits of credit card numbers in query results. What should be used?

    1. Dynamic data masking
    2. Transparent Data Encryption
    3. Row-level security
    4. Always Encrypted with enclaves
    Show answer

    Answer: A. Dynamic data masking

    Masking hides data in results for non-privileged users without changing stored data.

  29. Question 29. Each sales rep must see only rows for their own region in a shared table. What should be used?

    1. Row-level security
    2. Dynamic data masking
    3. Transparent Data Encryption
    4. A separate database per rep
    Show answer

    Answer: A. Row-level security

    Row-level security filters rows with predicates based on the user or session context.

  30. Question 30. Which Azure service orchestrates data movement and transformation pipelines between on-premises and cloud sources?

    1. Azure Queue Storage
    2. Azure Service Bus
    3. Azure Key Vault
    4. Azure Data Factory
    Show answer

    Answer: D. Azure Data Factory

    Data Factory provides pipelines, connectors, and a self-hosted integration runtime for on-premises data.

  31. Question 31. A company needs a unified analytics platform with a lakehouse, data engineering, and Power BI reporting as SaaS. What fits?

    1. Microsoft Fabric
    2. Azure Files
    3. Azure SQL Database only
    4. Azure Cache for Redis
    Show answer

    Answer: A. Microsoft Fabric

    Fabric combines OneLake, data engineering, warehousing, and Power BI in one service.

  32. Question 32. An app needs high-throughput event ingestion from millions of devices for stream processing. What should be used?

    1. Azure Queue Storage
    2. Azure Table Storage
    3. Azure Event Hubs
    4. Azure Files
    Show answer

    Answer: C. Azure Event Hubs

    Event Hubs ingests millions of events per second with partitions and consumer groups.

  33. Question 33. Streaming data must be analyzed in real time with SQL-like queries to detect anomalies. What fits?

    1. Azure Data Factory batch pipelines
    2. Azure Stream Analytics
    3. Azure Blob lifecycle rules
    4. Azure Backup
    Show answer

    Answer: B. Azure Stream Analytics

    Stream Analytics runs continuous queries over Event Hubs or IoT Hub streams.

  34. Question 34. An application stores session state and needs sub-millisecond reads to reduce database load. What should be recommended?

    1. Azure Table Storage with a partition key
    2. Azure Blob Storage in the Cool tier
    3. Azure Managed Redis or Azure Cache for Redis
    4. Azure Files premium file shares
    Show answer

    Answer: C. Azure Managed Redis or Azure Cache for Redis

    An in-memory cache speeds up reads and stores sessions for web apps.

  35. Question 35. An application needs simple key-value storage for billions of small structured entities at low cost. What fits?

    1. Azure SQL Database Business Critical
    2. Azure NetApp Files
    3. Azure Table Storage or Cosmos DB for Table
    4. Azure Managed Disks
    Show answer

    Answer: C. Azure Table Storage or Cosmos DB for Table

    Table storage is cheap and schemaless, and Cosmos DB for Table adds global distribution and SLAs.

  36. Question 36. A 500 TB dataset must be moved to Azure with limited internet bandwidth. What should be recommended?

    1. Azure Data Box
    2. AzCopy over the internet
    3. Azure File Sync
    4. Storage Explorer uploads
    Show answer

    Answer: A. Azure Data Box

    Data Box devices are shipped, loaded, and returned to Azure for large offline transfers.

  37. Question 37. A database must be migrated to Azure SQL Managed Instance with minimal downtime. What should be used?

    1. A manual backup and restore during business hours
    2. Azure File Sync between the two servers
    3. Database Migration Service online, or the MI link
    4. An export to CSV files and a bulk import
    Show answer

    Answer: C. Database Migration Service online, or the MI link

    Online migration keeps the target in sync until a short cutover.

  38. Question 38. A storage account holds millions of blobs, and the team needs a daily list of objects and their tiers for analysis. What should be enabled?

    1. Soft delete
    2. Blob inventory
    3. Change feed only
    4. Static website hosting
    Show answer

    Answer: B. Blob inventory

    Blob inventory writes scheduled reports of blobs and properties to a container.

  39. Question 39. Accidental blob deletions must be recoverable for 14 days. What should be enabled?

    1. Blob soft delete (14 days) plus versioning
    2. Immutable storage with a legal hold
    3. A read-only lock on the storage account
    4. Geo-redundant storage with no other setting
    Show answer

    Answer: A. Blob soft delete (14 days) plus versioning

    Soft delete and versioning keep deleted or overwritten data for a set period.

  40. Question 40. A company wants to track every change to blobs for auditing and event processing in order. What fits?

    1. Blob change feed
    2. Blob inventory
    3. Soft delete
    4. Static website logs
    Show answer

    Answer: A. Blob change feed

    The change feed is an ordered, durable log of blob create, update, and delete events.

  41. Question 41. An Azure SQL database needs automated backups kept for 10 years for compliance. What should be configured?

    1. Point-in-time restore only
    2. Long-term retention (LTR) policies
    3. Geo-replication only
    4. An auto-failover group only
    Show answer

    Answer: B. Long-term retention (LTR) policies

    LTR keeps weekly, monthly, or yearly full backups for up to 10 years.

  42. Question 42. A reporting workload must query large volumes of structured data using massively parallel processing. What should be recommended?

    1. Azure Table Storage with many partitions
    2. Azure Cache for Redis with clustering
    3. A data warehouse, such as Fabric Data Warehouse
    4. Azure Queue Storage with batch reads
    Show answer

    Answer: C. A data warehouse, such as Fabric Data Warehouse

    MPP warehouses distribute queries across many nodes for large analytical workloads.

  43. Question 43. Which storage performance tier should be chosen for a transactional database on a VM needing consistent high IOPS and low latency?

    1. Standard HDD
    2. Premium SSD v2 or Ultra Disk
    3. Standard SSD
    4. Blob Storage Cool tier
    Show answer

    Answer: B. Premium SSD v2 or Ultra Disk

    Premium SSD v2 and Ultra Disk let IOPS and throughput be set independently of size.

  44. Question 44. A design must keep a data copy in a paired region for disaster recovery for a storage account. Which option is simplest?

    1. Choose GRS or GZRS redundancy
    2. Run AzCopy nightly by hand
    3. Use LRS and take snapshots
    4. Enable static website hosting
    Show answer

    Answer: A. Choose GRS or GZRS redundancy

    Geo-redundancy replicates asynchronously to the secondary region, and customer-managed failover is possible.

Microsoft and Azure are trademarks of the Microsoft group of companies. These questions are original study material, not questions from the real exam.