Community Q&A
AI-200 — frequently asked questions
Community-vetted answers to 34 common questions about this exam, each traced back to a specific practice question.
Questions from real practice questions
Each Q&A comes from a specific question — follow the link for the full analysisConfiguring ACR Native Build with Source-Triggered Task
What is the difference between a Quick task and a Schedule-triggered task?
A Quick task is triggered immediately by events like Git commits or image pushes. A Schedule-triggered task runs at fixed intervals (e.g., daily) regardless of code changes.
Can I use GitHub Actions instead of ACR Tasks?
Yes, but the question specifies minimizing external infrastructure and using ACR natively. ACR Tasks run entirely within Azure, whereas GitHub Actions rely on GitHub's runner infrastructure.
Azure Functions Hosting Plans for Code vs Container
Can Azure Functions Consumption plan run Linux containers?
No, the Consumption plan only supports code-based deployments for Windows and Linux. Linux containers require the Premium plan.
What is the max execution time for Azure Functions Consumption plan?
The maximum execution duration can be configured up to 10 minutes. Beyond that, you need Premium or Dedicated plans.
Azure CLI Sequence for Container App Jobs
Why do I need to register the provider manually?
Azure requires explicit registration for certain preview or specialized resource providers like Microsoft.App to ensure compliance and resource allocation before they can be used.
Can I create a job without an environment?
No, Azure Container Apps jobs must reside within a Managed Environment. You cannot create a job in a resource group directly without this intermediate infrastructure layer.
Implementing Azure Cosmos DB Stored Procedure Triggers
Why do I need to call setBody in a Cosmos DB trigger?
The request object is immutable after retrieval. You must explicitly call setBody to push your modified document back into the execution pipeline for storage.
How do I check if a property exists in a Cosmos JS stored procedure?
Use the native JavaScript 'in' operator: if ('propertyName' in documentObject). This returns true if the property exists, regardless of its value.
Reducing RU Consumption in Azure Cosmos DB for NoSQL
Why does indexing all properties increase write RUs?
Cosmos DB updates secondary indexes for every property change. More indexed properties mean more work per write operation.
Does selective indexing affect query speed?
No, as long as you include all properties used in WHERE clauses or JOINs, query performance remains optimal.
How Do You Scale Azure PostgreSQL for Vector Index Memory Pressure?
Why capture a pre-peak baseline before scaling Azure Database for PostgreSQL?
It records P95 latency and EXPLAIN ANALYZE for the same fixed workload, so later memory-pressure and cache-hit changes can be compared without peak-hour noise.
Does a higher memory-per-vCore tier fix a pgvector index that no longer fits in memory?
It can, because more memory per vCore enlarges the usable cache for the vector index; the identical P95/P99 benchmark proves whether disk reads actually fell.
Azure Cosmos DB Change Feed Processing with Azure Functions
Why is Azure Function trigger better than App Service?
Azure Functions provide a built-in Change Feed Processor that handles lease management and partition distribution automatically, whereas App Service requires manual implementation.
What is the difference between Push and Pull models here?
Push (Option A) uses triggers to invoke code automatically. Pull (Option D) uses FeedIterator to fetch changes programmatically, offering more control over batching and parallelism.
Azure Cosmos DB Session Consistency and TTL Configuration
What does setting TTL to -1 mean in Azure Cosmos DB?
Setting the default TTL to -1 disables the automatic expiration feature for all items in the container, meaning items persist indefinitely until manually deleted.
Why is Session Consistency required for cross-region reads?
Session Consistency guarantees that a read operation will always see the most recent committed version of an item written within the same session, even when reading from different regions.
Sharing Session Tokens in Azure Cosmos DB Multi-Node Apps
Why can't I use Connection Policy to share session tokens?
Connection Policy configures static client behaviors like retry limits. Session tokens are dynamic values that change with every write and must be applied per-request via RequestOptions.
What happens if I don't share the session token?
Different nodes will have different session views, potentially leading to stale reads or violations of monotonic read guarantees in a session-consistent account.
Azure Event Grid Partner Topic Misconception
What is the difference between a Custom Topic and a Partner Topic?
A Custom Topic allows you to publish your own events. A Partner Topic is pre-configured by Microsoft for specific SaaS providers (like GitHub) so you can subscribe to their events.
Can I use a Domain instead of a Topic?
Yes, Domains allow multiple publishers to write to a single topic namespace, which might be better for multi-tenant scenarios, but Partner Topics remain for inbound SaaS events only.
Azure Service Bus Topic and Subscription Ordering
Why not use Azure Queue Storage for this scenario?
Queue Storage is better for simple work items. Service Bus Topics/Subscriptions are required here because we need to filter messages for specific subsets of consumers (restaurants/drivers) from a single publisher.
Can one subscription serve multiple drivers?
Yes, if those drivers share the same filtering criteria (e.g., they both deliver for Restaurant A). However, if each driver has unique preferences, individual subscriptions or complex filtering rules are needed.
Secure API Key Storage in Azure App Service
Why isn't Key Vault required here?
Key Vault is optional. App Service Application Settings are natively secure and separate from code, meeting the specific goal of avoiding Git exposure.
How does the container access the setting?
The container receives the setting as an environment variable at startup, allowing the application to read it without accessing the file system or repo.
How Do You Configure a Custom HTTPS Domain in Azure Container Apps?
Does Azure Container Apps ingress have to be enabled before I add a custom domain?
Yes. Ingress must expose the app before Azure Container Apps can associate a custom hostname or certificate with it, so enable ingress first.
When do I add DNS records versus validate the custom domain in Azure Container Apps?
Add the custom domain name first so Azure generates the required verification values, publish those DNS records at your provider, then validate the domain and bind the certificate.
Which ingress and revision mode enable Container Apps session affinity?
Why does Azure Container Apps session affinity require single revision mode?
Session affinity is supported only when one revision handles all traffic; multiple revision mode can split requests across revisions, so the client-to-replica cookie mapping is not guaranteed.
Can TCP ingress be used for Azure Container Apps sticky sessions?
No. TCP ingress operates at Layer 4 and does not inspect HTTP cookies, so it cannot implement the cookie-based session affinity that Container Apps provides through HTTP ingress.
How Should You Configure ACA Service Bus Event-Driven Scaling?
Does the Azure Service Bus KEDA scaler use queueLength or messageCount in ACA?
It uses messageCount for the target queue depth; queueLength belongs to the Azure Storage Queue scaler, not the Service Bus scaler.
Why set min replicas to 1 for the backend API in Azure Container Apps?
Keeping one replica warm avoids scale-to-zero cold starts, which the case requires when minimizing backend API cold-start delay.
Azure App Configuration with Managed Identity Authentication
Why not use DefaultAzureCredential for Azure App Configuration?
DefaultAzureCredential includes fallbacks like environment variables and developer tools. If the exam requires 'no other authentication systems,' these fallbacks violate the constraint, making ManagedIdentityCredential the only compliant choice.
What is the role of AddAzureAppConfiguration in this code?
AddAzureAppConfiguration is an extension method that registers the Azure App Configuration settings provider with the .NET configuration system, allowing the app to load key-value pairs securely using the specified credential.
Azure App Configuration Key-Value and Feature Flags
How does Azure App Configuration encrypt Key-Value data?
Encryption is applied at the store level using Customer-Managed Keys (CMK). When enabled, all values stored in Key-Value pairs are automatically encrypted.
Can I use Key-Value pairs for A/B testing layouts?
No. While you can store layout configurations, Feature Flags are designed for dynamic toggling and segmentation. Key-Values require code changes to evaluate and apply variations.