Microsoft AI-200 Practice Test 1
Question 1
At Marigold Retail, a retrieval API repeatedly computes identical expensive query embeddings even though results are reusable for minutes. Evidence: It currently bypasses Redis and stores no expiration for cacheable responses. The objective is to cache safe repeated computations without treating cached values as permanent truth. Validate in a disposable environment before applying production changes. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect filter syntax, index schema and tenant identity constraints.
- Inspect available vector search modules, vector field schema and embedding dimensions.
- Inspect cache key composition, input versions, expiration needs and data sensitivity.
- Inspect generated query text, parameter bindings, and server-side query filters.
Explanation
Correct Answer
C:
Inspect whether Redis cache keys distinguish the input, embedding model version, and authorized tenant scope. Verify expiration and sensitive-data constraints before enabling cache-aside reuse: repeated computations can be cached for minutes, but a stale or cross-tenant result must not be returned as current data.
Incorrect Answers
A:
Metadata filters restrict which vector-search records a tenant may retrieve. They do not reuse identical embeddings or expire cached computation results; a scoped Redis cache key and TTL address that workload.
B:
A vector index supports similarity lookup between stored embeddings, but does not by itself prevent repeated generation of the same embedding. This case needs cache-aside reuse with an expiration policy.
D:
Parameterized Cosmos queries avoid unsafe construction of query strings. They do not reduce repeated embedding computation; an expiring, tenant-aware Redis cache is the relevant mechanism.
Question 2
At Cedar Cloud, a low-latency semantic cache stores embeddings as plain strings and cannot execute nearest-neighbor queries. Evidence: The service requires a supported Redis search/vector index with consistent embedding dimensions. The objective is to enable vector similarity retrieval in the managed Redis service. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect cache key composition, input versions, expiration needs and data sensitivity.
- Inspect durability, failover behavior, key eviction settings and source-of-truth design.
- Inspect processor name, monitored container, lease container, checkpoint state and logs.
- Inspect available vector search modules, vector field schema and embedding dimensions.
Explanation
Correct Answer
D:
The service requires a supported Redis search/vector index with consistent embedding dimensions. Inspect available vector search modules, vector field schema and embedding dimensions. Nearest-neighbor search needs a supported vector index and a field dimension matching the embedding model; plain string storage is not an index.
Incorrect Answers
A:
Cache-aside TTL improves repeated-key reuse but does not provide nearest-neighbor comparison or vector indexing. A supported Redis vector field with the model’s embedding dimensions is still required.
B:
Ensuring a cache is not the sole system of record protects durable application data. It does not turn plain embedding strings into a vector search index with similarity operators.
C:
Cosmos change-feed leases coordinate change-processing workers; they do not build the Redis vector index or enforce embedding dimensions needed for semantic retrieval.
Question 3
At Clearwater Partners, a topic carries events for many document types but the translation worker should only receive language jobs. Evidence: The worker subscription has no rule and receives irrelevant indexing and billing events. The objective is to route topic events by documented message properties to intended subscribers. Changes must respect customer tenant boundaries and required availability targets. Which controlled pilot most directly validates the proposed approach?
- Create harmless test blobs in both included and excluded prefixes.
- Schedule a harmless test job for a short future interval and observe visibility before due time.
- Publish one translation and one billing test event to the staging topic.
- Run a benign test invocation that reads and writes an object in a sandbox container.
Explanation
Correct Answer
C:
The worker subscription has no rule and receives irrelevant indexing and billing events. Publish one translation and one billing test event to the staging topic. Service Bus SQL subscription filters route messages by declared properties; a catch-all rule permits unrelated event types.
Incorrect Answers
A:
Event Grid subject-prefix filtering routes Event Grid events. This Service Bus topic needs a subscription SQL rule on the translation message properties rather than an unrelated Event Grid subscription filter.
B:
Scheduled messages control when a message becomes available for delivery, not which message types a subscription accepts. An application-property SQL filter separates translation events from billing events.
D:
Storage bindings move data into or out of a Function execution. They do not restrict Service Bus topic subscriptions to translation events; the subscription rule must express that selection.
Question 4
At Northwind Learning, a relational retrieval table stores 1536-dimensional vectors but a newer encoder emits arrays with 3072 values. Evidence: The database column is declared as vector(1536) and reject mismatched input. The objective is to keep stored embedding dimensions aligned to the selected model and schema. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect EXPLAIN estimated versus actual rows, last autoanalyze and data distribution.
- Inspect representative query set, exact top-k baselines and ANN index scan parameters.
- Inspect frequent query shapes, index paths, and RU differences for writes and reads.
- Inspect pgvector column definition, incoming array size and embedding model version.
Explanation
Correct Answer
D:
The database column is declared as vector(1536) and reject mismatched input. Inspect pgvector column definition, incoming array size and embedding model version. A fixed-dimension pgvector column rejects a different-length embedding, so the selected model output and stored vector schema must match.
Incorrect Answers
A:
ANALYZE updates planner statistics after data changes, but cannot make a 3072-element embedding fit a vector(1536) column. Fix the model/vector-dimension mismatch first.
B:
Exact-versus-approximate recall comparisons measure search quality, not whether a stored vector column accepts the model output dimension. The schema and embedding length must agree before retrieval can work.
C:
Cosmos indexing configuration affects Cosmos query paths; it does not change a PostgreSQL pgvector column declared for 1536 elements. Inspect that column and the encoder output length.
Question 5
At Crescent Logistics, a pgvector deployment creates an IVFFlat index before loading any representative embeddings and then gets poor search recall. Evidence: The approximate index requires suitable data distribution and tuning for list count and probes. The objective is to tune IVFFlat indexing based on representative populated vectors. Only authorized Azure subscriptions and synthetic test data may be used. Which controlled pilot most directly validates the proposed approach?
- Run bounded ingestion and retrieval benchmarks on a resized nonproduction server.
- Query a sanitized staging dataset with normal and quote-containing identifier strings.
- Benchmark a disposable IVFFlat index against exact neighbor search on known queries.
- Insert a harmless test embedding of the documented dimension into a staging container.
Explanation
Correct Answer
C:
The approximate index requires suitable data distribution and tuning for list count and probes. Benchmark a disposable IVFFlat index against exact neighbor search on known queries. IVFFlat search quality depends on representative indexed vectors and list/probe tuning; poor choices can miss close matches.
Incorrect Answers
A:
Increasing PostgreSQL server capacity may change throughput but cannot correct an IVFFlat index built on an unrepresentative corpus or poorly chosen list/probe settings.
B:
Parameterized SQL protects query parameters and execution correctness. It does not fix approximate-vector recall caused by IVFFlat training data and list/probe configuration.
D:
Cosmos vector dimensions are an important Cosmos indexing constraint, but this issue concerns PostgreSQL IVFFlat list/probe tuning and representative indexed vectors.
Question 6
At BrightPath Engineering, a monitoring report uses average processing time and misses rare extremely slow inference calls. Evidence: Telemetry has request duration samples with a heavy tail. The objective is to measure tail latency rather than relying only on mean request duration. Only authorized Azure subscriptions and synthetic test data may be used. Which controlled pilot most directly validates the proposed approach?
- Replay a staged mix of high-volume successes and a few deliberate exceptions.
- Run a read-only KQL query over test events placed in separate five-minute windows.
- Generate an authorized test expiration event for a disposable secret or simulate an equivalent event.
- Query a synthetic latency set with known outliers and compare average versus p95.
Explanation
Correct Answer
D:
Telemetry has request duration samples with a heavy tail. Query a synthetic latency set with known outliers and compare average versus p95. p95 and p99 expose slow requests hidden by a mean, provided the time window and sample population are comparable.
Incorrect Answers
A:
Telemetry sampling affects which traces are retained. It does not replace p95/p99 latency aggregation needed to expose slow-tail requests hidden by averages.
B:
KQL time bins organize events into intervals; binning alone cannot show tail latency within those intervals. Aggregate durations with percentile or percentiles for p95 and p99.
C:
Key Vault rotation notifications monitor secret lifecycle events, not request-duration distributions. Percentile analysis of latency samples is needed to detect slow-tail behavior.
Question 7
At Juniper Analytics, a request passes through a Python API, Service Bus, and an embedding worker but monitoring displays disconnected traces. Evidence: The applications generate spans but do not propagate W3C trace context across message boundaries. The objective is to reconstruct end-to-end distributed request paths with propagated context. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
- Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry.
- Use summarize with bin(timestamp, 5m) and appropriate role and failure filters.
- Configure managed identity token credentials with appropriate Cosmos data-plane role at a narrow scope.
Explanation
Correct Answer
B:
The applications generate spans but do not propagate W3C trace context across message boundaries. Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry. A traceparent passed through message metadata correlates HTTP and worker spans; without propagation the operation appears fragmented.
Incorrect Answers
A:
Container revision logs help diagnose deployment failures but cannot reconstruct HTTP-to-worker trace ancestry when W3C context is not carried through the message.
C:
Time-binned log counts show temporal activity but do not link the HTTP request span to the queue-worker span. Propagate traceparent through message metadata to preserve that relationship.
D:
Managed identities authenticate SDK access, but they do not propagate OpenTelemetry trace identifiers across asynchronous messages. Trace context must be inserted and extracted explicitly.
Question 8
At Aspen Manufacturing, a semantic search API queries pgvector cosine distance across millions of rows with unacceptable latency. Evidence: The vector column has no suitable approximate nearest neighbor index for the cosine operator. The objective is to accelerate vector nearest-neighbor queries using a compatible index. Preserve end-to-end correlation and avoid copying sensitive production data. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect sample queries with exact identifiers and paraphrases, FTS index and vector index paths.
- Inspect foreign keys, join predicates, publication flags and query plan.
- Inspect available vector search modules, vector field schema and embedding dimensions.
- Inspect query plans, selected distance operator, index presence and storage budget.
Explanation
Correct Answer
D:
The vector column has no suitable approximate nearest neighbor index for the cosine operator. Inspect query plans, selected distance operator, index presence and storage budget. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.
Incorrect Answers
A:
Hybrid text-and-vector ranking combines retrieval signals, but it does not supply the missing pgvector ANN index and cosine-compatible operator class for the current similarity query.
B:
Joining vector matches to document metadata enriches retrieval results; it does not create an ANN access path for a cosine-distance scan in PostgreSQL.
C:
A Redis vector index belongs to a different retrieval store. The reported query runs in PostgreSQL and needs a supported pgvector index with the correct cosine operator class.
Question 9
At Cedar Cloud, a back-office model evaluation must run at a future approved time rather than immediately when the request is received. Evidence: The producer has an exact due time but currently places the job on an ordinary active queue. The objective is to schedule delayed work in the messaging layer with explicit timing behavior. Preserve end-to-end correlation and avoid copying sensitive production data. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor dead-letter volume, age and replay approvals.
- Monitor validation errors, expired endpoints and subscription activation failures.
- Monitor missed schedules, clock drift and duplicate scheduling attempts.
- Monitor token acquisition errors, configuration overrides and role assignment changes.
Explanation
Correct Answer
C:
The producer has an exact due time but currently places the job on an ordinary active queue. Monitor missed schedules, clock drift and duplicate scheduling attempts. Scheduled enqueue delays message availability until the selected due time; placing a job on an active queue offers no equivalent delivery-time control.
Incorrect Answers
A:
Dead-letter queues retain messages that repeatedly fail processing. They do not delay normal delivery until a specified due time; scheduled enqueue provides the timing boundary.
B:
Event Grid webhook validation confirms the receiver can accept events, not that a Service Bus job remains unavailable until its scheduled time.
D:
Managed identity secures a Function’s access to Azure resources. It does not impose a future due time on active queue messages; the producer must schedule delivery.
Question 10
At Cedar Cloud, an App Service custom container appears unhealthy although its HTTP server is running inside the image. Evidence: The application listens on an internal port different from the one expected by the hosting configuration. The objective is to align container listener configuration and App Service startup routing. Preserve end-to-end correlation and avoid copying sensitive production data. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Compare the image digest in the test evidence with the digest resolved by the production deployment.
- Inspect the application's identity, registry authorization model, image reference, and image pull failure codes.
- Inspect container startup logs, listener bind address, and configured port environment or platform settings.
- Inspect revision mode, labels, active revision weights, and ingress configuration.
Explanation
Correct Answer
C:
The application listens on an internal port different from the one expected by the hosting configuration. Inspect container startup logs, listener bind address, and configured port environment or platform settings.
Incorrect Answers
A:
Pinning a container image by digest stabilizes the deployed artifact but cannot correct an ingress target port that differs from the app’s listener.
B:
Managed identity for ACR pulls authenticates image downloads. A container that starts but listens on the wrong port still fails ingress routing despite successful authentication.
D:
Revision traffic weights select which application revision receives requests. They cannot make a revision healthy if its configured target port does not match the bound listener.