Practice set 7 of 16 · AI-200 Exam Preparation

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

This set features 48 realistic scenario questions covering AKS, Key Vault, Service Bus, 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
22 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 7 provides scenario drills across Domain 1 (Containers: 25%), Domain 2 (Data: 25%), Domain 3 (Messaging: 27%), and Domain 4 (Security: 23%).

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

Architectural Trade-offs Tested in Set 7

  • AKS Ingress Controllers: Application Routing Add-on (NGINX) vs. AGIC: The AKS Application Routing add-on provides managed in-cluster NGINX ingress with automated Let's Encrypt / Azure Key Vault TLS certificates, whereas AGIC (Application Gateway Ingress Controller) offloads routing to external hardware Layer 7 WAFs.
  • Cosmos DB Integrated Cache vs. Azure Managed Redis: The integrated cache lives inside the dedicated Cosmos DB gateway nodes, requiring zero code changes to intercept repeated point-reads and queries with 0 RU consumption; Redis offers broader data structures (lists, hashes, vector indexes) outside Cosmos DB.
  • Dead-Letter Queues (DLQ) vs. Retries in Service Bus: Retry policies handle transient timeouts; poison messages that fail deserialization or business validation must be explicitly moved to the dead-letter sub-queue (via DeadLetterMessageAsync) after MaxDeliveryCount is reached.

Exam Traps & Common Distractor Pitfalls

  • Common Trap: Storing Key Vault secret URIs with hardcoded version strings in Container App environment variables.
    Engineering Reality: Hardcoding the 32-character secret version prevents automatic rotation; omitting the version segment allows the service to resolve the latest active secret version automatically.
  • Common Trap: Using Event Grid push delivery for on-premises consumers behind strict firewalls.
    Engineering Reality: Event Grid push delivery requires public webhook endpoints; on-premises or private network workers should use Event Grid Event Subscriptions configured for Queue delivery or Event Grid Namespaces with pull delivery.
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: Review how to query Dead Letter Queues using Azure CLI (az servicebus queue show) and Service Bus Explorer. Understand how to inspect DeadLetterReason and DeadLetterErrorDescription.
Q1 Functions Domain 3 · 20–25% of exam Priority · Real Exam

Which Durable pattern runs many activities in parallel and aggregates their results?

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

Shortcut: WhenAll to collect results once all complete.

More
Fan-out/fan-in starts multiple activity tasks without awaiting each, then awaits Task.WhenAll to collect results once all complete.
Q2 AKS Domain 1 · 20–25% of exam

How do you make an AKS cluster's API server accessible only via a private IP address within the VNet?

  1. A Disable public load balancer
  2. B Enable Authorized IP Ranges
  3. C Enable Private Cluster (--enable-private-cluster) (correct answer)
  4. D Use Azure Firewall

Shortcut: --enable-private-cluster deploys the API server with a private IP only, accessible via Private Link. The API server FQDN resolves privately within the VNet.

Q3 Redis Domain 2 · 25–30% of exam

Which Azure Cache for Redis tier supports private endpoints to restrict access to a VNet?

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

Shortcut: Private endpoints are supported on Premium and Enterprise tiers. For Basic/Standard, you can use firewall rules with allowed IP ranges as an alternative.

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

What does the assignableScopes property of a custom role control?

  1. A Which users can use the role
  2. B Where the role definition can be assigned (correct answer)
  3. C Which actions are allowed
  4. D The role's priority

Shortcut: assignableScopes limits the subscriptions or management groups in which the role definition is available for assignment. It does not itself grant any access.

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

Which messaging pattern does a Service Bus queue implement?

  1. A Broadcast (fan-out)
  2. B Point-to-point (competing consumers) (correct answer)
  3. C Event stream
  4. D Request-reply with correlation

Shortcut: A Service Bus queue implements point-to-point: multiple competing consumers can receive from the queue, but each message is delivered to exactly one consumer (load balancing).

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

