Practice set 10 of 16 · AI-200 Exam Preparation

AI-200 Practice Set 10: 47 Exam-Style Questions

This set features 47 realistic scenario questions covering Service Bus, AKS, Cosmos DB, 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
25 Real Exam Questions flagged
Estimated Time
~85 – 103 Minutes
Approx. 2 mins / question target pace
Passing Standard
700 / 1000 (70%)
Aim for ≥ 36 correct before exam day

Domain Weighting & Distribution

Set 10 evaluates full-stack cloud AI architecture across 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: 11 Qs

Architectural Trade-offs Tested in Set 10

  • AKS Cluster Autoscaler vs. Horizontal Pod Autoscaler (HPA): HPA scales pod replicas based on metrics; when existing node pools lack sufficient vCPU or RAM to schedule pending pods, the Cluster Autoscaler provisions new Azure VM nodes.
  • PostgreSQL pg_trgm vs. pgvector for Hybrid Search: pgvector handles semantic vector search (<=>, <#>), while pg_trgm provides trigram-based fuzzy string matching and full-text keyword indexing; combining both yields reciprocal rank fusion (RRF) hybrid search.
  • Event Grid Advanced Filtering vs. In-Function Filtering: Advanced filters evaluate event envelope attributes (subject, data fields) at the cloud edge, delivering only relevant messages and preventing unnecessary serverless invocation billing.

Exam Traps & Common Distractor Pitfalls

  • Common Trap: Using Azure Front Door with non-HTTPS origins when end-to-end TLS is required.
    Engineering Reality: Zero-trust compliance requires Front Door to establish TLS handshakes directly with backend origin endpoints, requiring valid CA certificates on custom domains.
  • Common Trap: Selecting Service Bus Basic tier for pub/sub topic subscriptions.
    Engineering Reality: The Basic tier of Service Bus supports queues only. Topics, subscriptions, filters, and transactions require the Standard or Premium tier.
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: Pay special attention to Hybrid Search questions. Questions asking for keyword + semantic search in PostgreSQL require both pgvector and pg_trgm extensions enabled.
Q1 Container Registry Domain 1 · 20–25% of exam Priority · Real Exam

Which ACR Tasks trigger rebuilds an image when a dependency in a linked Git repository changes, without any local Docker involvement?

  1. A Base image update trigger
  2. B Source code commit trigger (correct answer)
  3. C Timer trigger
  4. D Webhook on push

Shortcut: A source code trigger binds an ACR Task to a Git repository and branch. Commits or pull requests queue a cloud build; no local Docker daemon participates.

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

A team needs to store relationship graphs and traverse connections between entities. Which Cosmos DB API is appropriate?

  1. A NoSQL
  2. B MongoDB
  3. C Cassandra
  4. D Gremlin (correct answer)

Shortcut: Cosmos DB for Gremlin implements the Apache TinkerPop Gremlin graph traversal language, suitable for social graphs, recommendation engines, and knowledge graphs.

Q3 RBAC Domain 4 · 20–25% of exam

Which Azure Defender plan protects Azure Container Registry images by scanning them for vulnerabilities?

  1. A Defender for Servers
  2. B Defender for Containers (correct answer)
  3. C Defender for Key Vault
  4. D Defender for App Service

Shortcut: Microsoft Defender for Containers scans ACR images on push and periodically re-scans stored images for known CVEs, providing vulnerability reports and recommendations in Defender for Cloud.

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

An analytics job must reprocess the last 3 days of events after a bug fix. What makes this possible?

  1. A Dead-lettering
  2. B Reading from an earlier offset or timestamp within the retention window (correct answer)
  3. C Re-sending from producers
  4. D Capture only

Shortcut: Because the log is retained rather than consumed destructively, a processor can reset its checkpoint and replay from any offset or enqueued time still inside the retention period.

Q5 AKS Domain 1 · 20–25% of exam

What command stops an AKS cluster to save compute costs while preserving its configuration?

  1. A az aks delete
  2. B az aks scale --node-count 0
  3. C az aks stop (correct answer)
  4. D kubectl cluster-info --purge

Shortcut: az aks stop deallocates cluster VMs and pauses the control plane billing. The cluster configuration is preserved and can be resumed with az aks start.

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

Which authentication approach removes account keys from an application entirely?

  1. A Read-only keys
  2. B Managed identity with Cosmos DB data-plane RBAC role assignments (correct answer)
  3. C Resource tokens
  4. D Connection string in Key Vault

Shortcut: Cosmos DB supports Azure AD data-plane RBAC. Assigning a managed identity the Cosmos DB Built-in Data Contributor role lets the SDK authenticate with a token, so no key exists to leak.

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

Which service enforces organisational standards such as 'all resources must have an owner tag'?

  1. A Azure RBAC
  2. B Azure Policy (correct answer)
  3. C Managed identities
  4. D Key Vault

Shortcut: RBAC governs who may act; Azure Policy governs what configurations are permitted, evaluating resources at create time and auditing existing ones.

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

Which ACR task type supports running commands in a specific order with conditional logic, defined in a YAML file?

  1. A Quick task
  2. B Multi-step task (correct answer)
  3. C Scheduled task
  4. D Base image trigger task

Shortcut: Multi-step tasks define a pipeline of steps in a YAML task file, supporting conditions, environment variables, and multiple container builds/runs in sequence.

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

An Event Grid subscription to an Azure Function endpoint fails consistently. Where should you first check for errors?

  1. A Azure Monitor activity log
  2. B Event Grid subscription Metrics (delivery failure metrics) and Azure Function logs (correct answer)
  3. C Storage Account logs
  4. D Network Security Group flow logs

Shortcut: Event Grid subscription metrics show delivery success/failure counts. Function logs show whether invocations occurred and what errors happened. Use Azure Monitor diagnostics logs on the Event Grid topic for detailed tracing.

Q10 Redis Domain 2 · 25–30% of exam

Which RDB persistence option in Azure Cache for Redis Premium creates a snapshot every 60 minutes?

  1. A AOF every 60 minutes
  2. B RDB with 60-minute checkpoint (correct answer)
  3. C Manual BGSAVE on schedule
  4. D Redis replication snapshotting

Shortcut: RDB snapshots can be configured with intervals (15, 30, 60 minutes). The snapshot is a point-in-time binary dump of the entire dataset, useful for disaster recovery.

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

What is the maximum number of secrets per Key Vault?

  1. A 100
  2. B 1,000
  3. C No documented per-vault limit; rate limits apply to operations (correct answer)
  4. D 10,000

Shortcut: Key Vault has no documented limit on the number of secrets. Limits apply to transactions per second (2000 GET secret/10 sec per vault in Standard). Large volumes should use multiple vaults.

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

An application needs to scale on Service Bus queue depth rather than CPU. Which AKS add-on provides this?

  1. A Cluster Autoscaler
  2. B KEDA (Kubernetes Event-Driven Autoscaling) (correct answer)
  3. C Vertical Pod Autoscaler
  4. D Dapr

Shortcut: KEDA provides scalers for external event sources including Service Bus, Event Hubs, and Storage Queues, and can scale a deployment to zero when the source is empty.

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

To eliminate public exposure of the database server entirely, which networking option should be chosen at creation?

  1. A Public access with firewall rules
  2. B Private access with VNet integration (delegated subnet) (correct answer)
  3. C Service endpoints
  4. D Allow Azure services toggle

Shortcut: Private access injects the server into a delegated subnet with a private IP and no public endpoint. Firewall rules still leave a public endpoint reachable.

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

An organization needs FIPS 140-2 Level 3 validated key storage. What Azure service provides this beyond Key Vault Premium?

  1. A Azure Dedicated HSM
  2. B Azure Managed HSM (correct answer)
  3. C Azure Key Vault Premium is Level 3
  4. D Azure Security Center

Shortcut: Azure Managed HSM provides FIPS 140-2 Level 3 validated, single-tenant HSM service. Key Vault Premium uses Level 2 HSMs. Azure Dedicated HSM provides the physical device for maximum control.

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

Which host.json setting limits the number of concurrent HTTP requests handled per instance?

  1. A maxConcurrentRequests under extensions.http (correct answer)
  2. B functionTimeout
  3. C batchSize
  4. D maxOutstandingRequests only

Shortcut: maxConcurrentRequests caps in-flight executions per instance, and maxOutstandingRequests bounds queued requests. Both protect the instance from overload.

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

A Container App processes files from Azure Blob Storage when they are uploaded. Which job type and KEDA trigger combination is correct?

  1. A Scheduled job with cron trigger
  2. B Event-driven job with Azure Blob Storage trigger (correct answer)
  3. C Manual job with webhook trigger
  4. D Manual job with Blob Storage binding

Shortcut: , new blob uploaded), then scale to zero after processing.

