Microsoft AZ-400 Practice Test 95
Question 940
A Microsoft DevOps team is addressing: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.
- Enable an approved connection monitor for the critical private network path.
- Configure supported VM Insights or guest-memory collection and meaningful alerts.
- Configure monitored failure notifications and an actionable operations escalation path.
- Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration.
Explanation
Correct Answers
A:Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure supported VM Insights or guest-memory collection and meaningful alerts. Together they address: Guest memory observability requires supported collection beyond basic host CPU metrics.
C:Configure supported VM Insights or guest-memory collection and meaningful alerts. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. Together they address: Guest memory observability requires supported collection beyond basic host CPU metrics.
Incorrect Answers
B:Enable an approved connection monitor for the critical private network path. This concerns a different DevOps situation: Intermittent API failures occur across a private network, but monitoring uses only application exception counts. This case instead requires both a targeted investigation (Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.) and a controlled change (Configure supported VM Insights or guest-memory collection and meaningful alerts.).
D:Configure monitored failure notifications and an actionable operations escalation path. This concerns a different DevOps situation: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. This case instead requires both a targeted investigation (Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.) and a controlled change (Configure supported VM Insights or guest-memory collection and meaningful alerts.).
E:Inspect Application Insights request/dependency telemetry, correlation IDs and trace configuration. This concerns a different DevOps situation: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. This case instead requires both a targeted investigation (Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.) and a controlled change (Configure supported VM Insights or guest-memory collection and meaningful alerts.).
Question 941
An Azure DevOps engineering team evaluates this condition: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. Which DevOps principle BEST explains the underlying weakness?
- A user-assigned managed identity can preserve identity lifecycle independently of individual resources.
- Workflow tokens should default to read-only and be elevated only where necessary.
- Azure DevOps access levels and security groups should reflect actual job duties.
- Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
Explanation
Correct Answer
C:Azure DevOps access levels and security groups should reflect actual job duties. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect project memberships, access level, team role and pipeline permissions. An appropriate controlled response is: Use suitable Stakeholder access and restrict code/pipeline administration.
Incorrect Answers
A:A user-assigned managed identity can preserve identity lifecycle independently of individual resources. This would address a different situation, such as: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. In the present case, the most directly relevant principle is: Azure DevOps access levels and security groups should reflect actual job duties. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.
B:Workflow tokens should default to read-only and be elevated only where necessary. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant principle is: Azure DevOps access levels and security groups should reflect actual job duties. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.
D:Federated workload identity can provide scoped short-lived Azure access without stored shared secrets. This would address a different situation, such as: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. In the present case, the most directly relevant principle is: Azure DevOps access levels and security groups should reflect actual job duties. The crucial distinction is: Azure DevOps access levels and security groups should reflect actual job duties.
Question 942
A Microsoft DevOps team is addressing: A security vulnerability needs same-day correction but the organization’s normal three-week release train blocks all fixes. Which TWO complementary actions should be taken? Select TWO answers.
- Use slot-sticky settings and suppress staging triggers until explicitly authorized.
- Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers.
- Inspect incident severity, release branch plan, mandatory checks and approver availability.
- Define a limited hotfix workflow with priority testing, accountable approval and later backport.
- Set appropriate maxUnavailable/maxSurge and validate readiness during rollout.
Explanation
Correct Answers
C:Inspect incident severity, release branch plan, mandatory checks and approver availability. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Define a limited hotfix workflow with priority testing, accountable approval and later backport. Together they address: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
D:Define a limited hotfix workflow with priority testing, accountable approval and later backport. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect incident severity, release branch plan, mandatory checks and approver availability. Together they address: A governed hotfix path can accelerate release while retaining minimum essential quality and traceability.
Incorrect Answers
A:Use slot-sticky settings and suppress staging triggers until explicitly authorized. This concerns a different DevOps situation: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. This case instead requires both a targeted investigation (Inspect incident severity, release branch plan, mandatory checks and approver availability.) and a controlled change (Define a limited hotfix workflow with priority testing, accountable approval and later backport.).
B:Inspect ingress traffic splitting, pod health, business error metrics and rollback triggers. This concerns a different DevOps situation: A new AKS container image may affect payments, but the team wants to limit customer exposure during rollout. This case instead requires both a targeted investigation (Inspect incident severity, release branch plan, mandatory checks and approver availability.) and a controlled change (Define a limited hotfix workflow with priority testing, accountable approval and later backport.).
E:Set appropriate maxUnavailable/maxSurge and validate readiness during rollout. This concerns a different DevOps situation: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. This case instead requires both a targeted investigation (Inspect incident severity, release branch plan, mandatory checks and approver availability.) and a controlled change (Define a limited hotfix workflow with priority testing, accountable approval and later backport.).
Question 943
Before changing the pipeline or service, engineers find: A container image with a known critical vulnerability passes all unit tests and is promoted to production. Which evidence should the engineer inspect FIRST?
- Review load profile, Azure Load Testing results, request percentiles and capacity metrics.
- Review prior performance runs, cost metrics, current profile and thresholds.
- Review image scan findings, severity exceptions, release checks and provenance.
- Inspect issue severity, gate criteria, exception owners and evidence attachments.
Explanation
Correct Answer
C:Review image scan findings, severity exceptions, release checks and provenance. This directly checks the uncertain behavior or control before changing production. Security policy gates should prevent release of unapproved critical vulnerabilities. The resulting targeted action is: Add a risk-based container vulnerability scan gate before deployment approval.
Incorrect Answers
A:Review load profile, Azure Load Testing results, request percentiles and capacity metrics. This would address a different situation, such as: An API passes functional tests for one user but violates latency objectives under 1,000 concurrent clients. In the present case, the most directly relevant evidence is: Review image scan findings, severity exceptions, release checks and provenance. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
B:Review prior performance runs, cost metrics, current profile and thresholds. This would address a different situation, such as: An API's new release increases CPU costs by 60%, but the load test reports green because no baseline exists. In the present case, the most directly relevant evidence is: Review image scan findings, severity exceptions, release checks and provenance. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
D:Inspect issue severity, gate criteria, exception owners and evidence attachments. This would address a different situation, such as: A deployment receives approval even when a required penetration-test issue remains unresolved and unaccepted. In the present case, the most directly relevant evidence is: Review image scan findings, severity exceptions, release checks and provenance. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
Question 944
The DevOps team must resolve this situation: An Azure DevOps pipeline's Azure Resource Manager service connection fails each quarter when its client secret expires. Which engineering action is MOST appropriate?
- Create a controlled matrix over required operating systems and runtime versions.
- Migrate the service connection to supported workload identity federation with scoped access.
- Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs.
- Configure approved GitHub connection permissions and required PR build validation.
Explanation
Correct Answer
B:Migrate the service connection to supported workload identity federation with scoped access. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A test pipeline deploys after the old secret is revoked and stays least-privileged. Azure service connections can use workload identity federation instead of expiring shared secrets.
Incorrect Answers
A:Create a controlled matrix over required operating systems and runtime versions. This would address a different situation, such as: A cross-platform CLI is built only on Windows and fails later when customers run it on Linux. In the present case, the most directly relevant engineering action is: Migrate the service connection to supported workload identity federation with scoped access. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.
C:Restrict runner access to trusted workflows and use ephemeral isolated runners for sensitive jobs. This would address a different situation, such as: A GitHub self-hosted runner accepts workflows from untrusted forks and shares its workspace with production credentials. In the present case, the most directly relevant engineering action is: Migrate the service connection to supported workload identity federation with scoped access. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.
D:Configure approved GitHub connection permissions and required PR build validation. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant engineering action is: Migrate the service connection to supported workload identity federation with scoped access. The crucial distinction is: Azure service connections can use workload identity federation instead of expiring shared secrets.
Question 945
The DevOps team must resolve this situation: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. Which engineering action is MOST appropriate?
- Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.
- Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access.
- Promote and deploy verified image digests with approved version labels.
- Use unique versioned paths and verify digest before deployment.
Explanation
Correct Answer
C:Promote and deploy verified image digests with approved version labels. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A historic production release resolves to its original image content. Release images should be identified by immutable digests or protected version tags.
Incorrect Answers
A:Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access. This would address a different situation, such as: A.NET service pulls internal NuGet libraries from a developer laptop because no shared feed exists. In the present case, the most directly relevant engineering action is: Promote and deploy verified image digests with approved version labels. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
B:Publish the CLI as a versioned Azure Artifacts Universal Package with controlled access. This would address a different situation, such as: An organization distributes a proprietary CLI as email attachments so engineering teams run inconsistent versions. In the present case, the most directly relevant engineering action is: Promote and deploy verified image digests with approved version labels. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
D:Use unique versioned paths and verify digest before deployment. This would address a different situation, such as: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. In the present case, the most directly relevant engineering action is: Promote and deploy verified image digests with approved version labels. The crucial distinction is: Release images should be identified by immutable digests or protected version tags.
Question 946
Before changing the pipeline or service, engineers find: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. Which evidence should the engineer inspect FIRST?
- Compare project version ranges, lockfiles, feed updates and restore output.
- Inspect source run IDs, artifact digests, release manifests and download task inputs.
- Inspect dependency resolution reports, advisory scope, wheel metadata and test outcomes.
- Inspect feed view membership, promotion permissions, consumer package sources and versions.
Explanation
Correct Answer
B:Inspect source run IDs, artifact digests, release manifests and download task inputs. This directly checks the uncertain behavior or control before changing production. Artifact promotion must bind deployment to the exact tested build. The resulting targeted action is: Pin the release to the verified pipeline run and immutable artifact identifier.
Incorrect Answers
A:Compare project version ranges, lockfiles, feed updates and restore output. This would address a different situation, such as: The same Git commit restores different NuGet package versions one week apart and intermittently fails tests. In the present case, the most directly relevant evidence is: Inspect source run IDs, artifact digests, release manifests and download task inputs. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.
C:Inspect dependency resolution reports, advisory scope, wheel metadata and test outcomes. This would address a different situation, such as: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. In the present case, the most directly relevant evidence is: Inspect source run IDs, artifact digests, release manifests and download task inputs. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.
D:Inspect feed view membership, promotion permissions, consumer package sources and versions. This would address a different situation, such as: A library's prerelease build appears in the same feed view consumed by production services and breaks compatibility. In the present case, the most directly relevant evidence is: Inspect source run IDs, artifact digests, release manifests and download task inputs. The crucial distinction is: Artifact promotion must bind deployment to the exact tested build.
Question 947
An Azure DevOps engineering team evaluates this condition: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. Which DevOps principle BEST explains the underlying weakness?
- Feature flag control separates deployment from governed feature activation.
- Deployments should reference the exact verified image digest or protected immutable tag.
- Rolling update policies should preserve minimum ready capacity during replacement.
- Slot deployment must isolate environment-specific connection and trigger settings.
Explanation
Correct Answer
D:Slot deployment must isolate environment-specific connection and trigger settings. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect slot settings, storage connection strings, function enablement and queue ownership. An appropriate controlled response is: Use slot-sticky settings and suppress staging triggers until explicitly authorized.
Incorrect Answers
A:Feature flag control separates deployment from governed feature activation. This would address a different situation, such as: A half-finished payment feature accidentally activates immediately when its code merges into main. In the present case, the most directly relevant principle is: Slot deployment must isolate environment-specific connection and trigger settings. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.
B:Deployments should reference the exact verified image digest or protected immutable tag. This would address a different situation, such as: A release manifest references an ACR latest tag that was replaced after QA approval. In the present case, the most directly relevant principle is: Slot deployment must isolate environment-specific connection and trigger settings. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.
C:Rolling update policies should preserve minimum ready capacity during replacement. This would address a different situation, such as: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. In the present case, the most directly relevant principle is: Slot deployment must isolate environment-specific connection and trigger settings. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.
Question 948
Before changing the pipeline or service, engineers find: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. Which evidence should the engineer inspect FIRST?
- Compare application failures, deployment annotations, version IDs and request telemetry.
- Inspect sign-in records, principal IDs, resource IDs, times and failure causes.
- Inspect disk queue/latency, CPU utilization, memory pressure and workload profile.
- Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior.
Explanation
Correct Answer
D:Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior. This directly checks the uncertain behavior or control before changing production. Missing data must not be interpreted as proof of a healthy resource. The resulting targeted action is: Create a missing-heartbeat query or alert with appropriate response ownership.
Incorrect Answers
A:Compare application failures, deployment annotations, version IDs and request telemetry. This would address a different situation, such as: A new release increases HTTP 500s, but the team cannot match failures to deployment timestamps. In the present case, the most directly relevant evidence is: Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.
B:Inspect sign-in records, principal IDs, resource IDs, times and failure causes. This would address a different situation, such as: Azure resource logs show unusual production service principal sign-ins, but a dashboard aggregates all identities together. In the present case, the most directly relevant evidence is: Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.
C:Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. This would address a different situation, such as: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. In the present case, the most directly relevant evidence is: Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior. The crucial distinction is: Missing data must not be interpreted as proof of a healthy resource.
Question 949
The DevOps team must resolve this situation: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. Which engineering action is MOST appropriate?
- Run Bicep validation and reviewed security rules with blocking policy for critical findings.
- Provision short-lived sandbox environments through approved IaC with automatic expiration.
- Use deterministic names and scope-aware existing resource references.
- Pass verified immutable image identifiers through a controlled IaC deployment interface.
Explanation
Correct Answer
C:Use deterministic names and scope-aware existing resource references. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: Running the same deployment twice produces no duplicate workspaces. Declarative deployments should converge to consistent named resources across repeated runs.
Incorrect Answers
A:Run Bicep validation and reviewed security rules with blocking policy for critical findings. This would address a different situation, such as: A Bicep pipeline deploys wildcard role assignments despite a known rule requiring narrowly scoped access. In the present case, the most directly relevant engineering action is: Use deterministic names and scope-aware existing resource references. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
B:Provision short-lived sandbox environments through approved IaC with automatic expiration. This would address a different situation, such as: Engineers create temporary load-test environments manually but never remove costly public IP addresses. In the present case, the most directly relevant engineering action is: Use deterministic names and scope-aware existing resource references. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
D:Pass verified immutable image identifiers through a controlled IaC deployment interface. This would address a different situation, such as: Application images are deployed manually after infra provisioning and the deployed image tag is not recorded in Bicep or the release pipeline. In the present case, the most directly relevant engineering action is: Use deterministic names and scope-aware existing resource references. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
Question 950
The DevOps team must resolve this situation: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. Which engineering action is MOST appropriate?
- Optimize test partitions and concurrency to fit approved parallel job capacity.
- Expand path filters to cover the service and relevant shared library changes.
- Define explicit stage dependencies and artifact handoffs in the YAML pipeline.
- Move common steps into approved reusable templates with pinned or governed references.
Explanation
Correct Answer
B:Expand path filters to cover the service and relevant shared library changes. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A common authentication library change runs the affected service's tests. Path filters must include shared dependencies required by the target service.
Incorrect Answers
A:Optimize test partitions and concurrency to fit approved parallel job capacity. This would address a different situation, such as: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. In the present case, the most directly relevant engineering action is: Expand path filters to cover the service and relevant shared library changes. The crucial distinction is: Path filters must include shared dependencies required by the target service.
C:Define explicit stage dependencies and artifact handoffs in the YAML pipeline. This would address a different situation, such as: A deployment stage starts before the packaging stage publishes an artifact because stages are configured independently. In the present case, the most directly relevant engineering action is: Expand path filters to cover the service and relevant shared library changes. The crucial distinction is: Path filters must include shared dependencies required by the target service.
D:Move common steps into approved reusable templates with pinned or governed references. This would address a different situation, such as: Teams each copy a deployment YAML template and security fixes reach only some repositories. In the present case, the most directly relevant engineering action is: Expand path filters to cover the service and relevant shared library changes. The crucial distinction is: Path filters must include shared dependencies required by the target service.