Practice set 4 of 16 · AI-200 Exam Preparation

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

This set features 48 realistic scenario questions covering AKS, Cosmos DB, Key Vault, 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
21 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 4 challenges your understanding of data consistency models, vector distance operators, and zero-trust container networking: Domain 1 (25%), Domain 2 (25%), Domain 3 (27%), and Domain 4 (23%).

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

Architectural Trade-offs Tested in Set 4

  • Cosmos DB Consistency: Strong vs. Session vs. Eventual: Strong consistency guarantees linearizable reads across all regions at the expense of doubling write latency and restricting write regions to a single master; Session consistency remains the default balance of monotonic reads within client sessions and sub-10ms latency.
  • Event Hubs Capture to Blob Storage vs. Stream Analytics Ingestion: Event Hubs Capture provides zero-code, zero-maintenance batch archiving of raw telemetry directly into Avro or Parquet blobs, whereas Stream Analytics is required only when windowed aggregations or real-time filtering are needed before persistence.
  • Private Endpoints vs. Service Endpoints for Key Vault: Service endpoints route traffic over the Azure backbone while keeping public DNS IP resolution; Private Endpoints allocate a private RFC 1918 IP address from your Virtual Network, completely blocking public internet reachability.

Exam Traps & Common Distractor Pitfalls

  • Common Trap: Using Session consistency when external microservices require immediate visibility of newly written vectors.
    Engineering Reality: Session consistency only guarantees read-your-own-writes for the specific client session token; cross-client real-time synchronization requires Bounded Staleness or Strong consistency.
  • Common Trap: Allowing ACA environment ingress from any IP when an Application Gateway WAF is provisioned in front.
    Engineering Reality: If an Application Gateway or Azure Front Door is deployed, the Container App Environment ingress must be configured to internal-only, or restricted via IP security restrictions to the gateway's CIDR.
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: Understand the mathematical differences between Cosine Similarity, Dot Product, and Euclidean (L2) distance in pgvector and Cosmos DB vector indexes. Matching the metric to the embedding model's normalization is critical.
Q1 Service Bus Domain 3 · 20–25% of exam Priority · Real Exam

Which tier is required for Service Bus topics?

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

Shortcut: Basic supports queues only. Topics and subscriptions require Standard or Premium; Premium adds dedicated capacity, predictable latency, and larger message sizes.

Q2 AKS Domain 1 · 20–25% of exam

You need to prevent a node pool from running user workloads while still allowing kube-system pods. Which mechanism do you use?

  1. A Node selector
  2. B Pod disruption budget
  3. C Taint with effect NoSchedule and matching toleration in kube-system pods (correct answer)
  4. D Cordon the node

Shortcut: Tainting system nodes with CriticalAddonsOnly:NoSchedule (added automatically to system node pools) prevents regular workloads from scheduling. kube-system pods have the matching toleration.

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

Which Cosmos DB API is recommended for storing and querying AI embeddings using vector search?

  1. A Cosmos DB for MongoDB
  2. B Cosmos DB for NoSQL with DiskANN vector index (correct answer)
  3. C Cosmos DB for Cassandra
  4. D Cosmos DB for Table

Shortcut: Cosmos DB for NoSQL supports DiskANN-based vector indexing for efficient approximate nearest neighbour (ANN) search, ideal for storing and querying AI embeddings alongside structured data.

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

An Azure Function uses Key Vault References in its App Settings. Which managed identity type must be configured?

  1. A No identity required
  2. B System-assigned or user-assigned managed identity with Key Vault Secrets User role (correct answer)
  3. C Service principal with certificate
  4. D Admin account

Shortcut: ) reference at runtime.

More
Key Vault References require the function app's managed identity to have Key Vault Secrets User (or equivalent access policy) to resolve the @Microsoft.KeyVault(...) reference at runtime.
Q5 Service Bus Domain 3 · 20–25% of exam

How does Service Bus message deduplication prevent duplicate processing?

  1. A By using consumer-side idempotency only
  2. B By tracking message MessageId within a configurable duplication detection window and discarding duplicates (correct answer)
  3. C By using exactly-once delivery protocol
  4. D By requiring unique SessionIds