More
Event-driven jobs use KEDA triggers (including Azure Blob Storage) to start job executions when events occur (e.g., new blob uploaded), then scale to zero after processing.
Q17 PostgreSQL Domain 2 · 25–30% of exam

Which backup feature in Azure Database for PostgreSQL Flexible Server allows restore to any point within the retention period?

  1. A Weekly full backup only
  2. B Point-in-time restore (PITR) using continuous WAL archiving (correct answer)
  3. C Manual pg_dump snapshot
  4. D Differential backup only

Shortcut: Flexible Server continuously archives WAL (write-ahead logs) enabling point-in-time restore to any second within the retention period (up to 35 days).

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

An Azure Function must sign data with a key that must never leave the vault. Which operation supports this?

  1. A Download the key and sign locally
  2. B Call the Key Vault sign operation so the private key never leaves the service (correct answer)
  3. C Store the key as a secret
  4. D Export the key to the function

Shortcut: Cryptographic operations such as sign, verify, wrap, and unwrap execute inside Key Vault. Non-exportable keys therefore never appear in application memory.

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

What is the effect of setting minReplicas to 1 on a Container App?

  1. A The app can still scale to zero when idle
  2. B At least one replica always runs, removing cold starts but incurring continuous cost (correct answer)
  3. C The app is limited to one replica
  4. D Scaling rules are ignored

