Question 300 A container registry is private, but images can be overwritten under the same tag after review. Which safeguard improves deployment trust? Pin immutable image digests and enforce trusted build provenance before deployment Assume private registry network location proves image integrity Allow tag overwrites by all developers without an audit record Deploy the latest tag without checking which bytes it refers to Explanation Correct Answer A:Digest pinning binds deployment to exact reviewed artifacts and detects substitution. Incorrect Answers B:Registry privacy does not prevent authorized-account tampering or compromised maintainers. C:Untracked tag changes defeat artifact approval. D:Mutable latest labels can silently shift workloads to unreviewed images.
Question 301 Developers place API keys directly in pod environment definitions committed to source control. Which architecture reduces exposure? Use an approved external secret store or supported Kubernetes secret integration with scoped workload access Commit the keys in a separately named public repository Share one master API key between all namespaces for simpler renewal Disable audit logging for secret access to avoid exposing key names Explanation Correct Answer A:Controlled external secret access avoids distributing sensitive values through source code. Incorrect Answers B:Public source disclosure immediately compromises the credentials. C:Shared keys create cross-workload exposure after one namespace breach. D:Access auditing can be protected without hiding all secret retrieval activity.
Question 302 A cluster contains public-facing and internal jobs. Every pod can connect to a confidential database because no network segmentation exists. What control should be added? Kubernetes network policies or equivalent enforcement that limits approved namespace and pod flows A requirement that every pod has a descriptive resource label Longer database retention periods for sensitive records A public database endpoint so the firewall rules are easier to document Explanation Correct Answer A:Pod network restrictions reduce lateral access from less trusted workloads. Incorrect Answers B:Labels help identification but do not restrict packets without enforcement. C:Retention governs data lifecycle, not network reachability. D:Public exposure increases the database attack surface.
Question 303 An Azure Function needs to read one signing certificate from Key Vault and rotate automatically. What permissions architecture is preferable? Managed identity with narrowly scoped Key Vault read operations and certificate lifecycle monitoring A shared subscription Owner password embedded in function code A policy granting anonymous vault list and download rights A global app secret copied into every function's deployment package Explanation Correct Answer A:Managed identity and scoped vault access avoid static privileged credentials. Incorrect Answers B:Embedded Owner credentials can compromise unrelated cloud resources. C:Anonymous vault access exposes sensitive material. D:Replicated secrets increase the number of possible leaks and rotation dependencies.
Question 304 An Azure App Service connects to Azure SQL containing payroll data. The security team wants to avoid opening the database to arbitrary Internet clients. What is appropriate? Use supported private connectivity and resource firewall restrictions, plus database identity authorization Open TCP 1433 to the Internet and rely on an obscure database name Disable TLS since the connection is between Azure services Give all application users SQL administrator roles to avoid authorization errors Explanation Correct Answer A:Private connectivity and database authorization reduce exposure at network and identity layers. Incorrect Answers B:Obscure naming is not a security boundary for a public listener. C:Cloud-to-cloud traffic still requires transport integrity and confidentiality. D:SQL administrator access violates least privilege for ordinary queries.
Question 305 A fleet of Azure IaaS VMs lacks consistent host patching, encryption and network controls. Which design best creates repeatability? Versioned VM images, policy assessments and automated configuration or patch management A manually edited deployment spreadsheet with no control enforcement A global public IP address assigned to each VM for easier updates A resource tag that says hardened but is never checked Explanation Correct Answer A:Images and automated policy reduce drift while retaining host-level responsibility. Incorrect Answers B:Documentation alone does not configure operating systems. C:Public management access increases exposure unnecessarily. D:Tags do not prove that encryption or patch state meets standards.
Question 306 An Azure AI service receives prompts containing confidential design information. Only a small approved backend should call the endpoint. What architecture is most appropriate? Use private endpoint or network restrictions where supported with scoped identity and data-handling controls Allow anonymous public inference and rely only on a warning in the prompt Place subscription keys in a browser application downloaded by all employees Send every prompt to a public diagnostic endpoint for troubleshooting Explanation Correct Answer A:Network and identity boundaries limit who can submit sensitive content. Incorrect Answers B:Warnings are not enforceable authorization. C:Browser-distributed secrets are recoverable by clients. D:Public diagnostics can expose confidential prompts and model outputs.
Question 307 A pipeline permits Kubernetes deployments referencing any public image registry. A compromised developer could deploy an image with malware. What should be controlled? Approved registry allowlists and signed image provenance verified at admission Enable Kubernetes workload resource quotas and limit CPU for containers from unapproved registries, allowing any image publisher to pass admission The product team's naming conventions for pod labels Deleting image-scan results so all images pass deployment Explanation Correct Answer A:Source and signature checks limit unapproved image substitution. Incorrect Answers B:CPU quotas constrain resource use but do not validate image origin or prevent deployment of a malicious container artifact. C:Names cannot prove trusted publisher or contents. D:Hiding security findings weakens release controls.
Question 308 One cluster service account is used by every microservice, including public web frontends and internal payment processors. What should be changed? Give workloads distinct scoped service accounts and disable unnecessary token mounting Keep the shared token and store it in every container image Grant the shared account additional cluster-wide rights for uniform behavior Remove auditing for service account operations because they are automated Explanation Correct Answer A:Per-workload identities reduce privilege reuse and improve investigation attribution. Incorrect Answers B:Embedding a shared token increases compromise impact. C:Broader RBAC worsens privilege escalation after any container breach. D:Automated identity actions still need audit visibility.
Question 309 A build accidentally logs an App Service's client secret. Security engineers want to limit the ability to reuse the credential after disclosure. What must occur? Revoke or rotate the secret and review access history, then move to secretless identity if supported Change the App Service's visible name without touching the secret Turn off deployment diagnostics permanently Increase the secret expiration date to avoid future build failures Explanation Correct Answer A:Rotation blocks a stolen credential while managed identity reduces future secret handling. Incorrect Answers B:Renaming does not invalidate authentication. C:Logging can be sanitized rather than eliminating necessary operational evidence. D:Longer validity expands the attack window.
Question 310 Two business units share an Azure messaging namespace. The HR application needs to read its queue but can currently send messages to finance queues too. What should be redesigned? Separate entities and use narrowly scoped data-plane roles or identities for each application's allowed operations Assign each application a separate messaging namespace but retain shared all-queue access credentials across both namespaces Rely on different queue names without access control Restrict the HR app to a private network endpoint but keep its namespace-wide send permissions on all finance queues Explanation Correct Answer A:Entity-scoped authorization can restrict cross-team read and write operations. Incorrect Answers B:Logical separation is ineffective if an HR token still has broad rights to finance messaging resources. C:Names do not prevent a token with excessive rights from sending messages. D:A private endpoint reduces network exposure but does not authorize individual queue operations or enforce service separation.