Practice set 6 of 16 · AI-200 Exam Preparation

AI-200 Practice Set 6: 48 Exam-Style Questions

This set features 48 realistic scenario questions covering Cosmos DB, AKS, Container Apps, aligned directly with the official Microsoft Azure AI Cloud Developer Associate (AI-200) syllabus.

Study & Domain Breakdown Author: Rohan (Cloud & Infrastructure Engineer) · Verified by Elena Rostova (Staff Kubernetes SRE)
Difficulty Level
Intermediate to Exam-Level
24 Real Exam Questions flagged
Estimated Time
~86 – 106 Minutes
Approx. 2 mins / question target pace
Passing Standard
700 / 1000 (70%)
Aim for ≥ 36 correct before exam day

Domain Weighting & Distribution

Set 6 focuses on resilient AI data ingestion pipelines: Domain 1 (25%), Domain 2 (25%), Domain 3 (27%), and Domain 4 (23%).

Domain 1: 12 Qs Domain 2: 11 Qs Domain 3: 13 Qs Domain 4: 12 Qs

Architectural Trade-offs Tested in Set 6

  • Cosmos DB Hierarchical Partition Keys vs. Single Partition Keys: Hierarchical partition keys (up to 3 levels, e.g. TenantId/DepartmentId/UserId) eliminate the 20 GB physical partition cap for single keys and prevent cross-partition query fan-out in multi-tenant RAG systems.
  • Azure Managed Redis Clustered vs. Non-Clustered Tiers: Non-clustered tiers restrict dataset memory to a single primary/replica pair; clustering shards keys across multiple nodes, multiplying throughput and enabling memory capacities exceeding 100 GB for vector caching.
  • Application Insights Distributed Tracing: W3C TraceContext vs. Request-Id: Modern OpenTelemetry and Azure microservices must standardize on W3C TraceContext (traceparent and tracestate headers) to maintain correlation IDs across heterogeneous Kubernetes and serverless components.

Exam Traps & Common Distractor Pitfalls

  • Common Trap: Using Event Hubs without a checkpoint store in consumer applications.
    Engineering Reality: Without a durable checkpoint store (e.g. Azure Blob Storage container), restarting an event consumer resets reading to either the beginning or end of the partition stream, leading to duplicate processing or data loss.
  • Common Trap: Assuming pgvector IVFFlat index provides instant search accuracy immediately after record inserts.
    Engineering Reality: IVFFlat partitions vectors into centroid lists based on existing data; inserting significant new embeddings without running REINDEX causes recall to deteriorate rapidly.
Priority Questions (Verified Real Exam Questions): Questions marked with Priority · Real Exam are verified questions that have previously appeared on live Microsoft AI-200 certification exams. If your preparation time is tight, use the Priority · Real Exam filter below to practice these first.
Study Strategy: Check every question for volume and concurrency requirements. When a scenario mentions multi-tenant data isolation, immediately look for Hierarchical Partition Keys in Cosmos DB or Row-Level Security (RLS) in PostgreSQL.
Q1 Functions Domain 3 · 20–25% of exam

An Azure Function using the Cosmos DB trigger receives a batch of changed documents. How many function invocations occur per batch?

  1. A One per document
  2. B One per batch of documents (correct answer)
  3. C One per partition
  4. D Configurable via maxItemsPerInvocation

Shortcut: The Cosmos DB trigger passes a batch of changed documents (IReadOnlyList<Document>) to a single function invocation. maxItemsPerInvocation controls the maximum batch size.

Q2 AKS Domain 1 · 20–25% of exam

An AKS cluster must access Azure Key Vault secrets from pods without storing credentials. Which solution should you use?

  1. A Mount secrets as ConfigMaps
  2. B Azure Key Vault Provider for Secrets Store CSI Driver (correct answer)
  3. C Store secrets in Kubernetes Secrets manually
  4. D Use environment variables with az keyvault secret show