Shortcut: minReplicas 1 keeps a warm replica at all times. It eliminates cold-start latency but means you pay for that replica even with no traffic.

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

A cached response must be invalidated when its underlying record changes. Which approach is most reliable?

  1. A Rely on TTL expiry alone
  2. B Explicitly DEL the cache key in the same code path that writes the record (correct answer)
  3. C Use Pub/Sub without subscribers
  4. D Reduce maxmemory

Shortcut: Write-through invalidation removes the stale entry deterministically at the moment of change. TTL alone leaves a stale window equal to the remaining TTL.

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

A consumer defers a Service Bus message using Defer(). How is the deferred message later retrieved?

  1. A It comes back automatically after the lock expires
  2. B It must be retrieved by sequence number using ReceiveDeferred() (correct answer)
  3. C It moves to DLQ after deferral
  4. D It is available in a separate deferred queue

Shortcut: Deferred messages are retained in the main queue but hidden. They must be explicitly received by sequence number (ReceiveDeferredMessageAsync(sequenceNumber)), which the application must track.

Q22 Monitor Domain 4 · 20–25% of exam

Which Log Analytics table stores Azure Activity Log events (Azure control plane operations)?

  1. A AzureDiagnostics
  2. B AuditLogs
  3. C AzureActivity (correct answer)
  4. D SecurityEvent

Shortcut: AzureActivity contains Activity Log events: CRUD operations on Azure resources, policy evaluations, service health events. Query it to investigate who created, modified, or deleted a resource.

Q23 AKS Domain 1 · 20–25% of exam

