Microsoft AZ-400 Practice Test 75
Question 740
An Azure DevOps engineering team evaluates this condition: A deployment pipeline runs on feature-branch pushes despite a policy requiring releases only from protected main. Which DevOps principle BEST explains the underlying weakness?
- Pipeline triggers must enforce reviewed source ref eligibility.
- Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers.
- Cross-stage values must be explicitly published and referenced through supported output syntax.
- Agent placement should satisfy network access and security constraints without overprivilege.
Explanation
Correct Answer
A:Pipeline triggers must enforce reviewed source ref eligibility. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect YAML trigger filters, branch protections and deployment conditions. An appropriate controlled response is: Limit production deployment to permitted protected refs and validated build artifacts.
Incorrect Answers
B:Azure Pipelines GitHub integration requires scoped access and appropriate PR triggers. This would address a different situation, such as: An Azure DevOps pipeline uses a GitHub repository but cannot run pull-request validation because its repository connection is misconfigured. In the present case, the most directly relevant principle is: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
C: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: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
D:Agent placement should satisfy network access and security constraints without overprivilege. 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 principle is: Pipeline triggers must enforce reviewed source ref eligibility. The crucial distinction is: Pipeline triggers must enforce reviewed source ref eligibility.
Question 741
The DevOps team must resolve this situation: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. Which engineering action is MOST appropriate?
- Invite an outside collaborator with restricted access to the reviewed repository.
- Separate pipeline authors from release-approval administrators and audit exceptions.
- Use a GitHub App with minimal repository permissions for the workflow.
- Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.
Explanation
Correct Answer
B:Separate pipeline authors from release-approval administrators and audit exceptions. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A code author cannot self-approve a restricted deployment without a qualified reviewer. Administrative and approval authority should be segregated for sensitive deployments.
Incorrect Answers
A:Invite an outside collaborator with restricted access to the reviewed repository. This would address a different situation, such as: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. In the present case, the most directly relevant engineering action is: Separate pipeline authors from release-approval administrators and audit exceptions. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
C:Use a GitHub App with minimal repository permissions for the workflow. This would address a different situation, such as: An automation bot uses a maintainer's all-repository personal access token to comment on pull requests. In the present case, the most directly relevant engineering action is: Separate pipeline authors from release-approval administrators and audit exceptions. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
D:Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution. This would address a different situation, such as: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. In the present case, the most directly relevant engineering action is: Separate pipeline authors from release-approval administrators and audit exceptions. The crucial distinction is: Administrative and approval authority should be segregated for sensitive deployments.
Question 742
A Microsoft DevOps team is addressing: A QA vendor needs read-only test access but has been granted repository administration rights. Which TWO complementary actions should be taken? Select TWO answers.
- Assign a read-only or suitably scoped collaborator role and remove administrative privileges.
- Inspect repository history, leaked secret versions, access logs and rotation status.
- Inspect reflog entries, commit IDs, branch history and garbage collection status.
- Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
- Inspect project access groups, repository ACLs, token grants and vendor responsibilities.
Explanation
Correct Answers
A:Assign a read-only or suitably scoped collaborator role and remove administrative privileges. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect project access groups, repository ACLs, token grants and vendor responsibilities. Together they address: Repository access should be limited to the minimum collaborator operations.
E:Inspect project access groups, repository ACLs, token grants and vendor responsibilities. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Assign a read-only or suitably scoped collaborator role and remove administrative privileges. Together they address: Repository access should be limited to the minimum collaborator operations.
Incorrect Answers
B:Inspect repository history, leaked secret versions, access logs and rotation status. This concerns a different DevOps situation: A database credential is removed from the latest Git commit but remains visible in old revisions. This case instead requires both a targeted investigation (Inspect project access groups, repository ACLs, token grants and vendor responsibilities.) and a controlled change (Assign a read-only or suitably scoped collaborator role and remove administrative privileges.).
C:Inspect reflog entries, commit IDs, branch history and garbage collection status. This concerns a different DevOps situation: A developer accidentally removes an important local commit during an interactive rebase, but it is still reachable from Git reflog. This case instead requires both a targeted investigation (Inspect project access groups, repository ACLs, token grants and vendor responsibilities.) and a controlled change (Assign a read-only or suitably scoped collaborator role and remove administrative privileges.).
D:Stop tracking generated outputs and plan reviewed history cleanup with team coordination. This concerns a different DevOps situation: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. This case instead requires both a targeted investigation (Inspect project access groups, repository ACLs, token grants and vendor responsibilities.) and a controlled change (Assign a read-only or suitably scoped collaborator role and remove administrative privileges.).
Question 743
An Azure DevOps engineering team evaluates this condition: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. Which DevOps principle BEST explains the underlying weakness?
- Package feed roles should separate consumer, publisher and administrative permissions.
- Dependency governance needs timely security updates while preserving compatibility testing.
- Release images should be identified by immutable digests or protected version tags.
- Cross-project feeds require authorized build-service identities and scope settings.
Explanation
Correct Answer
B:Dependency governance needs timely security updates while preserving compatibility testing. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect dependency resolution reports, advisory scope, wheel metadata and test outcomes. An appropriate controlled response is: Update to an approved secure dependency version and rerun integration and compatibility checks.
Incorrect Answers
A:Package feed roles should separate consumer, publisher and administrative permissions. This would address a different situation, such as: Every developer can delete the versions of a private production library that other teams depend on. In the present case, the most directly relevant principle is: Dependency governance needs timely security updates while preserving compatibility testing. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.
C:Release images should be identified by immutable digests or protected version tags. This would address a different situation, such as: A team overwrites the same image tag in Azure Container Registry for every build and loses reproducible deployment history. In the present case, the most directly relevant principle is: Dependency governance needs timely security updates while preserving compatibility testing. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.
D:Cross-project feeds require authorized build-service identities and scope settings. This would address a different situation, such as: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. In the present case, the most directly relevant principle is: Dependency governance needs timely security updates while preserving compatibility testing. The crucial distinction is: Dependency governance needs timely security updates while preserving compatibility testing.
Question 744
The DevOps team must resolve this situation: Every developer can delete the versions of a private production library that other teams depend on. Which engineering action is MOST appropriate?
- Grant read, publish and administration only to the appropriate separate identities.
- Publish versioned internal packages to Azure Artifacts and grant scoped pipeline feed access.
- Grant the consuming build service read access at the appropriate feed scope.
- Update to an approved secure dependency version and rerun integration and compatibility checks.
Explanation
Correct Answer
A:Grant read, publish and administration only to the appropriate separate identities. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An ordinary consumer can restore packages but cannot remove published releases. Package feed roles should separate consumer, publisher and administrative permissions.
Incorrect Answers
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: Grant read, publish and administration only to the appropriate separate identities. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
C:Grant the consuming build service read access at the appropriate feed scope. This would address a different situation, such as: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. In the present case, the most directly relevant engineering action is: Grant read, publish and administration only to the appropriate separate identities. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
D:Update to an approved secure dependency version and rerun integration and compatibility checks. This would address a different situation, such as: A pipeline publishes Python wheels from a feed after an advisory identifies a vulnerable indirect dependency. In the present case, the most directly relevant engineering action is: Grant read, publish and administration only to the appropriate separate identities. The crucial distinction is: Package feed roles should separate consumer, publisher and administrative permissions.
Question 745
Before changing the pipeline or service, engineers find: A cost-reduction retention rule deletes the last known-good container image before the rollback period ends. Which evidence should the engineer inspect FIRST?
- Inspect pipeline resources, branch filters, artifact provenance and run IDs.
- Inspect release references, retention rules, ACR manifests and recovery requirements.
- Inspect retry counts, per-test historical failure rates, queue and execution time.
- Inspect retention defaults, legal requirements, approval records and storage cost.
Explanation
Correct Answer
B:Inspect release references, retention rules, ACR manifests and recovery requirements. This directly checks the uncertain behavior or control before changing production. Artifact retention needs business-approved rollback and forensic windows. The resulting targeted action is: Protect recent deployed digests and remove only eligible unreferenced artifacts.
Incorrect Answers
A:Inspect pipeline resources, branch filters, artifact provenance and run IDs. 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 evidence is: Inspect release references, retention rules, ACR manifests and recovery requirements. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.
C:Inspect retry counts, per-test historical failure rates, queue and execution time. 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 evidence is: Inspect release references, retention rules, ACR manifests and recovery requirements. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.
D:Inspect retention defaults, legal requirements, approval records and storage cost. 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 evidence is: Inspect release references, retention rules, ACR manifests and recovery requirements. The crucial distinction is: Artifact retention needs business-approved rollback and forensic windows.
Question 746
An Azure DevOps engineering team evaluates this condition: A build pipeline uploads a ZIP under a stable filename and a later build overwrites it before deployment. Which DevOps principle BEST explains the underlying weakness?
- Transitive dependency resolution must be reproducible and security-reviewed.
- Artifact integrity requires immutable identity and reliable build-to-release linkage.
- Cross-project feeds require authorized build-service identities and scope settings.
- Internal dependencies should be published to an authenticated, versioned package feed.
Explanation
Correct Answer
B:Artifact integrity requires immutable identity and reliable build-to-release linkage. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect artifact store versioning, write policy, source SHA and release logs. An appropriate controlled response is: Use unique versioned paths and verify digest before deployment.
Incorrect Answers
A:Transitive dependency resolution must be reproducible and security-reviewed. This would address a different situation, such as: A Node application pins a top-level package but a transitive dependency introduces an unreviewed major behavior change. In the present case, the most directly relevant principle is: Artifact integrity requires immutable identity and reliable build-to-release linkage. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
C:Cross-project feeds require authorized build-service identities and scope settings. This would address a different situation, such as: A central deployment pipeline cannot restore a package from another Azure DevOps project although the feed works locally. In the present case, the most directly relevant principle is: Artifact integrity requires immutable identity and reliable build-to-release linkage. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
D:Internal dependencies should be published to an authenticated, versioned package feed. 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 principle is: Artifact integrity requires immutable identity and reliable build-to-release linkage. The crucial distinction is: Artifact integrity requires immutable identity and reliable build-to-release linkage.
Question 747
The DevOps team must resolve this situation: Hundreds of low-severity dependency alerts crowd out a critical exploitable issue in production. Which engineering action is MOST appropriate?
- Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security.
- Enable supported secret, dependency and code scanning for target Azure Repos repositories.
- Use risk-based triage with owners, remediation SLAs and documented waivers.
- Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios.
Explanation
Correct Answer
C:Use risk-based triage with owners, remediation SLAs and documented waivers. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: An exploitable high-risk finding is escalated despite a high volume of minor warnings. Security scanning should prioritize relevant risk and accountable remediation.
Incorrect Answers
A:Connect supported Azure DevOps/GitHub resources to Defender for Cloud DevOps Security. This would address a different situation, such as: Security findings in Azure DevOps repositories never appear in the organization's central Defender for Cloud dashboard. In the present case, the most directly relevant engineering action is: Use risk-based triage with owners, remediation SLAs and documented waivers. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
B:Enable supported secret, dependency and code scanning for target Azure Repos repositories. This would address a different situation, such as: An Azure Repos project has GitHub Advanced Security licensed but required code and secret scanning were never enabled for key repos. In the present case, the most directly relevant engineering action is: Use risk-based triage with owners, remediation SLAs and documented waivers. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
D:Combine appropriate code, dependency, secret and container scanning with tested authorization scenarios. This would address a different situation, such as: A project relies entirely on container image vulnerability scanning while application source contains an authorization flaw. In the present case, the most directly relevant engineering action is: Use risk-based triage with owners, remediation SLAs and documented waivers. The crucial distinction is: Security scanning should prioritize relevant risk and accountable remediation.
Question 748
An Azure DevOps engineering team evaluates this condition: A payment workflow completes an HTTP health check but fails after users submit the checkout form. Which DevOps principle BEST explains the underlying weakness?
- Release validation should test critical business journeys rather than only process liveness.
- Consumer contract tests should detect interface-breaking changes before coordinated release.
- Coverage alone does not establish assertion quality or defect-detection strength.
- Security policy gates should prevent release of unapproved critical vulnerabilities.
Explanation
Correct Answer
A:Release validation should test critical business journeys rather than only process liveness. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect browser-test steps, authentication dependencies and failure traces. An appropriate controlled response is: Add guarded end-to-end UI tests for checkout and payment confirmation.
Incorrect Answers
B:Consumer contract tests should detect interface-breaking changes before coordinated release. This would address a different situation, such as: A microservice changes a JSON field name while a downstream consumer still relies on the old name. In the present case, the most directly relevant principle is: Release validation should test critical business journeys rather than only process liveness. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
C:Coverage alone does not establish assertion quality or defect-detection strength. This would address a different situation, such as: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. In the present case, the most directly relevant principle is: Release validation should test critical business journeys rather than only process liveness. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
D: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 validation should test critical business journeys rather than only process liveness. The crucial distinction is: Release validation should test critical business journeys rather than only process liveness.
Question 749
After implementing the change, the team verifies: A retailer wants to expose a new checkout feature to 5% of customers but its current flag is on or off for everyone. Which result would BEST demonstrate that the issue is corrected?
- A later tag overwrite cannot change the image selected for this release.
- The test cohort receives the new flow while excluded users retain the original flow.
- A first-ring failure prevents later cohorts from receiving the release.
- A rehearsal keeps the user journey working throughout both component deployments.
Explanation
Correct Answer
B:The test cohort receives the new flow while excluded users retain the original flow. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Configure a controlled percentage or targeting filter with versioned rollout criteria. Targeting filters can control feature exposure by cohort or percentage.
Incorrect Answers
A:A later tag overwrite cannot change the image selected for this release. 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 verification is: The test cohort receives the new flow while excluded users retain the original flow. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.
C:A first-ring failure prevents later cohorts from receiving the release. This would address a different situation, such as: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. In the present case, the most directly relevant verification is: The test cohort receives the new flow while excluded users retain the original flow. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.
D:A rehearsal keeps the user journey working throughout both component deployments. This would address a different situation, such as: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. In the present case, the most directly relevant verification is: The test cohort receives the new flow while excluded users retain the original flow. The crucial distinction is: Targeting filters can control feature exposure by cohort or percentage.
Question 750
A Microsoft DevOps team is addressing: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect security groups, environment approvers, service connection owners and bypass rights.
- Separate pipeline authors from release-approval administrators and audit exceptions.
- Inspect service connection credentials, Entra federated subject, role assignments and usage logs.
- Invite an outside collaborator with restricted access to the reviewed repository.
- Inspect App Service identity settings, storage RBAC and credential history.
Explanation
Correct Answers
A:Inspect security groups, environment approvers, service connection owners and bypass rights. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Separate pipeline authors from release-approval administrators and audit exceptions. Together they address: Administrative and approval authority should be segregated for sensitive deployments.
B:Separate pipeline authors from release-approval administrators and audit exceptions. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect security groups, environment approvers, service connection owners and bypass rights. Together they address: Administrative and approval authority should be segregated for sensitive deployments.
Incorrect Answers
C:Inspect service connection credentials, Entra federated subject, role assignments and usage logs. This concerns a different DevOps situation: A deployment workflow has a client secret in a variable group that is copied between projects and never rotated. This case instead requires both a targeted investigation (Inspect security groups, environment approvers, service connection owners and bypass rights.) and a controlled change (Separate pipeline authors from release-approval administrators and audit exceptions.).
D:Invite an outside collaborator with restricted access to the reviewed repository. This concerns a different DevOps situation: An external auditor needs read access to one private repository, but is added as an owner of the whole organization. This case instead requires both a targeted investigation (Inspect security groups, environment approvers, service connection owners and bypass rights.) and a controlled change (Separate pipeline authors from release-approval administrators and audit exceptions.).
E:Inspect App Service identity settings, storage RBAC and credential history. This concerns a different DevOps situation: An App Service accesses Azure Storage using a connection string containing an account key in source control. This case instead requires both a targeted investigation (Inspect security groups, environment approvers, service connection owners and bypass rights.) and a controlled change (Separate pipeline authors from release-approval administrators and audit exceptions.).