Shortcut: The Secrets Store CSI Driver with the Azure Key Vault Provider mounts secrets, keys, and certificates from Key Vault as files in pods, using workload identity or managed identity.

Q3 RBAC Domain 4 · 20–25% of exam

An application is deployed on AKS and needs to call Azure Blob Storage. No credentials should be stored in the cluster. Which approach is recommended?

  1. A Store storage account key in Kubernetes Secret
  2. B Use workload identity: federate Kubernetes service account with a managed identity, assign Storage Blob Data Reader role (correct answer)
  3. C Use a service principal with client secret in pod environment variables
  4. D Embed SAS token in container image

Shortcut: Workload Identity federates the pod's Kubernetes service account with an Azure managed identity via OIDC. The managed identity gets the required Storage RBAC role, eliminating all stored credentials.

Q4 PostgreSQL Domain 2 · 25–30% of exam Priority · Real Exam

Which extension must be allow-listed on the server parameter before CREATE EXTENSION vector will succeed?

  1. A shared_preload_libraries
  2. B azure.extensions (correct answer)
  3. C log_statement
  4. D search_path

Shortcut: Flexible Server restricts extensions. extensions server parameter before it can be created in a database.

More
Flexible Server restricts extensions. The extension name must be added to the azure.extensions server parameter before it can be created in a database.
Q5 Event Grid Domain 3 · 20–25% of exam Priority · Real Exam

A dead-letter destination is configured but no events appear in it after failures. What is a common cause?

  1. A The subscription has no filters
  2. B Event Grid's identity lacks write permission on the dead-letter storage container (correct answer)
  3. C Events are too small
  4. D Retries are disabled

Shortcut: Dead-lettering requires the Event Grid managed identity (or the configured identity) to have Storage Blob Data Contributor on the destination container; otherwise the write silently fails.

Q6 Container Registry Domain 1 · 20–25% of exam

Which ACR SKU is required for private endpoint support?

  1. A Basic
  2. B Standard
  3. C Premium (correct answer)
  4. D All SKUs

Shortcut: Private endpoints (Private Link) require the Premium SKU in ACR.

Q7 Key Vault Domain 4 · 20–25% of exam Priority · Real Exam

How do you eliminate public network access to a vault while still allowing an AKS workload to reach it?

  1. A Firewall rules listing node IPs
  2. B A private endpoint with the privatelink DNS zone linked to the cluster VNet (correct answer)
  3. C Service endpoints only
  4. D Disabling RBAC

Shortcut: A private endpoint gives the vault a private IP. net for clients to use it rather than the public endpoint.

More
A private endpoint gives the vault a private IP. The VNet must also resolve privatelink.vaultcore.azure.net for clients to use it rather than the public endpoint.
Q8 Service Bus Domain 3 · 20–25% of exam

A Service Bus namespace requires all connections to use private endpoints only. Which SKU is required?

  1. A Basic
  2. B Standard
  3. C Premium (correct answer)
  4. D Any SKU with firewall rules

Shortcut: Private endpoint support requires Premium tier. With Premium, you can disable public network access and allow only VNet/private endpoint connections.

Q9 Container Apps Domain 1 · 20–25% of exam Priority · Real Exam

Which scale rule type should you use for an app receiving bursty HTTP traffic that must cap at 20 replicas?

  1. A HTTP scale rule with concurrentRequests and maxReplicas 20 (correct answer)
  2. B CPU scale rule with maxReplicas 20
  3. C Cron scale rule
  4. D Manual scale set to 20

Shortcut: The built-in HTTP rule scales on concurrent requests per replica, which tracks bursty traffic far more responsively than CPU. maxReplicas enforces the ceiling.

Q10 Key Vault Domain 4 · 20–25% of exam

How do you implement envelope encryption for a database column using Key Vault?

  1. A Store plaintext in Key Vault and reference it
  2. B Store a data encryption key (DEK) encrypted by a Key Vault key (KEK); use DEK locally for encryption (correct answer)
  3. C Store the database connection string as a secret
  4. D Use Key Vault's built-in column encryption feature