Shortcut: Enable duplicate detection on a queue or topic. Service Bus stores MessageIds for the detection window (up to 7 days). Duplicate sends with the same MessageId are discarded.

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

An AKS cluster needs to pull images from a private ACR. What is the recommended authentication approach for production?

  1. A Enable the ACR admin account and use its credentials
  2. B Create a Kubernetes secret with a service principal
  3. C Use az aks update --attach-acr to assign AcrPull to the kubelet managed identity (correct answer)
  4. D Store credentials in a ConfigMap

Shortcut: az aks update --attach-acr creates an AcrPull role assignment on the AKS kubelet identity. This uses managed identity, avoiding stored credentials.

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

You need to react to every insert and update in a container in near real time, in order, without polling. Which feature applies?

  1. A Change feed with the change feed processor (correct answer)
  2. B A scheduled query with a timestamp filter
  3. C Analytical store
  4. D Conflict feed

Shortcut: The change feed is a persistent, ordered log of creates and updates per logical partition. The change feed processor distributes leases across workers for scalable consumption.

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

What does enabling Key Vault private endpoint achieve?

  1. A Enables Key Vault geo-replication
  2. B Restricts Key Vault to accept requests only from the connected VNet via a private IP (correct answer)
  3. C Enables HSM-backed keys
  4. D Provides a secondary Key Vault in another region

Shortcut: A private endpoint assigns a private IP to Key Vault within the VNet. Combined with disabling public network access, this ensures the vault is only reachable from within the VNet.

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

Which filtering capability lets you match on a custom field inside the event data payload?

  1. A Subject filters only
  2. B Advanced filters on data properties with operators such as StringIn and NumberGreaterThan (correct answer)
  3. C Event type filters only
  4. D No such capability

Shortcut: * properties, supporting string, numeric, and boolean operators.

More
Advanced filters evaluate JSON paths within the event, including data.* properties, supporting string, numeric, and boolean operators.
Q10 AKS Domain 1 · 20–25% of exam Priority · Real Exam

You must guarantee that a critical pod is rescheduled elsewhere if its node is drained, and that at least 2 replicas stay available during voluntary disruptions. Which object do you create?

  1. A HorizontalPodAutoscaler
  2. B PodDisruptionBudget with minAvailable: 2 (correct answer)
  3. C ResourceQuota
  4. D PriorityClass

Shortcut: A PodDisruptionBudget constrains voluntary disruptions such as node drains and upgrades. minAvailable: 2 blocks the drain from evicting below two ready replicas.

Q11 PostgreSQL Domain 2 · 25–30% of exam

Which Flexible Server high availability mode provides automatic failover to a standby in a different availability zone?

  1. A Same-zone HA
  2. B Zone-redundant HA (correct answer)
  3. C Read replica HA
  4. D Geo-redundant HA

Shortcut: Zone-redundant HA places the primary and standby in separate availability zones. This protects against zone-level failures with automatic failover in ~60–120 seconds.

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

Which built-in role permits reading secret values but not managing the vault?

  1. A Key Vault Contributor
  2. B Key Vault Secrets User (correct answer)
  3. C Key Vault Administrator
  4. D Key Vault Reader

Shortcut: Key Vault Secrets User grants data-plane read of secret values. Key Vault Reader sees metadata only; Contributor manages the resource but not necessarily data.

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

Which TWO conditions cause a message to be moved to the dead-letter queue automatically?

  1. A DeliveryCount exceeds MaxDeliveryCount (correct answer)
  2. B TimeToLive expires while dead-lettering on expiration is enabled (correct answer)
  3. C The consumer completes the message
  4. D The lock is renewed
  5. E Duplicate detection discards a repeat

Shortcut: Exhausting the delivery attempts and TTL expiry with EnableDeadLetteringOnMessageExpiration are the two automatic paths to the dead-letter sub-queue. Completing settles the message successfully, renewal simply extends the lock, and duplicate detection silently drops the repeat rather than dead-lettering it.

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

