Question 450 A business partner calls a sensitive API that requires both application authorization and verified client certificate possession. What is the correct division of controls? Use a DNS TXT record as the only proof of partner identity Accept any client certificate if it is syntactically valid, even from untrusted issuers Validate the mTLS certificate chain and partner trust policy while enforcing API scopes or permissions Remove bearer-token authorization because TLS can never coexist with application authorization Explanation Correct Answer C:Mutual TLS authenticates the connection peer, while API permissions constrain the requested business action. Incorrect Answers A:DNS ownership records do not prove that the API caller possesses an approved client credential. B:A self-signed or unrelated certificate cannot establish an approved partner solely by its syntax. D:Transport identity and resource authorization are complementary, not mutually exclusive.
Question 451 A new feature flag can bypass payment checks when enabled. Developers intend to let any authenticated user change flags through the application's public API. What architecture requirement matters most? Log flag changes only in client-side browser storage Create a visible warning label but leave the endpoint public Encrypt the feature flag's name in the front-end bundle Restrict high-impact configuration changes to authorized operators with audit and change approval Explanation Correct Answer D:Changes that weaken payment authorization must require a high-trust, auditable management path. Incorrect Answers A:Client-side logs are mutable and do not prevent unauthorized server configuration changes. B:Warnings do not replace authorization on dangerous toggles. C:Obscuring a flag name does not prevent requests from manipulating it.
Question 452 An infrastructure repo uses a Terraform provider authenticated with a client secret copied across projects. The team wants to support CI without propagating the secret. Which solution fits? Publish the secret in a private Markdown document so the team can rotate it Use OIDC-based workload federation or managed identity for CI and narrow Azure role assignments Encode the secret in Base64 before checking it into the Terraform variables file Give all developers a shared Global Administrator account instead of a service principal Explanation Correct Answer B:Federation or managed identity reduces long-lived credentials while Azure RBAC limits the deployment blast radius. Incorrect Answers A:Documentation still distributes a reusable credential across readers and repositories. C:Base64 is reversible encoding and does not provide credential confidentiality. D:A shared highly privileged human account is neither auditable by operator nor least privileged.
Question 453 A SPA calls a backend-for-frontend service that then calls a payroll API. The BFF currently uses one app-only token that can read every employee's salary, even for junior users. What authorization pattern is necessary? Use a frontend payroll-role flag to hide restricted records from junior employees, trusting the BFF's broad app-only token for all backend queries Cache payroll responses by application identity and reuse the cached data across junior and senior users, with no per-user authorization partitioning Propagate user authorization into BFF decisions and enforce payroll object-level access on the data request Replace every access token with a longer app-only token Explanation Correct Answer C:The BFF must map each request to the user's permitted records instead of treating the service principal as blanket permission. Incorrect Answers A:Client-side visibility cannot prevent direct API requests or enforce which employee salary objects the caller is authorized to read. B:Caching under a shared application principal can leak higher-privilege employee data across users when responses are not authorization-scoped. D:Token size does not enforce row-level entitlements.
Question 454 A deployment creates a new revision of a container app. An engineer tries to test it by printing all environment variables, including an API key, into a shared diagnostics console. What should the architect specify? Use managed secrets and identity references, mask sensitive output, and restrict revision diagnostics Print the key and immediately close the console because the exposure is brief Write the key into the container's startup command so it appears only during restarts Give anyone with log access the same privilege to read application secrets Explanation Correct Answer A:Separate secret management and redaction avoid propagating credentials to deployment logs. Incorrect Answers B:Even transient log exposure can be copied or retained in diagnostic storage. C:Startup commands are often visible in process and deployment metadata. D:Log-reader permissions should not automatically provide secret-value access.
Question 455 A healthcare API must retain enough data to investigate suspicious requests but cannot collect patients' full clinical records in ordinary access logs. Which telemetry design fits? Log every unredacted request body and grant all operators search access Record request IDs, principal, outcome, timings and bounded redacted attributes while storing detailed evidence only when authorized Disable request logs altogether and depend on browser screenshots Send full clinical payloads to an external public issue tracker after every error Explanation Correct Answer B:Structured metadata can support incident correlation without broadly copying regulated content. Incorrect Answers A:Bulk collection of sensitive bodies creates unnecessary confidentiality and retention exposure. C:No logs at all weaken incident reconstruction and operational accountability. D:A public issue tracker is not a controlled evidence repository for patient data.
Question 456 A build requires access to a private package feed but the secret is being copied into a container layer that survives in the final runtime image. What change is needed? Keep the secret in the final image and mark the registry private Replace the secret with an organization-wide admin token in the Dockerfile Use a build-time secret mount or scoped ephemeral credential and verify it is absent from final layers Delete only the Dockerfile line after the image has already been published Explanation Correct Answer C:Ephemeral build secrets can be provided without being persisted in runtime image layers. Incorrect Answers A:Private registries do not prevent accidental secret extraction by people who can pull the image. B:An admin token increases privilege and remains embedded in the distributed artifact. D:Removing source code text after publishing does not scrub credentials already captured in image layers.
Question 457 Developers run automated integration tests against a production SQL database using the application's broad service principal. A test deletes real records. What architecture change addresses this root problem? Allow the tests to continue but add a warning to the test command Store database credentials in an encrypted file on developer laptops Increase production database backups and keep the destructive test route Separate test environments and identities, and prohibit destructive test permissions in production Explanation Correct Answer D:Environment and identity separation prevent test code from executing unauthorized production modifications. Incorrect Answers A:Human warnings cannot guarantee an automated test will not write to production. B:Encrypted storage does not change the overly broad permissions and environment selection. C:Backups aid recovery but do not make destructive production testing an acceptable architecture.
Question 458 An API release changes a required field name, breaking a critical partner integration without warning. What secure lifecycle control is appropriate? Publish a versioned contract with compatibility tests and a coordinated deprecation period Remove all client authorization so legacy partners can continue using old endpoints Replace structured error responses with HTTP 200 for every request Hide API documentation until the new version is fully deployed Explanation Correct Answer A:Explicit contracts and compatibility gates protect dependent integrations while supporting planned change. Incorrect Answers B:Authorization changes cannot compensate for incompatible payload schemas and add exposure. C:Success statuses for failures conceal breakage rather than preserving schema compatibility. D:Withholding interface documentation prevents partners from planning migrations.
Question 459 An application calls an external risk-scoring API with customer addresses. Legal asks whether the service is within the organization-controlled trust boundary. What should the security design document first? Only the API's average latency for the last month A data-flow diagram showing the outbound customer data, identity, processing purpose and third-party boundary Inspect only the third-party API's TLS configuration and its vendor contract, without documenting actual customer fields or onward processing boundaries The number of developer tickets closed during implementation Explanation Correct Answer B:Explicit flow and boundary mapping identifies where privacy and security guarantees must be evaluated. Incorrect Answers A:Performance matters operationally but does not describe who receives sensitive data or under what trust model. C:Transport security and procurement assurance cannot replace data-flow mapping of the information sent to an external risk-scoring processor. D:Development activity metrics are not evidence of the third-party processing boundary.
Question 460 A confidential web app persists user refresh tokens in a shared plaintext table. A support-role account can read the table. What should be changed? Grant the support role a larger mailbox quota to reduce token table errors Treat tokens as harmless because they are not passwords Move token storage to encrypted, access-controlled server-side custody and restrict redemption to authorized app components Return refresh tokens to browser clients in debug responses to simplify troubleshooting Explanation Correct Answer C:Protected storage and least-privilege token access reduce reuse by unauthorized support operators. Incorrect Answers A:Mailbox storage limits do not address authentication token disclosure. B:Refresh tokens can obtain additional access tokens and are sensitive credentials. D:Exposing refresh tokens in responses creates another route for session takeover.