Microsoft AZ-400 Practice Test 38
Question 370
The DevOps team must resolve this situation: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. Which engineering action is MOST appropriate?
- Apply an approved Azure Machine Configuration baseline with compliance evaluation.
- Pin and review provider versions with a committed lockfile and CI version checks.
- Publish a versioned Bicep networking module with secure defaults and reviewed parameters.
- Review the legacy DSC setup and plan a supported configuration management transition or remediation.
Explanation
Correct Answer
A:Apply an approved Azure Machine Configuration baseline with compliance evaluation. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A newly provisioned VM reports accurate guest configuration compliance. Guest desired-state policy should be measurable and enforceable across managed VMs.
Incorrect Answers
B:Pin and review provider versions with a committed lockfile and CI version checks. This would address a different situation, such as: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. In the present case, the most directly relevant engineering action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
C:Publish a versioned Bicep networking module with secure defaults and reviewed parameters. This would address a different situation, such as: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. In the present case, the most directly relevant engineering action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
D:Review the legacy DSC setup and plan a supported configuration management transition or remediation. 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 engineering action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
Question 371
The DevOps team must resolve this situation: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. Which engineering action is MOST appropriate?
- Expand path filters to cover the service and relevant shared library changes.
- Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs.
- Limit production deployment to permitted protected refs and validated build artifacts.
- Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity.
Explanation
Correct Answer
C:Limit production deployment to permitted protected refs and validated build artifacts. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A feature-branch push cannot deploy while a reviewed mainline commit can. Pipeline triggers must enforce reviewed source ref eligibility.
Incorrect Answers
A:Expand path filters to cover the service and relevant shared library changes. 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 engineering action is: Limit production deployment to permitted protected refs and validated build artifacts. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
B:Restrict default GITHUB_TOKEN permissions and grant write scopes only to required jobs. This would address a different situation, such as: A reusable GitHub Actions workflow grants write permissions to every job although most only compile and test. In the present case, the most directly relevant engineering action is: Limit production deployment to permitted protected refs and validated build artifacts. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
D:Deploy a governed self-hosted Azure Pipelines agent with controlled network connectivity. This would address a different situation, such as: A build must reach private package infrastructure inaccessible from Microsoft-hosted agents. In the present case, the most directly relevant engineering action is: Limit production deployment to permitted protected refs and validated build artifacts. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
Question 372
The DevOps team must resolve this situation: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. Which engineering action is MOST appropriate?
- Pin the approved image digest in deployment configuration and retain rollback versions.
- Set appropriate maxUnavailable/maxSurge and validate readiness during rollout.
- Deploy the candidate to a staging slot, validate health, then perform a controlled swap.
- Use backward-compatible API rollout and explicit dependent stage ordering.
Explanation
Correct Answer
D:Use backward-compatible API rollout and explicit dependent stage ordering. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A rehearsal keeps the user journey working throughout both component deployments. Cross-service deployment order must respect compatibility and dependency contracts.
Incorrect Answers
A:Pin the approved image digest in deployment configuration and retain rollback versions. 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 engineering action is: Use backward-compatible API rollout and explicit dependent stage ordering. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.
B:Set appropriate maxUnavailable/maxSurge and validate readiness during rollout. 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 engineering action is: Use backward-compatible API rollout and explicit dependent stage ordering. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.
C:Deploy the candidate to a staging slot, validate health, then perform a controlled swap. 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 engineering action is: Use backward-compatible API rollout and explicit dependent stage ordering. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.
Question 373
The DevOps team must resolve this situation: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. Which engineering action is MOST appropriate?
- Configure environment-level approvals and checks outside untrusted YAML modification paths.
- Pin or govern the consumed artifact to the approved pipeline run and branch.
- Remove token emission and enforce safe logging with secret scanning of pipeline output.
- Introduce relevant path/branch conditions and appropriately scheduled validation.
Explanation
Correct Answer
A:Configure environment-level approvals and checks outside untrusted YAML modification paths. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An unapproved production run is blocked while an authorized approval completes. Migration must preserve policy-enforced approvals through supported protected resources.
Incorrect Answers
B:Pin or govern the consumed artifact to the approved pipeline run and branch. This would address a different situation, such as: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. In the present case, the most directly relevant engineering action is: Configure environment-level approvals and checks outside untrusted YAML modification paths. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.
C:Remove token emission and enforce safe logging with secret scanning of pipeline output. 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 engineering action is: Configure environment-level approvals and checks outside untrusted YAML modification paths. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.
D:Introduce relevant path/branch conditions and appropriately scheduled validation. This would address a different situation, such as: Hundreds of nightly builds run when source code is unchanged, consuming expensive hosted parallel minutes. In the present case, the most directly relevant engineering action is: Configure environment-level approvals and checks outside untrusted YAML modification paths. The crucial distinction is: Migration must preserve policy-enforced approvals through supported protected resources.
Question 374
An Azure DevOps engineering team evaluates this condition: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. Which DevOps principle BEST explains the underlying weakness?
- Workload identity federation reduces dependence on persistent credentials for Azure deployment.
- Cross-stage values must be explicitly published and referenced through supported output syntax.
- Matrix job strategies can validate supported platforms from one pipeline definition.
- Pipeline parallelism should match resource quotas and job critical paths.
Explanation
Correct Answer
A:Workload identity federation reduces dependence on persistent credentials for Azure deployment. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect GitHub workflow permissions, Entra federated identity credentials, scopes and token audience. An appropriate controlled response is: Configure trusted GitHub OIDC federation and least-privilege Azure roles for the deployment.
Incorrect Answers
B:Cross-stage values must be explicitly published and referenced through supported output syntax. This would address a different situation, such as: A downstream stage cannot determine the storage endpoint created by an infrastructure provisioning stage. In the present case, the most directly relevant principle is: Workload identity federation reduces dependence on persistent credentials for Azure deployment. The crucial distinction is: Workload identity federation reduces dependence on persistent credentials for Azure deployment.
C: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: Workload identity federation reduces dependence on persistent credentials for Azure deployment. The crucial distinction is: Workload identity federation reduces dependence on persistent credentials for Azure deployment.
D:Pipeline parallelism should match resource quotas and job critical paths. 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 principle is: Workload identity federation reduces dependence on persistent credentials for Azure deployment. The crucial distinction is: Workload identity federation reduces dependence on persistent credentials for Azure deployment.
Question 375
An Azure DevOps engineering team evaluates this condition: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. Which DevOps principle BEST explains the underlying weakness?
- Distributed telemetry should correlate requests and dependencies across application boundaries.
- Guest memory observability requires supported collection beyond basic host CPU metrics.
- Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
- Telemetry collection depends on correct agent, rule association and destination permissions.
Explanation
Correct Answer
B:Guest memory observability requires supported collection beyond basic host CPU metrics. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. An appropriate controlled response is: Configure supported VM Insights or guest-memory collection and meaningful alerts.
Incorrect Answers
A:Distributed telemetry should correlate requests and dependencies across application boundaries. 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 principle is: Guest memory observability requires supported collection beyond basic host CPU metrics. The crucial distinction is: Guest memory observability requires supported collection beyond basic host CPU metrics.
C:Workflow insight metrics should distinguish failed jobs, timing and relevant branches. This would address a different situation, such as: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. In the present case, the most directly relevant principle is: Guest memory observability requires supported collection beyond basic host CPU metrics. The crucial distinction is: Guest memory observability requires supported collection beyond basic host CPU metrics.
D:Telemetry collection depends on correct agent, rule association and destination permissions. 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 principle is: Guest memory observability requires supported collection beyond basic host CPU metrics. The crucial distinction is: Guest memory observability requires supported collection beyond basic host CPU metrics.
Question 376
An Azure DevOps engineering team evaluates this condition: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. Which DevOps principle BEST explains the underlying weakness?
- Retention policy should cover compliance evidence, release logs and artifact lifecycle.
- Artifact retention needs business-approved rollback and forensic windows.
- Pipeline telemetry should distinguish agent scarcity from actual code execution cost.
- Duration analysis should distinguish human wait stages and task execution bottlenecks.
Explanation
Correct Answer
A:Retention policy should cover compliance evidence, release logs and artifact lifecycle. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect retention defaults, legal requirements, approval records and storage cost. An appropriate controlled response is: Configure differentiated retention for required pipelines and audit artifacts.
Incorrect Answers
B:Artifact retention needs business-approved rollback and forensic windows. This would address a different situation, such as: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. In the present case, the most directly relevant principle is: Retention policy should cover compliance evidence, release logs and artifact lifecycle. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
C:Pipeline telemetry should distinguish agent scarcity from actual code execution cost. This would address a different situation, such as: A pipeline runs quickly on an agent but waits 70 minutes in queue due to a limited self-hosted pool. In the present case, the most directly relevant principle is: Retention policy should cover compliance evidence, release logs and artifact lifecycle. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
D:Duration analysis should distinguish human wait stages and task execution bottlenecks. This would address a different situation, such as: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. In the present case, the most directly relevant principle is: Retention policy should cover compliance evidence, release logs and artifact lifecycle. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
Question 377
After implementing the change, the team verifies: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. Which result would BEST demonstrate that the issue is corrected?
- A slow payment request appears as a correlated downstream dependency span.
- An intentionally failed deployment reaches the active on-call team with run identity.
- A simulated failed blob operation is visible despite unchanged storage capacity.
- A deliberately failing workflow raises its failure metric without counting as success.
Explanation
Correct Answer
D:A deliberately failing workflow raises its failure metric without counting as success. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure insight charts and notifications for failed and slow required workflows. Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
Incorrect Answers
A:A slow payment request appears as a correlated downstream dependency span. 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 verification is: A deliberately failing workflow raises its failure metric without counting as success. The crucial distinction is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
B:An intentionally failed deployment reaches the active on-call team with run identity. This would address a different situation, such as: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. In the present case, the most directly relevant verification is: A deliberately failing workflow raises its failure metric without counting as success. The crucial distinction is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
C:A simulated failed blob operation is visible despite unchanged storage capacity. This would address a different situation, such as: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. In the present case, the most directly relevant verification is: A deliberately failing workflow raises its failure metric without counting as success. The crucial distinction is: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
Question 378
Before changing the pipeline or service, engineers find: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. Which evidence should the engineer inspect FIRST?
- Inspect DSC node enrollment, configuration compilations and reporting logs.
- Inspect provider refresh results, plan drift and authorized manual changes.
- Inspect existing VNet templates, module interfaces, policy results and configuration drift.
- Inspect name generation, deployment history, actual resources and outputs.
Explanation
Correct Answer
D:Inspect name generation, deployment history, actual resources and outputs. This directly checks the uncertain behavior or control before changing production. Declarative deployments should converge to consistent named resources across repeated runs. The resulting targeted action is: Use deterministic names and scope-aware existing resource references.
Incorrect Answers
A:Inspect DSC node enrollment, configuration compilations and reporting logs. 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 evidence is: Inspect name generation, deployment history, actual resources and outputs. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
B:Inspect provider refresh results, plan drift and authorized manual changes. This would address a different situation, such as: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. In the present case, the most directly relevant evidence is: Inspect name generation, deployment history, actual resources and outputs. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
C:Inspect existing VNet templates, module interfaces, policy results and configuration drift. This would address a different situation, such as: Six teams manually create nearly identical VNets with inconsistent NSG defaults and missing diagnostics. In the present case, the most directly relevant evidence is: Inspect name generation, deployment history, actual resources and outputs. The crucial distinction is: Declarative deployments should converge to consistent named resources across repeated runs.
Question 379
An Azure DevOps engineering team evaluates this condition: A mobile signing certificate is embedded as Base64 directly in a public pipeline YAML file. Which DevOps principle BEST explains the underlying weakness?
- Sensitive binary signing files need protected storage and controlled access.
- Certificate deployment must match required private-key access and target service configuration.
- OIDC federation trust should restrict audience, issuer and repository/environment subject.
- Credential issuance should occur only after the protected environment gate and trust checks.
Explanation
Correct Answer
A:Sensitive binary signing files need protected storage and controlled access. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review certificate exposure, pipeline YAML, secure-file permissions and task usage. An appropriate controlled response is: Store approved signing material as an Azure Pipelines secure file with restricted authorization.
Incorrect Answers
B:Certificate deployment must match required private-key access and target service configuration. This would address a different situation, such as: An Azure service uses a TLS certificate uploaded to Key Vault, but the deployment copies only the public certificate without the private-key binding. In the present case, the most directly relevant principle is: Sensitive binary signing files need protected storage and controlled access. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.
C:OIDC federation trust should restrict audience, issuer and repository/environment subject. This would address a different situation, such as: A federated Azure identity accepts tokens from any branch in a public GitHub repository and can deploy production resources. In the present case, the most directly relevant principle is: Sensitive binary signing files need protected storage and controlled access. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.
D:Credential issuance should occur only after the protected environment gate and trust checks. This would address a different situation, such as: A GitHub environment is protected, but the deployment job obtains Azure credentials in an earlier unprotected build step. In the present case, the most directly relevant principle is: Sensitive binary signing files need protected storage and controlled access. The crucial distinction is: Sensitive binary signing files need protected storage and controlled access.
Question 380
After implementing the change, the team verifies: Blob transaction failures increase, but dashboards track only storage account capacity in bytes. Which result would BEST demonstrate that the issue is corrected?
- An intentionally failed deployment reaches the active on-call team with run identity.
- A controlled memory stress event appears in monitored guest memory signals.
- A deliberately failing workflow raises its failure metric without counting as success.
- A simulated failed blob operation is visible despite unchanged storage capacity.
Explanation
Correct Answer
D:A simulated failed blob operation is visible despite unchanged storage capacity. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure storage request/error monitoring with service-specific thresholds. Operational monitoring must include service request errors, latency and availability, not just capacity.
Incorrect Answers
A:An intentionally failed deployment reaches the active on-call team with run identity. This would address a different situation, such as: Production pipeline deployments fail overnight, but engineers notice only when checking the Azure DevOps portal the next morning. In the present case, the most directly relevant verification is: A simulated failed blob operation is visible despite unchanged storage capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.
B:A controlled memory stress event appears in monitored guest memory signals. 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 verification is: A simulated failed blob operation is visible despite unchanged storage capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.
C:A deliberately failing workflow raises its failure metric without counting as success. This would address a different situation, such as: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. In the present case, the most directly relevant verification is: A simulated failed blob operation is visible despite unchanged storage capacity. The crucial distinction is: Operational monitoring must include service request errors, latency and availability, not just capacity.