What is the difference between single revision mode and multiple revision mode in Container Apps?

  1. A Single mode supports only one container; multiple supports sidecars
  2. B Single mode keeps only one active revision; multiple mode allows concurrent revisions for traffic splitting (correct answer)
  3. C Single mode is for internal apps only
  4. D Multiple mode requires Premium workload profile

Shortcut: Single revision mode replaces the active revision on each deploy. , 90/10 for A/B testing).

More
Single revision mode replaces the active revision on each deploy. Multiple revision mode keeps previous revisions running and allows traffic splitting (e.g., 90/10 for A/B testing).
Q15 PostgreSQL Domain 2 · 25–30% of exam Priority · Real Exam

Which Azure Database for PostgreSQL Flexible Server feature provides the lowest-latency read scale-out for a reporting workload?

  1. A Read replicas in the same region (correct answer)
  2. B Geo-redundant backup
  3. C High availability with a standby
  4. D Connection pooling with PgBouncer

Shortcut: Read replicas serve read-only traffic and offload the primary. The HA standby is not readable, and backups are for recovery, not query serving.

Q16 Monitor Domain 4 · 20–25% of exam

A Kubernetes cluster sends container logs and metrics to Azure Monitor. Which feature provides container-specific insights?

  1. A Azure Monitor for VMs
  2. B Container Insights (Azure Monitor for Containers) (correct answer)
  3. C Application Insights
  4. D Security Center

Shortcut: Container Insights collects container stdout/stderr logs, performance metrics (CPU, memory, network) from AKS, and provides pre-built dashboards for node, pod, and container monitoring.

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

Which Event Grid feature allows filtering events by subject, event type, or advanced JSON field matching before delivery?

  1. A Schema validation
  2. B Event subscription filters (subject filter, advanced filters) (correct answer)
  3. C Event domain routing
  4. D Partner integration

Shortcut: ) on any event payload field.

More
Event subscriptions support subject prefix/suffix filters, event type filters, and advanced filters (equals, contains, starts-with, ends-with, etc.) on any event payload field.
Q18 Container Apps Domain 1 · 20–25% of exam Priority · Real Exam

Which secret management approach avoids storing secret values in the Container App definition?

  1. A Environment variables with literal values
  2. B Container Apps secrets referencing Key Vault via managed identity (correct answer)
  3. C Baking secrets into the image
  4. D Storing secrets in a ConfigMap

Shortcut: Container Apps secrets can reference a Key Vault secret URI and resolve it at runtime using the app's managed identity, so the value never appears in the ARM/Bicep definition.

Q19 Redis Domain 2 · 25–30% of exam

Which Redis command implements a cache-aside pattern by setting a value with an expiration time in one atomic operation?

  1. A SET key value
  2. B SETEX key seconds value
  3. C SET key value EX seconds
  4. D Both SETEX and SET with EX (correct answer)

Shortcut: Both SETEX key seconds value and SET key value EX seconds atomically set a value with an expiry. SET key value EX seconds is the modern preferred form supporting additional options.

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

Telemetry volume is driving unacceptable cost. Which technique reduces ingestion while preserving representative data?

  1. A Disable Application Insights
  2. B Adaptive or fixed-rate sampling (correct answer)
  3. C Reduce retention only
  4. D Delete the workspace

Shortcut: Sampling discards a proportion of telemetry while preserving statistical accuracy, and keeps related items together so traces remain coherent. Retention changes storage cost, not ingestion cost.

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

Which feature writes the event stream automatically to Blob Storage or Data Lake without writing code?

  1. A Event Hubs Capture (correct answer)
  2. B Change feed
  3. C Auto-inflate
  4. D Geo-disaster recovery

Shortcut: Capture persists batches to storage in Avro format on a size or time window, providing a durable archive for batch analytics and replay.

Q22 AKS Domain 1 · 20–25% of exam

Which AKS identity feature replaces pod-managed identity (preview) and uses OIDC federation for secure Azure resource access without stored credentials?

  1. A Service Principal
  2. B AAD Pod Identity v2
  3. C Workload Identity (correct answer)
  4. D Managed Identity with MSI token