Shortcut: Envelope encryption: generate a DEK locally, encrypt the DEK with a Key Vault key (KEK), store encrypted DEK. For encryption, decrypt DEK using Key Vault, then use DEK locally. Minimizes Key Vault calls.

Q11 Redis Domain 2 · 25–30% of exam

An application needs to publish messages and have multiple consumer groups receive them independently without losing messages. Which Redis structure supports this?

  1. A Pub/Sub (PUBLISH/SUBSCRIBE)
  2. B List with LPUSH/BRPOP
  3. C Redis Streams (XADD/XREADGROUP) (correct answer)
  4. D Sorted Set

Shortcut: Redis Streams support persistent, ordered, consumer-group-based messaging similar to Kafka. Unlike Pub/Sub (ephemeral), Streams persist messages and support multiple independent consumer groups.

Q12 Event Hubs Domain 3 · 20–25% of exam Priority · Real Exam

A consumer is throttled and lagging. Metrics show high incoming bytes and throttled requests. What is the correct first remedy?

  1. A Add consumer groups
  2. B Increase throughput units (or enable auto-inflate) (correct answer)
  3. C Reduce the retention period
  4. D Add more event hubs

Shortcut: Throttling means the ingress/egress allowance of the provisioned throughput units is exhausted. Adding consumer groups does not add capacity; more TUs do.

Q13 Container Apps Domain 1 · 20–25% of exam

Which Container Apps job type runs on a cron schedule?

  1. A Manual job
  2. B Event-driven job
  3. C Scheduled job (correct answer)
  4. D Triggered job

Shortcut: , every night at midnight for database backups). Manual jobs run on demand; event-driven jobs trigger on KEDA scalers.

More
Scheduled jobs use a cron expression to run at specified times (e.g., every night at midnight for database backups). Manual jobs run on demand; event-driven jobs trigger on KEDA scalers.
Q14 Monitor Domain 4 · 20–25% of exam Priority · Real Exam

What must be configured to send Azure resource platform logs into Log Analytics?

  1. A A diagnostic setting on the resource targeting the workspace (correct answer)
  2. B An action group
  3. C A workbook
  4. D A metric alert

Shortcut: Diagnostic settings route resource logs and metrics to a Log Analytics workspace, storage account, or Event Hub. Without one, resource logs are not retained.

Q15 Event Grid Domain 3 · 20–25% of exam

A team publishes events to an Event Grid custom topic using a managed identity. Which authentication approach is used?

  1. A SAS token in Authorization header
  2. B AAD Bearer token (managed identity) (correct answer)
  3. C API key in query string
  4. D Basic auth

Shortcut: Event Grid custom topics support AAD token authentication using managed identity. Grant the identity the EventGrid Data Sender role on the topic for least-privilege access.

Q16 Container Registry Domain 1 · 20–25% of exam Priority · Real Exam

An image built for linux/amd64 fails to run on an ARM-based Container App. What is the correct fix in ACR Tasks?

  1. A Enable geo-replication to an ARM region
  2. B Build a multi-architecture image with --platform linux/arm64 and publish a manifest list (correct answer)
  3. C Re-tag the existing image as arm64
  4. D Disable Content Trust

Shortcut: Architecture is baked into the image. ACR Tasks can build per-platform images and combine them into a manifest list, so a single tag resolves to the right architecture at pull time.

Q17 Monitor Domain 4 · 20–25% of exam

A Log Analytics workspace retains data for 30 days by default. What is the maximum configurable retention for a workspace?

  1. A 90 days
  2. B 1 year
  3. C 2 years
  4. D 12 years (with long-term retention / archive tier) (correct answer)

Shortcut: Log Analytics supports up to 2 years of hot (interactive) retention and up to 12 years total with the archive tier (lower cost, slower query). Default is 30 days.

Q18 Redis Domain 2 · 25–30% of exam Priority · Real Exam

