Microsoft SC-500 Practice Test 28
Question 270
AKS administrators must authenticate through Microsoft Entra ID and receive least-privilege access to Kubernetes objects. What configuration should they use?
- Enable supported Entra integration and appropriate Azure RBAC or Kubernetes RBAC mappings at defined scopes.
- Share the cluster-admin kubeconfig among the full operations team.
- Grant all developers subscription Owner because it is the only way to read a Kubernetes pod.
- Turn off audit logs to avoid retaining authenticated user activity.
Explanation
Correct Answer
A:Integrate the cluster authentication mechanism with the organization's identity provider, assign narrow user or group permissions, and test API actions from authorized and unauthorized identities. Different implementations use Azure RBAC for Kubernetes authorization or native Kubernetes bindings; configure the supported model consistently, and do not give every operator cluster-admin rights. Test with a principal authorized to list only one namespace and another that must be denied cluster-wide changes.
Incorrect Answers
B:A shared high-privilege credential bypasses individual accountability and least-privilege separation. Use named, auditable identities with task-specific Kubernetes permissions. A shared admin kubeconfig prevents knowing which team member executed a sensitive Kubernetes API request.
C:Azure management Owner is far broader than routine in-cluster object access and may not correspond to the chosen Kubernetes authorization configuration. Scope the actual cluster roles. Azure Owner can also manage unrelated cloud resources and is not automatically the least-privileged Kubernetes object role.
D:Removing logs makes access violations harder to investigate and does not enforce permissions. Keep appropriate API audit visibility with controlled retention. API audit logs help reviewers confirm that role assignments are enforced and spot attempts to bypass them.
Question 271
A regulated AKS cluster must prevent a new workload from running a privileged container or mounting arbitrary host paths. Which security control fits?
- Use a documentation convention stating that privileged containers are discouraged.
- Allow privileged pods only when their namespace name includes 'approved'.
- Rely on image scanning exclusively, since it evaluates every runtime privilege.
- Enforce supported admission or Pod Security policies and restrictive pod security contexts, then test denial.
Explanation
Correct Answer
D:Require nonprivileged execution, appropriate Linux capabilities and allowed volume types through the cluster's supported controls. Scope exceptions narrowly for necessary system components and document them. Validate that a deliberately noncompliant manifest is rejected while legitimate workloads still deploy, rather than relying on warning-only audits. Test denial of an actual manifest asking for privileged mode, and document any necessary exception for platform components.
Incorrect Answers
A:A coding guideline cannot stop an image from being deployed with dangerous privileges. Enforce the requirement at admission and security-context configuration. Privileged capability is a container runtime property that must be checked by admission, not a developer promise.
B:A name alone is editable and does not prove the namespace or workload meets policy. Explicit policy evaluation of requested privileges is needed. A workload in an approved namespace can still request unsafe privileges unless a policy checks the pod's specific security context.
C:A vulnerable-package scan does not evaluate all pod security contexts or host-path permissions as an admission decision. Use Kubernetes/AKS security policy controls. A clean image can request host paths and privileged execution, which are outside traditional package vulnerability scanning.
Question 272
A shared AKS cluster hosts payroll and analytics pods. The requirement is that analytics pods cannot open TCP sessions to payroll pods. Which control and test are appropriate?
- Put both pods in the same namespace and assume Kubernetes blocks cross-pod communication.
- Define supported Kubernetes NetworkPolicies selecting the workloads and verify actual denied and allowed flows.
- Rename the analytics Deployment so it no longer resembles payroll in monitoring charts.
- Disable all private networking inside the cluster and give every pod a public IP.
Explanation
Correct Answer
B:Use pod and namespace selectors plus ingress/egress policies enforced by the chosen cluster networking implementation. Default-deny the sensitive target where appropriate, add explicit business exceptions, and test from both payroll and analytics identities. Account for DNS and required system traffic to avoid breaking essential services while proving isolation. Verify both request directions because DNS and network policies can require separately controlled ingress and egress paths.
Incorrect Answers
A:Namespaces organize resources and policy scope but do not automatically enforce network isolation. Without suitable network policies, many clusters allow broad pod communication. Without a supported network policy provider, pods may connect across namespaces despite distinct labels or team ownership.
C:A resource rename changes labels but does not filter packets. Apply actual network controls matching the pods. A deployment rename does not change effective TCP reachability between Kubernetes pod IPs or selected namespaces.
D:Public exposure would increase risk and fail to create scoped east-west isolation. Policy-enforced private pod networking is the intended solution. Public per-pod exposure would broaden attack surfaces and still fail to establish explicit internal deny policy.
Question 273
An AKS API server accepts administration requests from broad internet source ranges. Which hardening step best reduces exposure?
- Increase Kubernetes API request rate limits while leaving any public address authorized.
- Set a very long administrator password and retain internet-wide API access.
- Use supported private cluster or authorized IP access controls and enforce authenticated least-privilege administration.
- Disable Kubernetes event logging to reduce information available to attackers.
Explanation
Correct Answer
C:Choose a supported API server visibility model, restrict network sources or private connectivity, and validate administrator access from approved management paths. Keep Entra and Kubernetes authorization in place; reducing network exposure does not replace identity checks. Test blocked public paths before closing the risk finding. Verify the API server cannot be reached from an unauthorized public network while administrators retain their approved management path.
Incorrect Answers
A:Throttling helps abuse resilience but does not restrict who can contact the control-plane endpoint. The concern is excessive network reachability. Higher API rate limits may make brute-force attempts easier, while the management endpoint remains publicly reachable.
B:Strong authentication is useful but does not replace reducing exposed management endpoints. Unauthorized clients should not reach the API server from unapproved networks. Strong passwords do not replace private endpoints or approved source-IP restrictions for a critical Kubernetes control plane.
D:Removing operational and security evidence does not change API server exposure. Preserve logs while fixing its network access configuration. Turning off audit records conceals attempted unauthorized API calls and does not change the listener's network reachability.
Question 274
An AKS application needs Azure Storage access. Developers currently keep a long-lived service principal secret inside its Deployment YAML. What design is preferable?
- Use supported AKS workload identity federation and scoped Azure authorization for the Kubernetes service account.
- Base64-encode the service principal password in a Kubernetes Secret and commit it to Git.
- Assign a subscription-wide Owner role to the node pool so any pod can access Storage.
- Embed a storage account key in the container image and rotate it only at major releases.
Explanation
Correct Answer
A:Workload identity can exchange an approved Kubernetes service account identity for Entra tokens without distributing a persistent app secret to pods. Configure the federated credential subject, issuer and audience, bind the intended service account, and grant only necessary Storage data permissions. Verify access and revoke the previously exposed static secret. Confirm service account subject and Entra federated credential match so one namespace cannot impersonate another workload.
Incorrect Answers
B:Base64 is encoding, not encryption. A repository copy of a reusable credential remains exposed to anyone able to read its manifest or history. Any repository containing the base64 text can recover the underlying service principal password with a trivial decode.
C:Broad node privilege can allow unrelated workloads to access data and obscures per-application authorization. Bind a scoped workload identity instead. Broad node identity permissions may be abused by unrelated pods if isolation or metadata-service boundaries fail.
D:An image is copied through registries and deployment nodes, making embedded long-lived keys difficult to contain. Identity federation avoids this distribution risk. Stored image layers and registries can retain an exposed storage account key even after deployment variables are replaced.
Question 275
An Azure Container Registry holds sensitive release artifacts and should accept pulls only from approved private networks. What configuration should be evaluated?
- Set anonymous pull access so private clients do not need authentication.
- Publish the registry login server behind an undocumented port number.
- Restrict supported ACR network access through approved private endpoints and DNS while maintaining scoped identity-based pull rights.
- Store all registry passwords in a public deployment wiki so image pulls remain available.
Explanation
Correct Answer
C:For the appropriate registry tier and capabilities, configure private endpoint connectivity and client name resolution, then disable or restrict public access as required. Ensure AKS nodes, deployment agents and workloads can resolve and reach the relevant registry endpoints. Use scoped AcrPull permissions or documented tokens; private networking alone does not authorize image access. Test image pulls from AKS nodes and build agents because private DNS and integration behavior may differ between them.
Incorrect Answers
A:Anonymous pull broadens artifact access and does not make network reachability private. Authentication and private connectivity are independent controls. Anonymous image pulls expose release artifacts to parties not authenticated for the deployment pipeline or container runtime.
B:Registry operations use supported endpoint contracts; hiding the port does not enforce a private network boundary and may break image pulls. Changing ports does not replace valid ACR service endpoint naming and supported network controls for image pulls.
D:Publishing credentials defeats the artifact security requirement, while public connectivity remains unrestricted. Use managed identities or other approved scoped authentication with private network enforcement. Publishing registry passwords creates reusable privileged access independent of the intended private network restrictions.
Question 276
A Linux syslog source sends debug messages so rapidly that Sentinel ingestion cost rises without improving detections. What should the team optimize first?
- Delete the Log Analytics workspace, including retained investigation events.
- Collect every message forever because more events always produce better detections.
- Disable all syslog from the hosts, including authentication failures and warnings.
- Tune supported source, facility and severity collection filters, then validate that critical security events still arrive.
Explanation
Correct Answer
D:Inspect high-volume devices and the Azure Monitor Agent syslog/DCR collection path, then filter unnecessary facilities or low-value severities at supported points. Test ingestion of actual authentication and threat-relevant events after the change. Track data reduction and preserve raw evidence where mandated, rather than silently dropping useful event classes. Use controlled before-and-after event counts and test key syslog categories before accepting the revised collection filter.
Incorrect Answers
A:Workspace deletion discards valuable records and can interrupt alerts. The problem is excessive low-value ingestion, which should be addressed with supported collection filters instead of eliminating monitoring. A workspace is an investigative data store; deleting it to control costs could eliminate incident timelines and enabled analytics.
B:Unlimited ingestion raises cost and can obscure material events. Security collection needs a defensible set of sources and severities matched to investigation use cases. Excessive debug events can inflate costs and obscure meaningful auth failures that investigators need during a real attack.
C:A blanket shutdown could hide privilege abuse, service failures and intrusions. The team should retain essential security signal while reducing unneeded debug volume. Preserve high-value facilities and severities so hostile logins and privilege changes remain visible after reduction.
Question 277
A Linux VM migrated from the legacy Log Analytics agent to Azure Monitor Agent now produces duplicated syslog records in Sentinel. How should the migration be completed?
- Increase Sentinel table retention so duplicate records become easier to distinguish.
- Validate AMA and its DCR association, then retire the overlapping legacy collection path after confirming equivalent coverage.
- Change every Linux host's name to make duplicated events unique.
- Disable audit and authentication logs permanently so fewer records appear.
Explanation
Correct Answer
B:Compare event identifiers, source host, facility and timestamp to locate duplicate streams. Ensure the current AMA pipeline sends required syslog categories before removing the prior agent or connector. Recheck normal volume and alert continuity; migration success is measured by retained security signal, not just the absence of duplicate rows. Correlate raw timestamps and host IDs after removing the old agent so duplicate ingestion is genuinely resolved.
Incorrect Answers
A:Retention does not prevent two agents or collection paths from ingesting the same source event. The duplicate pipeline must be identified and retired safely. Retention does not distinguish whether one host event was delivered by AMA, a legacy agent or both pathways.
C:Renaming identifiers would camouflage duplication and could break correlation rules. Fix the two ingestion paths rather than manufacture different asset names. Host renaming breaks asset correlation and makes two copies of one security event appear to originate from different machines.
D:That would remove important security evidence. Filter and retire redundant agents while preserving the required records. Authentication failures and sudo events may be rare but are valuable sources for Linux incident detection.
Question 278
An organization wants Windows Security events collected through Azure Monitor Agent for Microsoft Sentinel. Which configuration is required?
- Assign a supported data collection rule selecting the appropriate Windows Security event channel and associate it with the hosts.
- Enable Windows Event Viewer on one analyst workstation and assume it forwards all domain machine logs.
- Deploy only a Sentinel workbook describing the desired event identifiers.
- Assign all user accounts subscription Owner to permit Windows event reading.
Explanation
Correct Answer
A:Create or select a DCR with the correct event collection settings and destination workspace, then associate it with eligible machines running healthy AMA. Filter supported event IDs to the detection need, generate a known test event, and verify its destination table. Installing an agent without collection rules does not establish that events flow. Validate the channel selection against an actual generated Security event, because a deployed DCR can still be misconfigured.
Incorrect Answers
B:Event Viewer is a local inspection tool; it does not automatically deploy a fleet collection rule or destination association. Collect events at their source or through the approved forwarding architecture. A local event viewer does not transmit all domain computer events to the specified Log Analytics destination.
C:Workbooks visualize existing data; they do not configure AMA to ingest it. Implement the underlying collection rule and host association first. Installing visualization assets before ingestion would leave dashboards empty, regardless of how many analytic tiles were created.
D:Azure management privileges are irrelevant to building the supported Windows event collection pipeline and represent excessive access. Azure Owner permissions do not cause Windows Security auditing or AMA event collection to become active on guest machines.
Question 279
Domain servers forward security logs to a central Windows Event Forwarding collector, but Sentinel receives nothing. What should be validated?
- That every source server has a public IP directly accessible by Sentinel.
- Whether the SOC has enough saved KQL queries for the expected event volume.
- WEF subscription delivery, collector connectivity, AMA/DCR association and the workspace ingestion path.
- Whether workstation antivirus settings prevent analysts from creating dashboards.
Explanation
Correct Answer
C:Check that the source machines are actually subscribed and forwarding intended Security events to the collector. Verify WinRM/forwarding prerequisites and that the collector's supported Azure Monitor pipeline reads the forwarded events into the correct workspace. Test with a known event ID before modifying unrelated analytics rules. Test a fresh source event at the forwarder and the Sentinel table, preserving timestamp and computer identity.
Incorrect Answers
A:WEF collection can use private domain networking and an approved forwarder path. Public exposure is unnecessary and risky for domain machines. Public access to domain controllers increases credential theft risk and is not a prerequisite for secured WEF operation.
B:Queries search ingested records; they do not configure source subscriptions or connectivity between event producers and the forwarding collector. Query and dashboard definitions have no access to events that the collector never delivered to the workspace.
D:Dashboard creation is separate from the missing source-to-collector event flow. Inspect WEF and the AMA destination first. Workstation antivirus is unrelated to which event forwarding subscription selects and delivers server Security events.
Question 280
A SOC detection requires Windows failed logon Event ID 4625, but the new DCR collects only administrative success events. How should the engineer correct collection?
- Increase the Sentinel incident severity so Windows begins emitting additional event IDs.
- Add the number 4625 to the workbook title while keeping DCR filters unchanged.
- Disable Windows auditing because successful logon volume masks failures.
- Include the supported Security channel failure event selection in DCR and verify it reaches the intended table.
Explanation
Correct Answer
D:Check that the source host produces Event ID 4625 under its audit policy, then adjust the DCR's supported XPath or equivalent filter and validate association. Generate an authorized failed-logon test, confirm timestamp and host fields in the destination, and watch volume to avoid accidental overcollection. Check the DCR association on the actual domain server, not merely the presence of a saved rule definition.
Incorrect Answers
A:Incident severity affects alert prioritization, not which Windows records are collected. The DCR and source audit policy must include the desired failure event. Event collection filters operate before analytics; increasing alert severity cannot recover a missing Windows log record.
B:Display text does not alter ingestion. The collection definition must select the relevant channel and event IDs. Changing only display labels leaves the Security channel and XPath event selection exactly as they were.
C:Turning auditing off would remove the very failed logon evidence being requested. Configure the appropriate audit subcategory and collection filter. Disablement removes event source telemetry, so future failed logons cannot be correlated with suspicious identity activity.