Shortcut: Workload Identity (GA) uses OIDC federation between the AKS service account and an Azure managed identity, eliminating stored secrets. It replaces the deprecated AAD Pod Identity.

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

Which eviction policy suits a pure cache where the least recently used entries should be discarded under memory pressure?

  1. A noeviction
  2. B allkeys-lru (correct answer)
  3. C volatile-ttl
  4. D allkeys-random

Shortcut: allkeys-lru evicts the least recently used key regardless of TTL, which is the standard choice for a cache. noeviction would instead return write errors when memory fills.

Q24 Functions Domain 3 · 20–25% of exam

A Durable Function implements a human approval workflow that may wait days for a response. Which Durable Function pattern is appropriate?

  1. A Function chaining
  2. B Fan-out/fan-in
  3. C Human interaction (external events) (correct answer)
  4. D Monitor pattern

Shortcut: The human interaction pattern uses WaitForExternalEvent() to pause orchestration indefinitely until an external event (approval, rejection) is raised via the Durable Task API or HTTP.

Q25 RBAC Domain 4 · 20–25% of exam

What is an Azure custom RBAC role?

  1. A A built-in role with modified name
  2. B A role with a custom set of allowed/notAllowed Azure resource provider actions, assignable at specified scopes (correct answer)
  3. C A service principal with custom claims
  4. D A Managed Identity with custom tags

Shortcut: Storage/storageAccounts/read) and notActions (excluded actions) to implement least-privilege beyond built-in roles.

More
Custom roles define specific combinations of Azure resource provider actions (e.g., Microsoft.Storage/storageAccounts/read) and notActions (excluded actions) to implement least-privilege beyond built-in roles.
Q26 AKS Domain 1 · 20–25% of exam

How do you upgrade the Kubernetes version of an AKS cluster control plane?

  1. A az aks nodepool upgrade
  2. B az aks upgrade --resource-group myRG --name myCluster --kubernetes-version 1.29 (correct answer)
  3. C Kubernetes upgrades automatically
  4. D kubectl version upgrade

Shortcut: az aks upgrade upgrades the control plane first, then node pools (or separately). You can then upgrade node pools individually with az aks nodepool upgrade.

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

What does DiskANN vector indexing in Cosmos DB optimize for?

  1. A Full-text search across documents
  2. B Approximate Nearest Neighbour (ANN) search over high-dimensional vectors (correct answer)
  3. C Geospatial queries
  4. D Time-series aggregation

Shortcut: DiskANN is a disk-based ANN algorithm that enables efficient vector similarity search (cosine, dot product, Euclidean) on high-dimensional embeddings stored in Cosmos DB.

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

Which constraint applies to Durable Functions orchestrator code?

  1. A It may call any API freely
  2. B It must be deterministic: no DateTime.Now, no random values, no direct I/O (correct answer)
  3. C It cannot call activities
  4. D It must complete within 5 minutes

Shortcut: Orchestrators replay their history to rebuild state, so non-deterministic operations would diverge. CurrentUtcDateTime and perform I/O inside activity functions.

More
Orchestrators replay their history to rebuild state, so non-deterministic operations would diverge. Use context.CurrentUtcDateTime and perform I/O inside activity functions.
Q29 RBAC Domain 4 · 20–25% of exam Priority · Real Exam

Which principle should guide the scope chosen for a role assignment?

  1. A Always assign at subscription scope for simplicity
  2. B Assign at the narrowest scope that satisfies the requirement (correct answer)
  3. C Always assign at management group scope
  4. D Scope does not matter

Shortcut: Least privilege means scoping to the specific resource or resource group needed. Broad assignments increase blast radius if the identity is compromised.

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

You need to reduce ACR storage costs. Untagged manifests accumulate from repeated CI builds. Which approach removes them on a schedule with the least custom code?

  1. A A Logic App calling the ACR REST API nightly
  2. B An ACR Task running 'az acr purge --untagged --ago 7d' on a cron schedule (correct answer)
  3. C Manually running docker image prune
  4. D Downgrading the SKU to Basic

Shortcut: az acr purge is packaged as a container that ACR Tasks can run on a timer trigger. It handles untagged manifests and age filters natively, with no external orchestration.