What does the FLAT vector index algorithm offer compared with HNSW?

  1. A Faster queries on large datasets
  2. B Exact (100% recall) search at higher query cost, suited to smaller datasets (correct answer)
  3. C Lower memory always
  4. D Support for sparse vectors

Shortcut: FLAT performs a brute-force comparison, giving exact results but scaling linearly with dataset size. HNSW is approximate but far faster at scale.

Q19 Functions Domain 3 · 20–25% of exam Priority · Real Exam

What is the default maximum execution duration for a function on the Consumption plan?

  1. A 1 minute
  2. B 5 minutes, extendable to 10 (correct answer)
  3. C 30 minutes
  4. D Unlimited

Shortcut: functionTimeout defaults to 5 minutes on Consumption with a hard ceiling of 10. Longer work requires Premium or Dedicated, or decomposition via Durable Functions.

Q20 AKS Domain 1 · 20–25% of exam

What is the purpose of a Pod Disruption Budget (PDB) in AKS?

  1. A Limits pod CPU/memory consumption
  2. B Ensures a minimum number of replicas remain available during voluntary disruptions like node upgrades (correct answer)
  3. C Controls network traffic between pods
  4. D Sets resource quotas per namespace

Shortcut: PDBs prevent too many pods from being unavailable simultaneously during voluntary disruptions (upgrades, node drains). They specify minAvailable or maxUnavailable constraints.

Q21 RBAC Domain 4 · 20–25% of exam

What does deny assignment in Azure RBAC do?

  1. A Removes an existing role assignment
  2. B Explicitly blocks specified actions even if a role assignment would allow them (e.g., applied by Azure Blueprints) (correct answer)
  3. C Prevents deletion of resources
  4. D Revokes all access

Shortcut: Deny assignments take precedence over role assignments. They block specific actions on resources regardless of what roles a user has. Azure Blueprints use deny assignments to enforce protected configurations.

Q22 Service Bus Domain 3 · 20–25% of exam

What happens to a message when a consumer calls Abandon() on a Service Bus message?

  1. A The message is deleted
  2. B The message is moved to DLQ
  3. C The message lock is released and the delivery count increments; the message becomes available again (correct answer)
  4. D The message is deferred

Shortcut: Abandon releases the lock and increments DeliveryCount. The message returns to the active queue, available for another consumer. After MaxDeliveryCount is exceeded, it goes to DLQ.

Q23 AKS Domain 1 · 20–25% of exam

Which ingress controller option in AKS uses Azure Application Gateway as the ingress and integrates with Azure WAF?

  1. A nginx-ingress
  2. B HAProxy
  3. C Application Gateway Ingress Controller (AGIC) (correct answer)
  4. D Traefik

Shortcut: AGIC is an AKS add-on that programs Azure Application Gateway from Kubernetes Ingress resources, providing native L7 load balancing with WAF capabilities.

Q24 RBAC Domain 4 · 20–25% of exam Priority · Real Exam

A custom role must allow restarting VMs but nothing else. Which definition element lists the permitted operations?

  1. A notActions
  2. B actions (correct answer)
  3. C assignableScopes
  4. D dataActions

Shortcut: Compute/virtualMachines/restart/action. notActions subtracts from actions; dataActions covers data-plane operations.

More
actions enumerates allowed management-plane operations, here Microsoft.Compute/virtualMachines/restart/action. notActions subtracts from actions; dataActions covers data-plane operations.
Q25 Service Bus Domain 3 · 20–25% of exam Priority · Real Exam

Which RBAC role allows an application to receive and complete messages but not send them?

  1. A Azure Service Bus Data Owner
  2. B Azure Service Bus Data Receiver (correct answer)
  3. C Azure Service Bus Data Sender
  4. D Contributor

Shortcut: Data Receiver grants receive and settle permissions only. Data Sender grants send only; Data Owner grants both plus management, which violates least privilege for a consumer.