Which setting completely disables public internet access to an ACR registry?

  1. A Deleting the admin account
  2. B Setting --public-network-access to Disabled (correct answer)
  3. C Removing geo-replicas
  4. D Enabling Content Trust

Shortcut: --public-network-access Disabled blocks all public internet access. Access can then only occur via private endpoints inside the VNet.

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

A hybrid search must combine keyword relevance and vector similarity. Which PostgreSQL combination supports this natively?

  1. A tsvector full-text search with a GIN index, plus pgvector similarity, merged by a scoring expression (correct answer)
  2. B pgvector alone
  3. C Two separate databases
  4. D JSONB containment only

Shortcut: PostgreSQL can run full-text ranking (ts_rank over a GIN-indexed tsvector) and vector distance in the same query, blending both signals, often via reciprocal rank fusion.

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

An AKS cluster must mount Key Vault secrets as files in pods. Which solution enables this without code changes?

  1. A Init container with az keyvault secret show
  2. B Secrets Store CSI Driver with Azure Key Vault Provider (correct answer)
  3. C Custom DaemonSet pulling secrets
  4. D Kubernetes External Secrets operator only

Shortcut: The Secrets Store CSI Driver with the AKS Key Vault add-on mounts secrets, keys, and certificates from Key Vault as files or Kubernetes secrets, using workload identity for authentication.

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

Messages are accumulating in the dead-letter queue with reason 'MaxDeliveryCountExceeded'. What is the correct investigative step?

  1. A Increase MaxDeliveryCount and move on
  2. B Inspect the dead-lettered payloads and handler exceptions to find the deterministic failure (correct answer)
  3. C Delete the dead-letter queue
  4. D Enable duplicate detection

Shortcut: Repeated exhaustion of delivery attempts indicates a poison message or a systematic handler bug. Raising the count only delays the failure; the payload and exception must be examined.

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

A workload must run only on nodes with GPUs. Nodes are tainted 'sku=gpu:NoSchedule'. What must the pod spec contain?

  1. A Only a nodeSelector for the GPU label
  2. B Both a toleration for the taint and a nodeSelector or affinity for the GPU nodes (correct answer)
  3. C Only a toleration
  4. D A PriorityClass

Shortcut: A toleration allows the pod onto tainted nodes but does not attract it there. Pair the toleration with nodeSelector or nodeAffinity to ensure it lands on GPU nodes specifically.

Q11 PostgreSQL Domain 2 · 25–30% of exam

Which approach is recommended to avoid index bloat with pgvector HNSW index on a table with frequent updates?

  1. A Rebuild index daily with REINDEX CONCURRENTLY
  2. B Batch updates and run VACUUM ANALYZE after (correct answer)
  3. C Use IVFFlat instead
  4. D Partition the table by date

Shortcut: Frequent updates can bloat HNSW indexes. Running VACUUM ANALYZE periodically removes dead tuples and updates planner statistics, maintaining query performance.

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

Which Key Vault feature automatically notifies systems or triggers actions when a key or certificate is about to expire?

  1. A Event Grid integration for near-expiry events (correct answer)
  2. B Webhook on secret creation only
  3. C Azure Monitor alerts on access policy changes
  4. D Scheduled purge tasks

Shortcut: Key Vault integrates with Event Grid to publish near-expiry (CertificateNearExpiry, KeyNearExpiry), expired, and other lifecycle events, enabling automated renewal workflows.

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

A team uses SQL filters on a Service Bus topic subscription to route messages. Which SQL filter expression matches messages with property OrderType = 'Express'?

  1. A OrderType = Express
  2. B OrderType LIKE 'Express'
  3. C OrderType = 'Express' (correct answer)
  4. D WHERE OrderType = 'Express'

Shortcut: Service Bus SQL filters use SQL-like syntax with single-quoted string literals. OrderType = 'Express' matches messages where the user-defined property OrderType equals 'Express'.

Q14 AKS Domain 1 · 20–25% of exam Priority · Real Exam Choose 2