Q31 PostgreSQL Domain 2 · 25–30% of exam

What is the maximum vector dimension supported by pgvector?

  1. A 512
  2. B 1536 (correct answer)
  3. C 2000
  4. D Unlimited

Shortcut: pgvector supports up to 2000 dimensions; however, HNSW indexing is currently limited to 2000 and IVFFlat to 2000. Most embedding models produce 768 or 1536 dimensions.

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

Which Event Hubs feature automatically captures streaming data to Azure Blob Storage or Data Lake Storage Gen2 without writing consumer code?

  1. A Event Hubs consumer group
  2. B Event Hubs Capture (correct answer)
  3. C Event Grid integration
  4. D Stream Analytics output

Shortcut: Event Hubs Capture automatically archives events to Blob Storage or ADLS Gen2 in Avro format at configurable time/size intervals, enabling long-term storage without custom consumer code.

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

How does Key Vault protect against accidental permanent deletion of critical secrets?

  1. A Backup policy
  2. B Soft delete (recoverable within retention period) + purge protection (prevents permanent delete during retention) (correct answer)
  3. C Geo-redundant replication
  4. D Vault lock

Shortcut: Soft delete moves deleted objects to a 'deleted' state recoverable within 7–90 days. Purge protection (when enabled) prevents anyone from permanently deleting objects during the retention period.

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

What does ACR Content Trust provide?

  1. A Image retention and cleanup
  2. B Geo-replication across regions
  3. C Digital signature verification to ensure only trusted images can be pulled (correct answer)
  4. D Network firewall rules

Shortcut: Content Trust uses Notary (OCI signing) to sign images. When enabled on a registry, only images with verified signatures can be pulled.

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

Which limitation of the Cosmos DB change feed must you design around?

  1. A It does not capture deletes (correct answer)
  2. B It only works with Strong consistency
  3. C It cannot be read by Azure Functions
  4. D It is limited to 100 documents

Shortcut: The change feed records creates and updates only. To capture deletes, use soft deletes (a deleted flag plus TTL) so the update appears in the feed.

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

An operation must publish a message only if a database write succeeds, with no possibility of one without the other. Which pattern applies?

  1. A Service Bus transactions across the database and broker
  2. B The transactional outbox pattern with a relay reading the outbox (correct answer)
  3. C Duplicate detection
  4. D Auto-forwarding

Shortcut: Service Bus transactions cannot span an external database. The outbox pattern writes the message into the same database transaction, then a relay publishes it, guaranteeing consistency.

Q37 Monitor Domain 4 · 20–25% of exam

Which KQL query counts the number of failed HTTP requests (resultCode 5xx) in Application Insights over the last hour?

  1. A requests | where success == 'False' | count
  2. B requests | where timestamp > ago(1h) | where success == false | count (correct answer)
  3. C logs | filter statusCode >= 500 | count
  4. D requests | top 10 by duration

Shortcut: requests | where timestamp > ago(1h) | where success == false | count queries the requests table, filters to the last hour, filters on failed requests (success==false covers 4xx/5xx), and counts them.

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

Which construct restricts a developer to read-only access on pods within only the 'dev' namespace?

  1. A ClusterRole with ClusterRoleBinding
  2. B Role in 'dev' bound with a RoleBinding in 'dev' (correct answer)
  3. C Azure RBAC Reader on the cluster resource
  4. D NetworkPolicy

Shortcut: Namespace-scoped Role plus RoleBinding is the least-privilege construct. A ClusterRoleBinding would grant the permission across every namespace.

Q39 Redis Domain 2 · 25–30% of exam

A team needs to implement a distributed lock in Redis to prevent concurrent access to a shared resource across multiple application instances. Which approach is recommended?

  1. A SETNX + EXPIRE (two operations, not atomic)
  2. B SET key value NX EX seconds (atomic, Redlock pattern) (correct answer)
  3. C INCR key and check value
  4. D LPUSH/BRPOPLPUSH

Shortcut: SET key value NX EX seconds atomically sets the key only if it doesn't exist (NX) with an expiry. This is the foundation of the Redlock algorithm for distributed locking.

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

