Question 430 A message handler deserializes arbitrary objects from a partner queue, and a crafted object can invoke unexpected code paths before schema validation. What is the preferred design? Use schema-constrained data formats and reject unsupported types before constructing application objects Permit every serialized class but scan a sample of queue messages each month Rely only on private queue networking to validate payload semantics Increase message retention so malicious payloads remain available longer Explanation Correct Answer A:Typed DTOs and safe parsers constrain materialization of attacker-controlled object structures. Incorrect Answers B:Post-hoc sampling will miss executions that occur immediately on message receipt. C:Private network placement does not guarantee partner input is benign or well formed. D:Retention affects evidence availability but does not stop unsafe deserialization behavior.
Question 431 A browser SPA needs cross-origin calls to a protected API. The team proposes Access-Control-Allow-Origin:* with credentials for convenience. What should the architect specify? Allow every origin with credentials and treat CORS as sufficient user authorization Use an explicit list of trusted origins and retain server-side token validation and authorization Disable TLS on preflight requests to reduce client errors Put user passwords into Access-Control-Allow-Headers so browsers can reuse them Explanation Correct Answer B:Explicit permitted origins constrain browser exposure while API tokens and authorization still protect the endpoint. Incorrect Answers A:Wildcard credentialed access is unsafe or rejected by browsers and does not define API permissions. C:Preflight traffic requires secure transport in sensitive applications and TLS is separate from origin rules. D:CORS headers specify allowed request headers, not a secure credential-storage design.
Question 432 After sign-in, a web application redirects users to a returnUrl request parameter. Attackers craft a link that sends users to a credential-harvesting domain. Which design prevents the abuse? Disable the sign-in session cookie and use only unencrypted URL parameters Publish the return URL in Azure DNS so it looks legitimate Validate redirect destinations against an explicit internal allowlist before issuing the redirect Trust any absolute URL when the user authenticated successfully Explanation Correct Answer C:Allowlisting permitted internal return paths stops the application from redirecting users to external attacker sites. Incorrect Answers A:Removing the session cookie does not validate a malicious redirect destination. B:DNS publication does not prevent arbitrary off-site redirection selected by an attacker. D:Authentication establishes the user session but does not authorize every supplied redirect address.
Question 433 A company plans to move 40 applications to Azure. Several have unknown identity dependencies and different business criticality. What is the most useful security architecture input? Gather a central inventory of application owners and planned migration dates, but omit regulated data flows and sign-in trust dependencies from security assessment A decision to migrate all applications into one subscription without risk analysis Rank applications by their infrastructure consumption and monthly utilization, then migrate the largest workloads without mapping criticality or inherited identity trusts An application inventory with data flows, identity dependencies, exposure and business impact Explanation Correct Answer D:Risk-informed migration requires understanding business impact and existing trust and dependency relationships. Incorrect Answers A:Ownership and scheduling help migration planning, but they cannot reveal cross-system authentication and data-exposure risks of 40 applications. B:One subscription does not establish appropriate separation between different risks and ownership. C:Compute consumption does not measure security exposure, customer-data sensitivity or the business consequences of an identity dependency failure.
Question 434 A developer accidentally pastes a production OAuth client secret into a public issue tracker. The issue is closed minutes later. Which action is most important? Revoke or rotate the compromised credential and inspect its use before trusting that issue deletion fixed exposure Assume closing the issue removes every scraped copy of the credential Wait until the next planned quarterly password rotation Remove the issue and enforce stricter repository permissions while retaining the exposed production secret until its scheduled expiry Explanation Correct Answer A:A published credential may be copied instantly; rotation and use review address the actual access risk. Incorrect Answers B:Closure does not revoke the exposed key or guarantee public caches and bots did not record it. C:Delayed remediation leaves the same credential active after confirmed exposure. D:Removing public visibility limits future exposure, but the credential may already have been copied and must be revoked or rotated promptly.
Question 435 An App Service uses Key Vault references for settings. A deployment succeeds, but at runtime the app cannot resolve a referenced secret. What should security architects verify first? Whether the VM sizes in a different subscription are large enough The app identity's secret-read authorization and the vault's network access path Whether all users were assigned Exchange Online Plan 2 Whether the storage account permits anonymous blob downloads Explanation Correct Answer B:Both the runtime principal's data-plane permission and connectivity to the vault are prerequisites. Incorrect Answers A:An unrelated VM's compute sizing does not determine Key Vault reference resolution. C:Exchange licensing does not grant a web app access to Azure secrets. D:Public blob settings are unrelated to the Key Vault permission failure.
Question 436 A business app needs to read signed-in users' basic profiles. The developer requests tenant-wide application permissions to read every mailbox for convenience. What should be approved? Tenant-wide mailbox access because any app registration may request it The broadest possible permission so future feature work requires no consent Only delegated permissions necessary for the actual user-profile function, with admin consent where required Unrestricted application permissions combined with a prompt instructing staff not to view mail Explanation Correct Answer C:Minimal delegated scopes fit the user-context profile requirement without granting tenant-wide mailbox reads. Incorrect Answers A:An app request is not proof that the requested permission is justified. B:Speculative future needs are not a justification for broad present access. D:A user-facing policy or prompt cannot constrain an app-only token already granted broad mailbox access.
Question 437 An internal daemon authenticates to Entra with an application certificate that will expire during an expected holiday freeze. What design reduces outage risk? Disable token expiration for the daemon indefinitely Switch to a permanent shared text password for all dependent jobs Ignore expiration alerts because the service can continue using old tokens forever Establish monitored certificate rotation and overlap before expiry, or replace the credential with workload federation when supported Explanation Correct Answer D:Proactive overlapping credentials or federation preserves service authentication without emergency credential exposure. Incorrect Answers A:Entra access tokens still have finite lifetimes; bypassing expiry is not a supported continuity plan. B:A permanent password introduces an additional reusable secret and rotation risk. C:An expired signing certificate will prevent issuance of new client tokens after existing tokens expire.
Question 438 A critical production vulnerability is being exploited. Standard pull request checks take hours, but emergency fixes must retain control evidence. What process best balances urgency and integrity? Use a documented emergency change path with essential automated checks, authorized approval and retrospective review Give any developer permanent unrestricted production access whenever a vulnerability is announced Skip both security testing and artifact provenance for all urgent releases Delay all emergency patches until the next scheduled quarterly review Explanation Correct Answer A:A controlled emergency route can accelerate remediation without removing traceability and critical security checks. Incorrect Answers B:Standing unrestricted access magnifies risk beyond the immediate incident. C:Unverified artifacts could introduce an additional compromise during urgent deployment. D:An active exploit may require a faster documented change process than a fixed quarterly window.
Question 439 A web portal hides an admin control when users have a standard role, but direct API requests can still change another user's permissions. Which remediation actually closes the flaw? Continue hiding the control but minify the frontend bundle Enforce role and object-level authorization on the server for every privilege-changing request Store the user role in localStorage and trust it on all API calls Restrict the admin button to a separate CSS class without touching endpoint logic Explanation Correct Answer B:Server-side authorization protects the mutation even when an attacker bypasses the browser interface. Incorrect Answers A:UI visibility improves usability but cannot prevent a crafted direct HTTP request. C:Local client storage can be edited and is not an authority for permission changes. D:Styling changes cannot alter the API's authorization decision.
Question 440 A customer API returns raw database exception text containing connection strings and SQL fragments during failures. What design is appropriate? Suppress all telemetry and error tracking so there is nothing to leak Return raw errors only for authenticated customers as a troubleshooting courtesy Return bounded generic client errors while keeping detailed diagnostics in access-controlled internal logs Log full secrets publicly but change error status from 500 to 400 Explanation Correct Answer C:Controlled client responses and restricted logs separate diagnosis from public information exposure. Incorrect Answers A:Removing telemetry impairs investigation without fixing unauthorized information disclosure. B:Authentication does not necessarily authorize disclosure of operational secrets and queries. D:Public logging of secrets is itself a disclosure channel regardless of the HTTP status.