SaveMyCert
Log in
5 of 5 free questions left today·for 10 a day
AI-200 · Domain 4

Secure, monitor, and troubleshoot Azure solutions practice questions

Secure, monitor, and troubleshoot Azure solutions is worth 24% of the AI-200 exam — the 2nd-heaviest of the 4 domains. Securing secrets with Azure Key Vault (rotation, retrieval) and configuration with Azure App Configuration, tracing distributed systems with OpenTelemetry SDKs, and analysing logs and metrics with KQL. Official weighting 20–25%. 6 fully worked examples are further down this page, answers included.

Exam weight
24%
the 2nd-heaviest of the 4 domains
Questions
96
across 2 topics
Free, no account
5/day
a free account allows 10 a day
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 4 domains, in Learn mode.

Review what you missed

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample Secure, monitor, and troubleshoot Azure solutions questions, fully explained

Questions from the AI-200 bank mapped to domain 4, with the answer key and the reasoning behind every option. None of them repeat the examples on the main AI-200 practice page.

Question 1Secure, monitor, and troubleshoot Azure solutions

A web API on Azure App Service reads three secrets from a key vault that uses the Azure RBAC permission model. The API's managed identity must be able to read those secret values and do nothing else in the vault. Which role should be assigned to the identity at the vault scope?

Choose one.

  • a
    Key Vault Secrets Officer

    This role can also create, update and delete secrets, which is more than a reader needs.

  • b
    Key Vault Reader

    This role reads metadata of the vault and its objects but can't read secret contents.

  • c
    Key Vault Contributor

    This is a control-plane role for managing the vault resource; it grants no access to secret values.

  • d
    Key Vault Secrets User Correct

    This data-plane role reads secret contents and nothing more, which matches a read-only consumer.

The concept

Key Vault data-plane roles: Secrets User reads values, Secrets Officer manages secrets, Reader sees metadata only.

Why that’s the answer

With the RBAC permission model, access to secret values is granted by data-plane roles. Key Vault Secrets User is the least-privileged role that can read secret contents. Secrets Officer adds write and delete, Key Vault Reader stops at metadata, and Key Vault Contributor manages the vault resource without any data access.

How to reason it out
  1. Separate the data plane (secret values) from the control plane (the vault resource).
  2. Pick the data-plane role that only reads secret contents.
  3. Reject roles that add write access or stop at metadata.

Exam tip: Read-only app on an RBAC vault = Key Vault Secrets User.

AI-200 Azure Key Vault and App Configuration: Secret Retrieval, Rotation and Dynamic Settings — the lesson that teaches this.

Question 2Secure, monitor, and troubleshoot Azure solutions

An Azure Functions app rotates a database password: it reads the current secret, generates a new password and saves it as a new version of the same secret. The vault uses Azure RBAC, and the security team forbids the function from reading or changing keys and certificates in the vault. Which role should the function's managed identity receive on the vault?

Choose one.

  • a
    Key Vault Secrets User

    This role reads secret contents only, so the function's set_secret call would be denied.

  • b
    Key Vault Secrets Officer Correct

    This role performs any action on secrets, including setting new versions, but grants nothing on keys or certificates.

  • c
    Key Vault Administrator

    It allows the writes, but it also covers keys and certificates, which the security team forbids.

  • d
    Key Vault Contributor

    This control-plane role manages the vault resource and grants no data-plane access to secrets.

The concept

Writing secret versions needs a role with secret write permissions; Secrets Officer is scoped to secrets only.

Why that’s the answer

Rotation writes a new secret version, so a read-only role isn't enough. Key Vault Secrets Officer covers every secret operation while excluding keys and certificates, which matches the stated restriction. Key Vault Administrator would work but spans all object types, and Key Vault Contributor is control-plane only.

How to reason it out
  1. List the operations: read a secret and set a new version.
  2. Find the narrowest data-plane role with secret write access.
  3. Exclude roles that reach keys and certificates or only manage the vault resource.

Exam tip: Rotation code that writes secrets needs Key Vault Secrets Officer, not Secrets User.