An application uses a Service Bus topic with three subscriptions. Message A is sent with no filters. How many copies of the message do consumers receive in total?

  1. A 1 (only first matching subscription)
  2. B 3 (one per subscription) (correct answer)
  3. C 0 (needs explicit routing)
  4. D Depends on delivery count

Shortcut: Each active subscription with a matching filter (default filter is True, matches all) receives one copy of the message. Three subscriptions = three independent message copies.

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

What is the correct approach for a workload requiring FIPS 140-2 Level 3 key protection?

  1. A Standard tier vault
  2. B Premium tier vault with HSM-backed keys, or Managed HSM (correct answer)
  3. C Storing keys in App Configuration
  4. D Software keys with rotation

Shortcut: HSM-backed keys in the Premium tier, or a dedicated Managed HSM pool, provide hardware key protection at FIPS 140-2 Level 3. Standard tier uses software-protected keys.

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

A team uses DAPR for state management. Which component type do they configure to connect to Azure Cosmos DB as a state store?

  1. A DAPR binding
  2. B DAPR state store component (correct answer)
  3. C DAPR pub/sub component
  4. D DAPR service invocation

Shortcut: DAPR state store components define the backend for the State Management building block. Azure Cosmos DB, Redis, and Azure Table Storage can serve as DAPR state stores.

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

An application opens thousands of short-lived connections and the server hits its connection limit. Which built-in feature addresses this?

  1. A Increase max_connections indefinitely
  2. B Enable the built-in PgBouncer connection pooler (correct answer)
  3. C Add a read replica
  4. D Enable query store

Shortcut: Flexible Server includes PgBouncer. Transaction-mode pooling multiplexes many client connections onto a small set of server connections, which is the correct fix for connection churn.

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

What is the fundamental difference between Event Grid and Service Bus?

  1. A Event Grid is a pull-based queue; Service Bus is push-based
  2. B Event Grid pushes lightweight discrete event notifications; Service Bus is a broker for durable, ordered, transactional messages (correct answer)
  3. C They are interchangeable
  4. D Event Grid guarantees ordering

Shortcut: Event Grid is a reactive eventing service optimised for fan-out notification. Service Bus is enterprise messaging with sessions, transactions, dead-lettering, and ordering.

Q45 RBAC Domain 4 · 20–25% of exam

Which Azure service enforces organizational policies across subscriptions, such as requiring all resources to be in specific regions?

  1. A Azure RBAC
  2. B Azure Policy (correct answer)
  3. C Azure Blueprints
  4. D Microsoft Defender for Cloud

Shortcut: Azure Policy enforces governance rules (deny non-compliant resources, audit, modify/remediate). A policy denying resource creation outside allowed regions prevents deployment in disallowed locations regardless of RBAC.

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

A background job must run to completion on a schedule and then stop. Which Container Apps resource type fits?

  1. A A Container App with an HTTP scale rule
  2. B A Container Apps Job with a schedule trigger (correct answer)
  3. C A Container App with minReplicas 1
  4. D A Dapr sidecar

Shortcut: Container Apps Jobs run to completion rather than serving traffic. Trigger types include manual, schedule (cron), and event-driven, with retry and parallelism settings.

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

Which Cosmos DB feature automatically captures all changes to documents in a container in the order they occur?

  1. A Cosmos DB triggers
  2. B Change feed (correct answer)
  3. C Event Grid integration
  4. D Diagnostic logs

Shortcut: Change feed provides a persistent, ordered log of all inserts and updates (not deletes by default) to a container. Consumers (Functions, SDK processors) can read the feed for event-driven processing.

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

A serverless webhook endpoint needs to validate that it is a legitimate Event Grid subscriber before receiving events. Which Event Grid validation mechanism must it handle?

  1. A OAuth token verification
  2. B Subscription validation handshake (return validationCode) (correct answer)
  3. C Mutual TLS
  4. D IP whitelisting

Shortcut: When creating a webhook subscription, Event Grid sends a SubscriptionValidationEvent containing a validationCode. The handler must return the code in the response within 5 minutes to confirm ownership.