Question 130
The planned architecture is: Enable assignment required on the enterprise application and assign only authorized users or groups to permitted app roles. Workload context: A company uses Entra ID groups to control enterprise app access and must block unassigned users by default. Which acceptance test demonstrates that the required behavior works?
- Test an external login against Entra and verify the connector reaches the internal URL without an inbound internet firewall rule.
- Test sign-in as an unassigned user and as an assigned group member to confirm the boundary.
- Run a review cycle and verify a denied membership is removed according to its configured settings.
- Invite the vendor and verify access only to the approved app under the tenant's external collaboration policies.
Explanation
Correct Answer
B:This observation directly verifies the intended design: Test sign-in as an unassigned user and as an assigned group member to confirm the boundary. The architecture being tested is: Enable assignment required on the enterprise application and assign only authorized users or groups to permitted app roles. The original symptom was: A nonmember signs in to the app despite having no explicit enterprise-app assignment.
Incorrect Answers
A:The alternative test targets: Publish the supported web app using Microsoft Entra Application Proxy and a healthy outbound connector group, with Entra preauthentication. The scenario's actual proposed remedy is: Enable assignment required on the enterprise application and assign only authorized users or groups to permitted app roles. Verify that one by: Test sign-in as an unassigned user and as an assigned group member to confirm the boundary.
C:That observation pertains to a separate failure: Former contractors remain group members after repeated manual spreadsheet audits. Its cause is: There is no automated time-based group entitlement review/remediation process. It does not confirm the result of this design. The direct proof would be: Test sign-in as an unassigned user and as an assigned group member to confirm the boundary.
D:The alternative test targets: Use Microsoft Entra B2B collaboration with an approved guest invitation and application-level assignment or access package. The scenario's actual proposed remedy is: Enable assignment required on the enterprise application and assign only authorized users or groups to permitted app roles. Verify that one by: Test sign-in as an unassigned user and as an assigned group member to confirm the boundary.
Question 131
The customer states: A company uses Entra ID groups to control enterprise app access and must block unassigned users by default. An incident reveals: A nonmember signs in to the app despite having no explicit enterprise-app assignment. What cause best accounts for this evidence?
- The app allows unsolicited user sign-in when assignment gating is not enforced.
- External collaboration was treated as a permanent internal employee account rather than a governed guest identity.
- The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication.
- There is no automated time-based group entitlement review/remediation process.
Explanation
Correct Answer
A:The recorded behavior follows from: The app allows unsolicited user sign-in when assignment gating is not enforced. The appropriate mitigation would be: Enable assignment required on the enterprise application and assign only authorized users or groups to permitted app roles. Verify with: Test sign-in as an unassigned user and as an assigned group member to confirm the boundary.
Incorrect Answers
B:External collaboration was treated as a permanent internal employee account rather than a governed guest identity. The app allows unsolicited user sign-in when assignment gating is not enforced.
C:The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication. The app allows unsolicited user sign-in when assignment gating is not enforced.
D:There is no automated time-based group entitlement review/remediation process. The app allows unsolicited user sign-in when assignment gating is not enforced.
Question 132
Workload context: A company uses Entra ID groups to control enterprise app access and must block unassigned users by default. The implemented remedy is: Enable assignment required on the enterprise application and assign only authorized users or groups to permitted app roles. Which ongoing practice most specifically prevents recurrence of this failure: A nonmember signs in to the app despite having no explicit enterprise-app assignment.?
- Require guest access reviews and expiration/removal when the contractual engagement ends.
- Audit group membership and application role mappings after business unit reorganizations.
- Inspect review completion and apply results after reviewer changes.
- Monitor connector health, published app preauthentication and Conditional Access exclusions.
Explanation
Correct Answer
B:The preventive control is: Audit group membership and application role mappings after business unit reorganizations. It targets the earlier cause: The app allows unsolicited user sign-in when assignment gating is not enforced. Confirm ongoing effectiveness by: Test sign-in as an unassigned user and as an assigned group member to confirm the boundary.
Incorrect Answers
A:Requiring guest access reviews and expiration/removal when the contractual engagement ends would not audit group membership and application role mappings after business unit reorganizations.
C:Inspecting review completion and applying results after reviewer changes would not audit group membership and application role mappings after business unit reorganizations.
D:Monitoring connector health, published app preauthentication and Conditional Access exclusions would not audit group membership and application role mappings after business unit reorganizations.
Question 133
A solution architect is reviewing a workload: A public-facing API must accept only access tokens with an expected issuer, audience and delegated scope rather than treat any Entra token as authorization. The observed incident is: Tokens issued for unrelated services are accepted by the API. Which architecture choice most directly removes the identified weakness?
- Assign a specific built-in or justified custom Azure RBAC role at the narrowest management scope granting needed resource actions.
- Publish the supported web app using Microsoft Entra Application Proxy and a healthy outbound connector group, with Entra preauthentication.
- Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request.
- Attach one user-assigned managed identity to the eligible compute resources and grant its required API permission or Azure role.
Explanation
Correct Answer
C:The targeted implementation is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request. The problem is not generic resource availability: Audience/scope authorization checks were omitted even though the token signature was valid. Verify the result by: Call with a valid intended token and a token for another API audience, confirming the latter is rejected.
Incorrect Answers
A:This option addresses the actual design defect: The RBAC role and scope exceed the intended project's administrative responsibilities. The problem is not generic resource availability: Audience/scope authorization checks were omitted even though the token signature was valid.
B:This option addresses the actual design defect: The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication. The problem is not generic resource availability: Audience/scope authorization checks were omitted even though the token signature was valid.
D:The design that removes it is: Attach one user-assigned managed identity to the eligible compute resources and grant its required API permission or Azure role. The problem is not generic resource availability: Audience/scope authorization checks were omitted even though the token signature was valid.
Question 134
An architect proposes this change: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request. The workload context is: A public-facing API must accept only access tokens with an expected issuer, audience and delegated scope rather than treat any Entra token as authorization. Which evidence would most directly validate the change?
- Call with a valid intended token and a token for another API audience, confirming the latter is rejected.
- Sign in as the project operator and test the specific permitted action and a prohibited resource operation.
- Recreate one function and verify its calls retain the same managed identity client ID and authorization.
- Test an external login against Entra and verify the connector reaches the internal URL without an inbound internet firewall rule.
Explanation
Correct Answer
A:This observation directly verifies the intended design: Call with a valid intended token and a token for another API audience, confirming the latter is rejected. The architecture being tested is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request. The original symptom was: Tokens issued for unrelated services are accepted by the API.
Incorrect Answers
B:That observation pertains to a separate failure: An operator can delete unrelated production resources after being given subscription Owner. Its cause is: The RBAC role and scope exceed the intended project's administrative responsibilities. It does not confirm the result of this design. The direct proof would be: Call with a valid intended token and a token for another API audience, confirming the latter is rejected.
C:The alternative test targets: Attach one user-assigned managed identity to the eligible compute resources and grant its required API permission or Azure role. The scenario's actual proposed remedy is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request. Verify that one by: Call with a valid intended token and a token for another API audience, confirming the latter is rejected.
D:The architecture being tested is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request.
Question 135
During architecture troubleshooting, a team reports: Tokens issued for unrelated services are accepted by the API. Context: A public-facing API must accept only access tokens with an expected issuer, audience and delegated scope rather than treat any Entra token as authorization. Which underlying design mistake explains the observed behavior most precisely?
- The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication.
- A lifecycle-coupled identity was used where a shared persistent identity was required.
- The RBAC role and scope exceed the intended project's administrative responsibilities.
- Audience/scope authorization checks were omitted even though the token signature was valid.
Explanation
Correct Answer
D:The incident is explained by: Audience/scope authorization checks were omitted even though the token signature was valid. The reported symptom is: Tokens issued for unrelated services are accepted by the API. The corresponding design fix is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request.
Incorrect Answers
A:The alternative diagnosis “The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication” does not match the observed symptom: Tokens issued for unrelated services are accepted by the API. Context: A public-facing API must accept only access tokens with an expected issuer, audience and delegated scope rather than treat any Entra token as authorization. The incident is explained by: Audience/scope authorization checks were omitted even though the token signature was valid. The reported symptom is: Tokens issued for unrelated services are accepted by the API. The evidence instead supports “Audience/scope authorization checks were omitted even though the token signature was valid”.
B:The alternative diagnosis “A lifecycle-coupled identity was used where a shared persistent identity was required” does not match the observed symptom: Tokens issued for unrelated services are accepted by the API. Context: A public-facing API must accept only access tokens with an expected issuer, audience and delegated scope rather than treat any Entra token as authorization. The incident is explained by: Audience/scope authorization checks were omitted even though the token signature was valid. The reported symptom is: Tokens issued for unrelated services are accepted by the API. The evidence instead supports “Audience/scope authorization checks were omitted even though the token signature was valid”.
C:The alternative diagnosis “The RBAC role and scope exceed the intended project's administrative responsibilities” does not match the observed symptom: Tokens issued for unrelated services are accepted by the API. Context: A public-facing API must accept only access tokens with an expected issuer, audience and delegated scope rather than treat any Entra token as authorization. The incident is explained by: Audience/scope authorization checks were omitted even though the token signature was valid. The reported symptom is: Tokens issued for unrelated services are accepted by the API. The evidence instead supports “Audience/scope authorization checks were omitted even though the token signature was valid”.
Question 136
The design change is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request. The original failure was: Tokens issued for unrelated services are accepted by the API. Which ongoing control best prevents recurrence of the same root cause?
- Test issuer and role/scope validation across tenant onboarding and app version changes.
- Audit the user-assigned identity's assignments when services or environments are retired.
- Monitor connector health, published app preauthentication and Conditional Access exclusions.
- Review role assignments and inherited scopes at subscription and resource-group boundaries.
Explanation
Correct Answer
A:The preventive control is: Test issuer and role/scope validation across tenant onboarding and app version changes. It targets the earlier cause: Audience/scope authorization checks were omitted even though the token signature was valid. Confirm ongoing effectiveness by: Call with a valid intended token and a token for another API audience, confirming the latter is rejected.
Incorrect Answers
B:The alternative diagnosis “Audit the user-assigned identity's assignments when services or environments are retired” does not match the observed symptom: The design change is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request. The original failure was: Tokens issued for unrelated services are accepted by the API. Which ongoing control best prevents recurrence of the same root cause?. The preventive control is: Test issuer and role/scope validation across tenant onboarding and app version changes. It targets the earlier cause: Audience/scope authorization checks were omitted even though the token signature was valid. The evidence instead supports “Test issuer and role/scope validation across tenant onboarding and app version changes”.
C:The alternative diagnosis “Monitor connector health, published app preauthentication and Conditional Access exclusions” does not match the observed symptom: The design change is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request. The original failure was: Tokens issued for unrelated services are accepted by the API. Which ongoing control best prevents recurrence of the same root cause?. The preventive control is: Test issuer and role/scope validation across tenant onboarding and app version changes. It targets the earlier cause: Audience/scope authorization checks were omitted even though the token signature was valid. The evidence instead supports “Test issuer and role/scope validation across tenant onboarding and app version changes”.
D:The alternative diagnosis “Review role assignments and inherited scopes at subscription and resource-group boundaries” does not match the observed symptom: The design change is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request. The original failure was: Tokens issued for unrelated services are accepted by the API. Which ongoing control best prevents recurrence of the same root cause?. The preventive control is: Test issuer and role/scope validation across tenant onboarding and app version changes. It targets the earlier cause: Audience/scope authorization checks were omitted even though the token signature was valid. The evidence instead supports “Test issuer and role/scope validation across tenant onboarding and app version changes”.
Question 137
A design workshop has this requirement: An AKS workload needs Azure SQL access using identity federation without distributing managed-identity credentials into pods. Operators currently observe: Pods fail when an obsolete secret in Kubernetes is removed. Select the ONE design remedy that best addresses the root cause.
- Configure an Entra application/service principal workload identity federation credential for approved GitHub OIDC claims with scoped Azure RBAC.
- Enable a system-assigned managed identity on the VM and grant the needed Storage Blob Data Reader data-plane role at the minimal scope.
- Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity.
- Use Azure RBAC for AKS where supported and assign appropriate Kubernetes data-plane roles distinct from ARM Reader.
Explanation
Correct Answer
C:This option addresses the actual design defect: The workload is coupled to static credentials instead of the expected workload identity token trust. The correction is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity. Confirm the outcome with: Run a pod with the approved service-account binding and verify token-based SQL access, denying unbound pods.
Incorrect Answers
A:The alternative diagnosis “Configure an Entra application/service principal workload identity federation credential for approved GitHub OIDC claims with scoped Azure RBAC” does not match the observed symptom: Pods fail when an obsolete secret in Kubernetes is removed. This option addresses the actual design defect: The workload is coupled to static credentials instead of the expected workload identity token trust. The correction is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity. The evidence instead supports “Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity”.
B:The alternative diagnosis “Enable a system-assigned managed identity on the VM and grant the needed Storage Blob Data Reader data-plane role at the minimal scope” does not match the observed symptom: Pods fail when an obsolete secret in Kubernetes is removed. This option addresses the actual design defect: The workload is coupled to static credentials instead of the expected workload identity token trust. The correction is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity. The evidence instead supports “Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity”.
D:The alternative diagnosis “Use Azure RBAC for AKS where supported and assign appropriate Kubernetes data-plane roles distinct from ARM Reader” does not match the observed symptom: Pods fail when an obsolete secret in Kubernetes is removed. This option addresses the actual design defect: The workload is coupled to static credentials instead of the expected workload identity token trust. The correction is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity. The evidence instead supports “Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity”.
Question 138
The planned architecture is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity. Workload context: An AKS workload needs Azure SQL access using identity federation without distributing managed-identity credentials into pods. Which acceptance test demonstrates that the required behavior works?
- Run a pod with the approved service-account binding and verify token-based SQL access, denying unbound pods.
- Test cluster API namespace permissions with a token and verify ARM Reader alone cannot create Kubernetes deployments.
- Run a permitted pipeline and confirm its OIDC token exchanges successfully while a different branch claim is rejected.
- Run the read from the VM token context and verify access disappears when the managed identity is removed.
Explanation
Correct Answer
A:The acceptance test is specific: Run a pod with the approved service-account binding and verify token-based SQL access, denying unbound pods. Its purpose is to establish that the proposed architecture works: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity.
Incorrect Answers
B:The alternative test targets: Use Azure RBAC for AKS where supported and assign appropriate Kubernetes data-plane roles distinct from ARM Reader. The scenario's actual proposed remedy is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity. Verify that one by: Run a pod with the approved service-account binding and verify token-based SQL access, denying unbound pods.
C:The acceptance test is specific: Run a pod with the approved service-account binding and verify token-based SQL access, denying unbound pods.
D:That observation pertains to a separate failure: A deployed app fails after its hard-coded storage account key expires. Its cause is: The app depends on stored credentials rather than the VM managed identity plus Azure RBAC data-plane authorization. It does not confirm the result of this design. The direct proof would be: Run a pod with the approved service-account binding and verify token-based SQL access, denying unbound pods.
Question 139
The customer states: An AKS workload needs Azure SQL access using identity federation without distributing managed-identity credentials into pods. An incident reveals: Pods fail when an obsolete secret in Kubernetes is removed. What cause best accounts for this evidence?
- The app depends on stored credentials rather than the VM managed identity plus Azure RBAC data-plane authorization.
- Management-plane Azure roles and Kubernetes API authorization were conflated.
- Secret-based pipeline identity was used instead of a scoped federated trust configuration.
- The workload is coupled to static credentials instead of the expected workload identity token trust.
Explanation
Correct Answer
D:This is the failure mechanism rather than an incidental symptom: The workload is coupled to static credentials instead of the expected workload identity token trust. It accounts for: Pods fail when an obsolete secret in Kubernetes is removed. The architectural repair is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity.
Incorrect Answers
A:The app depends on stored credentials rather than the VM managed identity plus Azure RBAC data-plane authorization. The workload is coupled to static credentials instead of the expected workload identity token trust.
B:Management-plane Azure roles and Kubernetes API authorization were conflated. The workload is coupled to static credentials instead of the expected workload identity token trust.
C:Secret-based pipeline identity was used instead of a scoped federated trust configuration. The workload is coupled to static credentials instead of the expected workload identity token trust.
Question 140
Workload context: An AKS workload needs Azure SQL access using identity federation without distributing managed-identity credentials into pods. The implemented remedy is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity. Which ongoing practice most specifically prevents recurrence of this failure: Pods fail when an obsolete secret in Kubernetes is removed.?
- Review Azure RBAC for Kubernetes scopes and audit cluster role bindings during upgrades.
- Review managed-identity roles and audit code for remaining shared keys or SAS credentials.
- Review service-account annotations, federated subjects and least-privilege database permissions.
- Review OIDC subject/audience trust and least-privilege scopes as repository branches change.
Explanation
Correct Answer
C:The preventive control is: Review service-account annotations, federated subjects and least-privilege database permissions. It targets the earlier cause: The workload is coupled to static credentials instead of the expected workload identity token trust. Confirm ongoing effectiveness by: Run a pod with the approved service-account binding and verify token-based SQL access, denying unbound pods.
Incorrect Answers
A:The key follow-up control is: Review Azure RBAC for Kubernetes scopes and audit cluster role bindings during upgrades. The preventive control is: Review service-account annotations, federated subjects and least-privilege database permissions.
B:The preventive control is: Review managed-identity roles and audit code for remaining shared keys or SAS credentials. The preventive control is: Review service-account annotations, federated subjects and least-privilege database permissions.
D:The preventive control is: Review OIDC subject/audience trust and least-privilege scopes as repository branches change. The preventive control is: Review service-account annotations, federated subjects and least-privilege database permissions.
Designing Microsoft Azure Infrastructure Solutions (AZ-305) Practice Tests