A pod must be prevented from starting until its dependency is reachable, and must be removed from the load balancer if it later becomes unhealthy. Which TWO probes are required?

  1. A A startup probe (correct answer)
  2. B A readiness probe (correct answer)
  3. C A liveness probe
  4. D A CPU request
  5. E A PodDisruptionBudget

Shortcut: The startup probe holds off the other probes until the container has finished initialising, which prevents a slow-starting pod being killed. The readiness probe controls Service endpoint membership, so a pod that becomes unhealthy is removed from load balancing without being restarted.

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

Which command atomically sets a key only if it does not exist, with a 30-second expiry, forming the basis of a distributed lock?

  1. A SET key value NX EX 30 (correct answer)
  2. B SETNX key value
  3. C SETEX key 30 value
  4. D MSETNX

Shortcut: SET with NX and EX in a single call is atomic. Separate SETNX and EXPIRE calls risk leaving a lock without a TTL if the client crashes between them.

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

What does a Key Vault certificate object bundle together?

  1. A Only the public certificate
  2. B The certificate, its private key as a secret, and the key object, managed as one lifecycle (correct answer)
  3. C A password only
  4. D A connection string

Shortcut: A certificate object links an addressable key and secret so the full credential can be retrieved and renewed as a unit, optionally with an integrated issuer for auto-renewal.

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

What problem does an Event Grid domain solve?

  1. A Ordering of events
  2. B Managing thousands of topics with per-tenant subscription isolation behind one endpoint (correct answer)
  3. C Message transactions
  4. D Long-term event storage

Shortcut: A domain provides one publishing endpoint and manages many topics beneath it, letting each tenant subscribe only to its own topic. It is the standard multi-tenant pattern.

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

A Container App running with external ingress needs a custom domain and TLS certificate. Which feature is used?

  1. A Azure Front Door managed certificate
  2. B Custom domain binding with a managed certificate or bring-your-own certificate (correct answer)
  3. C Azure App Service TLS binding
  4. D Kubernetes cert-manager

Shortcut: Container Apps supports custom domains with either a free Azure-managed certificate (auto-renewed) or a bring-your-own certificate uploaded to the environment.

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

Which Cosmos DB conflict resolution policy is used when multiple regions write to the same item simultaneously?

  1. A First Write Wins
  2. B Last Write Wins (LWW) using a configurable property, or custom merge procedure (correct answer)
  3. C Manual resolution only
  4. D Newest timestamp always wins

Shortcut: Last Write Wins uses a user-defined numeric property (default _ts) to determine which write survives. Custom conflict resolution uses a stored procedure for merge logic.

Q20 Monitor Domain 4 · 20–25% of exam

Which Azure Monitor component aggregates and visualizes metrics and logs from multiple sources in customisable dashboards?

  1. A Azure Dashboards
  2. B Azure Monitor Workbooks (correct answer)
  3. C Power BI only
  4. D Log Analytics workspace only

Shortcut: Azure Monitor Workbooks combine metrics, logs, and parameters into rich interactive reports. They support conditional rendering, parameters, and can be shared across the team.

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

An application must process events from Azure Blob Storage when new blobs are created in a specific container. Which event type should the subscription filter on?

  1. A Microsoft.Storage.BlobDeleted
  2. B Microsoft.Storage.BlobCreated (correct answer)
  3. C Microsoft.Storage.ContainerCreated
  4. D Microsoft.Storage.FileCreated

Shortcut: BlobCreated fires when a blob is successfully written. , /blobServices/default/containers/mycontainer) to limit to a specific container.

More
Microsoft.Storage.BlobCreated fires when a blob is successfully written. Use subject prefix filter (e.g., /blobServices/default/containers/mycontainer) to limit to a specific container.
Q22 Container Apps Domain 1 · 20–25% of exam Priority · Real Exam

Which authentication configuration lets a Container App require Azure AD sign-in without any code changes?

  1. A Built-in authentication (Easy Auth) with the Microsoft identity provider (correct answer)
  2. B A custom OAuth middleware in the container
  3. C An API Management policy
  4. D Client certificates only

