Question 170
Developers can merge even when PR checks fail due to broad bypass grants; governance requires only emergency custodians to override. Which permission should be restricted?
- Limit repository bypass policy rights
- Use Stakeholder access for limited work tracking
- Use a project team for backlog ownership
- Separate access level from security permissions
Explanation
Correct Answer
A:Bypass policy rights allow exceptional merges or pushes and should be assigned only to tightly controlled operators.
Incorrect Answers
B:Stakeholder access provides a limited set of Azure DevOps features focused on work tracking rather than full developer capabilities; low-privilege business work access concerns a different control point than exceptional branch-policy override.
C:Project teams have backlog settings and area/iteration associations that organize work tracking within a shared project; here exceptional branch-policy override is the target, not team-specific Boards configuration.
D:Access level controls feature entitlements while repository and branch permissions govern actions on specific project resources; although that supports distinction between entitlement and permission, this scenario calls for exceptional branch-policy override.
Question 171
A job prints passing unit-test text to the console, but developers need failure trends and per-test details in pipeline reporting. Which task capability should be configured?
- Require a production-like predeployment validation environment
- Publish test results in Azure Pipelines
- Separate gating tests from exploratory tests
- Publish code coverage results in Azure Pipelines
- Use a manual approval before a regulated deployment
Explanation
Correct Answer
B:Publishing supported test result files associates structured test outcomes with the pipeline run for reporting and diagnostics.
Incorrect Answers
A:A staging environment closely matching production configuration reveals deployment and integration issues before customer exposure; its effect is production configuration rehearsal, not first-class automated test reporting.
C:Maintain a deterministic release-gating suite while separately running broader exploratory tests and tracking their findings; predictable promotion signal cannot substitute for first-class automated test reporting.
D:The code coverage publishing step imports supported reports from test tools into the pipeline's coverage reporting surface; first-class automated test reporting falls outside the scope of visible code coverage artifact.
E:An environment approval check blocks the deployment stage until the designated approver grants authorization; it contributes to controlled human release approval, with first-class automated test reporting still requiring its own control.
Question 172
During outages, on-call engineers cannot find release-specific remediation steps; which release practice closes this gap?
- Publish API specifications from OpenAPI
- Publish a runbook alongside deployment assets
- Create a postincident retrospective document
- Publish build provenance and release version
Explanation
Correct Answer
B:Packaging or linking version-matched runbooks with the release record makes operational procedures available for the deployed version.
Incorrect Answers
A:An OpenAPI specification describes endpoints, operations, schemas, and responses and can generate reference documentation and client tooling; it handles contract-driven API documentation but cannot by itself deliver incident-ready versioned operating guidance.
C:A blameless retrospective captures timeline, contributing conditions, detection gaps, and assigned follow-up actions for systemic improvement; that acts on learning from production incidents, whereas the requested outcome is incident-ready versioned operating guidance.
D:Release metadata connecting artifact digest, build ID, commit SHA, and environment supports reproducibility and operational audit trails; deployable artifact origin and destination concerns a different control point than incident-ready versioned operating guidance.
Question 173
A team wants scalable managed agent capacity but needs more control over images and connectivity than standard hosted pools offer. Which architecture category should it evaluate?
- Configure outbound access from self-hosted agents
- Use managed pools to reduce custom agent upkeep
- Update self-hosted agent software
- Use agent demands and capabilities
Explanation
Correct Answer
B:Managed agent-pool offerings can centralize worker lifecycle and scale management while supporting configured image or network requirements.
Incorrect Answers
A:Self-hosted Azure Pipelines agents initiate outbound communication to the service; necessary HTTPS egress must be available; the distinction is agent registration outbound network path versus managed customizable build-worker infrastructure.
C:Keeping the agent binary and underlying tools updated preserves compatibility with service protocols and pipeline tasks; its effect is worker runtime compatibility, not managed customizable build-worker infrastructure.
D:Agent capabilities advertise available tools or attributes, and demands constrain scheduling to matching agents; that changes tool-aware agent placement without delivering managed customizable build-worker infrastructure.
Question 174
A query returns large dynamic log records, but incident responders need only time, operation ID, and error message in the result. Which operator fits?
- Use Container insights for AKS workloads
- Use Azure Monitor network monitoring
- Use KQL project to limit output columns
- Use KQL join to correlate related tables
Explanation
Correct Answer
C:project selects and can rename the columns returned by a KQL query, producing a focused investigation result. Selecting only the fields responders need reduces clutter and keeps the result focused on investigation context.
Incorrect Answers
A:Container insights gathers supported Kubernetes inventory, performance, and log data to support workload and node diagnosis; this solves cluster and pod health visibility, leaving KQL selected-column shaping unresolved.
B:Network monitoring capabilities integrate supported connectivity, flow, and performance signals for troubleshooting network paths; this option addresses Azure network connection observability rather than addressing KQL selected-column shaping.
D:join combines records from two datasets according to chosen keys and join semantics to build correlated views; KQL selected-column shaping remains outside the responsibility of cross-table telemetry correlation.
Question 175
A migration can irreversibly remove data, and the team needs an explicit recovery point before schema modification. Which preparatory action is critical?
- Maintain sufficient spare capacity for rolling updates
- Apply expand-and-contract database migration
- Use failure-domain-aware rollout waves
- Perform predeployment backup before a destructive database change
Explanation
Correct Answer
D:Tested backups and restoration procedures protect data when a destructive change cannot be rolled back by code reversion alone.
Incorrect Answers
A:Surge or spare capacity ensures enough healthy instances remain available while replacements are created and validated; although that supports rollout capacity headroom, this scenario calls for recoverability of destructive data changes.
B:Expand-and-contract migrations introduce backward-compatible schema changes first, transition consumers, and remove old structures only after compatibility is no longer needed; recoverability of destructive data changes cannot be inferred from schema compatibility during version overlap alone.
C:Zone-aware sequential deployment waves keep healthy capacity in unaffected zones while each wave is verified; the distinction is zonal release blast-radius reduction versus recoverability of destructive data changes.
Question 176
A test job generates screenshots that must remain inspectable after the runner is destroyed. Which GitHub Actions step helps?
- Use runner labels to route jobs
- Use runner groups for administrative boundaries
- Use reusable GitHub Actions workflows
- Upload workflow artifacts for later jobs
- Use a GitHub-hosted runner for disposable jobs
- Restrict GITHUB_TOKEN permissions
Explanation
Correct Answer
D:Artifact upload stores files associated with a workflow run outside the temporary runner filesystem. Store the screenshot folder as a run artifact and configure suitable retention so the files remain available for triage.
Incorrect Answers
A:Labels identify runner characteristics and the runs-on selector can target machines with required labels; durable GitHub test attachments falls outside the scope of capability-specific GitHub job scheduling.
B:Runner groups can control which repositories may use a collection of organization or enterprise runners; it contributes to scoped access to GitHub runner fleets, with durable GitHub test attachments still requiring its own control.
C:Reusable workflows called through workflow_call centralize a multi-job pattern while allowing controlled inputs from callers; this solves shared end-to-end GitHub automation, leaving durable GitHub test attachments unresolved.
E:GitHub-hosted runners provide managed disposable execution environments with common tooling and no persistent team-managed agent; it handles managed workflow job execution but cannot by itself deliver durable GitHub test attachments.
F:Declaring minimal permissions at workflow or job scope reduces the authority of the automatically issued GITHUB_TOKEN; durable GitHub test attachments remains outside the responsibility of least-privilege native workflow token.
Question 177
Leadership asks how long it takes a committed code change to reach production, including review and deployment delay. Which delivery metric best answers?
- Measure cycle time from work start to completion
- Use velocity for iteration capacity forecasting
- Measure lead time for changes
- Trend the age of blocked backlog items
Explanation
Correct Answer
C:Lead time for changes measures elapsed time from a change entering the delivery stream to successful production deployment.
Incorrect Answers
A:Cycle time tracks elapsed time once work starts until completion, exposing delays within the active delivery workflow; active-work duration concerns a different control point than commit-to-production elapsed time.
B:Velocity summarizes work completed in prior iterations and can inform capacity planning for the same team when estimation stays consistent; here commit-to-production elapsed time is the target, not historical sprint throughput.
D:Aging work-in-progress metrics expose how long incomplete items remain open or blocked, making unresolved work visible beyond raw backlog size; commit-to-production elapsed time cannot be inferred from unfinished item aging alone.
Question 178
The same infrastructure template must deploy to test and production, changing SKU and resource names without editing the template. How should variation be modeled?
- Use Azure Policy to check IaC outcomes
- Use Bicep parameters for environment differences
- Use Bicep modules for reusable resource groups
- Use template validation before deploying resources
Explanation
Correct Answer
B:Template parameters keep environment-specific values separate from common resource declarations and support controlled reuse.
Incorrect Answers
A:Azure Policy evaluates configured resource compliance and can deny changes that violate assigned policy definitions; that changes enforcement of Azure resource guardrails without delivering externalized IaC environment settings.
C:Bicep modules package resource declarations behind parameters and outputs so common infrastructure patterns can be reused; externalized IaC environment settings falls outside the scope of modular Azure resource definitions.
D:Template compilation and validation detect authoring errors before deployment attempts affect live resources; it contributes to predeployment declarative syntax checking, with externalized IaC environment settings still requiring its own control.
Question 179
The repository must prohibit squash merges but allow ordinary and rebase-style completions under its audit rules. Which branch setting controls the available strategies?
- Require linked work items on pull requests
- Require signed commits on a protected branch
- Require minimum approving reviewers in Azure Repos
- Restrict allowed merge types
Explanation
Correct Answer
D:Merge-type policy restricts which pull request completion methods are permitted for the target branch. Apply the policy on the protected target branch to disallow squash completion while retaining the approved merge styles.
Incorrect Answers
A:The linked work item check enforces or evaluates traceability between a pull request and work items according to branch-policy configuration; permitted integration history forms remains outside the responsibility of verified backlog reference at merge.
B:GitHub commit-signature protection can require verified signatures on commits entering protected branches; that acts on verifiable commit provenance, whereas the requested outcome is permitted integration history forms.
C:The minimum reviewer policy sets the number of eligible approvals required to complete pull requests into a protected branch; mandatory reviewer quorum concerns a different control point than permitted integration history forms.
Question 180
A platform template must accept a list of service build jobs and expand them before any agent begins. Which mechanism supports this strongly typed structure?
- Use runtime expressions for dynamic job conditions
- Use parameters for typed pipeline input
- Use template parameters rather than variable substitution for a job list
- Use runtime macro syntax for a task input
- Use template expressions for parameter-driven structure
Explanation
Correct Answer
C:Template parameters can pass job or step lists into reusable YAML during plan compilation; runtime strings cannot safely synthesize arbitrary job graphs.
Incorrect Answers
A:Runtime expressions evaluate runtime variable context and can support dynamic values or conditions unavailable during template compilation; compile-time list injection cannot be delivered through execution-time expression evaluation.
B:YAML runtime parameters support explicit types and are resolved at template parsing, enabling safer structural customization than string variables; its effect is typed reusable pipeline configuration, not compile-time list injection.
D:Azure Pipelines macro syntax such as $(name) is expanded at runtime before tasks execute and can reflect prior variable updates; task-time variable value expansion cannot substitute for compile-time list injection.
E:Compile-time template expressions evaluate parameters and statically available variables while expanding reusable YAML structure; compile-time list injection falls outside the scope of compile-time job graph generation.