Question 290
A JavaScript repository includes an old transitive package with a newly disclosed vulnerability; maintainers need an alert tied to dependency data. Which GitHub feature fits?
- Connect Azure DevOps to Microsoft Defender for Cloud DevOps security
- Run CodeQL analysis inside a controlled container
- Run scanning on pull requests and scheduled baselines
- Enable Dependabot alerts for vulnerable dependencies
Explanation
Correct Answer
D:Dependabot alerts compare dependency information with vulnerability advisories and identify affected package versions.
Incorrect Answers
A:Connecting supported Azure DevOps organizations to Defender for Cloud DevOps security brings repository posture and findings into a code-to-cloud governance view; that changes cloud-correlated Azure Repos security posture without delivering known vulnerable dependency notification.
B:Running the supported CodeQL analysis workflow in a managed container isolates scanner tooling and makes its runtime dependencies repeatable across builds; isolated static-analysis execution environment cannot substitute for known vulnerable dependency notification.
C:Change-triggered and recurring scans together detect introduced vulnerabilities and subsequently disclosed issues in stable dependencies; known vulnerable dependency notification falls outside the scope of continuous risk detection beyond code changes.
Question 291
A vendor may modify one integration repository but must have no write rights to other repositories in the project. How should permission scope be handled?
- Grant Contribute only to selected Azure Repos repositories
- Restrict repository deletion
- Use tag prefixes to distinguish versions
- Use signed Git tags
Explanation
Correct Answer
A:Apply repository-specific permissions and group membership instead of broad project-level write entitlements. A repository-specific grant lets the vendor contribute to the integration target without granting project-wide write access.
Incorrect Answers
B:Administrative permissions govern destructive repository operations and should be limited independently from ordinary code contribution; that acts on destructive repository administration rights, whereas the requested outcome is least-privilege repo write scope.
C:Component-specific tag prefixes make release identities unambiguous without creating separate histories for each package; component-specific tag namespaces concerns a different control point than least-privilege repo write scope.
D:Signed tags bind a cryptographic signature to an annotated tag object, allowing verification against the trusted signing key; here least-privilege repo write scope is the target, not authenticated release label.
Question 292
A test passed a month ago and fails now, with hundreds of commits between known good and bad revisions. Which search technique is best?
- Use git reset on unpublished local work
- Use git blame to inspect line provenance
- Use git filter-repo to rewrite sensitive history
- Use git stash for temporary unfinished edits
- Use git bisect to locate a regression
Explanation
Correct Answer
E:git bisect performs a binary search through commit history using good/bad test results to isolate the first failing change.
Incorrect Answers
A:git reset can move the branch reference and optionally change the index and working tree; it should be used carefully on private history; identifying the first faulty commit cannot be delivered through moving an unpublished branch pointer.
B:git blame annotates source lines with the last modifying commit, supporting focused historical investigation; its effect is last-change attribution per line, not identifying the first faulty commit.
C:git filter-repo rewrites repository history to remove selected paths or blobs; credentials must also be revoked and old clones addressed; that changes full-history sensitive blob removal without delivering identifying the first faulty commit.
D:git stash saves eligible uncommitted work for later reapplication, freeing the worktree for a different task; temporary worktree shelving cannot substitute for identifying the first faulty commit.
Question 293
An on-call team repeatedly fixes the same production symptoms but improvement tasks never reach engineering planning. Which workflow closes the loop?
- Create a GitHub Actions failure notification
- Alert on a rising failed-deployment ratio
- Calculate lead time for changes from source and deployment
- Use feedback-loop work items for recurring incidents
Explanation
Correct Answer
D:Turning incident findings into tracked prioritized work items with ownership and linked operational evidence makes reliability work part of delivery.
Incorrect Answers
A:Workflow failure events can trigger supported notifications or an automation workflow to notify designated responders; this option addresses reactive GitHub workflow failure alert rather than addressing incident-to-backlog improvement traceability.
B:A deployment outcome metric filtered to production and evaluated over a time window detects a sustained release reliability problem; it handles sustained production promotion failures but cannot by itself deliver incident-to-backlog improvement traceability.
C:Joining source change timestamps with production deployment records yields change lead time across build, review, and release processes; incident-to-backlog improvement traceability remains outside the responsibility of source-to-production delivery latency.
Question 294
A deployment workflow needs a separate human verification after another configured release check completes, before the stage proceeds under the resource governance scheme. Which check phase is suited?
- Use post-check approval for completion review
- Add an Invoke REST API check
- Add an exclusive lock to serialize deployments
- Add an Evaluate artifact check
Explanation
Correct Answer
A:Post-check approvals are evaluated after eligible dynamic checks according to the resource check order, providing an additional approval point.
Incorrect Answers
B:REST API checks integrate an external policy decision with the resource approval lifecycle before deployment begins; the distinction is external change-control API evaluation versus late-stage protected-resource approval.
C:The exclusive lock check serializes stage access to a protected resource, allowing one eligible deployment through at a time; late-stage protected-resource approval cannot be delivered through mutual exclusion for release changes.
D:Evaluate artifact checks assess supported artifact policy information before a stage may consume the protected resource; its effect is predeployment artifact policy evaluation, not late-stage protected-resource approval.
Question 295
An organization still operates classic pipelines and wants to reuse a common sequence of supported tasks without rewriting everything as YAML. What mechanism fits?
- Pass environment-specific data through parameters
- Create a jobs template for common verification jobs
- Use template insertion for optional steps
- Use task groups for legacy classic build tasks
Explanation
Correct Answer
D:Task groups wrap reusable task sequences for classic pipelines, distinct from YAML template composition. Task groups serve classic pipeline definitions; a YAML-only workflow should instead share steps through templates.
Incorrect Answers
A:Explicit parameters separate environment configuration from the common deployment logic, avoiding copied YAML definitions; it contributes to controlled variation of a shared workflow, with classic-pipeline task reuse still requiring its own control.
B:A jobs template encapsulates job definitions so each caller obtains the same validated worker and task structure; this solves reusable complete job, leaving classic-pipeline task reuse unresolved.
C:Template insertion can splice parameterized steps into the compiled pipeline while preserving the template's ordered structure; this option addresses optional compile-time step expansion rather than addressing classic-pipeline task reuse.
Question 296
A running service needs to read specific protected secrets but should not create or delete unrelated Azure resources. Which permission strategy is appropriate?
- Use a user-assigned managed identity across workloads
- Prefer a certificate credential over an unmanaged shared password when required
- Assign only data-plane access for Key Vault secret retrieval
- Separate production and development deployment identities
- Scope service principal RBAC at the resource group
Explanation
Correct Answer
C:Key Vault data-plane roles or access policies grant secret retrieval without general resource management authority.
Incorrect Answers
A:User-assigned managed identities are independent Azure resources that can be attached to multiple supported workloads and retain their own lifecycle; here secret-read without infrastructure administration is the target, not reusable independent Azure identity.
B:Certificate credentials support asymmetric authentication and rotation, avoiding broad reuse of a plaintext shared client secret; although that supports certificate-backed application identity, this scenario calls for secret-read without infrastructure administration.
D:Distinct workload identities and scoped RBAC separate lower-trust development automation from production deployment authority; the distinction is environment identity isolation versus secret-read without infrastructure administration.
E:Azure RBAC assigned to the deployment identity at the target resource group limits actions to that scope and inherited children; secret-read without infrastructure administration cannot be delivered through resource-group-bounded deployment privilege.
Question 297
A service client receives only a defect correction, with its public API unchanged under SemVer. Which part of the version should advance?
- Use build metadata without altering SemVer precedence
- Increment the major version for a breaking API change
- Increment the patch version for a compatible bug fix
- Commit package lockfiles for reproducible dependency resolution
- Build once and promote the same artifact across environments
- Use a unique build ID for pipeline artifacts
Explanation
Correct Answer
C:SemVer patch versions identify backward-compatible bug fixes and support predictable dependency upgrade decisions.
Incorrect Answers
A:SemVer build metadata follows a plus sign and communicates extra information without affecting version precedence comparison; informational build identity suffix cannot substitute for compatible defect correction version.
B:Under SemVer, a major increment signals incompatible public API changes so consumers can avoid accidental breaking upgrades; compatible defect correction version falls outside the scope of incompatible interface version signal.
D:A committed lockfile records resolved dependency versions and often integrity data, reducing drift across build environments; this solves deterministic transitive dependency graph, leaving compatible defect correction version unresolved.
E:Promoting an immutable built artifact keeps the tested bits identical across stages instead of recompiling from mutable inputs; this option addresses environment-independent deployable identity rather than addressing compatible defect correction version.
F:A pipeline run or build ID supplies a unique execution identity that can be combined with artifact names and retention rules; it handles per-run artifact disambiguation but cannot by itself deliver compatible defect correction version.
Question 298
Several teams repeatedly debate why a particular deployment topology was chosen; they need durable context and trade-offs, not only current diagrams. What should be captured?
- Generate release notes from labeled pull requests
- Store documentation in a Git-backed wiki
- Generate docs in a CI stage
- Automate changelog generation at tagged releases
- Document decisions in architecture decision records
Explanation
Correct Answer
E:Architecture decision records preserve context, considered alternatives, the chosen decision, and consequences in versioned documentation.
Incorrect Answers
A:Structured pull request labels and merged change metadata can be transformed into categorized release notes by a release workflow; that acts on categorized change summary automation, whereas the requested outcome is recorded architectural tradeoffs.
B:A code wiki publishes Markdown from a Git repository, enabling reviewable commits and source-controlled updates; source-controlled architecture documentation concerns a different control point than recorded architectural tradeoffs.
C:A documentation build stage creates reference pages from current source or specifications and can fail when generated output is invalid; here recorded architectural tradeoffs is the target, not documentation freshness on each integration.
D:Comparing commits or merged pull requests between release tags establishes a bounded change set for each published version; although that supports release-bound change interval, this scenario calls for recorded architectural tradeoffs.
Question 299
Managers want to identify CI definitions with chronic failures rather than count total jobs across the organization. Which health indicator should be monitored?
- Identify unreliable external service dependencies
- Track critical-path stage duration
- Track build success rate by pipeline
- Set cancellation timeout for cleanup
Explanation
Correct Answer
C:Success and failure ratios by pipeline reveal reliability problems in particular delivery definitions over time.
Incorrect Answers
A:Failure categorization by task and external dependency distinguishes platform or network outages from code defects; its effect is external dependency build failures, not pipeline-specific pass rate.
B:Stage and job duration trends reveal where elapsed execution time is concentrated and where optimization has leverage; that changes stage-level throughput bottlenecks without delivering pipeline-specific pass rate.
D:Cancellation grace settings allow eligible cleanup work limited time to finish after a run is canceled; pipeline-specific pass rate falls outside the scope of graceful cancellation finalization.
Question 300
A registry allows developers to replace a published package, undermining reproducible restores. Which governance rule should be established?
- Use CalVer for date-oriented platform releases
- Prevent republishing the same version with different bytes
- Use build metadata without altering SemVer precedence
- Increment the patch version for a compatible bug fix
Explanation
Correct Answer
B:Immutable package versions ensure that a given package name and version cannot silently acquire different contents.
Incorrect Answers
A:Calendar versioning encodes release time using a defined calendar scheme and suits time-driven delivery policies; it handles calendar-anchored release identity but cannot by itself deliver stable package name-version mapping.
C:SemVer build metadata follows a plus sign and communicates extra information without affecting version precedence comparison; that acts on informational build identity suffix, whereas the requested outcome is stable package name-version mapping.
D:SemVer patch versions identify backward-compatible bug fixes and support predictable dependency upgrade decisions; compatible defect correction version concerns a different control point than stable package name-version mapping.