Question 400
Hundreds of low-priority findings exist, but the organization wants clear blocking conditions based on exploitability and severity. Which governance control should be codified?
- Define vulnerability severity thresholds for release decisions
- Use least-privilege tokens for security scanners
- Run scanning on pull requests and scheduled baselines
- Enable GitHub Advanced Security for Azure DevOps
Explanation
Correct Answer
A:A documented risk-based scanning policy defines failure thresholds and exception handling rather than treating every scanner finding equally.
Incorrect Answers
B:Grant only the API permissions necessary to retrieve code and publish assessment results, keeping repository administration separate; it contributes to narrow automation scanner identity, with policy-driven vulnerability release gate still requiring its own control.
C:Change-triggered and recurring scans together detect introduced vulnerabilities and subsequently disclosed issues in stable dependencies; this solves continuous risk detection beyond code changes, leaving policy-driven vulnerability release gate unresolved.
D:GitHub Advanced Security for Azure DevOps brings supported code, dependency, and secret scanning capabilities to Azure DevOps repositories; this option addresses advanced scanning on Azure Repos rather than addressing policy-driven vulnerability release gate.
Question 401
After six iterations, a team wants to estimate how much similarly sized backlog work it can likely finish in its next sprint. Which historical measure is relevant?
- Measure pull request review wait time
- Trend the age of blocked backlog items
- Use velocity for iteration capacity forecasting
- Track time to restore service
- Use a cumulative flow diagram
Explanation
Correct Answer
C:Velocity summarizes work completed in prior iterations and can inform capacity planning for the same team when estimation stays consistent.
Incorrect Answers
A:Pull request review latency captures the time a change waits for reviewer attention or approval, isolating a common delivery bottleneck; approval wait time concerns a different control point than historical sprint throughput.
B:Aging work-in-progress metrics expose how long incomplete items remain open or blocked, making unresolved work visible beyond raw backlog size; here historical sprint throughput is the target, not unfinished item aging.
D:Time to restore service captures the elapsed time required to recover normal operation after a production incident; historical sprint throughput cannot be inferred from incident recovery duration alone.
E:A cumulative flow diagram shows counts in each workflow state across dates, making bottlenecks and expanding queues visible; the distinction is stage-by-stage flow bottlenecks versus historical sprint throughput.
Question 402
A job must collect diagnostic files even if an earlier compilation step fails or the pipeline is canceled. Which execution condition is most appropriate when supported?
- Use output variables across jobs
- Use secret pipeline variables for confidential values
- Use always() for essential cleanup
- Use parameters for typed pipeline input
Explanation
Correct Answer
C:always() allows a cleanup step to execute despite prior failure or cancellation, helping preserve diagnostics and release resources.
Incorrect Answers
A:Output variables marked for downstream use can be referenced through dependency syntax across job boundaries with suitable dependencies; that changes downstream value propagation without delivering unconditional finalization despite failures.
B:Secret variables store sensitive settings outside checked-in YAML and require controlled injection into task environments; runtime secret injection cannot substitute for unconditional finalization despite failures.
D:YAML runtime parameters support explicit types and are resolved at template parsing, enabling safer structural customization than string variables; it contributes to typed reusable pipeline configuration, with unconditional finalization despite failures still requiring its own control.
Question 403
An Azure Pipelines task fails before running its script, and normal logs show little detail. Which troubleshooting action can reveal richer task execution information?
- Set artifact retention by compliance category
- Track build success rate by pipeline
- Set cancellation timeout for cleanup
- Identify unreliable external service dependencies
- Use pipeline run diagnostics for task failures
Explanation
Correct Answer
E:Pipeline diagnostic logging provides additional task and agent details that help isolate initialization and command failures.
Incorrect Answers
A:Different retention requirements should be applied to short-lived build outputs and preserved release assets according to compliance needs; detailed failing task investigation remains outside the responsibility of tiered artifact lifecycle.
B:Success and failure ratios by pipeline reveal reliability problems in particular delivery definitions over time; that acts on pipeline-specific pass rate, whereas the requested outcome is detailed failing task investigation.
C:Cancellation grace settings allow eligible cleanup work limited time to finish after a run is canceled; graceful cancellation finalization concerns a different control point than detailed failing task investigation.
D:Failure categorization by task and external dependency distinguishes platform or network outages from code defects; here detailed failing task investigation is the target, not external dependency build failures.
Question 404
New developers join a project frequently and should receive consistent permissions without individual access-control entries. Which administrative pattern fits?
- Use project-scoped groups rather than organization-wide admins
- Protect variable groups containing secrets
- Use a project security group for developer access
- Set specific service connection scope
Explanation
Correct Answer
C:Azure DevOps security groups consolidate permissions and propagate membership-based access to project resources.
Incorrect Answers
A:Project-level group membership limits administrative reach compared with organization or collection-wide administrative roles; group-managed project privilege cannot be delivered through scoped Azure DevOps project administration.
B:Variable-group permissions and approved pipeline access restrict exposure of protected variables to authorized consumers; its effect is pipeline-bounded shared secret access, not group-managed project privilege.
D:Limit connection identity role assignments and resource scope to the resources required for deployment; narrow cloud authorization behind DevOps connection cannot substitute for group-managed project privilege.
Question 405
A web app must warm and validate a new version on the same App Service plan before rapidly switching it into production. Which feature helps?
- Use Azure App Service deployment slots
- Use health-based automatic rollback
- Configure slot-sticky settings
- Apply expand-and-contract database migration
- Use idempotent deployment scripts
Explanation
Correct Answer
A:Deployment slots host alternate app versions and support swaps, reducing visible downtime when slot settings are correctly configured.
Incorrect Answers
B:Rollback automation tied to defined health signals can revert traffic or restore a prior version before failure spreads broadly; it handles metric-triggered rapid restoration but cannot by itself deliver warm-before-cutover web deployment.
C:Deployment slot settings remain tied to their designated slot during swaps, preserving environment-specific configuration; warm-before-cutover web deployment remains outside the responsibility of retaining environment credentials across swaps.
D:Expand-and-contract migrations introduce backward-compatible schema changes first, transition consumers, and remove old structures only after compatibility is no longer needed; that acts on schema compatibility during version overlap, whereas the requested outcome is warm-before-cutover web deployment.
E:Idempotent operations reach the desired end state even when repeated, making safe retries possible after partial execution; repeatable partial deployment recovery concerns a different control point than warm-before-cutover web deployment.
Question 406
Auditors reject merges that have no associated tracked requirement or defect in Azure Boards. Which branch policy addresses this directly?
- Enforce a required GitHub ruleset across repositories
- Reset votes when source changes
- Require linked work items on pull requests
- Restrict direct pushes to the default branch
Explanation
Correct Answer
C:The linked work item check enforces or evaluates traceability between a pull request and work items according to branch-policy configuration.
Incorrect Answers
A:Organization-level GitHub rulesets can apply coordinated policy conditions to selected repositories and branches; verified backlog reference at merge cannot be inferred from centrally governed repository protections alone.
B:Vote reset or approval restrictions after new pushes prevent stale approvals from authorizing substantially changed code; the distinction is review freshness after new commits versus verified backlog reference at merge.
D:Protected branch rules and targeted permissions can stop direct updates and require approved pull request workflows; its effect is enforcing reviewed branch updates, not verified backlog reference at merge.
Question 407
Investigators need to identify which pipeline run last deployed to a named Kubernetes environment. Which pipeline resource should deployments reference?
- Set an approval-check timeout for unattended releases
- Investigate a check that timed out
- Configure deployment history through environment use
- Add an approval check to the production environment
Explanation
Correct Answer
C:Azure Pipelines environments record deployment job history and help connect runs with their target resources. Deployment jobs referencing the named environment generate a history that links that environment to pipeline runs.
Incorrect Answers
A:Check timeout bounds how long a deployment can wait for an approval or condition before a stage is marked unsuccessful; it contributes to maximum pending approval duration, with auditable deployment target history still requiring its own control.
B:A stage does not run when required checks time out; the operator can inspect the check and retry the stage after correcting the condition; this solves missed check deadline diagnosis, leaving auditable deployment target history unresolved.
D:Environment owners define approvals outside the pipeline YAML, so a stage consuming the protected environment must satisfy them; it handles resource-owner-controlled human approval but cannot by itself deliver auditable deployment target history.
Question 408
Build agents repeatedly fetch public packages, and the team wants a single configured endpoint that retains downloaded upstream versions for reuse. Which feed capability helps?
- Enable upstream sources on an Azure Artifacts feed
- Promote tested packages to a release view
- Pin a dependency to an approved internal version
- Grant feed Reader to download without publishing
Explanation
Correct Answer
A:Upstream sources let Azure Artifacts serve approved external registries through the feed and save fetched packages for subsequent requests.
Incorrect Answers
B:Azure Artifacts views such as release-oriented views expose selected package versions as a curated subset of a feed; although that supports vetted package visibility boundary, this scenario calls for cached external package consumption.
C:Exact dependency versions and lockfiles help consumers restore a reviewed artifact rather than whatever is newest in a range; cached external package consumption cannot be inferred from approved dependency reproducibility alone.
D:Reader-level Azure Artifacts permissions allow package consumption while reserving publication and promotion for higher-privileged roles; the distinction is download-only package access versus cached external package consumption.
Question 409
A public .NET application uses common SDKs and needs disposable workers with minimal operating-system maintenance. Which pool choice is appropriate?
- Size parallel jobs to actual entitlements
- Update self-hosted agent software
- Configure outbound access from self-hosted agents
- Use a Microsoft-hosted agent for standard builds
Explanation
Correct Answer
D:Microsoft-hosted agents provide managed ephemeral build environments with common tools, reducing self-hosted patching and cleanup work.
Incorrect Answers
A:Azure DevOps parallel-job capacity or entitlements can limit concurrency independently of the physical number of agents; licensed job concurrency ceiling cannot substitute for low-maintenance disposable CI execution.
B:Keeping the agent binary and underlying tools updated preserves compatibility with service protocols and pipeline tasks; low-maintenance disposable CI execution falls outside the scope of worker runtime compatibility.
C:Self-hosted Azure Pipelines agents initiate outbound communication to the service; necessary HTTPS egress must be available; it contributes to agent registration outbound network path, with low-maintenance disposable CI execution still requiring its own control.
Question 410
An Azure Pipelines self-hosted agent in a virtual network can authenticate to Key Vault, but the vault firewall blocks its requests. Security requires that the vault remain inaccessible from the public internet. Which change addresses the network path?
- Create a Key Vault private endpoint and ensure the agent resolves the vault hostname to its private address
- Give the agent identity Owner at subscription scope without changing network connectivity
- Allowlist an arbitrary public hosted-agent IP address and enable public access to the vault
- Create a private endpoint for Azure Storage while leaving the vault public endpoint blocked
- Increase the Azure Pipelines job timeout to allow the blocked request to retry
Explanation
Correct Answer
A:A Key Vault private endpoint gives the VNet a private route to the vault. Correct private DNS resolution and network reachability let the agent use that route while public network access stays disabled.
Incorrect Answers
B:Additional Azure RBAC permissions cannot repair a network firewall denial. Authentication and authorization are distinct from the private network path needed here.
C:Public IP allowlisting depends on public network access and does not satisfy the requirement to keep the vault inaccessible from the internet.
D:A private endpoint for an Azure Storage account only changes connectivity to that storage account, not the Key Vault endpoint rejecting the agent’s request.
E:Longer retries do not change firewall rules, DNS resolution, or private endpoint routing; the vault remains unreachable.