Question 270
A developer's local app authenticates using their interactive developer credentials, but the production Azure VM must use its managed identity without embedding the developer's login. The initial implementation works. Which continuing control most directly prevents the same failure or drift from recurring?
- Audit both role assignment scope and data-plane operation type when assigning managed identity permissions.
- Track identity type and deletion semantics during VM retirement so orphaned independent identities are reviewed.
- Use bounded deployment retries and record actual effective authorization before reporting the rollout complete.
- Test token principal and credential source in each environment and avoid relying on workstation state.
Explanation
Correct Answer
D:Test token principal and credential source in each environment and avoid relying on workstation state. This reduces future drift after the initial control is deployed: use a supported Azure Identity credential chain configured so production resolves the intended managed identity and authorizes the resource. Recheck the actual behavior with: inspect the production token's identity and run a permitted target-resource request from the deployed environment.
Incorrect Answers
A:This control manages future managed identity azure rbac authorization drift, but it does not reduce the continuing exposure in the described defaultazurecredential workload use case. The correct safeguard is: test token principal and credential source in each environment and avoid relying on workstation state.
B:This control manages future system-assigned managed identity lifetime drift, but it does not reduce the continuing exposure in the described defaultazurecredential workload use case. The correct safeguard is: test token principal and credential source in each environment and avoid relying on workstation state.
C:This control manages future managed identity role propagation drift, but it does not reduce the continuing exposure in the described defaultazurecredential workload use case. The correct safeguard is: test token principal and credential source in each environment and avoid relying on workstation state.
Question 271
A GitHub Actions workflow deploys Azure infrastructure from one approved repository and branch with no stored long-lived app secret. Which proposed configuration or implementation directly meets the stated requirement?
- Configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange.
- Enable the VM's system-assigned managed identity and authorize only the required storage data actions.
- Align the federated identity credential's expected audience with the valid external workload token audience.
- Configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
Explanation
Correct Answer
A:Configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange. The solution acts at the intended identity, policy or application scope. A successful result is testable: run a job on the approved branch and a different branch to confirm only the intended assertion exchanges successfully. The competing configuration error is: the federated credential does not restrict the GitHub repository and branch subject as intended.
Incorrect Answers
B:That action implements the separate system-assigned managed identity lifetime decision. It is appropriate when a production Azure VM requires token-based access to storage and must not carry any embedded client secret; its identity should be removed when the VM is deleted. The present case instead requires the specific github oidc federated credential change: configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange.
C:That action implements the separate federated credential audience mismatch decision. It is appropriate when a CI pipeline has the correct federated issuer and subject, but Microsoft Entra rejects token exchange because the external token audience differs. The present case instead requires the specific github oidc federated credential change: configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange.
D:That action implements the separate aks workload identity service account decision. It is appropriate when an AKS deployment needs a pod to access Azure Key Vault using a specific identity without mounting a client secret into the container. The present case instead requires the specific github oidc federated credential change: configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange.
Question 272
A GitHub Actions workflow deploys Azure infrastructure from one approved repository and branch with no stored long-lived app secret. The proposed change is: Configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange. After applying the intended configuration, which observation most directly proves that the required behavior works?
- Inspect the production token's identity and run a permitted target-resource request from the deployed environment.
- Delete a disposable test VM after inspecting its identity, and verify the associated system-assigned service principal lifecycle.
- Run a job on the approved branch and a different branch to confirm only the intended assertion exchanges successfully.
- Run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret.
Explanation
Correct Answer
C:Run a job on the approved branch and a different branch to confirm only the intended assertion exchanges successfully. This directly tests the effective outcome, not merely that a configuration exists. It establishes whether the intended change works: configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange. Failure would be evident in this case: an unapproved branch can obtain tokens because the federated identity subject was configured too broadly.
Incorrect Answers
A:The proposed observation checks the different defaultazurecredential workload use scenario. Even a successful test would not establish the requested outcome here: run a job on the approved branch and a different branch to confirm only the intended assertion exchanges successfully.
B:The proposed observation checks the different system-assigned managed identity lifetime scenario. Even a successful test would not establish the requested outcome here: run a job on the approved branch and a different branch to confirm only the intended assertion exchanges successfully.
D:The proposed observation checks the different aks workload identity service account scenario. Even a successful test would not establish the requested outcome here: run a job on the approved branch and a different branch to confirm only the intended assertion exchanges successfully.
Question 273
An unapproved branch can obtain tokens because the federated identity subject was configured too broadly. Which root cause best explains the described result rather than merely treating its symptoms?
- The federated credential does not restrict the GitHub repository and branch subject as intended.
- The Kubernetes service account subject or workload identity annotation does not match the configured federated credential.
- The federated credential audience does not match the JWT aud claim.
- The identity was user-assigned and has a lifecycle independent of the VM rather than system-assigned.
Explanation
Correct Answer
A:The federated credential does not restrict the GitHub repository and branch subject as intended. This is the causal explanation of the observed behavior: an unapproved branch can obtain tokens because the federated identity subject was configured too broadly. Address the underlying mechanism with: configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange. Then confirm: run a job on the approved branch and a different branch to confirm only the intended assertion exchanges successfully.
Incorrect Answers
B:This diagnosis fits a separate aks workload identity service account incident: Pods running under the default Kubernetes service account cannot exchange tokens for the designated Entra identity. It does not explain this case's observed failure; the federated credential does not restrict the GitHub repository and branch subject as intended.
C:This diagnosis fits a separate federated credential audience mismatch incident: A valid branch-restricted workload token fails even though its issuer and subject match the app's credential. It does not explain this case's observed failure; the federated credential does not restrict the GitHub repository and branch subject as intended.
D:This diagnosis fits a separate system-assigned managed identity lifetime incident: A deleted VM leaves an independently created user-assigned identity in the directory, contrary to an operator's automatic-cleanup expectation. It does not explain this case's observed failure; the federated credential does not restrict the GitHub repository and branch subject as intended.
Question 274
A GitHub Actions workflow deploys Azure infrastructure from one approved repository and branch with no stored long-lived app secret. The initial implementation works. Which continuing control most directly prevents the same failure or drift from recurring?
- Bind permitted Kubernetes service accounts tightly and audit namespace and service-account changes.
- Test federated assertion claims as a set during identity-provider updates rather than weakening subject restrictions.
- Review subject and audience claim constraints when repositories, environments or branches change.
- Track identity type and deletion semantics during VM retirement so orphaned independent identities are reviewed.
Explanation
Correct Answer
C:Review subject and audience claim constraints when repositories, environments or branches change. This reduces future drift after the initial control is deployed: configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange. Recheck the actual behavior with: run a job on the approved branch and a different branch to confirm only the intended assertion exchanges successfully.
Incorrect Answers
A:This control manages future aks workload identity service account drift, but it does not reduce the continuing exposure in the described github oidc federated credential case. The correct safeguard is: review subject and audience claim constraints when repositories, environments or branches change.
B:This control manages future federated credential audience mismatch drift, but it does not reduce the continuing exposure in the described github oidc federated credential case. The correct safeguard is: review subject and audience claim constraints when repositories, environments or branches change.
D:This control manages future system-assigned managed identity lifetime drift, but it does not reduce the continuing exposure in the described github oidc federated credential case. The correct safeguard is: review subject and audience claim constraints when repositories, environments or branches change.
Question 275
An AKS deployment needs a pod to access Azure Key Vault using a specific identity without mounting a client secret into the container. Which proposed configuration or implementation directly meets the stated requirement?
- Configure supported Conditional Access policies for workload identities targeting eligible service principals and available conditions.
- Configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange.
- Enable the VM's system-assigned managed identity and authorize only the required storage data actions.
- Configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
Explanation
Correct Answer
D:Configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity. The solution acts at the intended identity, policy or application scope. A successful result is testable: run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret. The competing configuration error is: the Kubernetes service account subject or workload identity annotation does not match the configured federated credential.
Incorrect Answers
A:That action implements the separate workload identity conditional access decision. It is appropriate when a service principal needs noninteractive authentication protected by policies applicable to workload identities, not user MFA challenges. The present case instead requires the specific aks workload identity service account change: configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
B:That action implements the separate github oidc federated credential decision. It is appropriate when a GitHub Actions workflow deploys Azure infrastructure from one approved repository and branch with no stored long-lived app secret. The present case instead requires the specific aks workload identity service account change: configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
C:That action implements the separate system-assigned managed identity lifetime decision. It is appropriate when a production Azure VM requires token-based access to storage and must not carry any embedded client secret; its identity should be removed when the VM is deleted. The present case instead requires the specific aks workload identity service account change: configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
Question 276
An AKS deployment needs a pod to access Azure Key Vault using a specific identity without mounting a client secret into the container. The proposed change is: Configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity. After applying the intended configuration, which observation most directly proves that the required behavior works?
- Use its token to list or read the permitted blob and verify an unrelated container remains unavailable.
- Run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret.
- Delete a disposable test VM after inspecting its identity, and verify the associated system-assigned service principal lifecycle.
- Recreate a nonproduction app instance and verify the existing user-assigned identity continues to authorize its data requests.
Explanation
Correct Answer
B:Run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret. This directly tests the effective outcome, not merely that a configuration exists. It establishes whether the intended change works: configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity. Failure would be evident in this case: pods running under the default Kubernetes service account cannot exchange tokens for the designated Entra identity.
Incorrect Answers
A:The proposed observation checks the different managed identity azure rbac authorization scenario. Even a successful test would not establish the requested outcome here: run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret.
C:The proposed observation checks the different system-assigned managed identity lifetime scenario. Even a successful test would not establish the requested outcome here: run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret.
D:The proposed observation checks the different user-assigned managed identity reuse scenario. Even a successful test would not establish the requested outcome here: run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret.
Question 277
Pods running under the default Kubernetes service account cannot exchange tokens for the designated Entra identity. Which root cause best explains the described result rather than merely treating its symptoms?
- Possessing a managed identity token does not itself grant the Storage Blob Data Reader data action.
- The federated credential does not restrict the GitHub repository and branch subject as intended.
- The identity was user-assigned and has a lifecycle independent of the VM rather than system-assigned.
- The Kubernetes service account subject or workload identity annotation does not match the configured federated credential.
Explanation
Correct Answer
D:The Kubernetes service account subject or workload identity annotation does not match the configured federated credential. This is the causal explanation of the observed behavior: pods running under the default Kubernetes service account cannot exchange tokens for the designated Entra identity. Address the underlying mechanism with: configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity. Then confirm: run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret.
Incorrect Answers
A:This diagnosis fits a separate managed identity azure rbac authorization incident: Token acquisition succeeds but Blob data reads return authorization failure. It does not explain this case's observed failure; the Kubernetes service account subject or workload identity annotation does not match the configured federated credential.
B:This diagnosis fits a separate github oidc federated credential incident: An unapproved branch can obtain tokens because the federated identity subject was configured too broadly. It does not explain this case's observed failure; the Kubernetes service account subject or workload identity annotation does not match the configured federated credential.
C:This diagnosis fits a separate system-assigned managed identity lifetime incident: A deleted VM leaves an independently created user-assigned identity in the directory, contrary to an operator's automatic-cleanup expectation. It does not explain this case's observed failure; the Kubernetes service account subject or workload identity annotation does not match the configured federated credential.
Question 278
An AKS deployment needs a pod to access Azure Key Vault using a specific identity without mounting a client secret into the container. Select TWO complementary decisions: the correct technical implementation and the ongoing preventive control. Evidence-only tests and controls for a different scenario are not substitutes for those two responsibilities.
- Track identity type and deletion semantics during VM retirement so orphaned independent identities are reviewed.
- Configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
- Bind permitted Kubernetes service accounts tightly and audit namespace and service-account changes.
- Enable the VM's system-assigned managed identity and authorize only the required storage data actions.
- Configure a workload identity federated credential for the approved GitHub issuer, audience and subject, then use token exchange.
Explanation
Correct Answers
B:Configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity. The solution acts at the intended identity, policy or application scope. A successful result is testable: run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret. The competing configuration error is: the Kubernetes service account subject or workload identity annotation does not match the configured federated credential.
C:Bind permitted Kubernetes service accounts tightly and audit namespace and service-account changes. This reduces future drift after the initial control is deployed: configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity. Recheck the actual behavior with: run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret.
Incorrect Answers
A:This control manages future system-assigned managed identity lifetime drift, but it does not reduce the continuing exposure in the described aks workload identity service account case. The correct safeguard is: bind permitted Kubernetes service accounts tightly and audit namespace and service-account changes.
D:That action implements the separate system-assigned managed identity lifetime decision. It is appropriate when a production Azure VM requires token-based access to storage and must not carry any embedded client secret; its identity should be removed when the VM is deleted. The present case instead requires the specific aks workload identity service account change: configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
E:That action implements the separate github oidc federated credential decision. It is appropriate when a GitHub Actions workflow deploys Azure infrastructure from one approved repository and branch with no stored long-lived app secret. The present case instead requires the specific aks workload identity service account change: configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
Question 279
A SaaS vendor registers one multitenant application, while a customer needs an independently controllable local identity for enterprise app assignments. Which proposed configuration or implementation directly meets the stated requirement?
- Configure supported AKS Workload Identity federation between its Kubernetes service account and a scoped Microsoft Entra identity.
- Configure supported Conditional Access policies for workload identities targeting eligible service principals and available conditions.
- Create a user-assigned managed identity and attach it to the supported app resources with narrow downstream permissions.
- Use the vendor's app registration for the application definition and consent-created customer-tenant service principal for local administration.
Explanation
Correct Answer
D:Use the vendor's app registration for the application definition and consent-created customer-tenant service principal for local administration. The solution acts at the intended identity, policy or application scope. A successful result is testable: inspect the shared application client ID and distinct tenant-specific service principal object IDs. The competing configuration error is: the vendor owns the app registration in its home tenant; the customer manages the local enterprise application service principal.
Incorrect Answers
A:That action implements the separate aks workload identity service account decision. It is appropriate when an AKS deployment needs a pod to access Azure Key Vault using a specific identity without mounting a client secret into the container. The present case instead requires the specific app registration and enterprise service principal change: use the vendor's app registration for the application definition and consent-created customer-tenant service principal for local administration.
B:That action implements the separate workload identity conditional access decision. It is appropriate when a service principal needs noninteractive authentication protected by policies applicable to workload identities, not user MFA challenges. The present case instead requires the specific app registration and enterprise service principal change: use the vendor's app registration for the application definition and consent-created customer-tenant service principal for local administration.
C:That action implements the separate user-assigned managed identity reuse decision. It is appropriate when three Azure App Service instances need the same preauthorized data-access identity while their application slots are routinely recreated. The present case instead requires the specific app registration and enterprise service principal change: use the vendor's app registration for the application definition and consent-created customer-tenant service principal for local administration.
Question 280
A SaaS vendor registers one multitenant application, while a customer needs an independently controllable local identity for enterprise app assignments. The proposed change is: Use the vendor's app registration for the application definition and consent-created customer-tenant service principal for local administration. After applying the intended configuration, which observation most directly proves that the required behavior works?
- Inspect the production token's identity and run a permitted target-resource request from the deployed environment.
- Run a pod using the approved service account and verify its acquired identity can retrieve only the authorized secret.
- Delete a disposable test VM after inspecting its identity, and verify the associated system-assigned service principal lifecycle.
- Inspect the shared application client ID and distinct tenant-specific service principal object IDs.
Explanation
Correct Answer
D:Inspect the shared application client ID and distinct tenant-specific service principal object IDs. This directly tests the effective outcome, not merely that a configuration exists. It establishes whether the intended change works: use the vendor's app registration for the application definition and consent-created customer-tenant service principal for local administration. Failure would be evident in this case: a customer admin searches only App registrations and cannot find the installed third-party application's local access assignments.
Incorrect Answers
A:The proposed observation checks the different defaultazurecredential workload use scenario. Even a successful test would not establish the requested outcome here: inspect the shared application client ID and distinct tenant-specific service principal object IDs.
B:The proposed observation checks the different aks workload identity service account scenario. Even a successful test would not establish the requested outcome here: inspect the shared application client ID and distinct tenant-specific service principal object IDs.
C:The proposed observation checks the different system-assigned managed identity lifetime scenario. Even a successful test would not establish the requested outcome here: inspect the shared application client ID and distinct tenant-specific service principal object IDs.
Microsoft Identity and Access Administrator (SC-300) Practice Tests