Question 70
A team shares templates from a central repository but breaking template edits must not affect every consumer unexpectedly. What reference strategy is safest?
- Version shared templates by repository ref
- Use extends templates to enforce pipeline structure
- Use protected variable groups for secrets
- Avoid expanding secrets into compile-time templates
Explanation
Correct Answer
A:Pinning a template repository resource to a reviewed tag or commit controls when consuming pipelines receive template revisions.
Incorrect Answers
B:Extends templates define the outer pipeline structure and can constrain accepted parameters so projects cannot bypass standardized stages casually; the distinction is governing the entire pipeline scaffold versus predictable shared-template version.
C:Variable groups can be authorized for specific pipelines and supplemented with approvals or checks where supported; predictable shared-template version cannot be delivered through authorized shared-secret consumption.
D:Runtime secret variables or Key Vault retrieval keep sensitive values out of source-controlled template expansion and minimize accidental disclosure; its effect is separating secrets from YAML compilation, not predictable shared-template version.
Question 71
Maintainers want pull requests proposing dependency version changes when supported security fixes are available. Which automation supports this?
- Enable Dependabot alerts for vulnerable dependencies
- Run scanning on pull requests and scheduled baselines
- Configure Dependabot security updates
- Enable secret scanning in GitHub Advanced Security
- Run CodeQL analysis inside a controlled container
- Define vulnerability severity thresholds for release decisions
Explanation
Correct Answer
C:Dependabot security updates can generate upgrade pull requests for vulnerable dependencies when compatible fixes exist.
Incorrect Answers
A:Dependabot alerts compare dependency information with vulnerability advisories and identify affected package versions; it contributes to known vulnerable dependency notification, with automated vulnerable-package remediation PR still requiring its own control.
B: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 automated vulnerable-package remediation PR unresolved.
D:Secret scanning identifies supported secret patterns and can alert on exposed credentials in repository content; it handles credential pattern detection in source but cannot by itself deliver automated vulnerable-package remediation PR.
E:Running the supported CodeQL analysis workflow in a managed container isolates scanner tooling and makes its runtime dependencies repeatable across builds; automated vulnerable-package remediation PR remains outside the responsibility of isolated static-analysis execution environment.
F:A documented risk-based scanning policy defines failure thresholds and exception handling rather than treating every scanner finding equally; that acts on policy-driven vulnerability release gate, whereas the requested outcome is automated vulnerable-package remediation PR.
Question 72
Maintainers need to run a GitHub Actions recovery workflow on demand with an operator-provided parameter. Which event is appropriate?
- Configure a manual workflow_dispatch event
- Configure a scheduled pipeline trigger
- Use Azure Repos build validation instead of YAML PR trigger
- Configure a workflow_call trigger
Explanation
Correct Answer
A:workflow_dispatch supports manually started GitHub workflows and declared inputs, keeping emergency operations explicit.
Incorrect Answers
B:Scheduled triggers use cron-style schedules to queue pipeline runs independently of repository push events; although that supports time-driven unattended validation, this scenario calls for operator-initiated parameterized workflow.
C:Azure Repos Git PR validation is configured through branch build-validation policies rather than relying on the YAML pr trigger used for other repository providers; operator-initiated parameterized workflow cannot be inferred from Azure Repos target-branch PR validation alone.
D:workflow_call declares a reusable workflow that other workflows invoke with defined inputs and secrets; the distinction is cross-workflow reuse invocation versus operator-initiated parameterized workflow.
Question 73
An internal deployment service must receive push and pull request events from a GitHub repository and verify the sender. What should be configured?
- Configure a GitHub repository webhook
- Filter service-hook subscriptions by event
- Use Azure DevOps work item mentions
- Create targeted GitHub issue notifications
Explanation
Correct Answer
A:GitHub webhooks send selected repository event payloads to an HTTPS endpoint; a webhook secret supports signature verification.
Incorrect Answers
B:Event type and available subscription filters narrow Azure DevOps service-hook traffic before payload delivery; signed GitHub event notifications falls outside the scope of event selection before webhook dispatch.
C: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 signed GitHub event notifications 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 signed GitHub event notifications unresolved.
Question 74
An independent auditor requires limited access to one private repository but must not join the organization as a general member. Which GitHub invitation is appropriate?
- Use outside collaborator access for a contractor
- Use pull requests from forks without exposing repository secrets
- Use GITHUB_TOKEN for same-repository workflow tasks
- Use a GitHub App for organization-wide automation
Explanation
Correct Answer
A:Outside collaborators receive targeted repository access without organization membership, under relevant organizational restrictions.
Incorrect Answers
B:Treat fork PR events as untrusted and avoid privileged contexts that run attacker-controlled code with sensitive secrets; untrusted contribution execution boundary concerns a different control point than repository-only external participation.
C:GITHUB_TOKEN is automatically created for the workflow job and can be scoped through the permissions key for repository operations; here repository-only external participation is the target, not ephemeral built-in workflow authorization.
D:GitHub Apps use installation-scoped permissions and short-lived access tokens, separating integration identity from individual users; although that supports app-scoped multi-repository automation, this scenario calls for repository-only external participation.
Question 75
Several Azure DevOps projects need authenticated consumption of shared NuGet and npm components with versioned package metadata. Which service should host them?
- Create an Azure Artifacts feed for internal libraries
- Use GitHub Packages with repository permissions
- Promote tested packages to a release view
- Pin a dependency to an approved internal version
Explanation
Correct Answer
A:Azure Artifacts feeds store and distribute supported package types with access controls and integration into build tasks.
Incorrect Answers
B:GitHub Packages supports publishing and retrieving supported package formats while tying packages to GitHub access models where applicable; that changes GitHub-native package hosting without delivering centralized private dependency distribution.
C:Azure Artifacts views such as release-oriented views expose selected package versions as a curated subset of a feed; vetted package visibility boundary cannot substitute for centralized private dependency distribution.
D:Exact dependency versions and lockfiles help consumers restore a reviewed artifact rather than whatever is newest in a range; centralized private dependency distribution falls outside the scope of approved dependency reproducibility.
Question 76
A process is alive but deadlocked and stops responding permanently; the platform should replace it rather than merely stop routing to it. Which probe provides the restart signal?
- Use Kubernetes liveness probes to restart stuck containers
- Use Kubernetes startup probes for slow initialization
- Deploy images by digest rather than moving tag
- Build a multi-stage Docker image
- Push build images to Azure Container Registry
- Scan container images before promotion
Explanation
Correct Answer
A:A liveness probe detects unhealthy containers and can trigger restarts according to Kubernetes probe behavior.
Incorrect Answers
B:A startup probe provides an initialization grace period before other health probes begin enforcing normal thresholds; automatic recovery of hung container remains outside the responsibility of protected slow application startup.
C:Content-addressed image digests tie the deployment manifest to exact image bytes, preserving the tested artifact identity; that acts on scanned-image immutability, whereas the requested outcome is automatic recovery of hung container.
D:Multi-stage builds copy final outputs from a builder stage into a smaller runtime stage without shipping build-only dependencies; runtime image minimization concerns a different control point than automatic recovery of hung container.
E:Azure Container Registry stores private container images and artifacts with Azure-integrated identity and access controls; here automatic recovery of hung container is the target, not Azure-native private image storage.
F:Container image vulnerability scanning inspects packaged layers and known component vulnerabilities before production use; although that supports image-layer vulnerability screening, this scenario calls for automatic recovery of hung container.
Question 77
A platform engineer wants pipeline changes reviewed and reverted just like application code; where should shared automation definitions live?
- Pass environment-specific data through parameters
- Keep templates in source control
- Use variable templates for shared nonsecret settings
- Version shared templates by repository ref
Explanation
Correct Answer
B:Storing YAML templates in version control provides pull request review, history, and reproducible pipeline definitions.
Incorrect Answers
A:Explicit parameters separate environment configuration from the common deployment logic, avoiding copied YAML definitions; the distinction is controlled variation of a shared workflow versus auditable pipeline-as-code evolution.
C:Variable templates keep common nonsecret values in checked-in YAML for consistent versioned inclusion; its effect is source-controlled configuration reuse, not auditable pipeline-as-code evolution.
D:Pinning a template repository resource to a reviewed tag or commit controls when consuming pipelines receive template revisions; that changes predictable shared-template version without delivering auditable pipeline-as-code evolution.
Question 78
A GitHub team needs a closed defect to show exactly which merged code change fixed it, and wants closure after merge. Which pattern should developers adopt?
- Short-lived branches merged to main by pull request
- Associate pipeline runs with commits
- Use GitHub issue forms for structured intake
- Link a pull request to its fixing issue
Explanation
Correct Answer
D:GitHub closing keywords in pull request descriptions link issues to code and can close the referenced issue when the PR merges into the default branch.
Incorrect Answers
A:GitHub Flow uses a stable main branch, short-lived topic branches, pull requests, and frequent deployment of reviewed changes; this solves lightweight branch-to-main review, leaving issue closure with code evidence unresolved.
B:Pipeline run metadata and immutable source commit identifiers connect produced artifacts to their source revision and build results; this option addresses build-to-source provenance rather than addressing issue closure with code evidence.
C:Issue forms define structured fields for new reports, so maintainers receive consistent triage information from contributors; it handles standardized issue reporting but cannot by itself deliver issue closure with code evidence.
Question 79
The security group needs six months of searchable operational history, but default retention removes data earlier. Which Azure Monitor configuration must be reviewed?
- Use an Azure Monitor Log Analytics workspace
- Configure diagnostic settings on an Azure resource
- Use alert processing rules for maintenance windows
- Set appropriate workspace data retention
- Use an action group for alert delivery
Explanation
Correct Answer
D:Log Analytics retention and archive settings govern how long ingested records remain available for interactive queries and longer-term retrieval.
Incorrect Answers
A:A Log Analytics workspace stores supported Azure Monitor Logs data for shared analysis, alerting, and cross-resource queries; although that supports centralized searchable operational logs, this scenario calls for policy-compliant telemetry lifetime.
B:Resource diagnostic settings send supported log and metric categories to destinations such as a Log Analytics workspace; policy-compliant telemetry lifetime cannot be inferred from forwarding resource telemetry alone.
C:Alert processing rules can apply routing or action suppression under specified scope and timing conditions; the distinction is maintenance-specific notification suppression versus policy-compliant telemetry lifetime.
E:Action groups connect alert rules to notification channels and automation receivers such as email, SMS, and webhooks; its effect is alert recipient and action routing, not policy-compliant telemetry lifetime.
Question 80
A security auditor must later identify which container build was scanned even if human-readable image tags are reassigned. What version identifier should the release record retain?
- Use a unique build ID for pipeline artifacts
- Increment the minor version for backward-compatible features
- Use CalVer for date-oriented platform releases
- Include commit SHA in artifact provenance
- Record an OCI digest in the release manifest
Explanation
Correct Answer
E:Storing the image content digest with release metadata preserves the exact artifact identity for later provenance verification despite tag movement.
Incorrect Answers
A:A pipeline run or build ID supplies a unique execution identity that can be combined with artifact names and retention rules; historic image provenance identity falls outside the scope of per-run artifact disambiguation.
B:SemVer minor versions describe backward-compatible functionality additions without treating the update as a breaking change; it contributes to additive nonbreaking release signal, with historic image provenance identity still requiring its own control.
C:Calendar versioning encodes release time using a defined calendar scheme and suits time-driven delivery policies; this solves calendar-anchored release identity, leaving historic image provenance identity unresolved.
D:A commit SHA uniquely identifies the source snapshot used by a build and supports traceability from deployment to repository state; this option addresses source snapshot identity for each build rather than addressing historic image provenance identity.