Shortcut: Container Apps supports built-in authentication that intercepts requests before they reach the container, handling the OIDC flow and injecting identity headers.

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

An application reads documents rarely but needs strong read-after-write guarantees. Multi-region writes are not required. Which consistency level should you choose?

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

Shortcut: Strong consistency guarantees linearizability. If the workload doesn't require multi-master writes and can accept slightly higher read latency, Strong provides the simplest programming model with no stale reads.

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

What happens to events once the retention period elapses?

  1. A They move to a dead-letter hub
  2. B They are removed from the log automatically (correct answer)
  3. C They are compacted
  4. D They are archived to Capture automatically

Shortcut: Event Hubs is a time-retention log. Events age out after the retention window regardless of whether they were read, which is why Capture is used for durable archival.

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

Which KQL function filters to the last 24 hours?

  1. A ago(24h) (correct answer)
  2. B now(-24h)
  3. C datetime(24h)
  4. D startofday()

Shortcut: ago(24h) yields the timestamp 24 hours before now, so 'where timestamp > ago(24h)' scopes the query to the last day.

Q26 AKS Domain 1 · 20–25% of exam

Which AKS feature allows burst scaling to Azure Container Instances (ACI) without adding real nodes?

  1. A KEDA
  2. B Spot node pools
  3. C Virtual nodes (ACI connector) (correct answer)
  4. D Cluster Autoscaler with max count 0

Shortcut: Virtual nodes use the ACI connector to schedule pods directly on ACI infrastructure, enabling near-instant burst scaling without provisioning VM-based nodes.

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

Which approach supports heavy analytical scans over operational data without consuming transactional RU/s?

  1. A Increase autoscale maximum
  2. B Enable analytical store and query it with Azure Synapse Link (correct answer)
  3. C Add more read regions
  4. D Use Direct mode connectivity

Shortcut: Analytical store keeps a column-oriented copy updated automatically and is queried through Synapse Link. It is billed separately and does not draw on transactional RU/s.

Q28 Functions Domain 3 · 20–25% of exam

An Azure Function processes Event Hubs events. The function is falling behind. How does Event Hubs partition scaling work with Functions?

  1. A Functions scale to unlimited instances
  2. B Functions scale up to one instance per Event Hub partition (maximum concurrency) (correct answer)
  3. C Functions do not scale with Event Hubs
  4. D Scaling is controlled by KEDA only

Shortcut: Each Event Hub partition is processed by exactly one function instance. , 32 partitions = max 32 function instances).

More
Each Event Hub partition is processed by exactly one function instance. Maximum scale-out is capped at the partition count (e.g., 32 partitions = max 32 function instances).
Q29 RBAC Domain 4 · 20–25% of exam

How many role assignments can be created per Azure subscription?

  1. A 100
  2. B 1,000
  3. C 2,000 (correct answer)
  4. D Unlimited

Shortcut: Azure limits role assignments to 2,000 per subscription. For large organisations, use security groups — assign roles to groups rather than individual users to reduce the count.

Q30 AKS Domain 1 · 20–25% of exam

A company wants to reduce AKS costs by running batch workloads on preemptible VMs. Which node pool type should they use?

  1. A System node pool
  2. B GPU node pool
  3. C User node pool with spot VMs (correct answer)
  4. D Standard_D2s_v3 node pool

Shortcut: Spot node pools use Azure Spot VMs (unused capacity at up to 90% discount) suitable for fault-tolerant batch workloads. Pods must handle eviction gracefully.

Q31 PostgreSQL Domain 2 · 25–30% of exam

An app needs to store both the raw text and its embedding in PostgreSQL. What is the recommended table design?

  1. A Separate tables for text and vectors joined by ID
  2. B Single table with text column (text), embedding column (vector(1536)), and metadata jsonb (correct answer)
  3. C Store embeddings in a separate Azure Blob Storage
  4. D Use Cosmos DB for vectors only

