Question 480
A containerized model API reads a database endpoint hardcoded into its Docker image and needs different endpoints by environment. A containerized worker prints the full configuration dictionary, including secret values, whenever startup fails. Which response best addresses these needs?
- Supply environment-specific settings through App Service application settings; use an App Service Key Vault reference with an authorized managed identity.
- Change startup diagnostics to redact secrets and log only safe configuration identifiers; do not Supply environment-specific settings through App Service application settings.
- Supply environment-specific settings through App Service application settings; Change startup diagnostics to redact secrets and log only safe configuration identifiers.
- Use an App Service Key Vault reference with an authorized managed identity; Change startup diagnostics to redact secrets and log only safe configuration identifiers.
Explanation
Correct Answer
C:App settings become runtime environment variables without requiring environment-specific image builds. configuration troubleshooting should not disclose credentials into broadly readable logs.
Incorrect Answers
A:The runtime can resolve the secret from Key Vault without committing its plaintext into deployment configuration; Requirement 2 requires: change startup diagnostics to redact secrets and log only safe configuration identifiers.
B:Change startup diagnostics to redact secrets and log only safe configuration identifiers; do not Supply environment-specific settings through App Service application settings: configuration troubleshooting should not disclose credentials into broadly readable logs; Requirement 1 requires: supply environment-specific settings through App Service application settings.
D:Supply environment-specific settings through App Service application settings.
Question 481
A latency dashboard reports only average API response time and hides very slow retrieval requests. An operator wants to count how many messages failed per hour by exception type. What is the most appropriate plan for this situation?
- Calculate p95 or p99 with KQL percentile aggregation; use KQL summarize count() by revision and a suitable time bin.
- Use KQL summarize count() by bin(TimeGenerated, 1h) and exception type; do not Calculate p95 or p99 with KQL percentile aggregation.
- Calculate p95 or p99 with KQL percentile aggregation; use KQL summarize count() by bin(TimeGenerated, 1h) and exception type.
- Use KQL summarize count() by revision and a suitable time bin; use KQL summarize count() by bin(TimeGenerated, 1h) and exception type.
Explanation
Correct Answer
C:Tail percentiles expose slow requests that an arithmetic mean can conceal. The second works because time-windowed aggregation converts individual errors into a comparable hourly pattern. Both parts are needed to meet the stated constraints.
Incorrect Answers
A:Grouping by revision and time reveals where failure counts concentrate; requirement 2 requires: using KQL summarize count() by bin(TimeGenerated, 1h) and exception type.
B:Use KQL summarize count() by bin(TimeGenerated, 1h) and exception type; do not Calculate p95 or p99 with KQL percentile aggregation: time-windowed aggregation converts individual errors into a comparable hourly pattern; Requirement 1 requires: calculate p95 or p99 with KQL percentile aggregation.
D:Calculate p95 or p99 with KQL percentile aggregation.
Question 482
App Configuration currently stores a raw database password value alongside ordinary feature settings. A secret reference in App Configuration points to a deleted vault secret and the app receives a retrieval error. Which course of action addresses the stated issues?
- Store a Key Vault reference in App Configuration and authorize secret resolution; grant the application identity appropriate Key Vault secret access.
- Grant the application identity appropriate Key Vault secret access; Repair the reference target or recover the authorized secret in Key Vault.
- Store a Key Vault reference in App Configuration and authorize secret resolution; Repair the reference target or recover the authorized secret in Key Vault.
- Repair the reference target or recover the authorized secret in Key Vault; do not Store a Key Vault reference in App Configuration and authorize secret resolution.
Explanation
Correct Answer
C:A reference separates secret storage from the centralized nonsecret configuration service. app Configuration does not recreate a missing secret merely because a reference exists.
Incorrect Answers
A:Reading the reference and retrieving the referenced secret require separate authorization; Requirement 2 requires: repair the reference target or recover the authorized secret in Key Vault.
B:Store a Key Vault reference in App Configuration and authorize secret resolution.
D:Repair the reference target or recover the authorized secret in Key Vault; do not Store a Key Vault reference in App Configuration and authorize secret resolution: app Configuration does not recreate a missing secret merely because a reference exists; Requirement 1 requires: store a Key Vault reference in App Configuration and authorize secret resolution.
Question 483
A Function App should run automatically for each message in an Azure Service Bus queue, without HTTP polling code. A Function consumes broker messages but records completion before a database transaction is committed, allowing lost work on failure. Which response best addresses these needs?
- Align the trigger's connection setting with the deployed application configuration; Make downstream processing durable and configure trigger settlement behavior appropriately.
- Implement a Service Bus trigger bound to the intended queue; Make downstream processing durable and configure trigger settlement behavior appropriately.
- Make downstream processing durable and configure trigger settlement behavior appropriately; do not implement a Service Bus trigger bound to the intended queue.
- Implement a Service Bus trigger bound to the intended queue; align the trigger's connection setting with the deployed application configuration.
Explanation
Correct Answer
B:The Functions runtime listens for messages through the configured broker trigger. trigger-driven message handling must preserve retry safety when user code fails before committing effects.
Incorrect Answers
A:Implement a Service Bus trigger bound to the intended queue.
C:Make downstream processing durable and configure trigger settlement behavior appropriately; do not implement a Service Bus trigger bound to the intended queue: trigger-driven message handling must preserve retry safety when user code fails before committing effects; requirement 1 requires: implementing a Service Bus trigger bound to the intended queue.
D:Bindings resolve their broker connection through named application settings or identity-based prefixes; Requirement 2 requires: make downstream processing durable and configure trigger settlement behavior appropriately.
Question 484
Developers created an HNSW index with vector_l2_ops, but production queries rank by cosine distance and rarely use the index. A query uses a pgvector HNSW index but recall misses expected nearby passages when ef_search is too low. What is the most appropriate plan for this situation?
- Create a suitable vector_cosine_ops index matching the query operator; Tune hnsw.ef_search and compare latency and recall with an exact baseline.
- Tune hnsw.ef_search and compare latency and recall with an exact baseline; do not create a suitable vector_cosine_ops index matching the query operator.
- Create a suitable vector_cosine_ops index matching the query operator; select a supported dimensionality strategy or different retrieval design within index limits.
- Select a supported dimensionality strategy or different retrieval design within index limits; Tune hnsw.ef_search and compare latency and recall with an exact baseline.
Explanation
Correct Answer
A:The vector index operator class must match the distance operation used by the query planner. exploring more HNSW candidates usually improves recall at the expense of query work.
Incorrect Answers
B:Tune hnsw.ef_search and compare latency and recall with an exact baseline; do not create a suitable vector_cosine_ops index matching the query operator: exploring more HNSW candidates usually improves recall at the expense of query work; requirement 1 requires: creating a suitable vector_cosine_ops index matching the query operator.
C:Storing a vector and building an approximate index are subject to different dimension constraints; Requirement 2 requires: tune hnsw.ef_search and compare latency and recall with an exact baseline.
D:Create a suitable vector_cosine_ops index matching the query operator.
Question 485
A legal search app uses only vector similarity and returns documents marked confidential to an unauthorized department. A compliance assistant must cite the original document for each retrieved chunk but vector rows omit source identifiers. Which course of action addresses the stated issues?
- Combine authorized department metadata filters with vector retrieval and application permission checks; Store and select document and chunk provenance columns with retrieval results.
- Combine authorized department metadata filters with vector retrieval and application permission checks; apply a language metadata predicate alongside the vector-distance ranking.
- Apply a language metadata predicate alongside the vector-distance ranking; Store and select document and chunk provenance columns with retrieval results.
- Store and select document and chunk provenance columns with retrieval results; do not Combine authorized department metadata filters with vector retrieval and application permission checks.
Explanation
Correct Answer
A:Similarity scores do not enforce document classification or tenant access. source identifiers permit traceable citations and controlled post-retrieval verification.
Incorrect Answers
B:A metadata filter enforces the requested language constraint independent of semantic proximity; Requirement 2 requires: store and select document and chunk provenance columns with retrieval results.
C:Combine authorized department metadata filters with vector retrieval and application permission checks.
D:Store and select document and chunk provenance columns with retrieval results; do not Combine authorized department metadata filters with vector retrieval and application permission checks: source identifiers permit traceable citations and controlled post-retrieval verification; Requirement 1 requires: combine authorized department metadata filters with vector retrieval and application permission checks.
Question 486
An HTTP-based Container App experiences overload, but its scale rule observes queue messages that the app never consumes. An application performs costly startup initialization every time KEDA scales from zero, violating its latency target. Which response best addresses these needs?
- Replace the irrelevant rule with a properly configured HTTP concurrency scaling rule; Maintain a nonzero minimum replica count for latency-sensitive serving traffic.
- Maintain a nonzero minimum replica count for latency-sensitive serving traffic; do not replace the irrelevant rule with a properly configured HTTP concurrency scaling rule.
- Replace the irrelevant rule with a properly configured HTTP concurrency scaling rule; configure an appropriate supported CPU-based scale rule and replica limits.
- Configure an appropriate supported CPU-based scale rule and replica limits; Maintain a nonzero minimum replica count for latency-sensitive serving traffic.
Explanation
Correct Answer
A:Scaling input must represent actual incoming work for the service. keeping warm capacity trades idle resource cost for reduced cold-start delay.
Incorrect Answers
B:Maintain a nonzero minimum replica count for latency-sensitive serving traffic; do not replace the irrelevant rule with a properly configured HTTP concurrency scaling rule: keeping warm capacity trades idle resource cost for reduced cold-start delay; Requirement 1 requires: replace the irrelevant rule with a properly configured HTTP concurrency scaling rule.
C:A compute signal can scale replicas when request concurrency is not a reliable workload proxy; Requirement 2 requires: maintain a nonzero minimum replica count for latency-sensitive serving traffic.
D:Replace the irrelevant rule with a properly configured HTTP concurrency scaling rule.
Question 487
An Azure application generates OpenTelemetry spans locally but no telemetry reaches its collector after deployment. Only errors should be retained at higher detail while successful high-volume requests can be sampled more sparsely. What is the most appropriate plan for this situation?
- Configure a supported OTLP exporter and reachable collector endpoint; use a suitable trace sampling strategy that preserves required error visibility.
- Configure a supported OTLP exporter and reachable collector endpoint; configure an appropriate OpenTelemetry sampling policy and document its tradeoffs.
- Use a suitable trace sampling strategy that preserves required error visibility; do not configure a supported OTLP exporter and reachable collector endpoint.
- Configure an appropriate OpenTelemetry sampling policy and document its tradeoffs; use a suitable trace sampling strategy that preserves required error visibility.
Explanation
Correct Answer
A:Instrumentation alone does not deliver traces without a working export path. sampling strategy should reflect troubleshooting goals instead of applying one arbitrary rate to all signals.
Incorrect Answers
B:Sampling limits exported telemetry but means not every request is retained; requirement 2 requires: using a suitable trace sampling strategy that preserves required error visibility.
C:Use a suitable trace sampling strategy that preserves required error visibility; do not configure a supported OTLP exporter and reachable collector endpoint: sampling strategy should reflect troubleshooting goals instead of applying one arbitrary rate to all signals; requirement 1 requires: configuring a supported OTLP exporter and reachable collector endpoint.
D:Configure a supported OTLP exporter and reachable collector endpoint.
Question 488
A team builds a large IVFFlat index before inserting most embeddings and observes poor recall after data growth. A bulk loader adds embeddings faster than the database can index them, causing replication lag and saturated CPU. Which course of action addresses the stated issues?
- Load representative vector data before constructing and tuning the IVFFlat index; Throttle ingestion concurrency and monitor storage, CPU and replication progress.
- Load representative vector data before constructing and tuning the IVFFlat index; Upsert only changed chunk embeddings using stable identifiers.
- Upsert only changed chunk embeddings using stable identifiers; Throttle ingestion concurrency and monitor storage, CPU and replication progress.
- Throttle ingestion concurrency and monitor storage, CPU and replication progress; do not Load representative vector data before constructing and tuning the IVFFlat index.
Explanation
Correct Answer
A:IVFFlat partitions are better trained on representative data than an almost-empty initial set. bounded writes protect capacity while indexing and replication catch up.
Incorrect Answers
B:Incremental updates reduce unnecessary vector writes and index maintenance; Requirement 2 requires: throttle ingestion concurrency and monitor storage, CPU and replication progress.
C:Load representative vector data before constructing and tuning the IVFFlat index.
D:Throttle ingestion concurrency and monitor storage, CPU and replication progress; do not Load representative vector data before constructing and tuning the IVFFlat index: bounded writes protect capacity while indexing and replication catch up; Requirement 1 requires: load representative vector data before constructing and tuning the IVFFlat index.
Question 489
A delayed ingestion task should not be visible to consumers until its scheduled maintenance window starts. A Service Bus message expires before it can be processed, but auditors need an investigation trail for expired items. Which response best addresses these needs?
- Use Service Bus scheduled message delivery for the required time; Set an appropriate message time-to-live on the entity or messages.
- Configure suitable dead-lettering on expiration and review the resulting dead-letter queue; do not use Service Bus scheduled message delivery for the required time.
- Use Service Bus scheduled message delivery for the required time; configure suitable dead-lettering on expiration and review the resulting dead-letter queue.
- Set an appropriate message time-to-live on the entity or messages; configure suitable dead-lettering on expiration and review the resulting dead-letter queue.
Explanation
Correct Answer
C:Scheduled enqueueing defers availability without sleeping inside a worker process. expiration policy can preserve expired work in the dead-letter subqueue for analysis.
Incorrect Answers
A:TTL bounds useful message age independently of consumer availability; requirement 2 requires: configuring suitable dead-lettering on expiration and review the resulting dead-letter queue.
B:Configure suitable dead-lettering on expiration and review the resulting dead-letter queue; do not use Service Bus scheduled message delivery for the required time: expiration policy can preserve expired work in the dead-letter subqueue for analysis; requirement 1 requires: using Service Bus scheduled message delivery for the required time.
D:Use Service Bus scheduled message delivery for the required time.
Question 490
A new Azure Container Apps image needs a canary serving 10 percent of traffic while the prior revision handles the rest. A faulty Container Apps revision has been stopped but its historical configuration is needed for a rollback. What is the most appropriate plan for this situation?
- Reactivate the known-good retained revision and redirect traffic through the supported revision controls; do not enable multiple active revisions and configure weighted traffic splitting.
- Enable multiple active revisions and configure weighted traffic splitting; Reactivate the known-good retained revision and redirect traffic through the supported revision controls.
- Enable multiple active revisions and configure weighted traffic splitting; use single revision mode for the app after verifying the rollout policy.
- Use single revision mode for the app after verifying the rollout policy; Reactivate the known-good retained revision and redirect traffic through the supported revision controls.
Explanation
Correct Answer
B:Multiple revision mode supports controlled percentage-based routing across active revisions. revision snapshots allow a previous version to be returned to service without altering its immutable configuration.
Incorrect Answers
A:Reactivate the known-good retained revision and redirect traffic through the supported revision controls; do not enable multiple active revisions and configure weighted traffic splitting: revision snapshots allow a previous version to be returned to service without altering its immutable configuration; Requirement 1 requires: enable multiple active revisions and configure weighted traffic splitting.
C:Single revision mode retires the old active revision as the new one becomes ready; Requirement 2 requires: reactivate the known-good retained revision and redirect traffic through the supported revision controls.
D:Enable multiple active revisions and configure weighted traffic splitting.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests