Question 420 A cluster hosts public web pods and sensitive payment pods. A web pod is compromised and can reach every payment pod over unrestricted internal networking. What control addresses the observed lateral path? Enable image scanning and signed artifacts for public web pods while leaving runtime network communication to payment namespaces unrestricted Turn on container image vulnerability scanning but leave unrestricted runtime traffic Enforce Kubernetes network policies between service namespaces and verify supported enforcement Require service-to-service TLS on all pod connections without restricting which web workloads may initiate communication to payments Explanation Correct Answer C:Supported network policies constrain pod-to-pod traffic independently of a compromised web process. Incorrect Answers A:Supply-chain controls reduce malicious images but do not block the lateral network path after a web pod is already compromised. B:Scanning images helps before deployment but does not restrict current east-west connections. D:Encryption protects traffic in transit but does not provide the network segmentation needed to deny unauthorized reachability.
Question 421 A container image containing a database password is copied to two registries and cached by many developers. The team wants to prevent future credential distribution through images. Which design fits? Bake a newly rotated password into a private image and share it again Encrypt the password with a constant key stored in the same Dockerfile Place the password in the container label instead of an environment variable Retrieve scoped secrets from a managed secret service at runtime using workload identity Explanation Correct Answer D:Runtime identity and secret-store access avoid placing reusable database credentials in distributable layers. Incorrect Answers A:A rotated password embedded in the image is still distributed to everyone with image access. B:The key in the same build context permits recovery by readers of the image or build source. C:Image labels are metadata and often easier to inspect than application configuration.
Question 422 An API Management endpoint serves a bank and a health partner. Each must have separate usage limits and be independently revocable without taking the whole API offline. What contract should be designed? Use separate partner-specific credentials or subscriptions with granular product policies and quotas Share a single subscription key with both partners and rotate it only for incidents Allow both partners anonymously behind a single public API endpoint Give each partner contributor rights to the API Management service resource Explanation Correct Answer A:Separately scoped subscriptions and policies support independent quota and revocation decisions. Incorrect Answers B:A shared key forces all partners into the same security and operational boundary. C:Anonymous calls provide no dependable partner identity for enforcement. D:Resource contributor role is unnecessary and dangerous for an API consumer.
Question 423 A public API gateway must call an internal backend whose origin must not be directly reachable from the internet. Which network design should be evaluated? Publish the backend public IP with a secret query parameter Use supported private networking from the gateway to the backend and restrict direct origin ingress Expose the backend anonymously but require customers to know its DNS name Give the backend storage account a private endpoint but leave its public HTTP listener open Explanation Correct Answer B:Private gateway-to-origin connectivity reduces bypass of gateway authentication and WAF policies. Incorrect Answers A:A secret URL is guessable or leakable and does not remove backend public exposure. C:DNS obscurity is not equivalent to network isolation or authorization. D:A private endpoint on unrelated storage does not close the backend's public application listener.
Question 424 One managed identity grants both the customer portal and an unrelated batch reporting job write access to the same payment ledger. An attacker compromises the portal. What improvement is most directly aligned to least privilege? Keep a single managed identity for the portal and reporting job but restrict interactive developer access to that identity's service configuration Grant the shared identity additional read roles for diagnostics Separate the portal and reporting identities and grant each only its necessary resource actions Move all app settings into the same Key Vault without changing identity assignments Explanation Correct Answer C:Distinct identities enforce separate action scopes and make one compromised workload less powerful. Incorrect Answers A:Developer control limits do not isolate the portal's compromised workload token from the reporting identity's ledger write privileges. B:Additional read rights widen the shared compromise's potential impact. D:Centralizing configuration does not by itself change which principal can write to the ledger.
Question 425 A retail application faces volumetric network floods and separately receives SQL injection payloads through HTTP forms. Which architecture correctly separates the controls? Rely only on a WAF to absorb any layer-3 flood against a public network address Rely only on network DDoS protection to inspect application SQL syntax Turn off internet reachability for all shoppers during busy periods Use appropriate Azure DDoS network protection and WAF application-layer rules for their respective risks Explanation Correct Answer D:Layered protections address network-volume and malicious HTTP request classes at different boundaries. Incorrect Answers A:A WAF operates on application requests and is not the only control for every volumetric network attack. B:Network DDoS mitigation does not replace application-layer payload inspection. C:Permanent access removal is not a feasible design for a public retail service.
Question 426 A report job is queued while a customer has access to a financial account. Before execution, the customer's authorization is revoked. What should the system do? Revalidate the user's or job principal's entitlement before accessing protected data Assume authorization is permanent because the queue accepted the request Copy all account data into a public temporary queue to avoid future permission lookups Run the job as an unrestricted global service principal so all queued jobs succeed Explanation Correct Answer A:Queue admission and execution can be separated in time, so access must be evaluated against current permissions. Incorrect Answers B:A stale authorization decision can leak records after account access has been removed. C:Publishing queued data increases exposure and does not meet entitlement requirements. D:An overprivileged background identity bypasses the intended customer authorization boundary.
Question 427 An Azure Front Door WAF logs a blocked request containing an injection signature, but an internal application endpoint accepts similar payloads from the private network. What architectural conclusion follows? The WAF proves that no application-layer injection vulnerabilities can exist anywhere The application still needs parameterized queries and input validation for requests that bypass the WAF boundary The internal endpoint becomes safe automatically because Front Door filters external traffic The best fix is to disable application logging to minimize sensitive query strings Explanation Correct Answer B:Parameterized data access protects the vulnerable query even from requests originating inside trusted networks. Incorrect Answers A:A perimeter control does not certify correctness of all application code paths. C:Traffic that bypasses the WAF does not benefit from its inspection policies. D:Disabling logs hampers investigation and does not prevent injection into the database.
Question 428 An Azure Automation runbook needs to update selected resources each night. Operators currently store a Global Administrator user password in an asset. What modernization is appropriate? Require a different human Global Administrator password every week Give all runbooks a shared Azure subscription Owner account Use the runbook's managed identity and grant narrowly scoped resource permissions Publish the stored password only to members of the automation team Explanation Correct Answer C:Managed identity permits unattended authentication with appropriately scoped Azure RBAC grants. Incorrect Answers A:Frequent rotation does not solve the brittleness and high privilege of a stored human sign-in secret. B:Subscription Owner grants broad control unrelated to a narrow scheduled update. D:Sharing a privileged password with more operators increases disclosure and accountability risk.
Question 429 An administrative API deletes customer environments. A compromised operator token could issue destructive requests without additional review. What design adds an independent safeguard? Enforce a second confirmation step in the administrator web interface, leaving the destructive backend API callable with the original operator bearer token Allow deletion from any caller with a valid low-privilege read token Record deletions only after they finish and never allow rollback Require a separately authorized approval or protected action for deletion and log the decision Explanation Correct Answer D:High-impact actions benefit from explicit authorization, independent approval and auditable execution. Incorrect Answers A:A client-side confirmation does not independently authorize high-impact deletion when the existing token is already compromised. B:A read token must not authorize destructive resource deletion. C:Post-event logging helps investigation but is not an independent permission or approval gate.
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.