Microsoft AZ-400 Practice Test 56
Question 550
The DevOps team must resolve this situation: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. Which engineering action is MOST appropriate?
- Use reviewed package promotion into stable feed views before production consumption.
- Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.
- Pin the release to the verified pipeline run and immutable artifact identifier.
- Use unique versioned paths and verify digest before deployment.
Explanation
Correct Answer
D:Use unique versioned paths and verify digest before deployment. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A replaced object fails the manifest digest check and cannot silently deploy. Artifact integrity requires immutable identity and reliable build-to-release linkage.
Incorrect Answers
A:Use reviewed package promotion into stable feed views before production consumption. 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 engineering action is: Use unique versioned paths and verify digest before deployment. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
B: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: Use unique versioned paths and verify digest before deployment. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
C:Pin the release to the verified pipeline run and immutable artifact identifier. This would address a different situation, such as: A release pipeline downloads the latest build artifact by name instead of the approved artifact from staging. In the present case, the most directly relevant engineering action is: Use unique versioned paths and verify digest before deployment. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
Question 551
An Azure DevOps engineering team evaluates this condition: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. Which DevOps principle BEST explains the underlying weakness?
- Desired state governance needs verified registration, pull frequency and compliance feedback.
- Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
- Policy effects differ between reporting and preventive enforcement.
- Self-service environment catalogs can standardize provisioning and lifecycle governance.
Explanation
Correct Answer
C:Policy effects differ between reporting and preventive enforcement. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect policy assignment parameters, effect, scope and compliance states. An appropriate controlled response is: Use a reviewed Deny policy where prevention is required and remediate existing noncompliance separately.
Incorrect Answers
A:Desired state governance needs verified registration, pull frequency and compliance feedback. This would address a different situation, such as: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. In the present case, the most directly relevant principle is: Policy effects differ between reporting and preventive enforcement. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.
B:Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs. This would address a different situation, such as: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. In the present case, the most directly relevant principle is: Policy effects differ between reporting and preventive enforcement. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.
D:Self-service environment catalogs can standardize provisioning and lifecycle governance. This would address a different situation, such as: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. In the present case, the most directly relevant principle is: Policy effects differ between reporting and preventive enforcement. The crucial distinction is: Policy effects differ between reporting and preventive enforcement.
Question 552
Before changing the pipeline or service, engineers find: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. Which evidence should the engineer inspect FIRST?
- Inspect Helm release history, rendered manifests, readiness probes and errors.
- Inspect slot configuration, sticky settings, warmup endpoints and swap history.
- Inspect slot settings, storage connection strings, function enablement and queue ownership.
- Review artifact retention, release manifest, service health signals and restoration test.
Explanation
Correct Answer
C:Inspect slot settings, storage connection strings, function enablement and queue ownership. This directly checks the uncertain behavior or control before changing production. Slot deployment must isolate environment-specific connection and trigger settings. The resulting targeted action is: Use slot-sticky settings and suppress staging triggers until explicitly authorized.
Incorrect Answers
A:Inspect Helm release history, rendered manifests, readiness probes and errors. This would address a different situation, such as: An AKS Helm upgrade fails after rendering a misconfigured resource, leaving pods partially updated. In the present case, the most directly relevant evidence is: Inspect slot settings, storage connection strings, function enablement and queue ownership. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.
B:Inspect slot configuration, sticky settings, warmup endpoints and swap history. This would address a different situation, such as: A web application must deploy without interruption, but direct production updates restart every active instance. In the present case, the most directly relevant evidence is: Inspect slot settings, storage connection strings, function enablement and queue ownership. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.
D:Review artifact retention, release manifest, service health signals and restoration test. This would address a different situation, such as: A release detects elevated errors but cannot roll back because the prior verified package was deleted. In the present case, the most directly relevant evidence is: Inspect slot settings, storage connection strings, function enablement and queue ownership. The crucial distinction is: Slot deployment must isolate environment-specific connection and trigger settings.
Question 553
Before changing the pipeline or service, engineers find: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. Which evidence should the engineer inspect FIRST?
- Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior.
- Compare application failures, deployment annotations, version IDs and request telemetry.
- Inspect customDimensions, timestamp, role name and exception records.
- Inspect disk queue/latency, CPU utilization, memory pressure and workload profile.
Explanation
Correct Answer
C:Inspect customDimensions, timestamp, role name and exception records. This directly checks the uncertain behavior or control before changing production. KQL grouping by revision and time can separate release regressions from background failures. The resulting targeted action is: Use a Kusto summarize query grouped by deployment version and appropriate time bins.
Incorrect Answers
A:Inspect Heartbeat records, ingestion timestamps, agent status and alert behavior. This would address a different situation, such as: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. In the present case, the most directly relevant evidence is: Inspect customDimensions, timestamp, role name and exception records. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.
B: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 customDimensions, timestamp, role name and exception records. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.
D: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 customDimensions, timestamp, role name and exception records. The crucial distinction is: KQL grouping by revision and time can separate release regressions from background failures.
Question 554
An Azure DevOps engineering team evaluates this condition: An engineering organization uses long-lived feature branches, and its hotfixes regularly miss previously merged changes. Which DevOps principle BEST explains the underlying weakness?
- Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
- Release summaries should be derived from verified source and work-item changes.
- Defect traceability should connect incidents to code, test coverage and prevention work.
- Traceability requires explicit relationships among work items, source revisions, builds and deployments.
Explanation
Correct Answer
A:Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Compare branch ages, pull request histories, work-item links and release tags. An appropriate controlled response is: Adopt protected mainline GitHub Flow with small reviewed changes and linked work items.
Incorrect Answers
B:Release summaries should be derived from verified source and work-item changes. This would address a different situation, such as: Release notes are composed from memory and routinely omit merged security improvements. In the present case, the most directly relevant principle is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
C:Defect traceability should connect incidents to code, test coverage and prevention work. This would address a different situation, such as: Several production defects were fixed, but QA cannot determine which automated test gaps allowed them to escape. In the present case, the most directly relevant principle is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
D:Traceability requires explicit relationships among work items, source revisions, builds and deployments. This would address a different situation, such as: Azure Boards shows completed user stories, but there is no way to identify the commits and deployments delivering each story. In the present case, the most directly relevant principle is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable. The crucial distinction is: Short-lived branches and reviewed pull requests reduce integration drift and make changes traceable.
Question 555
An engineering design review identifies: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. Which shortcut should the team MOST specifically avoid for this case?
- Set system.debug true permanently and print all environment variables.
- Download the newest artifact across all branches and rely on luck.
- Apply a one-day delete policy to every production release record.
- Remove the classic pipeline before capturing its dependencies and release history.
Explanation
Correct Answer
B:Download the newest artifact across all branches and rely on luck. This shortcut directly undermines the stated control or workflow. A safer action is: Pin or govern the consumed artifact to the approved pipeline run and branch. Explanation: Pipeline resource references should bind to intended verified source and build run.
Incorrect Answers
A:Set system.debug true permanently and print all environment variables. This would address a different situation, such as: Verbose diagnostic logging starts printing deployment tokens after a new task version update. In the present case, the most directly relevant unsafe shortcut is: Download the newest artifact across all branches and rely on luck. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
C:Apply a one-day delete policy to every production release record. This would address a different situation, such as: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. In the present case, the most directly relevant unsafe shortcut is: Download the newest artifact across all branches and rely on luck. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
D:Remove the classic pipeline before capturing its dependencies and release history. This would address a different situation, such as: A legacy classic Azure Release pipeline hides deployment steps in the UI and new teams cannot peer-review changes. In the present case, the most directly relevant unsafe shortcut is: Download the newest artifact across all branches and rely on luck. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
Question 556
The DevOps team must resolve this situation: AKS pods restart frequently but the team captures only the last running pod's console output. Which engineering action is MOST appropriate?
- Configure supported VM Insights or guest-memory collection and meaningful alerts.
- Enable supported AKS container telemetry with resource labels and actionable alerts.
- Instrument supported Application Insights distributed tracing with context propagation.
- Associate the approved data collection rule and validate required log flow to the workspace.
Explanation
Correct Answer
B:Enable supported AKS container telemetry with resource labels and actionable alerts. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A terminated pod's prior error and restart reason remain searchable. Container observability should preserve workload logs and restart context centrally.
Incorrect Answers
A:Configure supported VM Insights or guest-memory collection and meaningful alerts. This would address a different situation, such as: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. In the present case, the most directly relevant engineering action is: Enable supported AKS container telemetry with resource labels and actionable alerts. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.
C:Instrument supported Application Insights distributed tracing with context propagation. This would address a different situation, such as: A shopping application logs HTTP failures but does not show which downstream payment call caused the response delay. In the present case, the most directly relevant engineering action is: Enable supported AKS container telemetry with resource labels and actionable alerts. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.
D:Associate the approved data collection rule and validate required log flow to the workspace. This would address a different situation, such as: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. In the present case, the most directly relevant engineering action is: Enable supported AKS container telemetry with resource labels and actionable alerts. The crucial distinction is: Container observability should preserve workload logs and restart context centrally.
Question 557
An Azure DevOps engineering team evaluates this condition: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. Which DevOps principle BEST explains the underlying weakness?
- Declarative deployments should converge to consistent named resources across repeated runs.
- Guest desired-state policy should be measurable and enforceable across managed VMs.
- Ephemeral environments need automated lifecycle, cost and access controls.
- Policy effects differ between reporting and preventive enforcement.
Explanation
Correct Answer
A:Declarative deployments should converge to consistent named resources across repeated runs. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect name generation, deployment history, actual resources and outputs. An appropriate controlled response is: Use deterministic names and scope-aware existing resource references.
Incorrect Answers
B:Guest desired-state policy should be measurable and enforceable across managed VMs. This would address a different situation, such as: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. In the present case, the most directly relevant principle is: Declarative deployments should converge to consistent named resources across repeated runs. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
C:Ephemeral environments need automated lifecycle, cost and access controls. 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 principle is: Declarative deployments should converge to consistent named resources across repeated runs. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
D:Policy effects differ between reporting and preventive enforcement. This would address a different situation, such as: A platform team thinks an Azure Policy Audit effect blocks deployment of unencrypted storage, but noncompliant accounts continue being created. In the present case, the most directly relevant principle is: Declarative deployments should converge to consistent named resources across repeated runs. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
Question 558
A Microsoft DevOps team is addressing: A production release references an unversioned shared secret and breaks when a different team rotates it mid-deployment. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect Key Vault references, version transitions, rotation timing and runtime caches.
- Use governed secret reference/rotation patterns with staged compatibility testing.
- Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.
- Retain a protected previous release and automate monitored rollback upon failure.
- Inspect slot configuration, sticky settings, warmup endpoints and swap history.
Explanation
Correct Answers
A:Inspect Key Vault references, version transitions, rotation timing and runtime caches. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use governed secret reference/rotation patterns with staged compatibility testing. Together they address: Secret deployment should coordinate version lifecycle and client refresh behavior.
B:Use governed secret reference/rotation patterns with staged compatibility testing. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Key Vault references, version transitions, rotation timing and runtime caches. Together they address: Secret deployment should coordinate version lifecycle and client refresh behavior.
Incorrect Answers
C:Isolate the tested change and instrument comparable outcome metrics across randomized cohorts. This concerns a different DevOps situation: Two user interface variants are shown, but the team changes both pricing logic and checkout latency simultaneously and cannot attribute outcomes. This case instead requires both a targeted investigation (Inspect Key Vault references, version transitions, rotation timing and runtime caches.) and a controlled change (Use governed secret reference/rotation patterns with staged compatibility testing.).
D:Retain a protected previous release and automate monitored rollback upon failure. This concerns a different DevOps situation: A release detects elevated errors but cannot roll back because the prior verified package was deleted. This case instead requires both a targeted investigation (Inspect Key Vault references, version transitions, rotation timing and runtime caches.) and a controlled change (Use governed secret reference/rotation patterns with staged compatibility testing.).
E:Inspect slot configuration, sticky settings, warmup endpoints and swap history. This concerns a different DevOps situation: A web application must deploy without interruption, but direct production updates restart every active instance. This case instead requires both a targeted investigation (Inspect Key Vault references, version transitions, rotation timing and runtime caches.) and a controlled change (Use governed secret reference/rotation patterns with staged compatibility testing.).
Question 559
An Azure DevOps engineering team evaluates this condition: Teams use dozens of release branches with ambiguous names, and automation often deploys the wrong branch. Which DevOps principle BEST explains the underlying weakness?
- History rewriting on shared branches requires explicit governance to protect provenance.
- Required checks must apply to the head commit actually being merged.
- Traceability after squash merges needs durable pull request and resulting commit identifiers.
- Branch conventions and immutable release references should uniquely identify deployable versions.
Explanation
Correct Answer
D:Branch conventions and immutable release references should uniquely identify deployable versions. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Compare branch naming, workflow filters, release tags and production deployment records. An appropriate controlled response is: Define clear branch purposes and deploy from approved immutable tagged or hashed revisions.
Incorrect Answers
A:History rewriting on shared branches requires explicit governance to protect provenance. This would address a different situation, such as: A maintainer rebases a shared release branch and force pushes, invalidating teammates' commit references. In the present case, the most directly relevant principle is: Branch conventions and immutable release references should uniquely identify deployable versions. The crucial distinction is: Branch conventions and immutable release references should uniquely identify deployable versions.
B:Required checks must apply to the head commit actually being merged. This would address a different situation, such as: A pull request passes security tests, then receives new commits but can merge without rerunning required checks. In the present case, the most directly relevant principle is: Branch conventions and immutable release references should uniquely identify deployable versions. The crucial distinction is: Branch conventions and immutable release references should uniquely identify deployable versions.
C:Traceability after squash merges needs durable pull request and resulting commit identifiers. This would address a different situation, such as: An audit team cannot associate production features with reviewed pull requests after squash merging because release metadata records only original feature SHAs. In the present case, the most directly relevant principle is: Branch conventions and immutable release references should uniquely identify deployable versions. The crucial distinction is: Branch conventions and immutable release references should uniquely identify deployable versions.
Question 560
An Azure DevOps engineering team evaluates this condition: A shared variable group contains production connection strings, and every development pipeline can read them. Which DevOps principle BEST explains the underlying weakness?
- Shared templates should be centrally governed and versioned for compatible consumers.
- Matrix job strategies can validate supported platforms from one pipeline definition.
- Path filters must include shared dependencies required by the target service.
- Variable groups must have environment-specific authorization and secret access controls.
Explanation
Correct Answer
D:Variable groups must have environment-specific authorization and secret access controls. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect library permissions, pipeline authorization, variable source and consumer identities. An appropriate controlled response is: Separate production variables and restrict group use to approved production pipelines.
Incorrect Answers
A:Shared templates should be centrally governed and versioned for compatible consumers. 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 principle is: Variable groups must have environment-specific authorization and secret access controls. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.
B:Matrix job strategies can validate supported platforms from one pipeline definition. 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 principle is: Variable groups must have environment-specific authorization and secret access controls. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.
C:Path filters must include shared dependencies required by the target service. This would address a different situation, such as: A monorepo pipeline skips tests for a common authentication library because its paths filter only includes one service folder. In the present case, the most directly relevant principle is: Variable groups must have environment-specific authorization and secret access controls. The crucial distinction is: Variable groups must have environment-specific authorization and secret access controls.