A node pool needs to be upgraded to a newer OS image without upgrading the Kubernetes version. Which command does this?

  1. A az aks upgrade --kubernetes-version current
  2. B az aks nodepool upgrade --node-image-only (correct answer)
  3. C kubectl drain node && apt upgrade
  4. D az aks update --os-upgrade

Shortcut: az aks nodepool upgrade --node-image-only updates only the OS image (security patches) on nodes without changing the Kubernetes version.

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

What is the main advantage of Cosmos DB's hierarchical partition keys?

  1. A Enables strong consistency across regions
  2. B Allows containers to exceed the 20 GB logical partition limit by creating sub-partitions (correct answer)
  3. C Enables multi-master writes per partition
  4. D Provides automatic index management

Shortcut: Hierarchical partition keys (up to 3 levels) distribute data more granularly, preventing hot partitions when a single partition key value approaches the 20 GB limit.

Q25 Monitor Domain 4 · 20–25% of exam Priority · Real Exam Choose 2

Which TWO statements correctly distinguish metric alerts from log search alerts?

  1. A Metric alerts evaluate pre-aggregated data with lower latency and cost (correct answer)
  2. B Log search alerts run a KQL query on a schedule and are more expressive (correct answer)
  3. C Log search alerts are always cheaper
  4. D Metric alerts cannot use dimensions
  5. E Log search alerts evaluate in real time

Shortcut: Platform metrics are pre-aggregated, so metric alerts fire quickly and cheaply and do support dimensions. Log search alerts trade latency and query cost for the full expressiveness of KQL across arbitrary tables.

Q26 AKS Domain 1 · 20–25% of exam

Which Azure Policy initiative enforces Kubernetes-level policies (pod security, namespace quotas) via Gatekeeper OPA on AKS?

  1. A Azure Policy for Kubernetes (correct answer)
  2. B Pod Security Policy (deprecated)
  3. C Kubernetes NetworkPolicy
  4. D Azure Defender

Shortcut: Azure Policy for AKS uses OPA Gatekeeper to enforce policies at admission time, such as restricting privileged containers or requiring resource limits.

Q27 Service Bus Domain 3 · 20–25% of exam Priority · Real Exam

Which property should a consumer use to implement idempotency across redeliveries?

  1. A SequenceNumber
  2. B MessageId (correct answer)
  3. C EnqueuedTimeUtc
  4. D DeliveryCount

Shortcut: MessageId is stable across redeliveries of the same logical message, so recording processed MessageIds lets the handler discard duplicates safely.

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

A company needs Cosmos DB data to be backed up at a point-in-time and restored by the customer without contacting Microsoft Support. Which backup mode enables this?

  1. A Periodic backup mode
  2. B Continuous backup mode (7 or 30 days) (correct answer)
  3. C Manual backup via export
  4. D Azure Site Recovery

Shortcut: Continuous backup mode (available in 7-day and 30-day tiers) allows self-service point-in-time restore to any second within the retention window without opening a support ticket.

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

Which setting controls how long data remains queryable in a Log Analytics workspace?

  1. A Retention (with optional archive tier) (correct answer)
  2. B Sampling rate
  3. C Daily cap
  4. D Diagnostic setting

Shortcut: Retention governs the interactive query window. Beyond it, data can move to a cheaper archive tier and be restored or searched when needed.

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

After deleting a tag by mistake, you need to recover it. Which prerequisite must have been in place?

  1. A Geo-replication
  2. B Soft delete enabled on the Premium registry (correct answer)
  3. C Content Trust
  4. D A retention policy

Shortcut: Soft delete retains deleted tags and manifests in a recoverable state for the configured retention window. Without it, deletion is immediate and permanent.

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

You must store both the source text and its embedding, then filter by category before the vector search. What is required for efficient execution?

  1. A A vector index only
  2. B A vector index plus a range index on category, so the filter narrows candidates (correct answer)
  3. C Separate containers per category
  4. D Strong consistency

Shortcut: Filtered vector search benefits from indexing the filter property as well as the vector path, allowing the engine to restrict the candidate set before computing distances.

