Question 240
Maintainers are overwhelmed by all repository activity and want notifications only for threads they participate in or subscribe to. Which GitHub mechanism helps?
- Create targeted GitHub issue notifications
- Use Azure DevOps work item mentions
- Use GitHub Discussions for open-ended community topics
- Configure a GitHub repository webhook
Explanation
Correct Answer
A:GitHub notification subscriptions let users follow relevant issue or pull request conversations while reducing unrelated alerts.
Incorrect Answers
B:Mentioning a colleague in a work item comment notifies that person and preserves discussion context with the tracked work; it contributes to contextual backlog discussion notification, with participation-based discussion awareness still requiring its own control.
C:GitHub Discussions supports community conversations, questions, and ideas without treating every exchange as a trackable issue; this solves exploratory community conversation, leaving participation-based discussion awareness unresolved.
D:GitHub webhooks send selected repository event payloads to an HTTPS endpoint; a webhook secret supports signature verification; this option addresses signed GitHub event notifications rather than addressing participation-based discussion awareness.
Question 241
An internal platform publishes timeboxed monthly tool bundles and stakeholders identify release age by calendar period rather than API compatibility. Which scheme fits?
- Prevent republishing the same version with different bytes
- Include commit SHA in artifact provenance
- Generate a software bill of materials with releases
- Use CalVer for date-oriented platform releases
Explanation
Correct Answer
D:Calendar versioning encodes release time using a defined calendar scheme and suits time-driven delivery policies.
Incorrect Answers
A:Immutable package versions ensure that a given package name and version cannot silently acquire different contents; stable package name-version mapping concerns a different control point than calendar-anchored release identity.
B:A commit SHA uniquely identifies the source snapshot used by a build and supports traceability from deployment to repository state; here calendar-anchored release identity is the target, not source snapshot identity for each build.
C:A software bill of materials records software components and versions used in a build, supporting later dependency risk analysis; although that supports shipped dependency inventory, this scenario calls for calendar-anchored release identity.
Question 242
A production outage requires a one-line fix, but main contains untested features; where should the emergency change begin?
- Merge an integration branch while preserving its history
- Use feature flags for incomplete trunk work
- Squash commits when completing a pull request
- Use a hotfix branch from the production revision
Explanation
Correct Answer
D:Branching from the deployed release commit isolates an urgent correction from unrelated unshipped changes. After validating the fix, merge or cherry-pick it back to the active development line to avoid future regression.
Incorrect Answers
A:A merge commit can preserve branch topology and the context of integrating a completed branch; that changes retained branch integration topology without delivering production-specific patch isolation.
B:Feature flags gate runtime behavior independently from source integration, permitting frequent merges before release exposure; hidden unfinished behavior on main cannot substitute for production-specific patch isolation.
C:Squash merging combines the pull request's commits into a single new commit on the target branch; production-specific patch isolation falls outside the scope of one logical commit per reviewed feature.
Question 243
A pull request adds a new direct package that violates security policy, and the team wants risk information during review. What control is useful?
- Use least-privilege tokens for security scanners
- Use dependency review before merging
- Configure Dependabot security updates
- Require secret scan checks before publishing
- Enable GitHub Advanced Security for Azure DevOps
Explanation
Correct Answer
B:Dependency review examines introduced or changed dependencies in a pull request and can flag known risks before merge.
Incorrect Answers
A:Grant only the API permissions necessary to retrieve code and publish assessment results, keeping repository administration separate; package risk introduced by a PR remains outside the responsibility of narrow automation scanner identity.
C:Dependabot security updates can generate upgrade pull requests for vulnerable dependencies when compatible fixes exist; automated vulnerable-package remediation PR concerns a different control point than package risk introduced by a PR.
D:Secret detection applied to source and built artifacts can block distribution when sensitive credential patterns are found; here package risk introduced by a PR is the target, not prepublication credential leakage gate.
E:GitHub Advanced Security for Azure DevOps brings supported code, dependency, and secret scanning capabilities to Azure DevOps repositories; although that supports advanced scanning on Azure Repos, this scenario calls for package risk introduced by a PR.
Question 244
A workflow deploys to both test and production, but the production token must be available only in approved production jobs. Which secret scope is appropriate?
- Avoid echoing command-line credentials
- Use GitHub environment secrets for production
- Keep secrets out of generated artifacts
- Restrict permissions to download signing secure files
Explanation
Correct Answer
B:Environment-scoped secrets integrate with deployment environment protection and narrow credential exposure to intended jobs.
Incorrect Answers
A:Supply credentials through protected inputs or supported environment mechanisms rather than exposing them in printed arguments; deployment-environment secret boundary cannot be delivered through nonlogged secret delivery to tools.
C:Artifact content inspection and secret scanning can detect sensitive files included in release payloads before distribution; that changes avoiding credentials in distributed binaries without delivering deployment-environment secret boundary.
D:Secure-file pipeline permissions limit which definitions may download protected file assets during runs; signing file consumer allowlist cannot substitute for deployment-environment secret boundary.
Question 245
Repeated jobs spend most of their time downloading unchanged tool dependencies, while actual source compilation is fast. Which acceleration should be measured?
- Cache compiler or package dependencies
- Translate classic release approvals to environment checks
- Investigate build queue bottlenecks before adding CPUs
- Use selective test execution for monorepo changes
Explanation
Correct Answer
A:Pipeline caching reuses eligible dependency or tool directories keyed by their inputs, reducing repeated setup without replacing artifact publication.
Incorrect Answers
B:Resource approvals and checks on YAML environments enforce authorization outside developer-controlled pipeline logic; it handles preserved release governance after migration but cannot by itself deliver reducing repeatable job setup work.
C:Queue metrics identify a shortage of parallel execution slots or eligible agents, which faster individual CPUs alone cannot fix; reducing repeatable job setup work remains outside the responsibility of correcting queue-bound pipeline delay.
D:Path-aware test selection can run affected verification suites while retaining full broader checks at appropriate release gates; that acts on change-impact-based verification, whereas the requested outcome is reducing repeatable job setup work.
Question 246
A canary passes technical startup checks but live error rates rise sharply; which control should stop promotion and initiate recovery?
- Use a kill switch for risky functionality
- Use Azure App Configuration Feature Manager
- Use percentage-based feature targeting
- Separate rollout from rollback triggers
Explanation
Correct Answer
D:Rollout gates should watch production health indicators and initiate rollback or halt when configured thresholds are violated.
Incorrect Answers
A:A remotely controlled feature flag can disable the affected path quickly while leaving the running binary unchanged; health-based rollout abort cannot be inferred from instant reversible feature disablement alone.
B:App Configuration feature management stores flag definitions and enables supported application frameworks to evaluate feature state; the distinction is centralized application feature controls versus health-based rollout abort.
C:Percentage targeting can expose a flag to a configured user share using consistent targeting rules where supported; health-based rollout abort cannot be delivered through stable fractional feature audience.
Question 247
A deployment pipeline is rejected when attempting to use an existing Azure Resource Manager service connection owned by another team. Which configuration must be verified?
- Use pipeline resource artifact download
- Define secure service connection authorization
- Use multiple checkout steps
- Protect external repository resource triggers
- Select the correct GitHub repository in an Azure Pipeline
Explanation
Correct Answer
B:Service connections are protected resources; a pipeline requires explicit authorization or appropriate resource permissions before use.
Incorrect Answers
A:Pipeline resources identify producer pipelines and their runs so downstream workflows can download associated build artifacts; it contributes to downstream consumption of upstream build output, with controlled pipeline access to cloud connection still requiring its own control.
C:Multiple checkout steps fetch the primary and declared secondary repositories into the job workspace; this option addresses simultaneous workspace repository access rather than addressing controlled pipeline access to cloud connection.
D:Repository resource triggers and release stage conditions should restrict which trusted source revisions may initiate sensitive downstream work; it handles trusted cross-repository activation but cannot by itself deliver controlled pipeline access to cloud connection.
E:The pipeline's repository configuration and authorized GitHub connection determine which source repository and branch are used; controlled pipeline access to cloud connection remains outside the responsibility of exact source repository selection.
Question 248
After moving from classic releases to YAML, production settings sometimes differ despite a green build. What acceptance method can expose migration errors?
- Shard a long test suite across workers
- Review a migrated pipeline with a comparison run
- Migrate classic pipeline tasks to YAML
- Translate classic release approvals to environment checks
Explanation
Correct Answer
B:Side-by-side dry runs or test deployments compare artifacts, variables, approvals, and outcomes before switching fully to the new definition.
Incorrect Answers
A:Test sharding partitions cases among concurrent workers and combines their reports, reducing the duration of an otherwise serial test job; here evidence-based pipeline migration parity is the target, not distributed test-case execution.
C:YAML pipelines express jobs and steps as source-controlled definitions, improving change review and reproducibility; evidence-based pipeline migration parity cannot be inferred from replacing GUI-only automation with code alone.
D:Resource approvals and checks on YAML environments enforce authorization outside developer-controlled pipeline logic; the distinction is preserved release governance after migration versus evidence-based pipeline migration parity.
Question 249
A Teams bridge is missing occasional events even though the source records show the action happened. Which diagnostic step should be done first?
- Use Azure DevOps work item mentions
- Verify webhook delivery logs and retry failures
- Subscribe a Teams channel to GitHub events
- Create targeted GitHub issue notifications
Explanation
Correct Answer
B:Webhook delivery history exposes request outcomes and payload attempts, helping distinguish destination failures from missing source events.
Incorrect Answers
A:Mentioning a colleague in a work item comment notifies that person and preserves discussion context with the tracked work; contextual backlog discussion notification cannot substitute for webhook transport troubleshooting.
C:GitHub integration with Microsoft Teams surfaces repository activity in a selected channel based on subscription configuration; it contributes to GitHub-to-Teams collaboration events, with webhook transport troubleshooting still requiring its own control.
D:GitHub notification subscriptions let users follow relevant issue or pull request conversations while reducing unrelated alerts; this solves participation-based discussion awareness, leaving webhook transport troubleshooting unresolved.
Question 250
A stage needs authorization from a centralized change-management platform, and the platform returns its decision through an HTTP interface. Which dynamic check is appropriate?
- Use post-check approval for completion review
- Add an Evaluate artifact check
- Add branch control to a protected resource
- Add an Invoke REST API check
Explanation
Correct Answer
D:REST API checks integrate an external policy decision with the resource approval lifecycle before deployment begins.
Incorrect Answers
A:Post-check approvals are evaluated after eligible dynamic checks according to the resource check order, providing an additional approval point; that acts on late-stage protected-resource approval, whereas the requested outcome is external change-control API evaluation.
B:Evaluate artifact checks assess supported artifact policy information before a stage may consume the protected resource; predeployment artifact policy evaluation concerns a different control point than external change-control API evaluation.
C:Branch control checks validate the source branch against an allowed list and can consider whether protection is present; here external change-control API evaluation is the target, not approved branch origin gate.