Microsoft AZ-400 Practice Test 48
Question 470
An engineering design review identifies: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. Which shortcut should the team MOST specifically avoid for this case?
- Grant all developers Owner of production subscriptions to speed environment creation.
- Rely on a resource tag named secure as proof of OS baseline enforcement.
- Delete the provider lockfile in every automated run.
- Obfuscate passwords with Base64 inside a public parameter file.
Explanation
Correct Answer
B:Rely on a resource tag named secure as proof of OS baseline enforcement. This shortcut directly undermines the stated control or workflow. A safer action is: Apply an approved Azure Machine Configuration baseline with compliance evaluation. Explanation: Guest desired-state policy should be measurable and enforceable across managed VMs.
Incorrect Answers
A:Grant all developers Owner of production subscriptions to speed environment creation. This would address a different situation, such as: Developers need consistent temporary test environments, but each manually provisions expensive subscriptions and forgets cleanup. In the present case, the most directly relevant unsafe shortcut is: Rely on a resource tag named secure as proof of OS baseline enforcement. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
C:Delete the provider lockfile in every automated run. This would address a different situation, such as: The same Terraform source yields changed resource behavior because local users and CI select different provider versions. In the present case, the most directly relevant unsafe shortcut is: Rely on a resource tag named secure as proof of OS baseline enforcement. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
D:Obfuscate passwords with Base64 inside a public parameter file. This would address a different situation, such as: A Bicep parameter file stores database administrator passwords in plaintext committed to Git. In the present case, the most directly relevant unsafe shortcut is: Rely on a resource tag named secure as proof of OS baseline enforcement. The crucial distinction is: Guest desired-state policy should be measurable and enforceable across managed VMs.
Question 471
A Microsoft DevOps team is addressing: A repository wiki describes a build script that was removed six months ago and breaks onboarding. Which TWO complementary actions should be taken? Select TWO answers.
- Compare wiki revisions, pipeline definitions, links and onboarding incident history.
- Keep technical runbooks alongside source changes with reviewed documentation checks.
- Store decisions in a protected repository with named reviewers and link them to implementation work.
- Generate and publish versioned API documentation as a release-gated artifact.
- Route deployment and failure events to the approved Microsoft Teams operations channel.
Explanation
Correct Answers
A:Compare wiki revisions, pipeline definitions, links and onboarding incident history. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Keep technical runbooks alongside source changes with reviewed documentation checks. Together they address: Documentation should be versioned with the workflow it explains and validated during change.
B:Keep technical runbooks alongside source changes with reviewed documentation checks. This supplies the controlled implementation needed for the scenario. Its complementary step is: Compare wiki revisions, pipeline definitions, links and onboarding incident history. Together they address: Documentation should be versioned with the workflow it explains and validated during change.
Incorrect Answers
C:Store decisions in a protected repository with named reviewers and link them to implementation work. This concerns a different DevOps situation: An architecture decision record is stored in a shared folder where anyone can overwrite approved design rationale without review. This case instead requires both a targeted investigation (Compare wiki revisions, pipeline definitions, links and onboarding incident history.) and a controlled change (Keep technical runbooks alongside source changes with reviewed documentation checks.).
D:Generate and publish versioned API documentation as a release-gated artifact. This concerns a different DevOps situation: A versioned REST API deploys successfully but its consumer documentation still lists removed fields. This case instead requires both a targeted investigation (Compare wiki revisions, pipeline definitions, links and onboarding incident history.) and a controlled change (Keep technical runbooks alongside source changes with reviewed documentation checks.).
E:Route deployment and failure events to the approved Microsoft Teams operations channel. This concerns a different DevOps situation: Critical production deployment failures send only email to an unattended shared mailbox. This case instead requires both a targeted investigation (Compare wiki revisions, pipeline definitions, links and onboarding incident history.) and a controlled change (Keep technical runbooks alongside source changes with reviewed documentation checks.).
Question 472
A Microsoft DevOps team is addressing: A Log Analytics workspace stores application exceptions, but engineers cannot identify which deployment revision triggered a spike. Which TWO complementary actions should be taken? Select TWO answers.
- Inspect requests, dependencies, operation_Id values and time range.
- Inspect customDimensions, timestamp, role name and exception records.
- Use a Kusto summarize query grouped by deployment version and appropriate time bins.
- Inspect disk queue/latency, CPU utilization, memory pressure and workload profile.
- Create a missing-heartbeat query or alert with appropriate response ownership.
Explanation
Correct Answers
B:Inspect customDimensions, timestamp, role name and exception records. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use a Kusto summarize query grouped by deployment version and appropriate time bins. Together they address: KQL grouping by revision and time can separate release regressions from background failures.
C:Use a Kusto summarize query grouped by deployment version and appropriate time bins. This supplies the controlled implementation needed for the scenario. Its complementary step is: Inspect customDimensions, timestamp, role name and exception records. Together they address: KQL grouping by revision and time can separate release regressions from background failures.
Incorrect Answers
A:Inspect requests, dependencies, operation_Id values and time range. This concerns a different DevOps situation: Application requests and dependency spans share an operation ID but engineers compare two unrelated totals instead of correlating affected calls. This case instead requires both a targeted investigation (Inspect customDimensions, timestamp, role name and exception records.) and a controlled change (Use a Kusto summarize query grouped by deployment version and appropriate time bins.).
D:Inspect disk queue/latency, CPU utilization, memory pressure and workload profile. This concerns a different DevOps situation: An application slows while CPU is low but disk I/O is saturated; operators conclude more vCPUs are needed. This case instead requires both a targeted investigation (Inspect customDimensions, timestamp, role name and exception records.) and a controlled change (Use a Kusto summarize query grouped by deployment version and appropriate time bins.).
E:Create a missing-heartbeat query or alert with appropriate response ownership. This concerns a different DevOps situation: A VM's monitoring dashboard reports no errors because its telemetry agent stopped sending data three days ago. This case instead requires both a targeted investigation (Inspect customDimensions, timestamp, role name and exception records.) and a controlled change (Use a Kusto summarize query grouped by deployment version and appropriate time bins.).
Question 473
An Azure DevOps engineering team evaluates this condition: A project accidentally committed generated build outputs and its repository history grew by several gigabytes. Which DevOps principle BEST explains the underlying weakness?
- Repository access should be limited to the minimum collaborator operations.
- Repository lifecycle controls should remove stale rights and enforce appropriate archival state.
- Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
- Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history.
Explanation
Correct Answer
C:Repository hygiene needs tracked-artifact policy and planned history repair when necessary. This principle identifies the risk or delivery weakness in the case. Relevant evidence: Inspect historical blobs, generated folders,.gitignore rules and clone sizes. An appropriate controlled response is: Stop tracking generated outputs and plan reviewed history cleanup with team coordination.
Incorrect Answers
A:Repository access should be limited to the minimum collaborator operations. This would address a different situation, such as: A QA vendor needs read-only test access but has been granted repository administration rights. In the present case, the most directly relevant principle is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
B:Repository lifecycle controls should remove stale rights and enforce appropriate archival state. This would address a different situation, such as: An archived security-sensitive repository remains writable by former project members and receives unreviewed commits. In the present case, the most directly relevant principle is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
D:Large binary artifacts need purpose-built storage to avoid expanding ordinary Git history. This would address a different situation, such as: Designers repeatedly commit multi-gigabyte video assets as normal Git blobs and cloning takes hours. In the present case, the most directly relevant principle is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary. The crucial distinction is: Repository hygiene needs tracked-artifact policy and planned history repair when necessary.
Question 474
Before changing the pipeline or service, engineers find: A company combines experimental internal tools and regulated payment services into one deployment-frequency ranking. Which evidence should the engineer inspect FIRST?
- Review service classifications, deployment events, reliability targets and cohort selection.
- Inspect workflow states, audit logs, start-of-work criteria and board queries.
- Inspect commit timestamps, deployment records, service ownership and calculation filters.
- Inspect survey population, response rates, roles and unanswered groups.
Explanation
Correct Answer
A:Review service classifications, deployment events, reliability targets and cohort selection. This directly checks the uncertain behavior or control before changing production. Operational metrics must be interpreted by service context and business risk. The resulting targeted action is: Build service-segmented queries and complementary stability metrics.
Incorrect Answers
B:Inspect workflow states, audit logs, start-of-work criteria and board queries. This would address a different situation, such as: Azure Boards reports near-zero cycle time because teams move stories to Active only when coding is almost finished. In the present case, the most directly relevant evidence is: Review service classifications, deployment events, reliability targets and cohort selection. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
C:Inspect commit timestamps, deployment records, service ownership and calculation filters. This would address a different situation, such as: A dashboard measures deployment frequency but calculates lead time from the first commit in an unrelated repository. In the present case, the most directly relevant evidence is: Review service classifications, deployment events, reliability targets and cohort selection. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
D:Inspect survey population, response rates, roles and unanswered groups. This would address a different situation, such as: A team reports excellent developer experience based only on responses from its three most active maintainers. In the present case, the most directly relevant evidence is: Review service classifications, deployment events, reliability targets and cohort selection. The crucial distinction is: Operational metrics must be interpreted by service context and business risk.
Question 475
After implementing the change, the team verifies: A container image with a known critical vulnerability passes all unit tests and is promoted to production. Which result would BEST demonstrate that the issue is corrected?
- An intentionally vulnerable test image is blocked and an approved fixed image proceeds.
- Both app versions write correctly during transition and a rollback stays feasible.
- An incompatible field removal fails pipeline validation before production use.
- A deliberately inverted comparison causes a relevant test to fail.
Explanation
Correct Answer
A:An intentionally vulnerable test image is blocked and an approved fixed image proceeds. This measures the actual expected outcome, rather than trusting only a configuration flag. Implemented action: Add a risk-based container vulnerability scan gate before deployment approval. Security policy gates should prevent release of unapproved critical vulnerabilities.
Incorrect Answers
B:Both app versions write correctly during transition and a rollback stays feasible. This would address a different situation, such as: A release adds a non-null column while old and new application versions temporarily operate together. In the present case, the most directly relevant verification is: An intentionally vulnerable test image is blocked and an approved fixed image proceeds. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
C:An incompatible field removal fails pipeline validation before production use. This would address a different situation, such as: A microservice changes a JSON field name while a downstream consumer still relies on the old name. In the present case, the most directly relevant verification is: An intentionally vulnerable test image is blocked and an approved fixed image proceeds. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
D:A deliberately inverted comparison causes a relevant test to fail. This would address a different situation, such as: A business rule has 100% line coverage, but tests still pass when its comparison operator is reversed. In the present case, the most directly relevant verification is: An intentionally vulnerable test image is blocked and an approved fixed image proceeds. The crucial distinction is: Security policy gates should prevent release of unapproved critical vulnerabilities.
Question 476
A Microsoft DevOps team is addressing: A pipeline reports repeated deployment failures but no team receives notifications because the original owner left the company. Which TWO complementary actions should be taken? Select TWO answers.
- Compare classic stage approvals with YAML environment checks and service-connection authorization.
- Inspect run timelines, environment approval events and task durations.
- Introduce relevant path/branch conditions and appropriately scheduled validation.
- Assign accountable pipeline owners and route critical failures to current responders.
- Review alert subscriptions, team ownership, failure history and escalation paths.
Explanation
Correct Answers
D:Assign accountable pipeline owners and route critical failures to current responders. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review alert subscriptions, team ownership, failure history and escalation paths. Together they address: Pipeline operational health needs assigned responders and maintained notification routing.
E:Review alert subscriptions, team ownership, failure history and escalation paths. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Assign accountable pipeline owners and route critical failures to current responders. Together they address: Pipeline operational health needs assigned responders and maintained notification routing.
Incorrect Answers
A:Compare classic stage approvals with YAML environment checks and service-connection authorization. This concerns a different DevOps situation: After migrating to YAML, a production release skips mandatory human approval that existed in a classic release stage. This case instead requires both a targeted investigation (Review alert subscriptions, team ownership, failure history and escalation paths.) and a controlled change (Assign accountable pipeline owners and route critical failures to current responders.).
B:Inspect run timelines, environment approval events and task durations. This concerns a different DevOps situation: An approval gate makes a release appear to take two hours, but actual deployment work takes five minutes. This case instead requires both a targeted investigation (Review alert subscriptions, team ownership, failure history and escalation paths.) and a controlled change (Assign accountable pipeline owners and route critical failures to current responders.).
C:Introduce relevant path/branch conditions and appropriately scheduled validation. This concerns a different DevOps situation: Hundreds of nightly builds run when source code is unchanged, consuming expensive hosted parallel minutes. This case instead requires both a targeted investigation (Review alert subscriptions, team ownership, failure history and escalation paths.) and a controlled change (Assign accountable pipeline owners and route critical failures to current responders.).
Question 477
The DevOps team must resolve this situation: Operators modify a production firewall directly, but the Terraform plan assumes its prior values remain in place. Which engineering action is MOST appropriate?
- Use deterministic names and scope-aware existing resource references.
- Review the legacy DSC setup and plan a supported configuration management transition or remediation.
- Run governed drift detection and reconcile approved changes through IaC.
- Apply an approved Azure Machine Configuration baseline with compliance evaluation.
Explanation
Correct Answer
C:Run governed drift detection and reconcile approved changes through IaC. This action addresses the specific failure or requirement and preserves delivery controls. Validation criterion: A repeat plan is stable and firewall rules match the reviewed configuration. Desired state must be reconciled with real infrastructure before applying further changes.
Incorrect Answers
A:Use deterministic names and scope-aware existing resource references. This would address a different situation, such as: A shared Bicep deployment creates a new Log Analytics workspace on each run due to non-deterministic resource names. In the present case, the most directly relevant engineering action is: Run governed drift detection and reconcile approved changes through IaC. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
B:Review the legacy DSC setup and plan a supported configuration management transition or remediation. This would address a different situation, such as: A legacy fleet uses Azure Automation State Configuration but receives no reliable reports of drift or node registration. In the present case, the most directly relevant engineering action is: Run governed drift detection and reconcile approved changes through IaC. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
D:Apply an approved Azure Machine Configuration baseline with compliance evaluation. This would address a different situation, such as: Production VMs are configured by manual shell changes and new replacement VMs lack required OS baselines. In the present case, the most directly relevant engineering action is: Run governed drift detection and reconcile approved changes through IaC. The crucial distinction is: Desired state must be reconciled with real infrastructure before applying further changes.
Question 478
Before changing the pipeline or service, engineers find: An Azure DevOps webhook creates duplicate change tickets whenever the receiving service retries a timeout. Which evidence should the engineer inspect FIRST?
- Compare wiki revisions, pipeline definitions, links and onboarding incident history.
- Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules.
- Inspect Azure Boards GitHub connection, repository authorization and linked work items.
- Inspect pipeline YAML dependencies, existing diagrams and documentation change records.
Explanation
Correct Answer
B:Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. This directly checks the uncertain behavior or control before changing production. Cross-tool event integrations need idempotent handling and observability. The resulting targeted action is: Use stable event IDs and idempotent ticket creation with failure monitoring.
Incorrect Answers
A:Compare wiki revisions, pipeline definitions, links and onboarding incident history. This would address a different situation, such as: A repository wiki describes a build script that was removed six months ago and breaks onboarding. In the present case, the most directly relevant evidence is: Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. The crucial distinction is: Cross-tool event integrations need idempotent handling and observability.
C:Inspect Azure Boards GitHub connection, repository authorization and linked work items. This would address a different situation, such as: A team uses GitHub for code and Azure Boards for planning, but pull requests never appear in its work items. In the present case, the most directly relevant evidence is: Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. The crucial distinction is: Cross-tool event integrations need idempotent handling and observability.
D:Inspect pipeline YAML dependencies, existing diagrams and documentation change records. This would address a different situation, such as: New engineers misread a multi-stage release dependency diagram because process documentation uses an obsolete screenshot. In the present case, the most directly relevant evidence is: Inspect webhook delivery IDs, response codes, receiver transaction IDs and retry rules. The crucial distinction is: Cross-tool event integrations need idempotent handling and observability.
Question 479
Before changing the pipeline or service, engineers find: A GitHub Actions test workflow with untrusted input has contents:write even though it only runs tests. Which evidence should the engineer inspect FIRST?
- Inspect App Service identity settings, storage RBAC and credential history.
- Inspect workflow permissions, fork contexts, third-party actions and write operations.
- Inspect existing identity attachments, role assignments and resource replacement behavior.
- Inspect security groups, environment approvers, service connection owners and bypass rights.
Explanation
Correct Answer
B:Inspect workflow permissions, fork contexts, third-party actions and write operations. This directly checks the uncertain behavior or control before changing production. Workflow tokens should default to read-only and be elevated only where necessary. The resulting targeted action is: Set minimum GITHUB_TOKEN permissions for each job and restrict untrusted execution.
Incorrect Answers
A:Inspect App Service identity settings, storage RBAC and credential history. This would address a different situation, such as: An App Service accesses Azure Storage using a connection string containing an account key in source control. In the present case, the most directly relevant evidence is: Inspect workflow permissions, fork contexts, third-party actions and write operations. The crucial distinction is: Workflow tokens should default to read-only and be elevated only where necessary.
C:Inspect existing identity attachments, role assignments and resource replacement behavior. This would address a different situation, such as: An autoscaled deployment needs consistent identity across short-lived Azure compute instances that are replaced frequently. In the present case, the most directly relevant evidence is: Inspect workflow permissions, fork contexts, third-party actions and write operations. The crucial distinction is: Workflow tokens should default to read-only and be elevated only where necessary.
D:Inspect security groups, environment approvers, service connection owners and bypass rights. This would address a different situation, such as: Developers can edit protected deployment environments and approve their own releases because one group owns all project settings. In the present case, the most directly relevant evidence is: Inspect workflow permissions, fork contexts, third-party actions and write operations. The crucial distinction is: Workflow tokens should default to read-only and be elevated only where necessary.
Question 480
A Microsoft DevOps team is addressing: A frontend release calls an API endpoint introduced only by a backend deployment scheduled later, breaking all sessions. Which TWO complementary actions should be taken? Select TWO answers.
- Implement staged deployment rings with explicit gates and pause criteria.
- Review schema changes, client versions, deployment order and rollback requirements.
- Use backward-compatible API rollout and explicit dependent stage ordering.
- Review component versions, release dependencies, API contracts and pipeline stage graph.
- Inspect schema migration history, transaction boundaries, retry logs and object existence.
Explanation
Correct Answers
C:Use backward-compatible API rollout and explicit dependent stage ordering. This supplies the controlled implementation needed for the scenario. Its complementary step is: Review component versions, release dependencies, API contracts and pipeline stage graph. Together they address: Cross-service deployment order must respect compatibility and dependency contracts.
D:Review component versions, release dependencies, API contracts and pipeline stage graph. This supplies the diagnosis/evidence needed for the scenario. Its complementary step is: Use backward-compatible API rollout and explicit dependent stage ordering. Together they address: Cross-service deployment order must respect compatibility and dependency contracts.
Incorrect Answers
A:Implement staged deployment rings with explicit gates and pause criteria. This concerns a different DevOps situation: A desktop client update is rolled out to every employee globally at the same moment, causing a widespread outage. This case instead requires both a targeted investigation (Review component versions, release dependencies, API contracts and pipeline stage graph.) and a controlled change (Use backward-compatible API rollout and explicit dependent stage ordering.).
B:Review schema changes, client versions, deployment order and rollback requirements. This concerns a different DevOps situation: An App Service slot swap puts new code online while old instances still write to a shared Azure SQL schema. This case instead requires both a targeted investigation (Review component versions, release dependencies, API contracts and pipeline stage graph.) and a controlled change (Use backward-compatible API rollout and explicit dependent stage ordering.).
E:Inspect schema migration history, transaction boundaries, retry logs and object existence. This concerns a different DevOps situation: A release database task retries after a timeout and creates duplicate schema objects, causing subsequent deployments to fail. This case instead requires both a targeted investigation (Review component versions, release dependencies, API contracts and pipeline stage graph.) and a controlled change (Use backward-compatible API rollout and explicit dependent stage ordering.).