Question 30
A contractor must manage boards and pipelines in one project but has no reason to administer other organizational projects. Which delegation is appropriate?
- Use project-scoped groups rather than organization-wide admins
- Restrict personal access token scope and expiration
- Authorize a service connection only for approved pipelines
- Stream Azure DevOps audit events to Azure Monitor Logs
- Protect variable groups containing secrets
Explanation
Correct Answer
A:Project-level group membership limits administrative reach compared with organization or collection-wide administrative roles.
Incorrect Answers
B:Reducing PAT scopes, allowed organizations, and lifetimes limits damage if a token is disclosed; this option addresses minimal Azure DevOps PAT authority rather than addressing scoped Azure DevOps project administration.
C:Pipeline permissions on protected service connections control which pipeline definitions may consume the connection; it handles protected connection consumer scope but cannot by itself deliver scoped Azure DevOps project administration.
D:Azure DevOps audit streaming forwards supported organization events to Azure Monitor Logs, where retention can be configured independently of the platform’s native audit history; scoped Azure DevOps project administration remains outside the responsibility of externally retained DevOps governance event history.
E:Variable-group permissions and approved pipeline access restrict exposure of protected variables to authorized consumers; that acts on pipeline-bounded shared secret access, whereas the requested outcome is scoped Azure DevOps project administration.
Question 31
Unit tests sometimes fail when a third-party network API is slow; developers need repeatable tests of their own logic. Which technique improves the tests?
- Use a test matrix for supported runtimes
- Run unit tests before packaging
- Replace nondeterministic external calls with test doubles
- Keep a smaller production smoke-test suite
Explanation
Correct Answer
C:Mocks or stubs replace external behavior at a defined boundary so unit tests can validate logic without relying on live network availability.
Incorrect Answers
A:Matrix execution expands a job over selected versions and operating systems, testing the product across supported combinations; although that supports cross-platform runtime coverage, this scenario calls for stable isolated test inputs.
B:Unit tests exercise small components in isolation and are usually fast enough to provide immediate feedback during continuous integration; stable isolated test inputs cannot be inferred from low-cost component correctness alone.
D:Smoke tests check essential application paths after rollout and provide a quick signal before broader validation completes; stable isolated test inputs cannot be delivered through basic release health verification.
Question 32
Release policy forbids executing binaries without valid signatures from the trusted build identity. Which check should run?
- Run a dependency vulnerability scan in CI
- Keep test reports when a later stage fails
- Require a production-like predeployment validation environment
- Gate deployment on artifact signature verification
- Fail the build on a defined coverage threshold
Explanation
Correct Answer
D:Signature verification confirms that the artifact was signed by an expected identity and has not been modified since signing.
Incorrect Answers
A:Software composition analysis compares dependency identities and versions with known vulnerability data during the build; trusted binary provenance enforcement falls outside the scope of third-party package risk detection.
B:Publish test and coverage artifacts during the verification stage so later stage failures do not erase already collected evidence; it contributes to independent validation evidence retention, with trusted binary provenance enforcement still requiring its own control.
C:A staging environment closely matching production configuration reveals deployment and integration issues before customer exposure; this solves production configuration rehearsal, leaving trusted binary provenance enforcement unresolved.
E:A coverage-checking script or quality gate evaluates the computed metric against a threshold and returns a failing status when unmet; it handles enforced minimum tested-code percentage but cannot by itself deliver trusted binary provenance enforcement.
Question 33
An update temporarily takes some replicas offline, and service level objectives prohibit reduced request capacity. Which design condition must be planned?
- Use idempotent deployment scripts
- Perform predeployment backup before a destructive database change
- Use readiness probes behind a load balancer
- Maintain sufficient spare capacity for rolling updates
Explanation
Correct Answer
D:Surge or spare capacity ensures enough healthy instances remain available while replacements are created and validated.
Incorrect Answers
A:Idempotent operations reach the desired end state even when repeated, making safe retries possible after partial execution; repeatable partial deployment recovery concerns a different control point than rollout capacity headroom.
B:Tested backups and restoration procedures protect data when a destructive change cannot be rolled back by code reversion alone; here rollout capacity headroom is the target, not recoverability of destructive data changes.
C:Readiness checks keep instances out of eligible traffic rotation until they can serve real requests; although that supports traffic admission after application readiness, this scenario calls for rollout capacity headroom.
Question 34
A repository has many legacy branches and CI must run for all normal branches except a maintenance archive namespace. Which filter should be applied?
- Configure path-filtered CI triggers
- Configure pipeline-completion triggers
- Use tags-based release triggers
- Use a YAML trigger exclude for maintenance branches
Explanation
Correct Answer
D:Trigger exclude patterns prevent selected branch namespaces from queuing otherwise matching pipeline runs. Specify the legacy branch namespace in the trigger exclusion and verify other branch and path inclusions still behave as intended.
Incorrect Answers
A:YAML path include or exclude filters scope CI triggers to changes in specified repository paths; that changes changed-path CI eligibility without delivering branch-pattern exclusion from CI.
B:Pipeline resource completion triggers can queue downstream runs based on the completion of a specified upstream pipeline; upstream-build-driven automation cannot substitute for branch-pattern exclusion from CI.
C:Tag filters on push events allow packaging workflows to run for matching version references while ignoring ordinary branch changes; branch-pattern exclusion from CI falls outside the scope of release-reference-driven publication.
Question 35
A container deployment currently embeds a database password directly into a checked-in manifest. Which design improves secret handling?
- Build a multi-stage Docker image
- Use Kubernetes rolling updates for deployment
- Deploy images by digest rather than moving tag
- Use Kubernetes secrets or external secret providers for credentials
- Use Kubernetes readiness probes during rollout
Explanation
Correct Answer
D:Kubernetes Secret references or an integrated external secret provider keep credentials out of plain repository manifests and support controlled runtime delivery.
Incorrect Answers
A:Multi-stage builds copy final outputs from a builder stage into a smaller runtime stage without shipping build-only dependencies; decoupled container credential distribution remains outside the responsibility of runtime image minimization.
B:Kubernetes Deployment rolling updates replace pods incrementally according to readiness and surge/unavailable limits; that acts on orchestrator-managed gradual pod replacement, whereas the requested outcome is decoupled container credential distribution.
C:Content-addressed image digests tie the deployment manifest to exact image bytes, preserving the tested artifact identity; scanned-image immutability concerns a different control point than decoupled container credential distribution.
E:A readiness probe controls whether a pod is considered ready for Service traffic during startup and ongoing operation; although that supports pod readiness before load balancing, this scenario calls for decoupled container credential distribution.
Question 36
A platform team releases twelve independent services. Leadership wants to know how frequently each service successfully reaches production, not how long a particular commit takes to arrive. Which calculation best reports this?
- Measure the percentage of releases requiring incident remediation
- Calculate elapsed time from commit to production for each change
- Average the time required to restore service after incidents
- Count successful production deployments per service per week
Explanation
Correct Answer
D:Deployment frequency counts how often a service is successfully released to production over a defined interval. Recording it per service avoids hiding infrequently shipped products behind busier pipelines.
Incorrect Answers
A:Change failure rate expresses the proportion of production changes that cause degraded service or need remediation. It assesses release quality, not the cadence of successful deployments.
B:Lead time for changes measures the delay from a code change to production. A team could have low lead time but still release infrequently; that is not the requested count.
C:Mean time to restore service measures incident recovery speed. A low recovery time does not establish whether a team deploys daily or monthly.
Question 37
An Azure-hosted application must read runtime secrets from a centralized vault using its platform identity. A separate deployment job must retrieve a release secret from that vault, and its connection to Azure must not rely on a stored service-principal secret. Which THREE approaches satisfy these separate requirements? Choose THREE.
- Use Azure Pipelines secure files for a signing file
- Mask sensitive values in logs
- Use GitHub encrypted secrets for a third-party API token
- Use managed identity for Key Vault retrieval
- Retrieve deployment secrets from Azure Key Vault
- Prefer workload federation over stored cloud secrets
Explanation
Correct Answers
D:A managed identity lets supported Azure resources authenticate to Key Vault with Entra tokens and assigned data access; for this multi-part scenario, the application uses its platform identity; the separate release job needs vault access and federated authorization.
E:Key Vault protects secret values and supports controlled runtime retrieval without committing them to pipeline code.
F:OIDC or workload identity federation exchanges short-lived trust assertions for cloud tokens without long-lived stored application secrets; this authenticates the release automation without a stored client secret, independently of how the hosted application accesses Key Vault.
Incorrect Answers
A:Secure files store sensitive file assets separately from source control and provide pipeline permissions for controlled use; this option addresses protected binary credential material rather than addressing centralized runtime secret retrieval.
B:Secret masking and safe command invocation reduce exposure, but scripts should avoid emitting credentials because redaction is not foolproof; it handles protection of pipeline log output but cannot by itself deliver centralized runtime secret retrieval.
C:GitHub Actions encrypted secrets supply protected values to authorized workflows at execution time; centralized runtime secret retrieval remains outside the responsibility of encrypted workflow credential injection.
Question 38
A regulated release needs an SBOM, an approved test report, and an artifact digest present in its package before deployment can continue. What kind of quality gate should be added?
- Publish code coverage results in Azure Pipelines
- Validate release evidence before promotion
- Require a production-like predeployment validation environment
- Gate deployment on artifact signature verification
Explanation
Correct Answer
B:A custom release validation step checks required evidence files and identities, failing promotion if mandatory documentation is absent.
Incorrect Answers
A:The code coverage publishing step imports supported reports from test tools into the pipeline's coverage reporting surface; completeness of signed release evidence cannot be inferred from visible code coverage artifact alone.
C:A staging environment closely matching production configuration reveals deployment and integration issues before customer exposure; completeness of signed release evidence cannot be delivered through production configuration rehearsal.
D:Signature verification confirms that the artifact was signed by an expected identity and has not been modified since signing; its effect is trusted binary provenance enforcement, not completeness of signed release evidence.
Question 39
A customer request crosses an API gateway, two microservices, and a database; investigators need to find the slow component within one request. Which telemetry view helps?
- Use correlation IDs across services
- Track dependency call duration
- Use custom events for feature adoption
- Inspect end-to-end transaction traces
Explanation
Correct Answer
D:Distributed tracing correlates spans across participating services so latency and errors can be localized along a single transaction path.
Incorrect Answers
A:Propagating trace context or correlation identifiers associates related telemetry across service boundaries; it contributes to shared operation identity, with multi-service request causality still requiring its own control.
B:Dependency telemetry records outbound calls, timing, and success state, helping isolate latency outside the request handler itself; this solves downstream dependency timing, leaving multi-service request causality unresolved.
C:Custom events can record meaningful application actions with properties needed to measure feature behavior by rollout cohort; this option addresses business-specific application usage measurement rather than addressing multi-service request causality.
Question 40
Changes pass local tests but fail when platform configuration differs from production; what testing stage improves confidence?
- Validate release evidence before promotion
- Require a production-like predeployment validation environment
- Gate deployment on artifact signature verification
- Separate gating tests from exploratory tests
Explanation
Correct Answer
B:A staging environment closely matching production configuration reveals deployment and integration issues before customer exposure.
Incorrect Answers
A:A custom release validation step checks required evidence files and identities, failing promotion if mandatory documentation is absent; here production configuration rehearsal is the target, not completeness of signed release evidence.
C:Signature verification confirms that the artifact was signed by an expected identity and has not been modified since signing; production configuration rehearsal cannot be inferred from trusted binary provenance enforcement alone.
D:Maintain a deterministic release-gating suite while separately running broader exploratory tests and tracking their findings; the distinction is predictable promotion signal versus production configuration rehearsal.