Q32 RBAC Domain 4 · 20–25% of exam

A company needs to ensure all Azure VMs have a specific tag 'Environment' applied. Which Azure Policy effect automatically adds the tag if missing?

  1. A Deny
  2. B Audit
  3. C Modify (append/modify tag) (correct answer)
  4. D DeployIfNotExists

Shortcut: Modify effect can add, replace, or remove resource tags and properties on existing and new resources. A Modify policy with 'add' operation ensures the Environment tag is applied if missing.

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

Which Service Bus client library method enables efficient message processing across multiple concurrent processors?

  1. A ServiceBusProcessor with MaxConcurrentCalls (correct answer)
  2. B Sequential ReceiveMessageAsync in a loop
  3. C ServiceBusSender batch sends
  4. D ServiceBusSessionProcessor for all queues

Shortcut: ServiceBusProcessor with MaxConcurrentCalls processes messages concurrently. It handles lock renewal, error handling, and auto-complete/abandon, simplifying high-throughput consumers.

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

A registry must encrypt images with a customer-managed key (CMK) stored in Azure Key Vault. Which SKU supports this?

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

Shortcut: Customer-managed key encryption for ACR is a Premium-only feature. The CMK must be in an Azure Key Vault in the same region.

Q35 PostgreSQL Domain 2 · 25–30% of exam

Which PostgreSQL extension is used to partition a large table by range (e.g., by date) for improved query performance?

  1. A pg_partman
  2. B Declarative partitioning (native PostgreSQL 10+) (correct answer)
  3. C pg_cron
  4. D TimescaleDB

Shortcut: PostgreSQL's native declarative partitioning (PARTITION BY RANGE/LIST/HASH) efficiently partitions large tables. pg_partman automates partition management (creating/dropping partitions).

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

An AKS pod must access Cosmos DB with a workload-specific identity. Which combination is correct?

  1. A Kubelet identity with Cosmos DB Contributor
  2. B Workload Identity federated to a user-assigned identity holding a Cosmos DB data-plane role (correct answer)
  3. C Account key in a ConfigMap
  4. D Node pool identity

Shortcut: Workload Identity gives the pod its own Entra ID identity. Pairing it with the Cosmos DB Built-in Data Contributor data role grants exactly the data access required.

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

Which Azure Policy for Kubernetes effect prevents pods that request privileged escalation from being admitted?

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

Shortcut: The Deny effect rejects non-compliant resources at admission through the Gatekeeper webhook. Audit only records violations after the fact.

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

What does enabling batched delivery on a subscription change?

  1. A Events are delivered as an array in a single request, up to configured size and count limits (correct answer)
  2. B Events are compressed
  3. C Events are ordered
  4. D Retries are disabled

Shortcut: Batching sends multiple events per HTTP request, controlled by maxEventsPerBatch and preferredBatchSizeInKilobytes, improving throughput for handlers that can process arrays.

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

Which index type suits equality lookups on a JSONB column's keys?

  1. A B-tree on the whole column
  2. B GIN with jsonb_path_ops (correct answer)
  3. C HNSW
  4. D BRIN

Shortcut: GIN indexes the contents of JSONB documents and supports containment operators efficiently. jsonb_path_ops produces a smaller, faster index for the @> operator.

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

A team stores database passwords in Key Vault. The application must handle Key Vault throttling gracefully. Which HTTP status code indicates throttling?

  1. A 401 Unauthorized
  2. B 403 Forbidden
  3. C 429 Too Many Requests (correct answer)
  4. D 503 Service Unavailable

Shortcut: Key Vault returns HTTP 429 when the request rate exceeds the vault's throttle limits. Implement exponential backoff retry logic and Retry-After header handling in the application.

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

How do you mount Azure Files as a volume in a Container App?

  1. A Not supported; only emptyDir is available
  2. B Configure a storage volume in the environment, then mount it in the container spec (correct answer)
  3. C Use Kubernetes PersistentVolume directly
  4. D Use DAPR state store instead

