Microsoft AZ-400 Practice Test 4
Question 30
An Azure DevOps engineering team evaluates this condition: Two user interface variants are shown, but the team changes both pricing logic and checkout latency simultaneously and cannot attribute outcomes. Which DevOps principle BEST explains the underlying weakness?
- Rolling update policies should preserve minimum ready capacity during replacement.
- Rolling replacement should account for connection draining and readiness transitions.
- Slot deployment must isolate environment-specific connection and trigger settings.
- A/B evaluations require stable cohorts and measurable objective-specific differences.
Explanation
Correct Answer
D:A/B evaluations require stable cohorts and measurable objective-specific differences. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect targeting rules, conversion events, experiment durations and uncontrolled changes. An appropriate controlled response is: Isolate the tested change and instrument comparable outcome metrics across randomized cohorts.
Incorrect Answers
A: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: A/B evaluations require stable cohorts and measurable objective-specific differences. The crucial distinction is: A/B evaluations require stable cohorts and measurable objective-specific differences.
B:Rolling replacement should account for connection draining and readiness transitions. This would address a different situation, such as: A deployment removes an application instance while it has open customer sessions, causing dropped purchases. In the present case, the most directly relevant principle is: A/B evaluations require stable cohorts and measurable objective-specific differences. The crucial distinction is: A/B evaluations require stable cohorts and measurable objective-specific differences.
C:Slot deployment must isolate environment-specific connection and trigger settings. This would address a different situation, such as: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. In the present case, the most directly relevant principle is: A/B evaluations require stable cohorts and measurable objective-specific differences. The crucial distinction is: A/B evaluations require stable cohorts and measurable objective-specific differences.
Question 31
An Azure DevOps engineering team evaluates this condition: Every developer can delete the versions of a private production library that other teams depend on. Which DevOps principle BEST explains the underlying weakness?
- Private package access requires scoped workflow identity and authorized repository permissions.
- Artifact promotion must bind deployment to the exact tested build.
- Package feed roles should separate consumer, publisher and administrative permissions.
- Package views can separate promoted stable packages from unapproved candidates.
Explanation
Correct Answer
C:Package feed roles should separate consumer, publisher and administrative permissions. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect feed role assignments, delete permissions, package history and retention. An appropriate controlled response is: Grant read, publish and administration only to the appropriate separate identities.
Incorrect Answers
A:Private package access requires scoped workflow identity and authorized repository permissions. This would address a different situation, such as: A GitHub Actions workflow receives 403 when installing a private package owned by another organization repository. In the present case, the most directly relevant principle is: Package feed roles should separate consumer, publisher and administrative permissions. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
B:Artifact promotion must bind deployment to the exact tested build. 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 principle is: Package feed roles should separate consumer, publisher and administrative permissions. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
D:Package views can separate promoted stable packages from unapproved candidates. 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 principle is: Package feed roles should separate consumer, publisher and administrative permissions. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
Question 32
An Azure DevOps engineering team evaluates this condition: A deployment receives approval even when a required penetration-test issue remains unresolved and unaccepted. Which DevOps principle BEST explains the underlying weakness?
- Release gates must evaluate approved risk exceptions and mandatory security criteria.
- Code-scanning feedback should be available on proposed changes before merge.
- Security policy gates should prevent release of unapproved critical vulnerabilities.
- Coverage gates must reflect relevant tested production code and disclose exclusions.
Explanation
Correct Answer
A:Release gates must evaluate approved risk exceptions and mandatory security criteria. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect issue severity, gate criteria, exception owners and evidence attachments. An appropriate controlled response is: Require accountable acceptance or closure of critical security blockers before promotion.
Incorrect Answers
B:Code-scanning feedback should be available on proposed changes before merge. This would address a different situation, such as: A GitHub repository scans vulnerabilities once a month but merges vulnerable code daily. In the present case, the most directly relevant principle is: Release gates must evaluate approved risk exceptions and mandatory security criteria. The crucial distinction is: Release gates must evaluate approved risk exceptions and mandatory security criteria.
C:Security policy gates should prevent release of unapproved critical vulnerabilities. This would address a different situation, such as: A container image with a known critical vulnerability passes all unit tests and is promoted to production. In the present case, the most directly relevant principle is: Release gates must evaluate approved risk exceptions and mandatory security criteria. The crucial distinction is: Release gates must evaluate approved risk exceptions and mandatory security criteria.
D:Coverage gates must reflect relevant tested production code and disclose exclusions. This would address a different situation, such as: A team's claimed 90% code coverage includes only generated code and excludes its core authorization module. In the present case, the most directly relevant principle is: Release gates must evaluate approved risk exceptions and mandatory security criteria. The crucial distinction is: Release gates must evaluate approved risk exceptions and mandatory security criteria.
Question 33
The DevOps team must resolve this situation: A release detects elevated errors but cannot roll back because the prior verified package was deleted. Which engineering action is MOST appropriate?
- Retain a protected previous release and automate monitored rollback upon failure.
- Use slot-sticky settings and suppress staging triggers until explicitly authorized.
- Route a bounded canary share to new pods and expand only after acceptance checks.
- Deploy behind a disabled flag and enable for an approved targeted cohort after validation.
Explanation
Correct Answer
A:Retain a protected previous release and automate monitored rollback upon failure. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A simulated error reverts to the exact previously healthy artifact. Deployment strategy must preserve known-good artifacts and tested rollback paths.
Incorrect Answers
B:Use slot-sticky settings and suppress staging triggers until explicitly authorized. This would address a different situation, such as: An Azure Functions staging slot unexpectedly processes production queue messages before its swap because a trigger configuration was not isolated. In the present case, the most directly relevant engineering action is: Retain a protected previous release and automate monitored rollback upon failure. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
C:Route a bounded canary share to new pods and expand only after acceptance checks. This would address a different situation, such as: A new AKS container image may affect payments, but the team wants to limit customer exposure during rollout. In the present case, the most directly relevant engineering action is: Retain a protected previous release and automate monitored rollback upon failure. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
D:Deploy behind a disabled flag and enable for an approved targeted cohort after validation. 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 engineering action is: Retain a protected previous release and automate monitored rollback upon failure. The crucial distinction is: Deployment strategy must preserve known-good artifacts and tested rollback paths.
Question 34
An Azure DevOps engineering team evaluates this condition: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. Which DevOps principle BEST explains the underlying weakness?
- Azure DevOps access levels and security groups should reflect actual job duties.
- Administrative and approval authority should be segregated for sensitive deployments.
- Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
- Service connection authorization must be limited to approved pipelines and resource scope.
Explanation
Correct Answer
C:Federated workload identity can provide scoped short-lived Azure access without stored shared secrets. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect service connection credentials, Entra federated subject, role assignments and usage logs. An appropriate controlled response is: Adopt supported workload identity federation with least-privilege Azure scope.
Incorrect Answers
A:Azure DevOps access levels and security groups should reflect actual job duties. This would address a different situation, such as: A product manager needs to view Azure Boards and submit work items but is given full build administration permissions. In the present case, the most directly relevant principle is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
B:Administrative and approval authority should be segregated for sensitive deployments. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant principle is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
D:Service connection authorization must be limited to approved pipelines and resource scope. This would address a different situation, such as: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. In the present case, the most directly relevant principle is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets. The crucial distinction is: Federated workload identity can provide scoped short-lived Azure access without stored shared secrets.
Question 35
An Azure DevOps engineering team evaluates this condition: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. Which DevOps principle BEST explains the underlying weakness?
- Cross-platform collaboration requires configured repository and work-item integration.
- Architectural knowledge needs attributable change history and accountable reviewer approval.
- Release documentation should reconcile source changes with versioning and consumer impact.
- Diagrams should reflect executable workflow dependencies and be maintainable with source.
Explanation
Correct Answer
A:Cross-platform collaboration requires configured repository and work-item integration. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect Azure Boards GitHub connection, repository authorization and linked work items. An appropriate controlled response is: Configure the authorized Azure Boards-GitHub integration and linking conventions.
Incorrect Answers
B:Architectural knowledge needs attributable change history and accountable reviewer approval. 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 principle is: Cross-platform collaboration requires configured repository and work-item integration. The crucial distinction is: Cross-platform collaboration requires configured repository and work-item integration.
C:Release documentation should reconcile source changes with versioning and consumer impact. This would address a different situation, such as: An internal library ships monthly but its changelog omits breaking changes unless one maintainer remembers to edit it. In the present case, the most directly relevant principle is: Cross-platform collaboration requires configured repository and work-item integration. The crucial distinction is: Cross-platform collaboration requires configured repository and work-item integration.
D:Diagrams should reflect executable workflow dependencies and be maintainable with source. 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 principle is: Cross-platform collaboration requires configured repository and work-item integration. The crucial distinction is: Cross-platform collaboration requires configured repository and work-item integration.
Question 36
An Azure DevOps engineering team evaluates this condition: A developer accidentally commits a cloud token, but the repository has no automated alerting on leaked credentials. Which DevOps principle BEST explains the underlying weakness?
- Container security assessment should map findings to immutable images and release risk.
- Code scanning should detect relevant source vulnerabilities before release.
- Security workflows require protected configuration and evaluation from trusted context.
- Secret scanning should detect exposed credentials and trigger prompt containment.
Explanation
Correct Answer
D:Secret scanning should detect exposed credentials and trigger prompt containment. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect repository secret-scanning alerts, token audit logs and response workflow. An appropriate controlled response is: Enable authorized secret scanning and push protection, then rotate exposed credentials.
Incorrect Answers
A:Container security assessment should map findings to immutable images and release risk. This would address a different situation, such as: An ACR pipeline pushes vulnerable base images and deploys without considering scan results. In the present case, the most directly relevant principle is: Secret scanning should detect exposed credentials and trigger prompt containment. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.
B:Code scanning should detect relevant source vulnerabilities before release. This would address a different situation, such as: A C# API has risky SQL construction patterns, but pipeline checks only verify compilation. In the present case, the most directly relevant principle is: Secret scanning should detect exposed credentials and trigger prompt containment. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.
C:Security workflows require protected configuration and evaluation from trusted context. This would address a different situation, such as: An untrusted pull request can modify the secret-scanning workflow and disable scanning in its own run. In the present case, the most directly relevant principle is: Secret scanning should detect exposed credentials and trigger prompt containment. The crucial distinction is: Secret scanning should detect exposed credentials and trigger prompt containment.
Question 37
An engineering design review identifies: An App Service accesses Azure Storage using a connection string containing an account key in source control. Which shortcut should the team MOST specifically avoid for this case?
- Use the same all-powerful administrator account for all release activities.
- Hardcode a replacement storage account key into the deployment package.
- Enable Grant access permission to all pipelines for the production subscription.
- Create one permanent Owner client secret and distribute it to all pipelines.
Explanation
Correct Answer
B:Hardcode a replacement storage account key into the deployment package. This shortcut directly undermines the stated control or workflow. A safer action is: Enable system-assigned managed identity and grant narrow storage data-plane roles. Explanation: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
Incorrect Answers
A:Use the same all-powerful administrator account for all release activities. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant unsafe shortcut is: Hardcode a replacement storage account key into the deployment package. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
C:Enable Grant access permission to all pipelines for the production subscription. This would address a different situation, such as: An Azure DevOps deployment service connection is authorized for all pipelines, including untrusted test definitions. In the present case, the most directly relevant unsafe shortcut is: Hardcode a replacement storage account key into the deployment package. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
D:Create one permanent Owner client secret and distribute it to all pipelines. 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 unsafe shortcut is: Hardcode a replacement storage account key into the deployment package. The crucial distinction is: Managed identity can replace application-stored credentials when the target service supports Azure RBAC.
Question 38
A Microsoft DevOps team is addressing: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. Which TWO complementary actions should be taken? Select TWO answers.
- Generate and publish versioned API documentation as a release-gated artifact.
- Inspect Azure Boards GitHub connection, repository authorization and linked work items.
- Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
- Configure the authorized Azure Boards-GitHub integration and linking conventions.
- Route deployment and failure events to the approved Microsoft Teams operations channel.
Explanation
Correct Answers
B:Inspect Azure Boards GitHub connection, repository authorization and linked work items. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure the authorized Azure Boards-GitHub integration and linking conventions. Together they address: Cross-platform collaboration requires configured repository and work-item integration.
D:Configure the authorized Azure Boards-GitHub integration and linking conventions. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect Azure Boards GitHub connection, repository authorization and linked work items. Together they address: Cross-platform collaboration requires configured repository and work-item integration.
Incorrect Answers
A:Generate and publish versioned API documentation as a release-gated artifact. This concerns a different DevOps situation: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. This case instead requires both a targeted investigation (Inspect Azure Boards GitHub connection, repository authorization and linked work items.) and a controlled change (Configure the authorized Azure Boards-GitHub integration and linking conventions.).
C:Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This concerns a different DevOps situation: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. This case instead requires both a targeted investigation (Inspect Azure Boards GitHub connection, repository authorization and linked work items.) and a controlled change (Configure the authorized Azure Boards-GitHub integration and linking conventions.).
E:Route deployment and failure events to the approved Microsoft Teams operations channel. This concerns a different DevOps situation: Critical production deployment failures send only email to an unattended shared mailbox. This case instead requires both a targeted investigation (Inspect Azure Boards GitHub connection, repository authorization and linked work items.) and a controlled change (Configure the authorized Azure Boards-GitHub integration and linking conventions.).
Question 39
The DevOps team must resolve this situation: A legacy release service principal secret is set to expire tomorrow and pipeline maintenance has no automated credential lifecycle. Which engineering action is MOST appropriate?
- Introduce relevant path/branch conditions and appropriately scheduled validation.
- Run independent tests in parallel within the approved concurrency and resource budget.
- Migrate to workload identity federation or controlled rotation with alerting.
- Remove token emission and enforce safe logging with secret scanning of pipeline output.
Explanation
Correct Answer
C:Migrate to workload identity federation or controlled rotation with alerting. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A new deployment succeeds after retiring the old secret while preserving permissions. Deployment identities should support safe rotation or federation without release downtime.
Incorrect Answers
A: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: Migrate to workload identity federation or controlled rotation with alerting. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
B:Run independent tests in parallel within the approved concurrency and resource budget. 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 engineering action is: Migrate to workload identity federation or controlled rotation with alerting. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
D: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: Migrate to workload identity federation or controlled rotation with alerting. The crucial distinction is: Deployment identities should support safe rotation or federation without release downtime.
Question 40
A Microsoft DevOps team is addressing: A GitHub project has rising CI failures, but maintainers monitor only total completed workflow counts. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics.
- Inspect Azure Monitor Container Insights, pod events, collection coverage and retention.
- Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs.
- Inspect GitHub Actions run history, job timing, failure causes and usage trends.
- Configure insight charts and notifications for failed and slow required workflows.
Explanation
Correct Answers
D:Inspect GitHub Actions run history, job timing, failure causes and usage trends. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Configure insight charts and notifications for failed and slow required workflows. Together they address: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
E:Configure insight charts and notifications for failed and slow required workflows. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect GitHub Actions run history, job timing, failure causes and usage trends. Together they address: Workflow insight metrics should distinguish failed jobs, timing and relevant branches.
Incorrect Answers
A:Inspect VM agent health, DCR association, scope, endpoint and ingestion diagnostics. This concerns a different DevOps situation: A VM sends no logs to Log Analytics because its Azure Monitor Agent data collection rule targets another resource group. This case instead requires both a targeted investigation (Inspect GitHub Actions run history, job timing, failure causes and usage trends.) and a controlled change (Configure insight charts and notifications for failed and slow required workflows.).
B:Inspect Azure Monitor Container Insights, pod events, collection coverage and retention. This concerns a different DevOps situation: AKS pods restart frequently but the team captures only the last running pod's console output. This case instead requires both a targeted investigation (Inspect GitHub Actions run history, job timing, failure causes and usage trends.) and a controlled change (Configure insight charts and notifications for failed and slow required workflows.).
C:Inspect Azure Monitor Agent, VM insights settings, counters and related crash logs. This concerns a different DevOps situation: A production VM experiences OOM kills while CPU remains normal and default platform graphs show no guest memory usage. This case instead requires both a targeted investigation (Inspect GitHub Actions run history, job timing, failure causes and usage trends.) and a controlled change (Configure insight charts and notifications for failed and slow required workflows.).