Shortcut: Storing text, embedding, and metadata in a single table simplifies queries and enables efficient hybrid search. The vector column type stores the embedding natively with index support.

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

A Service Bus-triggered function must process at most 4 messages concurrently per instance. Where is this configured?

  1. A In the function signature
  2. B maxConcurrentCalls in host.json under the serviceBus extension (correct answer)
  3. C In the connection string
  4. D In the Service Bus queue properties

Shortcut: json controls extension concurrency. Setting maxConcurrentCalls bounds parallel message handling per instance, which protects downstream dependencies.

More
host.json controls extension concurrency. Setting maxConcurrentCalls bounds parallel message handling per instance, which protects downstream dependencies.
Q33 RBAC Domain 4 · 20–25% of exam Priority · Real Exam

Which authentication flow should a Container App use to call Azure SQL with no stored credentials?

  1. A SQL authentication with a password in Key Vault
  2. B Managed identity with an Entra ID access token (correct answer)
  3. C A connection string with an embedded key
  4. D Certificate stored in the image

Shortcut: The app requests a token for the SQL resource using its managed identity and connects as an Entra ID principal, so no password exists anywhere in the system.

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

You want automated rebuilds whenever the 'python:3.12-slim' base image receives a security patch. What must be true for the ACR base image update trigger to fire?

  1. A The base image must live in the same ACR registry only
  2. B The Dockerfile FROM reference must be tracked, and the task registered with --base-image-trigger-enabled (correct answer)
  3. C Content Trust must be enabled
  4. D The task must run on a cron schedule

Shortcut: ACR Tasks record the base image dependency at build time. With the base image trigger enabled, ACR watches that dependency (in ACR or Docker Hub) and queues a rebuild when the digest changes.

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

Which storage consideration applies when storing 1536-dimension float vectors?

  1. A Each vector is roughly 6 KB, so plan storage and index memory accordingly (correct answer)
  2. B Vectors are compressed automatically to 1 KB
  3. C Dimension has no storage impact
  4. D Vectors must be stored as JSONB

Shortcut: A vector(1536) holds 1536 four-byte floats plus overhead, around 6 KB per row. At millions of rows this dominates table size and index memory, so halfvec or dimensionality reduction is often used.

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

Which Event Hubs tier supports Schema Registry for Avro schema enforcement on published events?

  1. A Basic only
  2. B Standard and above (correct answer)
  3. C Premium only
  4. D Dedicated only

Shortcut: Event Hubs Schema Registry (for Apache Avro schema management) is available in Standard, Premium, and Dedicated tiers. It validates event schemas at publish time.

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

A secret's value must be rotated automatically on a schedule. Which feature enables this without manual intervention?

  1. A Manual rotation with reminder alerts
  2. B Key Vault secret rotation policy with Azure Functions or Event Grid automation (correct answer)
  3. C Automatic rotation is built into Key Vault for all secrets
  4. D Soft delete with auto-renewal

Shortcut: Key Vault supports secret rotation policies that trigger Event Grid events at near-expiry. An Azure Function or Logic App handles the actual rotation (fetch new value, update secret), then updates the secret version.

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

How long is the authentication token valid after running az acr login?

  1. A 1 hour
  2. B 3 hours (correct answer)
  3. C 12 hours
  4. D 24 hours

Shortcut: az acr login tokens expire after 3 hours. For automation use service principals or managed identities with longer-lived credentials.

Q39 Redis Domain 2 · 25–30% of exam

What does the maxmemory-policy configuration control in Azure Cache for Redis?

  1. A Maximum number of connections
  2. B Eviction strategy when memory is full (e.g., allkeys-lru, volatile-lru, noeviction) (correct answer)
  3. C Maximum key name length
  4. D Persistence buffer size

Shortcut: maxmemory-policy defines what Redis does when it reaches the memory limit: evict the least recently used key (allkeys-lru), expire keys with TTL (volatile-lru), or return errors (noeviction).

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

