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:This cause would explain a different symptom: The vendor needs unrestricted tenant accounts to reach one internal app. The mechanism for that event is: External collaboration was treated as a permanent internal employee account rather than a governed guest identity. Here the stated symptom is: A nonmember signs in to the app despite having no explicit enterprise-app assignment. Its cause is: The app allows unsolicited user sign-in when assignment gating is not enforced.
C:The proposed diagnosis fits another scenario: The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication. It would typically be reflected by: Remote users access a legacy web app directly without expected Conditional Access controls. The current evidence instead supports: The app allows unsolicited user sign-in when assignment gating is not enforced.
D:The alternative weakness is: There is no automated time-based group entitlement review/remediation process. Its associated failure is: Former contractors remain group members after repeated manual spreadsheet audits. Neither explains the present observation: A nonmember signs in to the app despite having no explicit enterprise-app assignment. The direct cause here is: 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:The proposed control focuses on: External collaboration was treated as a permanent internal employee account rather than a governed guest identity. For the design in the question, recurrence comes from: The app allows unsolicited user sign-in when assignment gating is not enforced. A precise prevention step is: Audit group membership and application role mappings after business unit reorganizations.
C:This is a reasonable safeguard for a different fault: Former contractors remain group members after repeated manual spreadsheet audits. That different mechanism is: There is no automated time-based group entitlement review/remediation process. The original incident here instead arises from: The app allows unsolicited user sign-in when assignment gating is not enforced. The directly relevant safeguard is: Audit group membership and application role mappings after business unit reorganizations.
D:The proposed control focuses on: The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication. For the design in the question, recurrence comes from: The app allows unsolicited user sign-in when assignment gating is not enforced. A precise prevention step is: 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:That design instead addresses another observed condition: An operator can delete unrelated production resources after being given subscription Owner. Its technical cause is: The RBAC role and scope exceed the intended project's administrative responsibilities. The current workload exhibits: Tokens issued for unrelated services are accepted by the API. Its targeted remedy is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request.
B:This choice mitigates an alternative scenario, where: Remote users access a legacy web app directly without expected Conditional Access controls. The underlying issue there is: The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication. Here the root issue is: Audience/scope authorization checks were omitted even though the token signature was valid. Choose the corresponding action: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request.
D:That design instead addresses another observed condition: A re-created function loses access because its original system identity principal no longer exists. Its technical cause is: A lifecycle-coupled identity was used where a shared persistent identity was required. The current workload exhibits: Tokens issued for unrelated services are accepted by the API. Its targeted remedy is: Register the API scopes in Entra and validate issuer, audience, signature and appropriate scp/roles claims on each request.
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:This check validates a different workload: Test an external login against Entra and verify the connector reaches the internal URL without an inbound internet firewall rule. Its associated design is: Publish the supported web app using Microsoft Entra Application Proxy and a healthy outbound connector group, with Entra preauthentication. The required acceptance test here is: Call with a valid intended token and a token for another API audience, confirming the latter is rejected.
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:This cause would explain a different symptom: Remote users access a legacy web app directly without expected Conditional Access controls. The mechanism for that event is: The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication. Here the stated symptom is: Tokens issued for unrelated services are accepted by the API. Its cause is: Audience/scope authorization checks were omitted even though the token signature was valid.
B:The proposed diagnosis fits another scenario: A lifecycle-coupled identity was used where a shared persistent identity was required. It would typically be reflected by: A re-created function loses access because its original system identity principal no longer exists. The current evidence instead supports: Audience/scope authorization checks were omitted even though the token signature was valid.
C:The alternative weakness is: The RBAC role and scope exceed the intended project's administrative responsibilities. Its associated failure is: An operator can delete unrelated production resources after being given subscription Owner. Neither explains the present observation: Tokens issued for unrelated services are accepted by the API. The direct cause here is: 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:This is a reasonable safeguard for a different fault: A re-created function loses access because its original system identity principal no longer exists. That different mechanism is: A lifecycle-coupled identity was used where a shared persistent identity was required. The original incident here instead arises from: Audience/scope authorization checks were omitted even though the token signature was valid. The directly relevant safeguard is: Test issuer and role/scope validation across tenant onboarding and app version changes.
C:The proposed control focuses on: The application was published by direct inbound exposure instead of Entra-aware proxy preauthentication. For the design in the question, recurrence comes from: Audience/scope authorization checks were omitted even though the token signature was valid. A precise prevention step is: Test issuer and role/scope validation across tenant onboarding and app version changes.
D:That safeguard manages another risk: The RBAC role and scope exceed the intended project's administrative responsibilities. Its scenario is: An operator can delete unrelated production resources after being given subscription Owner. The present recurring risk is: Audience/scope authorization checks were omitted even though the token signature was valid. The proper ongoing control is: 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:This choice mitigates an alternative scenario, where: Pipeline authentication fails after a stored service principal client secret rotates. The underlying issue there is: Secret-based pipeline identity was used instead of a scoped federated trust configuration. Here the root issue is: The workload is coupled to static credentials instead of the expected workload identity token trust. Choose the corresponding action: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity.
B:The option belongs to a different failure mechanism: The app depends on stored credentials rather than the VM managed identity plus Azure RBAC data-plane authorization. That situation exhibits: A deployed app fails after its hard-coded storage account key expires. For the stated case, the remedy is: Configure supported AKS workload identity federation with a Kubernetes service account and a federated managed identity.
D:This choice mitigates an alternative scenario, where: A subscription Reader can unexpectedly edit cluster namespaces, or an intended AKS admin cannot. The underlying issue there is: Management-plane Azure roles and Kubernetes API authorization were conflated. Here the root issue is: The workload is coupled to static credentials instead of the expected workload identity token trust. Choose the corresponding action: 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:This check validates a different workload: Run a permitted pipeline and confirm its OIDC token exchanges successfully while a different branch claim is rejected. Its associated design is: Configure an Entra application/service principal workload identity federation credential for approved GitHub OIDC claims with scoped Azure RBAC. The required acceptance test here is: 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 proposed diagnosis fits another scenario: The app depends on stored credentials rather than the VM managed identity plus Azure RBAC data-plane authorization. It would typically be reflected by: A deployed app fails after its hard-coded storage account key expires. The current evidence instead supports: The workload is coupled to static credentials instead of the expected workload identity token trust.
B:The alternative weakness is: Management-plane Azure roles and Kubernetes API authorization were conflated. Its associated failure is: A subscription Reader can unexpectedly edit cluster namespaces, or an intended AKS admin cannot. Neither explains the present observation: Pods fail when an obsolete secret in Kubernetes is removed. The direct cause here is: The workload is coupled to static credentials instead of the expected workload identity token trust.
C:This cause would explain a different symptom: Pipeline authentication fails after a stored service principal client secret rotates. The mechanism for that event is: Secret-based pipeline identity was used instead of a scoped federated trust configuration. Here the stated symptom is: Pods fail when an obsolete secret in Kubernetes is removed. Its cause is: 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:This is a reasonable safeguard for a different fault: A subscription Reader can unexpectedly edit cluster namespaces, or an intended AKS admin cannot. That different mechanism is: Management-plane Azure roles and Kubernetes API authorization were conflated. The original incident here instead arises from: The workload is coupled to static credentials instead of the expected workload identity token trust. The directly relevant safeguard is: Review service-account annotations, federated subjects and least-privilege database permissions.
B:The proposed control focuses on: The app depends on stored credentials rather than the VM managed identity plus Azure RBAC data-plane authorization. For the design in the question, recurrence comes from: The workload is coupled to static credentials instead of the expected workload identity token trust. A precise prevention step is: Review service-account annotations, federated subjects and least-privilege database permissions.
D:This is a reasonable safeguard for a different fault: Pipeline authentication fails after a stored service principal client secret rotates. That different mechanism is: Secret-based pipeline identity was used instead of a scoped federated trust configuration. The original incident here instead arises from: The workload is coupled to static credentials instead of the expected workload identity token trust. The directly relevant safeguard is: Review service-account annotations, federated subjects and least-privilege database permissions.
Designing Microsoft Azure Infrastructure Solutions (AZ-305) Practice Tests