Shortcut: Container Apps supports Azure Files as a persistent volume. You configure the storage in the environment and then reference it as a volume mount in the container's configuration.

Q42 Service Bus Domain 3 · 20–25% of exam Priority · Real Exam

No order may be published without its database write succeeding. Which pattern satisfies this?

  1. A A Service Bus transaction spanning the database and the queue
  2. B The transactional outbox: write the event to an outbox table in the same database transaction, then relay it (correct answer)
  3. C Publish first, then write the order
  4. D Duplicate detection on the queue

Shortcut: Service Bus transactions cannot enlist an external database, so no distributed transaction is available. The outbox pattern makes the event part of the same local transaction as the order, and a relay publishes it afterwards, so the two can never diverge.

Q43 Service Bus Domain 3 · 20–25% of exam Priority · Real Exam

Billing must process each customer's events strictly in order. What is required?

  1. A Enable sessions and set SessionId to the customer id (correct answer)
  2. B Increase MaxDeliveryCount
  3. C Use a single consumer with no concurrency
  4. D Enable partitioning on the queue

Shortcut: Sessions bind all messages with the same SessionId to one consumer holding an exclusive lock, which is what preserves FIFO per customer while still allowing many customers to be processed in parallel. A single global consumer would also preserve order but destroys throughput.

Q44 Service Bus Domain 3 · 20–25% of exam Priority · Real Exam Choose 2

Billing occasionally charges twice during redeploys. Which TWO measures address this?

  1. A Record processed MessageIds and discard repeats before applying the charge (correct answer)
  2. B Enable duplicate detection on the queue for the publisher retry window (correct answer)
  3. C Switch the consumer to receive-and-delete mode
  4. D Reduce LockDuration to 10 seconds
  5. E Disable dead-lettering

Shortcut: Service Bus is at-least-once, so a redeploy that interrupts processing after the charge but before settlement causes redelivery. Consumer-side idempotency on MessageId makes reprocessing harmless, and broker duplicate detection removes repeats caused by publisher retries. Receive-and-delete would lose messages instead.

Q45 Event Hubs Domain 3 · 20–25% of exam Priority · Real Exam Choose 2

Which TWO decisions satisfy the telemetry requirements for the two consuming teams?

  1. A Create a separate consumer group for the tracking map and for the analytics job (correct answer)
  2. B Set retention to at least 3 days so the analytics job can replay (correct answer)
  3. C Give each team its own event hub and duplicate the ingestion
  4. D Set retention to 1 hour and rely on Capture alone
  5. E Use a single consumer group shared by both teams

Shortcut: Consumer groups are independent views of the same stream with their own offsets, so both teams read everything without interfering. Replay is possible only within the retention window, so it must cover the required three days. Sharing one consumer group would make the two teams compete for partitions.

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

Telemetry for a given vehicle must be processed in order. How is that achieved?

  1. A Enable sessions on the event hub
  2. B Set the partition key to the vehicle id (correct answer)
  3. C Use a single partition for the whole hub
  4. D Increase the throughput units

Shortcut: Event Hubs guarantees ordering only within a partition. Hashing a stable partition key such as the vehicle id co-locates that vehicle's events in one partition. Sessions are a Service Bus feature, and a single partition would cap throughput at one consumer.

Q47 Service Bus Domain 3 · 20–25% of exam Priority · Real Exam

The notification service overwhelms an SMS gateway limited to 10 requests per second. What is the correct design?

  1. A Retry aggressively on HTTP 429
  2. B Buffer notifications in a queue and drain them with a bounded-concurrency consumer (correct answer)
  3. C Scale the notification service out further
  4. D Publish notifications directly from the order API

Shortcut: A queue absorbs the burst and decouples arrival rate from processing rate. Bounding consumer concurrency, for example with maxConcurrentCalls, holds the outbound rate under the gateway's limit. Scaling out or retrying harder increases pressure on the very component that is failing.