What is the purpose of auto-forwarding on a subscription?

  1. A To chain a subscription's messages into another queue or topic automatically (correct answer)
  2. B To retry failed messages
  3. C To duplicate messages across namespaces
  4. D To archive messages to storage

Shortcut: Auto-forwarding relays messages from a queue or subscription to another entity in the same namespace, enabling fan-in and multi-stage topologies without custom relay code.

Q41 Monitor Domain 4 · 20–25% of exam

A team needs to route Application Insights alerts to a PagerDuty on-call rotation. Which Azure Monitor feature handles alert routing?

  1. A Action Group with webhook or PagerDuty integration (correct answer)
  2. B ITSM Connector only
  3. C Email-only alerts
  4. D Event Grid forwarding

Shortcut: Action Groups define notification and action targets (email, SMS, webhook, Azure Function, Logic App, ITSM Connector, PagerDuty). Multiple alert rules share the same action group.

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

Which storage class is appropriate for a ReadWriteMany volume shared by several pods across nodes?

  1. A Azure Disk (managed-premium)
  2. B Azure Files (correct answer)
  3. C Ephemeral OS disk
  4. D emptyDir

Shortcut: Azure Disk supports ReadWriteOnce, binding to a single node. Azure Files uses SMB/NFS and supports ReadWriteMany, allowing concurrent mounts across nodes.

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

A cache-aside implementation suffers a thundering herd when a hot key expires. Which mitigation is most appropriate?

  1. A Remove the TTL entirely
  2. B Use a short-lived lock so one caller repopulates while others serve stale or wait (correct answer)
  3. C Increase the cache size
  4. D Switch to allkeys-random

Shortcut: A mutex or lock key ensures a single rebuild on expiry. Adding TTL jitter and probabilistic early refresh further spreads the load.

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

Which authentication method is recommended for a production application connecting to Azure Service Bus?

  1. A Shared Access Signature (SAS) connection string
  2. B Azure Managed Identity with appropriate RBAC role (correct answer)
  3. C Username and password
  4. D IP whitelist only

Shortcut: Managed identity eliminates credential management. Assign the Azure Service Bus Data Sender or Data Receiver role to the managed identity for least-privilege access.

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

An application receives HTTP 429 from Key Vault under load. What is the correct remedy?

  1. A Increase the vault SKU
  2. B Cache secrets in memory with a sensible refresh interval and apply exponential backoff (correct answer)
  3. C Create more secrets
  4. D Disable soft delete

Shortcut: Key Vault enforces per-vault transaction limits. Fetching a secret on every request is an anti-pattern; cache the value and retry with backoff on throttling.

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

How do you share configuration between a Container App and Azure Key Vault without storing secrets in environment variables?

  1. A Pass secrets via command-line arguments
  2. B Reference Key Vault secrets in Container Apps secrets, then reference them as environment variables (correct answer)
  3. C Use an init container to fetch secrets
  4. D Store secrets in Azure Storage and mount as volume

Shortcut: Container Apps can reference Key Vault secrets directly in its secrets configuration. These are then available as environment variables or volume mounts to the app.

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

What is the recommended partition key strategy for a Cosmos DB container storing IoT telemetry from thousands of devices?

  1. A Use the device timestamp as partition key
  2. B Use deviceId as partition key for high cardinality (correct answer)
  3. C Use a single partition 'telemetry' for all data
  4. D Use region name as partition key

Shortcut: deviceId provides high cardinality (many distinct values), distributing data evenly across partitions. Avoid low-cardinality keys like region or date alone, which create hot partitions.

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

Which authentication method should a publisher use instead of an access key?

  1. A SAS token in the query string
  2. B Microsoft Entra ID with a managed identity assigned the EventGrid Data Sender role (correct answer)
  3. C Basic authentication
  4. D Anonymous publishing

Shortcut: Entra ID authentication with the EventGrid Data Sender role removes static keys and gives per-identity auditing and revocation.