Q26 PostgreSQL Domain 2 · 25–30% of exam

A team needs to read-scale a write-heavy PostgreSQL database by routing SELECT queries to replicas. Which feature enables this?

  1. A Zone-redundant HA standby
  2. B Read replicas (up to 5 per primary) (correct answer)
  3. C Citus sharding
  4. D Connection pooling

Shortcut: Read replicas are asynchronous copies that can serve read workloads. Applications route read queries to replica endpoints, offloading the primary for writes.

Q27 AKS Domain 1 · 20–25% of exam Priority · Real Exam

Which AKS feature automatically adds nodes when pods cannot be scheduled due to resource pressure?

  1. A Horizontal Pod Autoscaler
  2. B Cluster Autoscaler (correct answer)
  3. C Vertical Pod Autoscaler
  4. D KEDA

Shortcut: The Cluster Autoscaler watches for unschedulable pods and grows the node pool, then removes underutilised nodes. HPA scales pod replicas; KEDA scales on external event sources.

Q28 Key Vault Domain 4 · 20–25% of exam

What does the Key Vault diagnostic log category 'AuditEvent' capture?

  1. A Performance metrics only
  2. B All data plane operations (get, set, delete, list secret/key/cert) with caller identity, result, and timestamp (correct answer)
  3. C Network traffic only
  4. D Resource Manager operations only

Shortcut: AuditEvent logs capture every data plane operation performed on Key Vault, including who accessed or modified a secret/key/cert, from which IP, and whether it succeeded.

Q29 Event Hubs Domain 3 · 20–25% of exam

An Azure Stream Analytics job reads from Event Hubs. How should the consumer authentication be configured?

  1. A Shared Access Signature (SAS) policy
  2. B Managed identity with Azure Event Hubs Data Receiver role (correct answer)
  3. C Username and password
  4. D Event Hubs API key

Shortcut: Stream Analytics supports managed identity authentication to Event Hubs, eliminating stored SAS connection strings. Grant the Stream Analytics identity the Event Hubs Data Receiver role.

Q30 Container Registry Domain 1 · 20–25% of exam

What does az acr build do that docker build does not?

  1. A Supports multi-stage builds
  2. B Runs the build in the cloud without a local Docker daemon (correct answer)
  3. C Produces smaller images
  4. D Supports custom base registries

Shortcut: az acr build offloads the Docker build to ACR's cloud infrastructure. No local Docker installation is required.

Q31 Key Vault Domain 4 · 20–25% of exam Priority · Real Exam

Which capability lets AKS pods consume Key Vault secrets as mounted files?

  1. A The Secrets Store CSI Driver with the Azure Key Vault provider (correct answer)
  2. B ConfigMaps
  3. C An init container calling the REST API
  4. D Azure Files

Shortcut: The CSI driver mounts secrets as a volume and can optionally sync them into Kubernetes Secrets, authenticating with workload identity or a user-assigned identity.

Q32 Event Grid Domain 3 · 20–25% of exam Priority · Real Exam

Which resource lets applications publish their own events into Event Grid?

  1. A System topic
  2. B Custom topic (correct answer)
  3. C Partner topic
  4. D Domain only

Shortcut: A custom topic exposes an endpoint that applications post events to. System topics are emitted by Azure services; partner topics come from third-party SaaS publishers.

Q33 Cosmos DB Domain 2 · 25–30% of exam

What is a Cosmos DB analytical store and which feature does it enable?

  1. A A replica for disaster recovery
  2. B A column-oriented copy of operational data enabling HTAP analytics via Azure Synapse Link without impacting transactional performance (correct answer)
  3. C An archive tier for cold data
  4. D A secondary index on non-partition key fields

Shortcut: Analytical store (enabled via Azure Synapse Link) automatically syncs data to a column-oriented store, enabling analytical queries via Synapse Analytics without RU cost or impacting the transactional workload.

Q34 Container Apps Domain 1 · 20–25% of exam Priority · Real Exam

