Microsoft AZ-400 Practice Test 35
Question 340
The DevOps team must resolve this situation: A repository wiki describes a build script that was removed six months ago and breaks onboarding. Which engineering action is MOST appropriate?
- Keep technical runbooks alongside source changes with reviewed documentation checks.
- Route deployment and failure events to the approved Microsoft Teams operations channel.
- Store decisions in a protected repository with named reviewers and link them to implementation work.
- Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes.
Explanation
Correct Answer
A:Keep technical runbooks alongside source changes with reviewed documentation checks. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A fresh contributor follows the current documented build without obsolete steps. Documentation should be versioned with the workflow it explains and validated during change.
Incorrect Answers
B:Route deployment and failure events to the approved Microsoft Teams operations channel. This would address a different situation, such as: Critical production deployment failures send only email to an unattended shared mailbox. In the present case, the most directly relevant engineering action is: Keep technical runbooks alongside source changes with reviewed documentation checks. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
C:Store decisions in a protected repository with named reviewers and link them to implementation work. This would address a different situation, such as: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. In the present case, the most directly relevant engineering action is: Keep technical runbooks alongside source changes with reviewed documentation checks. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
D:Maintain a reviewed Mermaid diagram generated or updated alongside pipeline changes. This would address a different situation, such as: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. In the present case, the most directly relevant engineering action is: Keep technical runbooks alongside source changes with reviewed documentation checks. The crucial distinction is: Documentation should be versioned with the workflow it explains and validated during change.
Question 341
After implementing the change, the team verifies: A deployment downloads a private configuration file from a public blob URL before replacing placeholders. Which result would BEST demonstrate that the issue is corrected?
- A rejected environment approval prevents the run from obtaining production credentials.
- A rotation rehearsal preserves application connectivity without exposing the old secret.
- An unauthorized caller cannot download the deployment configuration and temp files are removed.
- Untrusted branch tokens cannot acquire production credentials.
Explanation
Correct Answer
C:An unauthorized caller cannot download the deployment configuration and temp files are removed. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Use restricted secure file or private storage access with controlled cleanup. Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.
Incorrect Answers
A:A rejected environment approval prevents the run from obtaining production credentials. 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 verification is: An unauthorized caller cannot download the deployment configuration and temp files are removed. The crucial distinction is: Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.
B:A rotation rehearsal preserves application connectivity without exposing the old secret. This would address a different situation, such as: An application release references a database secret version that was deleted during automatic rotation, causing downtime. In the present case, the most directly relevant verification is: An unauthorized caller cannot download the deployment configuration and temp files are removed. The crucial distinction is: Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.
D:Untrusted branch tokens cannot acquire production credentials. 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 verification is: An unauthorized caller cannot download the deployment configuration and temp files are removed. The crucial distinction is: Sensitive deployment files should use authenticated encrypted storage and tightly scoped access.
Question 342
After implementing the change, the team verifies: An organization deletes pipeline logs within a day even though deployment approvals must be auditable for a year. Which result would BEST demonstrate that the issue is corrected?
- Changing the dependency lockfile triggers a new compatible cache.
- A historical release can be reconstructed within the mandated retention period.
- The same full test suite finishes faster without skipped checks.
- A representative flaky test appears as a reliability issue despite eventual job success.
Explanation
Correct Answer
B:A historical release can be reconstructed within the mandated retention period. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure differentiated retention for required pipelines and audit artifacts. Retention policy should cover compliance evidence, release logs and artifact lifecycle.
Incorrect Answers
A:Changing the dependency lockfile triggers a new compatible cache. This would address a different situation, such as: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. In the present case, the most directly relevant verification is: A historical release can be reconstructed within the mandated retention period. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
C:The same full test suite finishes faster without skipped checks. This would address a different situation, such as: A large build spends most of its time serially running three independent test suites. In the present case, the most directly relevant verification is: A historical release can be reconstructed within the mandated retention period. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
D:A representative flaky test appears as a reliability issue despite eventual job success. This would address a different situation, such as: Pipeline duration grows because a flaky test is retried eight times but the dashboard still shows every build as green. In the present case, the most directly relevant verification is: A historical release can be reconstructed within the mandated retention period. The crucial distinction is: Retention policy should cover compliance evidence, release logs and artifact lifecycle.
Question 343
After implementing the change, the team verifies: An AKS update removes every API pod simultaneously because maxUnavailable equals the full replica count. Which result would BEST demonstrate that the issue is corrected?
- The feature remains off for ordinary users until a governed activation occurs.
- A sample rollout maintains required ready endpoints with no response interruption.
- A simulated error reverts to the exact previously healthy artifact.
- A simulated new release serves traffic without unplanned outage and rolls back safely.
Explanation
Correct Answer
B:A sample rollout maintains required ready endpoints with no response interruption. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Set appropriate maxUnavailable/maxSurge and validate readiness during rollout. Rolling update policies should preserve minimum ready capacity during replacement.
Incorrect Answers
A:The feature remains off for ordinary users until a governed activation occurs. 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 verification is: A sample rollout maintains required ready endpoints with no response interruption. The crucial distinction is: Rolling update policies should preserve minimum ready capacity during replacement.
C:A simulated error reverts to the exact previously healthy artifact. 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 verification is: A sample rollout maintains required ready endpoints with no response interruption. The crucial distinction is: Rolling update policies should preserve minimum ready capacity during replacement.
D:A simulated new release serves traffic without unplanned outage and rolls back safely. 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 verification is: A sample rollout maintains required ready endpoints with no response interruption. The crucial distinction is: Rolling update policies should preserve minimum ready capacity during replacement.
Question 344
Before changing the pipeline or service, engineers find: A deployment job fails but the failure is not associated with the GitHub issue that requested the release. Which evidence should the engineer inspect FIRST?
- Inspect pull request check states, required reviewers, labels and notification settings.
- Compare release tags, merged pull requests, linked work items and note generation rules.
- Compare support messages, GitHub Issues labels, assignees and issue closure history.
- Review workflow run identities, issue references, failure events and notification rules.
Explanation
Correct Answer
D:Review workflow run identities, issue references, failure events and notification rules. This directly checks the uncertain behavior or control before changing production. Closed-loop delivery needs automated status updates connected to the requesting work. The resulting targeted action is: Update related GitHub Issues from protected workflow events with release status and error context.
Incorrect Answers
A:Inspect pull request check states, required reviewers, labels and notification settings. This would address a different situation, such as: A team cannot tell when a pull request is waiting for security approval versus failed tests. In the present case, the most directly relevant evidence is: Review workflow run identities, issue references, failure events and notification rules. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.
B:Compare release tags, merged pull requests, linked work items and note generation rules. 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 evidence is: Review workflow run identities, issue references, failure events and notification rules. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.
C:Compare support messages, GitHub Issues labels, assignees and issue closure history. This would address a different situation, such as: Customer-reported bugs arrive in chat messages and are never consistently recorded for the development team. In the present case, the most directly relevant evidence is: Review workflow run identities, issue references, failure events and notification rules. The crucial distinction is: Closed-loop delivery needs automated status updates connected to the requesting work.
Question 345
After implementing the change, the team verifies: A pipeline takes 50 minutes, but dashboard owners cannot distinguish runner queue delays from actual build execution. Which result would BEST demonstrate that the issue is corrected?
- A traced sample change reconciles to dashboard start and end timestamps.
- A test job delayed by runner scarcity shows queue time rather than slow compilation.
- The report states response coverage and captures previously omitted contributor feedback.
- Sample completed stories show realistic cycle times that match actual engineering work.
Explanation
Correct Answer
B:A test job delayed by runner scarcity shows queue time rather than slow compilation. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Instrument pipeline stage durations and track queue waiting separately from execution. Delivery optimization needs separate measurements for queue, execution and waiting stages.
Incorrect Answers
A:A traced sample change reconciles to dashboard start and end timestamps. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant verification is: A test job delayed by runner scarcity shows queue time rather than slow compilation. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.
C:The report states response coverage and captures previously omitted contributor feedback. This would address a different situation, such as: A team reports excellent developer experience based only on responses from its three most active maintainers. In the present case, the most directly relevant verification is: A test job delayed by runner scarcity shows queue time rather than slow compilation. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.
D:Sample completed stories show realistic cycle times that match actual engineering work. This would address a different situation, such as: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. In the present case, the most directly relevant verification is: A test job delayed by runner scarcity shows queue time rather than slow compilation. The crucial distinction is: Delivery optimization needs separate measurements for queue, execution and waiting stages.
Question 346
Before changing the pipeline or service, engineers find: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. Which evidence should the engineer inspect FIRST?
- Inspect output variables, task logs, masking controls and newly added debug flags.
- Inspect package restore sources, build manifests, feed versions and migration schedule.
- Review cache key configuration, lockfile hash, package restore logs and unexpected results.
- Review service connection mode, secret expiration, Azure RBAC and trust configuration.
Explanation
Correct Answer
D:Review service connection mode, secret expiration, Azure RBAC and trust configuration. This directly checks the uncertain behavior or control before changing production. Deployment identities should support safe rotation or federation without release downtime. The resulting targeted action is: Migrate to workload identity federation or controlled rotation with alerting.
Incorrect Answers
A:Inspect output variables, task logs, masking controls and newly added debug flags. 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 evidence is: Review service connection mode, secret expiration, Azure RBAC and trust configuration. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
B:Inspect package restore sources, build manifests, feed versions and migration schedule. This would address a different situation, such as: A package registry is scheduled for migration, but retired feeds still contain dependencies used by maintained builds. In the present case, the most directly relevant evidence is: Review service connection mode, secret expiration, Azure RBAC and trust configuration. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
C:Review cache key configuration, lockfile hash, package restore logs and unexpected results. This would address a different situation, such as: A pipeline caches packages under one global key even after lockfile changes, causing inconsistent builds. In the present case, the most directly relevant evidence is: Review service connection mode, secret expiration, Azure RBAC and trust configuration. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
Question 347
An Azure DevOps engineering team evaluates this condition: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. Which DevOps principle BEST explains the underlying weakness?
- Secrets should be supplied through protected identity and secret stores rather than committed IaC inputs.
- Desired state governance needs verified registration, pull frequency and compliance feedback.
- Infrastructure templates should codify consistent application platform controls.
- IaC builds need controlled provider requirements and lockfile provenance.
Explanation
Correct Answer
B:Desired state governance needs verified registration, pull frequency and compliance feedback. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect DSC node enrollment, configuration compilations and reporting logs. An appropriate controlled response is: Review the legacy DSC setup and plan a supported configuration management transition or remediation.
Incorrect Answers
A: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: Desired state governance needs verified registration, pull frequency and compliance feedback. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.
C:Infrastructure templates should codify consistent application platform controls. This would address a different situation, such as: Each team's pipeline provisions Azure Container Apps independently, with inconsistent health probes and identity. In the present case, the most directly relevant principle is: Desired state governance needs verified registration, pull frequency and compliance feedback. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.
D:IaC builds need controlled provider requirements and lockfile provenance. 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 principle is: Desired state governance needs verified registration, pull frequency and compliance feedback. The crucial distinction is: Desired state governance needs verified registration, pull frequency and compliance feedback.
Question 348
Before changing the pipeline or service, engineers find: A production stage sometimes downloads an artifact from a different branch due to an ambiguous pipeline resource definition. Which evidence should the engineer inspect FIRST?
- Inspect agent image announcement, demands, SDK versions and task compatibility.
- Inspect release references, retention rules, ACR manifests and recovery requirements.
- Review alert subscriptions, team ownership, failure history and escalation paths.
- Inspect pipeline resources, branch filters, artifact provenance and run IDs.
Explanation
Correct Answer
D:Inspect pipeline resources, branch filters, artifact provenance and run IDs. This directly checks the uncertain behavior or control before changing production. Pipeline resource references should bind to intended verified source and build run. The resulting targeted action is: Pin or govern the consumed artifact to the approved pipeline run and branch.
Incorrect Answers
A:Inspect agent image announcement, demands, SDK versions and task compatibility. This would address a different situation, such as: Builds fail after an Azure Pipelines hosted image update because a legacy runtime was implicitly available before. In the present case, the most directly relevant evidence is: Inspect pipeline resources, branch filters, artifact provenance and run IDs. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
B:Inspect release references, retention rules, ACR manifests and recovery requirements. 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 evidence is: Inspect pipeline resources, branch filters, artifact provenance and run IDs. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
C:Review alert subscriptions, team ownership, failure history and escalation paths. This would address a different situation, such as: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. In the present case, the most directly relevant evidence is: Inspect pipeline resources, branch filters, artifact provenance and run IDs. The crucial distinction is: Pipeline resource references should bind to intended verified source and build run.
Question 349
An engineering design review identifies: A large repository launches 100 independent test jobs though the organization owns only 10 paid parallel agent slots. Which shortcut should the team MOST specifically avoid for this case?
- Commit an unencrypted service principal password to the workflow repository.
- Assign contents:write to all third-party actions and untrusted test steps.
- Add a comment containing the word approved instead of a protected environment binding.
- Create hundreds of additional jobs without adding capacity or reducing total queue demand.
Explanation
Correct Answer
D:Create hundreds of additional jobs without adding capacity or reducing total queue demand. This shortcut directly undermines the stated control or workflow. A safer action is: Optimize test partitions and concurrency to fit approved parallel job capacity. Explanation: Pipeline parallelism should match resource quotas and job critical paths.
Incorrect Answers
A:Commit an unencrypted service principal password to the workflow repository. This would address a different situation, such as: A GitHub Actions release stores a long-lived Azure service principal password in repository secrets for every deployment. In the present case, the most directly relevant unsafe shortcut is: Create hundreds of additional jobs without adding capacity or reducing total queue demand. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
B:Assign contents:write to all third-party actions and untrusted test steps. 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 unsafe shortcut is: Create hundreds of additional jobs without adding capacity or reducing total queue demand. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
C:Add a comment containing the word approved instead of a protected environment binding. This would address a different situation, such as: A YAML pipeline references a production environment but deploys through an unprotected job that never uses the environment resource. In the present case, the most directly relevant unsafe shortcut is: Create hundreds of additional jobs without adding capacity or reducing total queue demand. The crucial distinction is: Pipeline parallelism should match resource quotas and job critical paths.
Question 350
An Azure DevOps engineering team evaluates this condition: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. Which DevOps principle BEST explains the underlying weakness?
- Blue-green rollout must preserve shared database compatibility during transition.
- Cross-service deployment order must respect compatibility and dependency contracts.
- Database deployment scripts should be repeatable or safely versioned with migration state.
- Rolling update policies should preserve minimum ready capacity during replacement.
Explanation
Correct Answer
B:Cross-service deployment order must respect compatibility and dependency contracts. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Review component versions, release dependencies, API contracts and pipeline stage graph. An appropriate controlled response is: Use backward-compatible API rollout and explicit dependent stage ordering.
Incorrect Answers
A:Blue-green rollout must preserve shared database compatibility during transition. This would address a different situation, such as: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. In the present case, the most directly relevant principle is: Cross-service deployment order must respect compatibility and dependency contracts. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.
C:Database deployment scripts should be repeatable or safely versioned with migration state. This would address a different situation, such as: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. In the present case, the most directly relevant principle is: Cross-service deployment order must respect compatibility and dependency contracts. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.
D: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: Cross-service deployment order must respect compatibility and dependency contracts. The crucial distinction is: Cross-service deployment order must respect compatibility and dependency contracts.