Question 400 Three independent Azure Container Apps need to call the same internal API using one centrally managed identity lifecycle while scaling separately. Which Azure identity pattern fits? Bind all three services to one human operator account Give each container its own hard-coded long-lived client secret Use a user-assigned managed identity on the authorized services and scope API permissions Grant anonymous API access only from their current outbound IP addresses Explanation Correct Answer C:A user-assigned identity can be associated with multiple resources while remaining separately permissioned at the API. Incorrect Answers A:A human account is not an appropriate noninteractive workload principal for multiple services. B:Embedded credentials are difficult to rotate and can leak through image or configuration access. D:Outbound IP allowlists alone do not provide caller identity and can change during service scaling.
Question 401 A CI workflow deploys infrastructure to Azure. Security policy forbids Azure service principal secrets in GitHub and requires short-lived identity proof. Which integration is appropriate? Commit an encrypted service principal secret to the workflow repository Create a permanent shared access signature for every deployment Require maintainers to approve a new personal access token for each run Configure an Entra workload identity federation trust for the workflow's OIDC token Explanation Correct Answer D:OIDC federation trades the trusted workflow assertion for short-lived Entra tokens without a long-lived Azure secret. Incorrect Answers A:Encrypting a client secret in the repository still requires storing and rotating a reusable credential. B:Storage SAS tokens do not provide the general Azure deployment identity required for resource management. C:Human token approval does not create a reliable federated service identity and can inherit excess user access.
Question 402 A multitenant payroll API correctly validates the access-token audience, signature, expiry and required application role. A customer discovers that an app registration in an unrelated Entra tenant can still obtain a properly addressed token and call the API. What authorization boundary is missing? Allow all valid Microsoft Entra tenants once the token audience and application role match Enforce an allowlist of authorized issuer tenant IDs and check the tenant-specific payroll data assignment Rely only on HTTPS and increase the API request rate limit to filter out unknown users Change the payroll API client secret while continuing to accept tokens from any Microsoft Entra tenant Explanation Correct Answer B:Issuer or tenant restrictions plus tenant-scoped resource authorization stop a valid token from an unapproved organization accessing payroll data. Incorrect Answers A:Correctly addressed signed tokens can still come from unauthorized external tenants when the API is intentionally multitenant. C:TLS and throttling do not decide which tenant is authorized to use a sensitive multitenant API. D:Rotating the API credential does not restrict the external issuing tenants accepted by bearer-token authorization.
Question 403 A web API receives an authenticated user's access token and calls Microsoft Graph to read only information that the user is entitled to access. Which identity design preserves user delegation? Use the OAuth on-behalf-of flow and request appropriate delegated Graph permissions Reuse the inbound token unchanged against Graph without validating its intended audience Use an app-only token with tenant-wide Graph privileges for every user's request Attach the user's username as a custom HTTP header and bypass Graph authorization Explanation Correct Answer A:On-behalf-of exchanges the incoming delegated identity for a downstream token scoped to Graph and the user. Incorrect Answers B:An API token may target the middle-tier resource rather than Graph and cannot be treated as a Graph token. C:App-only broad permissions change the authorization model and can exceed what the user may access. D:A username header does not grant delegated permissions or establish a trusted Graph principal.
Question 404 An internal document service fetches a URL supplied by a customer. Threat modeling shows attackers may target instance metadata endpoints or private addresses. What architectural control is most relevant? Allow all HTTP fetches but redact metadata-looking strings from responses Prevent DNS names with uppercase characters to reduce hostname ambiguity Restrict outbound destinations and resolve and validate redirects and IP ranges before fetching Enable Azure Monitor metrics without restricting the fetcher's egress routes Explanation Correct Answer C:Destination allowlisting and redirect/IP controls block requests into metadata and internal networks. Incorrect Answers A:Redacting response text does not prevent retrieval of credentials or internal metadata. B:Hostname capitalization has little relationship to an SSRF attack path. D:Telemetry helps detect suspicious requests but does not eliminate the vulnerable outbound capability.
Question 405 A partner API has a valid JWT validation policy, but one authorized client sends bursts that exhaust its backend quota. Which API Management policy addresses that business risk? Remove JWT validation to reduce token parsing overhead Publish a DNS CNAME to the private backend only Use a permissive CORS policy for the client's origin Apply subscription or identity-scoped rate limits and quotas in Azure API Management Explanation Correct Answer D:Rate limits and quotas constrain noisy authorized clients before they overload the backend. Incorrect Answers A:Removing authorization does not constrain request volume and creates additional exposure. B:DNS naming does not apply per-client request budgets. C:CORS is a browser access mechanism and does not enforce server-side rate limits.
Question 406 A mobile app directly calls an Azure backend with a static API key embedded in the shipped binary. Attackers extract the key and impersonate other devices. Which design reduces this exposure? Obfuscate the static key and ship the same value in each future app version Authenticate users with Entra-supported tokens through a backend-controlled API and avoid shipping a shared secret Move the shared key into the app's visible configuration screen Allow anyone with the app package to rotate the global backend key Explanation Correct Answer B:An identity-based access flow avoids treating a common mobile binary secret as proof of the caller's authorization. Incorrect Answers A:Obfuscation slows extraction but cannot turn a secret shipped to every client into a confidential credential. C:A user-visible configuration location increases key disclosure risk. D:Untrusted clients must not have authority to rotate shared backend credentials.
Question 407 A customer portal lets a signed-in user request invoice downloads using a numeric invoice ID. Tests show changing the ID returns another tenant's invoice. Which remedy belongs at the authorization boundary? Enforce object-level tenant ownership on every invoice request after authenticating the caller Replace sequential invoice identifiers with unpredictable values and retain the existing API behavior that returns any invoice to any authenticated user Apply a WAF managed rule set but retain the existing object lookup logic Encrypt invoices at rest while retaining unrestricted download rights for any logged-in user Explanation Correct Answer A:Per-object authorization prevents access to data outside the caller's tenant regardless of ID predictability. Incorrect Answers B:Hard-to-guess identifiers may reduce casual enumeration but do not enforce per-customer object authorization. C:WAF rules cannot reliably infer each tenant's ownership of application records. D:Encryption at rest does not prevent the application from decrypting and returning an unauthorized invoice.
Question 408 A globally used HTTPS application runs on regionally replicated backends. The architect needs edge-level HTTP attack filtering and centralized global routing. Which design is the closest fit? Deploy only Azure Firewall in each region and assume it parses every end-user HTTP request Use Azure Bastion to inspect customer browser sessions before connection Place Azure Front Door with WAF in front of the regional HTTP origins Attach NSGs to the database subnet and treat packet filtering as global HTTP inspection Explanation Correct Answer C:Front Door provides global HTTP entry and integrated WAF policies before requests reach origins. Incorrect Answers A:A regional network firewall does not by itself provide global edge routing for a browser application. B:Bastion secures administrative access to virtual machines rather than internet client HTTP traffic. D:NSGs operate at the network layer and cannot supply a global application-layer WAF boundary.
Question 409 Azure Application Gateway WAF blocks legitimate JSON requests after a recent ruleset update. The exact matched rule and request field are identified. What is the safest tuning approach? Disable the entire WAF policy for all application paths Move all application traffic to HTTP until clients can retry Allow every source IP associated with the customer application indefinitely Apply a narrowly scoped exclusion or rule override for the verified false-positive condition and retest Explanation Correct Answer D:A targeted exception preserves the broader managed rule set while correcting the documented false positive. Incorrect Answers A:Disabling all WAF protection unnecessarily removes coverage against unrelated attacks. B:Plain HTTP weakens transport protection and does not fix request inspection logic. C:A wide IP allowlist can exempt attacks using the same networks and ignores the offending field.
Question 410 An online enrollment site has fragile legacy input forms. The team wants to evaluate a new WAF managed ruleset without accidentally blocking customers during the baseline period. How should rollout start? Run the WAF in detection mode, review matched requests, then enable prevention with tested exclusions Start in prevention mode with every rule disabled and infer readiness from the absence of alerts Remove input validation in the app because the WAF will validate all business rules Whitelist all internet users for one month so the WAF can learn traffic patterns Explanation Correct Answer A:Detection mode gathers request matches without enforced blocks, supporting evidence-based tuning before prevention. Incorrect Answers B:A fully disabled rule set provides little useful detection evidence for potential false positives. C:A WAF does not replace application-level validation of legitimate inputs and business constraints. D:Whitelisting everyone defeats the purpose of evaluating the attack protection policy.