Two Container Apps in the same environment need service-to-service calls with mTLS and retries without embedding that logic in code. Which feature helps?

  1. A Dapr service invocation (correct answer)
  2. B Azure API Management
  3. C An internal Application Gateway
  4. D Azure Front Door

Shortcut: Enabling Dapr provides service invocation with automatic mTLS, retries, and service discovery by app id, removing that plumbing from application code.

Q35 Monitor Domain 4 · 20–25% of exam

Application Insights distributed tracing links requests across multiple microservices. Which property enables correlation?

  1. A RequestId
  2. B CorrelationId
  3. C Operation_Id (W3C TraceContext: traceparent) (correct answer)
  4. D SessionId

Shortcut: Distributed tracing uses W3C TraceContext (traceparent header). Application Insights assigns Operation_Id to trace all telemetry items (requests, dependencies, exceptions) across services in a single operation.

Q36 Functions Domain 3 · 20–25% of exam

Which Azure Functions feature allows accessing Azure Key Vault secrets in app settings without code changes?

  1. A Key Vault binding
  2. B Key Vault References in App Settings (@Microsoft.KeyVault(...)) (correct answer)
  3. C Manual SDK integration only
  4. D Managed Identity + MSAL

Shortcut: ) directly in App Settings. The runtime resolves the secret automatically using the function's managed identity.

More
Key Vault References use the syntax @Microsoft.KeyVault(VaultName=...,SecretName=...) directly in App Settings. The runtime resolves the secret automatically using the function's managed identity.
Q37 Container Apps Domain 1 · 20–25% of exam

What workload profile type in Container Apps provides dedicated compute resources that are always running?

  1. A Consumption
  2. B Serverless
  3. C Dedicated (correct answer)
  4. D Premium

Shortcut: Dedicated workload profiles provide dedicated nodes for Container Apps workloads, unlike Consumption which is serverless and shares infrastructure.

Q38 Monitor Domain 4 · 20–25% of exam Priority · Real Exam

Which instrumentation approach is recommended for new applications to remain vendor-neutral?

  1. A The classic Application Insights SDK
  2. B OpenTelemetry with the Azure Monitor exporter (correct answer)
  3. C Manual logging to blobs
  4. D Console output only

Shortcut: OpenTelemetry is the strategic standard. The Azure Monitor OpenTelemetry distro exports traces, metrics, and logs to Application Insights while keeping the instrumentation portable.

Q39 Event Hubs Domain 3 · 20–25% of exam Priority · Real Exam

Which protocol does Event Hubs support that allows Kafka clients to connect without code changes?

  1. A MQTT
  2. B The Kafka protocol endpoint (correct answer)
  3. C gRPC
  4. D WebSockets only

Shortcut: Event Hubs exposes a Kafka-compatible endpoint on Standard tier and above, so existing Kafka producers and consumers can point at Event Hubs by changing configuration only.

Q40 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam

A query with ORDER BY on two properties fails asking for a composite index. Why?

  1. A Range indexes cover single properties only; multi-property ORDER BY needs a composite index (correct answer)
  2. B Composite indexes are required for all queries
  3. C The container lacks a partition key
  4. D ORDER BY is unsupported

Shortcut: The default policy creates range indexes per path, which serve single-property ordering. Multi-property ORDER BY requires an explicitly defined composite index in the matching order and direction.

Q41 Container Registry Domain 1 · 20–25% of exam Priority · Real Exam

Which statement about ACR geo-replication is correct?

  1. A Each replica has its own login server URL
  2. B Writes can occur in any replica region independently
  3. C The login server is a single URL routed to the nearest replica via Traffic Manager (correct answer)
  4. D It is available on the Standard SKU

Shortcut: Geo-replication (Premium only) presents one login server. Azure Traffic Manager routes pulls to the nearest replica. Pushes go to the home region and replicate outward.

Q42 RBAC Domain 4 · 20–25% of exam