AI-200 Azure Key Vault and App Configuration: Secret Retrieval, Rotation and Dynamic Settings — the lesson that teaches this.

Question 3Secure, monitor, and troubleshoot Azure solutions

A developer holds Key Vault Contributor on a vault that uses the Azure role-based access control permission model. Calls to get_secret from the developer's local script fail with 403 Forbidden. A teammate suggests adding a vault access policy that grants the developer get and list on secrets. What should the developer do to read secret values with least privilege?

Choose one.

  • a
    Add the vault access policy granting get and list on secrets to the developer's account

    Access policies are ignored once a vault uses the RBAC permission model, so the 403 would continue.

  • b
    Assign the developer Key Vault Reader on the vault and retry the get_secret call

    Key Vault Reader reads metadata only and can't read secret contents, so get_secret still fails.

  • c
    Assign the developer Key Vault Administrator on the vault to cover secret operations

    This would allow the read, but it grants every data-plane operation on all objects, which isn't least privilege.

  • d
    Assign the developer Key Vault Secrets User on the vault and wait for the role to apply Correct

    On an RBAC vault, data access comes only from data-plane roles, and Secrets User is the narrowest one that reads values.

The concept

Key Vault Contributor is control-plane only, and access policies don't apply to a vault on the RBAC permission model.

Why that’s the answer

Two facts combine. Key Vault Contributor manages the vault resource but grants no data-plane access, which explains the 403. The teammate's fix fails because the vault uses the RBAC permission model, which makes access policies ineffective. The least-privileged data-plane role that reads values is Key Vault Secrets User; role assignments can take a few minutes to apply.

How to reason it out
  1. Explain the 403: Contributor is a control-plane role.
  2. Check the permission model: RBAC vaults ignore access policies.
  3. Grant the narrowest data-plane role that reads secret values.

Exam tip: On an RBAC vault, grant data access with Key Vault data roles; Contributor and access policies won't do it.

AI-200 Azure Key Vault and App Configuration: Secret Retrieval, Rotation and Dynamic Settings — the lesson that teaches this.

Question 4Secure, monitor, and troubleshoot Azure solutions

A secret's expiration date passed last week. The security team expected Key Vault to block the old database password after that date, but a nightly batch job still reads it successfully with get_secret and connects to the database. Which statement explains this behaviour?

Choose one.

  • a
    The job's SDK caches secret values locally and still serves the copy read before the date

    SecretClient doesn't cache values between calls; each nightly run fetches from the vault.

  • b
    Expired secrets stay readable until the soft-delete retention period for the vault has elapsed

    Soft-delete retention applies to deleted objects, not to secrets whose expiration date has passed.

  • c
    Expiration is enforced in vaults that use access policies, not in vaults using Azure RBAC

    The permission model doesn't change how exp works; it's informational for secrets in both models.

  • d
    Key Vault treats a secret's exp attribute as informational and returns the value from a get call Correct

    Key Vault documents exp on secrets as informational; get works outside the nbf/exp window, for example for recovery.

The concept

A secret's exp and nbf attributes are informational; get still returns expired or not-yet-valid secrets.

Why that’s the answer

For secrets, the expiration time marks when data should not be used, but Key Vault doesn't enforce it on get: retrieving an expired secret is allowed so it can be used for recovery. Stopping use of an old credential requires actually rotating it at the source, or disabling the version, not relying on expiry.

How to reason it out
  1. Note that the read succeeded after expiry from a fresh process.
  2. Recall that exp is informational for secrets and get ignores it.
  3. Conclude that rotation or disabling is what actually stops use.

Exam tip: Secret expiry is a signal, not a lock: get still returns an expired secret.

AI-200 Azure Key Vault and App Configuration: Secret Retrieval, Rotation and Dynamic Settings — the lesson that teaches this.

Question 5Secure, monitor, and troubleshoot Azure solutions

A third-party API key stored as the secret partner-key has leaked. The developer has already saved a replacement value as the latest version. Auditors require that the leaked version can no longer be retrieved by anyone, while its record and the new version stay in the vault. What should the developer do?

