Question 370
A shared package changes a public API incompatibly and follows Semantic Versioning. Which version component should increase?
- Use a prerelease identifier for candidate packages
- Increment the major version for a breaking API change
- Include commit SHA in artifact provenance
- Use CalVer for date-oriented platform releases
Explanation
Correct Answer
B:Under SemVer, a major increment signals incompatible public API changes so consumers can avoid accidental breaking upgrades.
Incorrect Answers
A:Hyphenated prerelease identifiers mark versions such as release candidates and sort below their corresponding normal releases; that changes explicitly nonstable package candidate without delivering incompatible interface version signal.
C:A commit SHA uniquely identifies the source snapshot used by a build and supports traceability from deployment to repository state; incompatible interface version signal falls outside the scope of source snapshot identity for each build.
D:Calendar versioning encodes release time using a defined calendar scheme and suits time-driven delivery policies; it contributes to calendar-anchored release identity, with incompatible interface version signal still requiring its own control.
Question 371
Database schema pull requests repeatedly miss the data platform team, and reviewers must be chosen by affected path. What repository file helps?
- Subscribe a Teams channel to GitHub events
- Use GitHub CODEOWNERS for reviewer routing
- Use Microsoft Teams for release approval discussion
- Configure a GitHub repository webhook
Explanation
Correct Answer
B:CODEOWNERS maps file patterns to owners and can drive automatic review requests when supported branch protection is configured.
Incorrect Answers
A:GitHub integration with Microsoft Teams surfaces repository activity in a selected channel based on subscription configuration; path-based code review ownership remains outside the responsibility of GitHub-to-Teams collaboration events.
C:A release-specific Teams conversation can centralize evidence and discussion while formal approval remains enforced by the deployment system; evidence sharing around release decisions concerns a different control point than path-based code review ownership.
D:GitHub webhooks send selected repository event payloads to an HTTPS endpoint; a webhook secret supports signature verification; here path-based code review ownership is the target, not signed GitHub event notifications.
Question 372
A third-party build platform needs a dedicated application identity to call Azure APIs, and the process does not run on an Azure resource with managed identity. Which identity model fits?
- Use an Entra service principal for non-Azure automation
- Separate production and development deployment identities
- Use managed identity when Azure hosting supports it
- Rotate expiring application credentials before outage
Explanation
Correct Answer
A:An Entra application service principal can represent external automation, with access governed by RBAC and an appropriate credential method.
Incorrect Answers
B:Distinct workload identities and scoped RBAC separate lower-trust development automation from production deployment authority; its effect is environment identity isolation, not external application access to Azure.
C:Managed identity obtains Azure access tokens from the hosting platform without a developer-managed long-lived authentication secret; that changes elimination of embedded Azure credentials without delivering external application access to Azure.
D:Credential expiry monitoring and planned rotation prevent authentication failures while maintaining auditability of replacement keys; noninteractive identity credential continuity cannot substitute for external application access to Azure.
Question 373
Three Azure Functions must share an identity whose permissions remain unchanged when one function is recreated. Which identity type fits?
- Use a user-assigned managed identity across workloads
- Restrict federated credential trust to a protected workflow
- Use an Entra service principal for non-Azure automation
- Assign only data-plane access for Key Vault secret retrieval
- Disable stale automation identities
Explanation
Correct Answer
A:User-assigned managed identities are independent Azure resources that can be attached to multiple supported workloads and retain their own lifecycle.
Incorrect Answers
B:Federated identity subject and related trust conditions should match the intended protected GitHub workflow context rather than arbitrary jobs; it handles bounded OIDC trust assertions but cannot by itself deliver reusable independent Azure identity.
C:An Entra application service principal can represent external automation, with access governed by RBAC and an appropriate credential method; reusable independent Azure identity remains outside the responsibility of external application access to Azure.
D:Key Vault data-plane roles or access policies grant secret retrieval without general resource management authority; that acts on secret-read without infrastructure administration, whereas the requested outcome is reusable independent Azure identity.
E:Removing unused role assignments and disabling or deleting obsolete workload identities closes abandoned access paths; elimination of dormant deployment authority concerns a different control point than reusable independent Azure identity.
Question 374
A maintenance branch advanced without any new commits on its target, and the team wants a merge with no extra merge commit. Which method works?
- Use a hotfix branch from the production revision
- Use a fast-forward merge for already-linear history
- Use feature flags for incomplete trunk work
- Protect production release tags
Explanation
Correct Answer
B:Fast-forward moves the target branch reference to an existing descendant commit when histories have not diverged.
Incorrect Answers
A:Branching from the deployed release commit isolates an urgent correction from unrelated unshipped changes; merge without synthetic commit cannot be inferred from production-specific patch isolation alone.
C:Feature flags gate runtime behavior independently from source integration, permitting frequent merges before release exposure; merge without synthetic commit cannot be delivered through hidden unfinished behavior on main.
D:Protected tags and signed release practices stabilize version references and make tampering or unintended movement easier to prevent or detect; its effect is immutable release identity, not merge without synthetic commit.
Question 375
A GitHub developer wants teammates to see an unfinished change and for CI to run on it, but the pull request must clearly remain unavailable for normal merge until the author signals it is ready. Which state should be used?
- Create a signed Git tag for the unreviewed branch
- Open a draft pull request, then mark it ready for review when appropriate
- Push directly to main with branch protections disabled
- Keep all changes only in an unpublished local branch
Explanation
Correct Answer
B:Draft pull requests can receive comments and run applicable workflows while indicating that work is not ready for formal review or merging. Marking the PR ready transitions it into the normal review workflow.
Incorrect Answers
A:A tag identifies a revision, but it does not create a discussion surface or prevent accidental merge of an unfinished pull request.
C:Bypassing branch protection exposes unfinished changes to the integration branch without the desired collaborative feedback and guarded review.
D:Local-only changes cannot trigger repository pull-request automation or give the rest of the team a shared review thread.
Question 376
A running service must receive a new database credential on a planned schedule without shipping a new code version. Which configuration model enables this?
- Prefer workload federation over stored cloud secrets
- Use Azure Pipelines secure files for a signing file
- Use GitHub encrypted secrets for a third-party API token
- Use secret rotation without rebuilding application binaries
- Use GitHub environment secrets for production
- Use Key Vault certificates for managed certificate lifecycle
Explanation
Correct Answer
D:External secret storage and supported runtime refresh or restart decouple credential lifecycle from application compilation.
Incorrect Answers
A:OIDC or workload identity federation exchanges short-lived trust assertions for cloud tokens without long-lived stored application secrets; here independent credential update lifecycle is the target, not short-lived token-based cloud trust.
B:Secure files store sensitive file assets separately from source control and provide pipeline permissions for controlled use; although that supports protected binary credential material, this scenario calls for independent credential update lifecycle.
C:GitHub Actions encrypted secrets supply protected values to authorized workflows at execution time; independent credential update lifecycle cannot be inferred from encrypted workflow credential injection alone.
E:Environment-scoped secrets integrate with deployment environment protection and narrow credential exposure to intended jobs; independent credential update lifecycle cannot be delivered through deployment-environment secret boundary.
F:Key Vault certificate objects manage certificate lifecycle and associated keys or secret representations under configured access policy; its effect is managed application certificate storage, not independent credential update lifecycle.
Question 377
A product team releases several times daily and wants every completed change proposed through review without maintaining long-lived integration branches. Which collaboration workflow fits?
- Link bugs to test failures
- Link test cases to user stories
- Use GitHub Projects custom fields and workflows
- Short-lived branches merged to main by pull request
Explanation
Correct Answer
D:GitHub Flow uses a stable main branch, short-lived topic branches, pull requests, and frequent deployment of reviewed changes.
Incorrect Answers
A:Creating a bug from the test result establishes a work-item link with reproduction details and test execution evidence; failed-test-to-defect traceability cannot substitute for lightweight branch-to-main review.
B:Azure Test Plans relationships between test cases and work items provide requirement-to-test coverage and execution context; lightweight branch-to-main review falls outside the scope of requirement-to-test evidence.
C:GitHub Projects supports custom fields, multiple table/board views, and automation tied to repository issues and pull requests; it contributes to configurable GitHub work visualization, with lightweight branch-to-main review still requiring its own control.
Question 378
A production deployment never started because a required external check did not reach success before its configured timeout. Which response fits the platform behavior?
- Investigate a check that timed out
- Add a business-hours check
- Configure deployment history through environment use
- Add an Invoke REST API check
- Add an Invoke Azure Function check
Explanation
Correct Answer
A:A stage does not run when required checks time out; the operator can inspect the check and retry the stage after correcting the condition.
Incorrect Answers
B:Business Hours checks defer resource use until configured local windows rather than relying only on the pipeline queue time; scheduled release window enforcement concerns a different control point than missed check deadline diagnosis.
C:Azure Pipelines environments record deployment job history and help connect runs with their target resources; here missed check deadline diagnosis is the target, not auditable deployment target history.
D:REST API checks integrate an external policy decision with the resource approval lifecycle before deployment begins; although that supports external change-control API evaluation, this scenario calls for missed check deadline diagnosis.
E:The Azure Function check invokes approved external logic as part of a protected resource's predeployment evaluation; missed check deadline diagnosis cannot be inferred from custom function-based release validation alone.
Question 379
A release engineer wants a tag object that records a tagger, message, and potentially a signature instead of only a lightweight reference. Which tag form fits?
- Use a GitHub organization team for consistent access
- Use annotated Git tags for audited releases
- Restrict repository deletion
- Use tag prefixes to distinguish versions
- Require approvals from CODEOWNERS in GitHub
Explanation
Correct Answer
B:Annotated tags create dedicated Git tag objects with metadata and are useful for durable release identification.
Incorrect Answers
A:GitHub teams grant repository roles to managed groups so membership changes propagate to the repositories they can access; its effect is group-managed multi-repo permissions, not metadata-rich release markers.
C:Administrative permissions govern destructive repository operations and should be limited independently from ordinary code contribution; destructive repository administration rights cannot substitute for metadata-rich release markers.
D:Component-specific tag prefixes make release identities unambiguous without creating separate histories for each package; metadata-rich release markers falls outside the scope of component-specific tag namespaces.
E:CODEOWNERS identifies responsible reviewers, and branch protection can require code owner review before merging; it contributes to protected ownership approval, with metadata-rich release markers still requiring its own control.
Question 380
A developer wants to see changes affecting a specific deployment manifest while excluding unrelated repository history. Which command family should be used?
- Rotate exposed credentials immediately
- Use git reflog to recover a lost local tip
- Restore one tracked file from a previous commit
- Use git log with path filtering
Explanation
Correct Answer
D:git log with a pathspec filters commit history to changes touching selected paths. Supply the manifest pathspec to narrow the commit list and review changes to that file without unrelated commits.
Incorrect Answers
A:Credential revocation or rotation invalidates a secret that may already have been copied; history rewriting alone cannot restore secrecy; it handles containment of leaked authentication material but cannot by itself deliver file-scoped commit history.
B:git reflog records local reference updates, often exposing prior commit hashes that can be restored before garbage collection; file-scoped commit history remains outside the responsibility of local reference move recovery.
C:git restore with a chosen source revision retrieves a file's content from the specified tree into the worktree or index; that acts on recovering selected file contents, whereas the requested outcome is file-scoped commit history.