Which Azure Policy effect prevents non-compliant resources from being created?

  1. A Audit
  2. B AuditIfNotExists
  3. C Deny (correct answer)
  4. D Modify

Shortcut: Deny effect blocks the resource deployment/modification request if it doesn't comply with the policy. Audit only logs non-compliance. AuditIfNotExists audits resources missing dependent resources.

More
Deny effect blocks the resource deployment/modification request if it doesn't comply with the policy. Audit only logs non-compliance. AuditIfNotExists audits resources missing dependent resources. Modify remediates properties.
Q43 Event Grid Domain 3 · 20–25% of exam

What does Event Grid's retry policy with exponential backoff mean for event delivery?

  1. A Events are retried at fixed 1-second intervals
  2. B Retry intervals increase exponentially (e.g., 10s, 20s, 40s...) up to a max interval, reducing load on unhealthy endpoints (correct answer)
  3. C Events are retried for exactly 10 minutes
  4. D Events are only retried once

Shortcut: Event Grid uses exponential backoff for retries, increasing the interval between attempts. This prevents overwhelming a struggling endpoint. Events are retried for up to 24 hours by default.

Q44 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam

Which partition key best fits the described read and write pattern for the product container?

  1. A A single fixed value so all products share one partition
  2. B /productId, giving high cardinality and even distribution (correct answer)
  3. C /region, matching the three merchandising teams
  4. D /lastUpdatedDate

Shortcut: Point reads and vector lookups are per product, and /productId has cardinality of 4 million with even distribution. /region creates three enormous partitions and a hot one; a date key makes today's partition hot for every write; a fixed value is a single logical partition capped at 20 GB.

Q45 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam Choose 2

Which TWO changes most directly reduce RU consumption for this workload?

  1. A Exclude the 1536-dimension embedding array from the indexing policy (correct answer)
  2. B Enable the integrated cache with a dedicated gateway for repeated reads (correct answer)
  3. C Increase provisioned throughput
  4. D Switch every read to strong consistency
  5. E Add a second write region

Shortcut: Indexing a 1536-element array on every write is a large and pointless RU cost, since the vector is searched by the vector index, not the property index. With 95% of traffic hitting 2,000 products, the integrated cache serves repeats at 0 RU. Raising throughput increases cost; strong consistency doubles read RU; a second write region adds cost and conflict risk.

Q46 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam

Search must survive the loss of a region. Which configuration meets the requirement at the lowest risk?

  1. A Multi-region writes with last-writer-wins
  2. B A single region with zone redundancy only
  3. C Multi-region reads with automatic failover and a single write region (correct answer)
  4. D Periodic backup restore into a second region

Shortcut: Read replicas in additional regions with automatic failover keep the storefront serving during a regional outage, while a single write region avoids write-write conflicts entirely. Zone redundancy protects against a datacentre failure, not a regional one, and backup restore is far too slow for a revenue-critical path.

Q47 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam

Which consistency level suits the storefront's read path?

  1. A Strong
  2. B Session (correct answer)
  3. C Eventual
  4. D Bounded staleness of 1 second

Shortcut: Session consistency gives read-your-own-writes within a session at roughly the cost of eventual, which is the right default for a catalogue where a merchandiser must see their own edit but a shopper tolerates brief staleness. Strong forbids the multi-region read replicas this design depends on.

Q48 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam Choose 2

The ingestion pipeline must react to catalogue changes without polling. Which TWO facts about the change feed apply?

  1. A It provides an ordered record of inserts and updates per logical partition (correct answer)
  2. B A second consumer can read the same feed independently using its own lease container (correct answer)
  3. C It includes deletes by default
  4. D It replaces the need for a partition key
  5. E It guarantees ordering across all partitions

Shortcut: The change feed is ordered within a logical partition, and separate lease containers let independent consumers read the whole feed at their own pace. Deletes are not emitted unless modelled as soft deletes with a TTL, and no cross-partition ordering guarantee exists.