Question 120
An administrator accidentally deleted an unprotected branch previously; the default branch now needs safeguards against accidental removal. What source-control policy helps?
- Restrict repository deletion
- Use signed Git tags
- Use annotated Git tags for audited releases
- Protect default branch from deletion
- Use tag prefixes to distinguish versions
Explanation
Correct Answer
D:Branch protection or restricted delete permissions prevent unauthorized removal of important branch references.
Incorrect Answers
A:Administrative permissions govern destructive repository operations and should be limited independently from ordinary code contribution; here safeguarding main branch existence is the target, not destructive repository administration rights.
B:Signed tags bind a cryptographic signature to an annotated tag object, allowing verification against the trusted signing key; although that supports authenticated release label, this scenario calls for safeguarding main branch existence.
C:Annotated tags create dedicated Git tag objects with metadata and are useful for durable release identification; safeguarding main branch existence cannot be inferred from metadata-rich release markers alone.
E:Component-specific tag prefixes make release identities unambiguous without creating separate histories for each package; safeguarding main branch existence cannot be delivered through component-specific tag namespaces.
Question 121
Developers may commit to existing feature branches but must not create new branches under a controlled release namespace. Which repository permission distinction matters?
- Use tag prefixes to distinguish versions
- Restrict repository deletion
- Protect default branch from deletion
- Control branch creation separately from contributions
Explanation
Correct Answer
D:Azure Repos separates creating branches from contributing to branches, allowing more targeted governance of branch namespaces.
Incorrect Answers
A:Component-specific tag prefixes make release identities unambiguous without creating separate histories for each package; component-specific tag namespaces cannot substitute for branch creation authority.
B:Administrative permissions govern destructive repository operations and should be limited independently from ordinary code contribution; branch creation authority falls outside the scope of destructive repository administration rights.
C:Branch protection or restricted delete permissions prevent unauthorized removal of important branch references; it contributes to safeguarding main branch existence, with branch creation authority still requiring its own control.
Question 122
A team repeats setup-and-validate steps within many jobs but does not need an entire reusable workflow. Which GitHub Actions abstraction should be created?
- Use runner labels to route jobs
- Use runner groups for administrative boundaries
- Use composite actions for repeated step logic
- Use artifact attestations for release provenance
Explanation
Correct Answer
C:Composite actions bundle related steps into a callable action usable within an existing job. The composite runs as steps of the calling job; it does not provide the independent job graph of a reusable workflow.
Incorrect Answers
A:Labels identify runner characteristics and the runs-on selector can target machines with required labels; that acts on capability-specific GitHub job scheduling, whereas the requested outcome is portable in-job step assembly.
B:Runner groups can control which repositories may use a collection of organization or enterprise runners; scoped access to GitHub runner fleets concerns a different control point than portable in-job step assembly.
D:Artifact attestations associate verifiable provenance statements with build outputs, improving downstream verification of their origin; although that supports verifiable GitHub-generated artifact provenance, this scenario calls for portable in-job step assembly.
Question 123
A team raised every matrix to maximum concurrency, causing expensive agent overprovisioning with little elapsed-time improvement. Which adjustment is sensible?
- Move repeated setup into a prebuilt image
- Constrain unnecessary parallelism
- Migrate classic pipeline tasks to YAML
- Use selective test execution for monorepo changes
Explanation
Correct Answer
B:Concurrency caps balance worker cost against the small marginal latency benefit of additional parallel execution.
Incorrect Answers
A:A maintained prebuilt worker or container image provides standard toolchains without repeating their installation in each job; its effect is preprovisioned build dependencies, not cost-aware job fanout.
C:YAML pipelines express jobs and steps as source-controlled definitions, improving change review and reproducibility; replacing GUI-only automation with code cannot substitute for cost-aware job fanout.
D:Path-aware test selection can run affected verification suites while retaining full broader checks at appropriate release gates; cost-aware job fanout falls outside the scope of change-impact-based verification.
Question 124
Engineers want to execute a new recommendation path internally before its results are shown to customers, using live-like traffic. Which launch approach helps?
- Use shadow traffic for compatibility testing
- Use a kill switch for risky functionality
- Separate rollout from rollback triggers
- Use a dark launch to validate backend behavior
Explanation
Correct Answer
D:A dark launch runs new functionality without exposing results to end users, enabling observation before public activation.
Incorrect Answers
A:Shadow traffic duplicates requests to a candidate system while production responses continue coming from the existing system; it handles noncustomer-impacting candidate request replay but cannot by itself deliver hidden runtime behavior evaluation.
B:A remotely controlled feature flag can disable the affected path quickly while leaving the running binary unchanged; hidden runtime behavior evaluation remains outside the responsibility of instant reversible feature disablement.
C:Rollout gates should watch production health indicators and initiate rollback or halt when configured thresholds are violated; that acts on health-based rollout abort, whereas the requested outcome is hidden runtime behavior evaluation.
Question 125
Ten workloads require the same monitored storage-account pattern with different names and environments. Which reuse mechanism reduces copy-paste?
- Use Bicep modules for reusable resource groups
- Use Bicep parameters for environment differences
- Use managed identity for IaC execution
- Define Azure resources declaratively with Bicep
Explanation
Correct Answer
A:Bicep modules package resource declarations behind parameters and outputs so common infrastructure patterns can be reused.
Incorrect Answers
B:Template parameters keep environment-specific values separate from common resource declarations and support controlled reuse; modular Azure resource definitions cannot be delivered through externalized IaC environment settings.
C:Federated or managed workload identities enable Azure authentication without embedding reusable credential secrets in source or task configuration; its effect is credentialless deployment identity, not modular Azure resource definitions.
D:Bicep provides concise declarative Azure resource definitions compiled into Azure Resource Manager deployments; that changes Azure-native declarative provisioning without delivering modular Azure resource definitions.
Question 126
A self-hosted pool builds successfully on one runner but fails on another with the same source. Which comparison is most useful?
- Diagnose self-hosted agent exhaustion
- Audit changed pipeline definitions
- Use pipeline run diagnostics for task failures
- Set artifact retention by compliance category
- Monitor retry-induced flaky tests
- Check agent tool versions during environment drift
Explanation
Correct Answer
F:Inspecting capabilities, installed runtimes, and agent image versions exposes toolchain drift between workers.
Incorrect Answers
A:Agent utilization and queue length reveal whether workload demand exceeds available qualified worker capacity; this solves peak worker utilization shortage, leaving inconsistent host tooling diagnosis unresolved.
B:Pull request and Git commit history for pipeline-as-code records who changed the definition and what was approved; this option addresses audit trail for automation changes rather than addressing inconsistent host tooling diagnosis.
C:Pipeline diagnostic logging provides additional task and agent details that help isolate initialization and command failures; it handles detailed failing task investigation but cannot by itself deliver inconsistent host tooling diagnosis.
D:Different retention requirements should be applied to short-lived build outputs and preserved release assets according to compliance needs; inconsistent host tooling diagnosis remains outside the responsibility of tiered artifact lifecycle.
E:Per-attempt test outcomes show instability hidden by final-pass status and support targeted flaky-test repair; that acts on retry-masked test instability, whereas the requested outcome is inconsistent host tooling diagnosis.
Question 127
A release manager needs the proportion of deployments that cause incidents or require urgent remediation, not simply the number of failed builds. Which indicator fits?
- Use velocity for iteration capacity forecasting
- Measure lead time for changes
- Track work in progress limits
- Track change failure rate
- Use burndown to assess sprint progress
- Measure pull request review wait time
Explanation
Correct Answer
D:Change failure rate measures the share of production changes that produce degraded service or need restoration actions.
Incorrect Answers
A:Velocity summarizes work completed in prior iterations and can inform capacity planning for the same team when estimation stays consistent; although that supports historical sprint throughput, this scenario calls for production deployment failure impact.
B:Lead time for changes measures elapsed time from a change entering the delivery stream to successful production deployment; production deployment failure impact cannot be inferred from commit-to-production elapsed time alone.
C:Work-in-progress limits cap concurrent items in a workflow state, reducing context switching and highlighting constrained stages; the distinction is limiting concurrent work versus production deployment failure impact.
E:Burndown charts plot remaining scope against time and reveal whether work is being completed at the rate needed for the sprint; its effect is remaining-sprint-work trend, not production deployment failure impact.
F:Pull request review latency captures the time a change waits for reviewer attention or approval, isolating a common delivery bottleneck; that changes approval wait time without delivering production deployment failure impact.
Question 128
An agent reports a manually changed production setting, but immediate reset could interrupt a live incident fix. What process should constrain enforcement?
- Use policy-as-code in deployment pipelines
- Use configuration drift remediation only after impact review
- Use desired state configuration for server settings
- Use configuration-as-code in source control
Explanation
Correct Answer
B:Desired-state remediation should account for approved exceptions and operational risk instead of blindly overwriting all detected changes.
Incorrect Answers
A:Policy-as-code captures machine-readable guardrails in version control and automates validation during delivery; governed drift correction falls outside the scope of versioned infrastructure policy definitions.
C:Desired State Configuration describes target machine settings so configuration engines can detect or remediate drift; this solves standardized operating-system state, leaving governed drift correction unresolved.
D:Storing configuration definitions in Git enables history, review, and automated validation like application code; this option addresses auditable machine configuration changes rather than addressing governed drift correction.
Question 129
An application is already degraded and the team wants automated deployment checks to prevent another release while critical health alerts are active. Which control fits?
- Fail the build on a defined coverage threshold
- Use Azure Monitor alert evaluation as a release check
- Run a dependency vulnerability scan in CI
- Separate gating tests from exploratory tests
Explanation
Correct Answer
B:An Azure Monitor alert query check can block resource consumption while relevant monitored conditions violate deployment criteria.
Incorrect Answers
A:A coverage-checking script or quality gate evaluates the computed metric against a threshold and returns a failing status when unmet; enforced minimum tested-code percentage concerns a different control point than operational health gating before rollout.
C:Software composition analysis compares dependency identities and versions with known vulnerability data during the build; although that supports third-party package risk detection, this scenario calls for operational health gating before rollout.
D:Maintain a deterministic release-gating suite while separately running broader exploratory tests and tracking their findings; operational health gating before rollout cannot be inferred from predictable promotion signal alone.
Question 130
Two pipelines target the same production database and concurrent migrations could conflict. Which environment check prevents overlapping resource use?
- Add a business-hours check
- Use post-check approval for completion review
- Add a secure-file approval check
- Add an exclusive lock to serialize deployments
Explanation
Correct Answer
D:The exclusive lock check serializes stage access to a protected resource, allowing one eligible deployment through at a time.
Incorrect Answers
A:Business Hours checks defer resource use until configured local windows rather than relying only on the pipeline queue time; that changes scheduled release window enforcement without delivering mutual exclusion for release changes.
B:Post-check approvals are evaluated after eligible dynamic checks according to the resource check order, providing an additional approval point; late-stage protected-resource approval cannot substitute for mutual exclusion for release changes.
C:A secure file can have an approval check that gates consumption even by an otherwise authorized pipeline; mutual exclusion for release changes falls outside the scope of human review of signing-file use.