Choose one.

  • a
    Call begin_delete_secret for partner-key and recover it again after an hour

    Deleting removes the whole secret with all versions, and recovering brings back the leaked version unchanged.

  • b
    Call update_secret_properties for the leaked version with enabled set to False Correct

    Attributes are per version, and a disabled version can't be retrieved while it stays in the version history.

  • c
    Call update_secret_properties for the leaked version with expires_on set to now

    Expiry is informational for secrets, so get would still return the leaked value.

  • d
    Call purge_deleted_secret for the leaked version to remove it from the vault

    Purge works only on a deleted secret as a whole and would erase the record and the new version too.

The concept

Each secret version has its own enabled flag; disabling one version blocks retrieval of it without deleting anything.

Why that’s the answer

The requirement has two halves: the leaked value must be unreadable, and the history must remain. Setting enabled to False on that specific version does both. An expiration date doesn't block get, delete-and-recover restores the same versions, and purge permanently removes the entire secret.

How to reason it out
  1. Target one version, not the whole secret.
  2. Pick the attribute that Key Vault enforces on get: enabled.
  3. Reject delete or purge, which act on every version.

Exam tip: To kill one leaked version but keep history, disable that version with update_secret_properties.

AI-200 Azure Key Vault and App Configuration: Secret Retrieval, Rotation and Dynamic Settings — the lesson that teaches this.

Question 6Secure, monitor, and troubleshoot Azure solutions

The mail provider issued a new password, and a developer must replace the value of the existing secret smtp-password. Applications read the secret by name without specifying a version and must get the new password on their next read. Which SDK call should the developer make?

Choose one.

  • a
    Call update_secret_properties with the name smtp-password and the new value

    update_secret_properties changes metadata such as tags or enabled; it can't change a secret's value.

  • b
    Call set_secret with the name smtp-password and the new password value Correct

    set_secret on an existing name creates a new version, which becomes the latest one returned by a versionless read.

  • c
    Call begin_delete_secret for smtp-password, then set_secret with the new value

    The deleted name stays in the soft-deleted state, so creating it again fails with a conflict.

  • d
    Call set_secret with a new name, smtp-password-2, and the new password value

    The applications read smtp-password, so a secret under a different name is never seen.

The concept

set_secret on an existing name adds a new version; update_secret_properties only changes metadata.

Why that’s the answer

Key Vault secrets are versioned. Writing a value to an existing name with set_secret adds a version that becomes the current one, so versionless readers pick it up. update_secret_properties can't change values, deleting first collides with the soft-deleted name, and a new name breaks the readers.

How to reason it out
  1. Readers use the name without a version, so the name must stay the same.
  2. A new value on the same name means a new version.
  3. set_secret creates that version; property updates can't.

Exam tip: New value, same name: set_secret adds a version that versionless readers get next.

AI-200 Azure Key Vault and App Configuration: Secret Retrieval, Rotation and Dynamic Settings — the lesson that teaches this.

What AI-200 domain 4 tests, topic by topic

The official exam guide breaks Secure, monitor, and troubleshoot Azure solutions into 2 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published AI-200 practice questions per topic in Secure, monitor, and troubleshoot Azure solutions
TopicWhat it coversQuestions
Implement secure Azure solutionsSkills outline section (AI-200, study guide dated April 15, 2026). Secure secrets by using Azure Key Vault, including rotation and retrieval; Store and retrieve app configuration information by using Azure App Configuration.48
Monitor and troubleshoot Azure solutionsSkills outline section (AI-200, study guide dated April 15, 2026). Trace distributed systems by using OpenTelemetry SDKs; Write KQL queries to analyze logs and metrics.48
Total96

Revise Secure, monitor, and troubleshoot Azure solutions before you drill it

Other AI-200 domains

Secure, monitor, and troubleshoot Azure solutions: your questions

Secure, monitor, and troubleshoot Azure solutions is domain 4 of the AI-200 exam guide and carries 24% of the scored content — the 2nd-heaviest of the 4 domains. On a 50-question paper that works out to roughly 12 questions, though Microsoft Azure does not publish an exact per-domain count and individual exam forms vary.

Source

The domain weight and topic list on this page come from the official AI-200 exam guide.