Question 310
A manager needs a persistent dashboard pie chart of bugs grouped by priority, with counts recalculated as work items change. Which dashboard source is suitable?
- Correlate incident counts with releases
- Analyze backlog throughput by work item type
- Use deployment duration trends
- Use a query-based Azure Boards chart
- Use a vulnerability severity dashboard
Explanation
Correct Answer
D:Charts built from supported work item queries visualize live result groupings and can be added to Azure DevOps dashboards.
Incorrect Answers
A:Time-aligning deployment events with incident counts reveals associations worth investigating without asserting deployment caused every incident; dynamic priority distribution cannot be inferred from release-and-incident temporal relationship alone.
B:Completed work items grouped by type and iteration reveal throughput composition rather than an undifferentiated completed-task count; the distinction is bug-versus-feature delivery mix versus dynamic priority distribution.
C:Deployment duration by stage and environment identifies slower pipeline activities and supports targeted release-process optimization; dynamic priority distribution cannot be delivered through environment rollout elapsed time.
E:Vulnerability reporting should group detected findings by severity, affected asset, and remediation status rather than only build totals; that changes risk-ranked outstanding findings without delivering dynamic priority distribution.
Question 311
A GitHub Actions job needs to comment on its own pull request using only the permissions granted to that workflow run. Which credential is normally appropriate?
- Use pull requests from forks without exposing repository secrets
- Restrict GITHUB_TOKEN to contents read
- Use GITHUB_TOKEN for same-repository workflow tasks
- Grant a triage role rather than write for issue management
Explanation
Correct Answer
C:GITHUB_TOKEN is automatically created for the workflow job and can be scoped through the permissions key for repository operations.
Incorrect Answers
A:Treat fork PR events as untrusted and avoid privileged contexts that run attacker-controlled code with sensitive secrets; it contributes to untrusted contribution execution boundary, with ephemeral built-in workflow authorization still requiring its own control.
B:Declaring contents read while omitting unnecessary write scopes applies least privilege to the automatically issued job token; this solves read-only code checkout authorization, leaving ephemeral built-in workflow authorization unresolved.
D:The triage role supports issue and pull request management operations without conferring normal code write permissions; it handles backlog triage without code updates but cannot by itself deliver ephemeral built-in workflow authorization.
Question 312
Several .NET services need centrally defined flags with targeting and rollout control rather than custom code constants. Which Azure capability supports this?
- Separate rollout from rollback triggers
- Use progressive exposure with automatic health gates
- Use Azure App Configuration Feature Manager
- Use a kill switch for risky functionality
Explanation
Correct Answer
C:App Configuration feature management stores flag definitions and enables supported application frameworks to evaluate feature state.
Incorrect Answers
A:Rollout gates should watch production health indicators and initiate rollback or halt when configured thresholds are violated; here centralized application feature controls is the target, not health-based rollout abort.
B:Progressive delivery couples staged exposure with monitored health metrics so advancement can stop or reverse on regression; although that supports telemetry-gated exposure expansion, this scenario calls for centralized application feature controls.
D:A remotely controlled feature flag can disable the affected path quickly while leaving the running binary unchanged; the distinction is instant reversible feature disablement versus centralized application feature controls.
Question 313
Open-source contributors submit untrusted code from forks; CI should test the code without granting deployment secrets or write tokens. Which workflow security boundary matters?
- Use a fine-grained personal access token when a PAT is unavoidable
- Use outside collaborator access for a contractor
- Use protected environments to gate secret access
- Use pull requests from forks without exposing repository secrets
- Grant a maintain role rather than admin for everyday management
Explanation
Correct Answer
D:Treat fork PR events as untrusted and avoid privileged contexts that run attacker-controlled code with sensitive secrets.
Incorrect Answers
A:Fine-grained personal access tokens can narrow repository selection, permissions, and expiration compared with broad classic tokens; limited user-backed integration access cannot substitute for untrusted contribution execution boundary.
B:Outside collaborators receive targeted repository access without organization membership, under relevant organizational restrictions; untrusted contribution execution boundary falls outside the scope of repository-only external participation.
C:GitHub environment protection rules can gate job execution and access to environment-scoped secrets; it contributes to guarded production secret exposure, with untrusted contribution execution boundary still requiring its own control.
E:Maintain is intended for broad repository management tasks without all administrator-only powers; this option addresses nonsecurity repository maintenance delegation rather than addressing untrusted contribution execution boundary.
Question 314
A staging slot uses test credentials and production uses live credentials; a swap must not move these environment-specific secrets with the code. Which configuration is required?
- Use failure-domain-aware rollout waves
- Deploy an urgent hotfix through a controlled fast path
- Perform predeployment backup before a destructive database change
- Configure slot-sticky settings
Explanation
Correct Answer
D:Deployment slot settings remain tied to their designated slot during swaps, preserving environment-specific configuration.
Incorrect Answers
A:Zone-aware sequential deployment waves keep healthy capacity in unaffected zones while each wave is verified; that acts on zonal release blast-radius reduction, whereas the requested outcome is retaining environment credentials across swaps.
B:A hotfix branch or targeted change can pass abbreviated risk-based checks and controlled promotion while preserving audit links and a merge-back plan; expedited traceable emergency release concerns a different control point than retaining environment credentials across swaps.
C:Tested backups and restoration procedures protect data when a destructive change cannot be rolled back by code reversion alone; here retaining environment credentials across swaps is the target, not recoverability of destructive data changes.
Question 315
A monorepo has separate front-end and back-end pipelines; a docs-only edit should not require both costly builds. Which PR policy refinement helps?
- Use path filters on build validation
- Require minimum approving reviewers in Azure Repos
- Configure required status checks from an external scanner
- Reset votes when source changes
Explanation
Correct Answer
A:Path filters limit when a build-validation policy applies based on changed files, reducing unrelated checks. Filter by changed paths so a component-specific validation policy runs only for relevant pull-request changes.
Incorrect Answers
B:The minimum reviewer policy sets the number of eligible approvals required to complete pull requests into a protected branch; that changes mandatory reviewer quorum without delivering changed-file-targeted validation.
C:A required status policy evaluates externally posted pull request status contexts before allowing completion; mandatory external PR assessment cannot substitute for changed-file-targeted validation.
D:Vote reset or approval restrictions after new pushes prevent stale approvals from authorizing substantially changed code; changed-file-targeted validation falls outside the scope of review freshness after new commits.
Question 316
A security scan should run at 02:00 on weekdays even when no developer pushes code. Which trigger class should be used?
- Configure pipeline-completion triggers
- Configure a scheduled pipeline trigger
- Use GitHub Actions concurrency cancellation
- Configure a GitHub pull_request workflow trigger
Explanation
Correct Answer
B:Scheduled triggers use cron-style schedules to queue pipeline runs independently of repository push events. The schedule queues work independently of code changes, although schedule configuration and time zone must be verified.
Incorrect Answers
A:Pipeline resource completion triggers can queue downstream runs based on the completion of a specified upstream pipeline; it handles upstream-build-driven automation but cannot by itself deliver time-driven unattended validation.
C:Concurrency groups with cancel-in-progress can stop superseded workflow runs and conserve capacity; that acts on canceling obsolete workflow executions, whereas the requested outcome is time-driven unattended validation.
D:The pull_request event runs selected workflows for PR activities, enabling validation before code is merged; GitHub proposed-change verification concerns a different control point than time-driven unattended validation.
Question 317
When a pipeline is canceled, a required cleanup task often stops before releasing temporary resources. Which job lifecycle setting should be evaluated?
- Audit changed pipeline definitions
- Set cancellation timeout for cleanup
- Pin important runs from automatic retention
- Use pipeline run diagnostics for task failures
Explanation
Correct Answer
B:Cancellation grace settings allow eligible cleanup work limited time to finish after a run is canceled. Allow enough cancellation grace for the final cleanup step, while retaining a finite bound on canceled jobs.
Incorrect Answers
A:Pull request and Git commit history for pipeline-as-code records who changed the definition and what was approved; the distinction is audit trail for automation changes versus graceful cancellation finalization.
C:Retention leases or supported keep-forever controls can protect selected runs and their records from routine expiration; its effect is exceptional run preservation, not graceful cancellation finalization.
D:Pipeline diagnostic logging provides additional task and agent details that help isolate initialization and command failures; that changes detailed failing task investigation without delivering graceful cancellation finalization.
Question 318
A checkout flow works at the API layer but users report that browser navigation and authentication break across components. Which test tier should be included?
- Keep a smaller production smoke-test suite
- Use ephemeral test environments for parallel pull requests
- Run unit tests before packaging
- Use contract tests between producer and consumer
- Run end-to-end tests on a deployed application
Explanation
Correct Answer
E:End-to-end tests validate a complete user journey through deployed components, detecting failures hidden from isolated tests.
Incorrect Answers
A:Smoke tests check essential application paths after rollout and provide a quick signal before broader validation completes; this solves basic release health verification, leaving full workflow behavior verification unresolved.
B:Isolated short-lived test environments give each validation run independent dependencies and reduce cross-branch test contamination; this option addresses test dependency isolation per change rather than addressing full workflow behavior verification.
C:Unit tests exercise small components in isolation and are usually fast enough to provide immediate feedback during continuous integration; it handles low-cost component correctness but cannot by itself deliver full workflow behavior verification.
D:Contract tests verify that producers and consumers satisfy agreed interface expectations before integration breaks at runtime; full workflow behavior verification remains outside the responsibility of cross-team API compatibility.
Question 319
Azure federation currently trusts any workflow in a repository, but only approved main-branch deployments may acquire production tokens. What must be narrowed?
- Use a system-assigned managed identity for one Azure resource
- Restrict federated credential trust to a protected workflow
- Separate production and development deployment identities
- Use workload identity federation for Azure Pipelines
Explanation
Correct Answer
B:Federated identity subject and related trust conditions should match the intended protected GitHub workflow context rather than arbitrary jobs.
Incorrect Answers
A:A system-assigned managed identity is tied to the lifecycle of one Azure resource and can obtain Entra tokens without stored passwords; although that supports resource-lifecycle-bound workload identity, this scenario calls for bounded OIDC trust assertions.
C:Distinct workload identities and scoped RBAC separate lower-trust development automation from production deployment authority; the distinction is environment identity isolation versus bounded OIDC trust assertions.
D:Workload identity federation exchanges trusted short-lived pipeline assertions for Azure access tokens without storing a client secret; bounded OIDC trust assertions cannot be delivered through secretless Azure DevOps-to-Azure authentication.
Question 320
Security administrators manage Azure Repos repositories and want their supported repository posture and vulnerability signals consolidated with cloud workload risks. Which platform connector fits?
- Run CodeQL analysis inside a controlled container
- Use least-privilege tokens for security scanners
- Enable secret scanning in GitHub Advanced Security
- Connect Azure DevOps to Microsoft Defender for Cloud DevOps security
Explanation
Correct Answer
D:Connecting supported Azure DevOps organizations to Defender for Cloud DevOps security brings repository posture and findings into a code-to-cloud governance view.
Incorrect Answers
A:Running the supported CodeQL analysis workflow in a managed container isolates scanner tooling and makes its runtime dependencies repeatable across builds; cloud-correlated Azure Repos security posture falls outside the scope of isolated static-analysis execution environment.
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 cloud-correlated Azure Repos security posture still requiring its own control.
C:Secret scanning identifies supported secret patterns and can alert on exposed credentials in repository content; this solves credential pattern detection in source, leaving cloud-correlated Azure Repos security posture unresolved.