100% Latest & Updated Microsoft AZ-400 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 530
A deployment pipeline expects a Windows-only signing utility but invokes the job on a Linux hosted runner. What is the MOST important consequence if this issue remains unresolved?
- Unvalidated platform assumptions can break one supported environment while all other pipeline checks are green.
- A mismatched platform can increase brittle integrations or weaken accountability for deployments.
- A pipeline can bypass production approval by targeting an unprotected environment or using another credential path.
- Compromised pipeline jobs can reach private infrastructure or steal credentials from other workflows.
Explanation
Correct Answer
A:Unvalidated platform assumptions can break one supported environment while all other pipeline checks are green. This is the directly relevant business or security consequence of hybrid windows and linux pipeline matrix selection. Root cause: Pipeline portability requires compatibility of tools, shells, filesystem semantics, and host images.
Incorrect Answers
B:A mismatched platform can increase brittle integrations or weaken accountability for deployments. That risk is relevant to choosing azure pipelines versus github actions for release workflow, but the specific unresolved condition here concerns hybrid windows and linux pipeline matrix selection and has a different direct consequence.
C:A pipeline can bypass production approval by targeting an unprotected environment or using another credential path. That risk is relevant to github environment approval and deployment protection rules, but the specific unresolved condition here concerns hybrid windows and linux pipeline matrix selection and has a different direct consequence.
D:Compromised pipeline jobs can reach private infrastructure or steal credentials from other workflows. That risk is relevant to self-hosted runner security for private network access, but the specific unresolved condition here concerns hybrid windows and linux pipeline matrix selection and has a different direct consequence.
Question 531
A GitHub Actions deployment keeps a long-lived Entra service principal password in repository secrets. What action is MOST appropriate given these constraints?
- Configure supported OpenID Connect workload identity federation with scoped Entra app or managed identity trust claims.
- Configure protected GitHub deployment environments with required reviewers, branch restrictions, and secret scopes.
- Validate webhook identity and signature or trusted token and monitor delivery retries and endpoint changes.
- Configure concurrency and cancellation rules by workflow and target environment with safeguards for stateful operations.
Explanation
Correct Answer
A:Configure supported OpenID Connect workload identity federation with scoped Entra app or managed identity trust claims. Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection. Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments.
Incorrect Answers
B:Configure protected GitHub deployment environments with required reviewers, branch restrictions, and secret scopes. That applies to github environment approval and deployment protection rules, not federated workload identity for azure deployment workflows.
C:Validate webhook identity and signature or trusted token and monitor delivery retries and endpoint changes. That applies to authenticated webhook source event integration, not federated workload identity for azure deployment workflows.
D:Configure concurrency and cancellation rules by workflow and target environment with safeguards for stateful operations. That applies to github actions concurrency groups prevent overlapping releases, not federated workload identity for azure deployment workflows.
Question 532
A GitHub Actions deployment keeps a long-lived Entra service principal password in repository secrets. Which test MOST directly confirms the solution?
- Run network, DNS, and token permission checks from an isolated agent against each required service.
- Run authorized and untrusted example jobs to verify network reachability and credential separation.
- Inspect the federated subject and audience and run an authorized and unauthorized test deployment.
- Attempt deployment without approval and inspect environment review, branch selection, and eventual deployment record.
Explanation
Correct Answer
C:Inspect the federated subject and audience and run an authorized and unauthorized test deployment. Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
Incorrect Answers
A:Run network, DNS, and token permission checks from an isolated agent against each required service. That applies to azure devops self-hosted agent connectivity to private endpoints, not federated workload identity for azure deployment workflows.
B:Run authorized and untrusted example jobs to verify network reachability and credential separation. That applies to self-hosted runner security for private network access, not federated workload identity for azure deployment workflows.
D:Attempt deployment without approval and inspect environment review, branch selection, and eventual deployment record. That applies to github environment approval and deployment protection rules, not federated workload identity for azure deployment workflows.
Question 533
A GitHub Actions deployment keeps a long-lived Entra service principal password in repository secrets. Which DevOps implementation principle BEST explains the issue?
- Pipeline variables cross trust boundaries and must be scoped to the specific workflow and environment.
- Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
- A trigger is effective only when its selection rules include all changes relevant to the deployment artifact.
- Self-hosted runners extend the enterprise trust boundary into job execution and must isolate untrusted code.
Explanation
Correct Answer
B:Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection. Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments.
Incorrect Answers
A:Pipeline variables cross trust boundaries and must be scoped to the specific workflow and environment. That applies to azure pipelines variables and variable groups scoped by environment, not controlling principle for federated workload identity for azure deployment workflows.
C:A trigger is effective only when its selection rules include all changes relevant to the deployment artifact. That applies to azure pipelines trigger filters for branches and paths, not controlling principle for federated workload identity for azure deployment workflows.
D:Self-hosted runners extend the enterprise trust boundary into job execution and must isolate untrusted code.
Question 534
A GitHub Actions deployment keeps a long-lived Entra service principal password in repository secrets. What preventive practice should be maintained after the fix?
- Audit environment names and protection rule changes and prevent unrestricted alternate deployment credentials.
- Audit federation claims and remove old client secrets whenever workflow identities change.
- Review resource authorization and artifact version mapping whenever producer pipelines or project ownership change.
- Review the build matrix when application support targets or runner images change.
Explanation
Correct Answer
B:Audit federation claims and remove old client secrets whenever workflow identities change. Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments.
Incorrect Answers
A:Audit environment names and protection rule changes and prevent unrestricted alternate deployment credentials. This helps sustain a control for github environment approval and deployment protection rules; it does not directly stop recurrence of federated workload identity for azure deployment workflows described in this case.
C:Review resource authorization and artifact version mapping whenever producer pipelines or project ownership change. This helps sustain a control for cross-project pipeline artifact consumption with explicit permissions; it does not directly stop recurrence of federated workload identity for azure deployment workflows described in this case.
D:Review the build matrix when application support targets or runner images change. This helps sustain a control for hybrid windows and linux pipeline matrix selection; it does not directly stop recurrence of federated workload identity for azure deployment workflows described in this case.
Question 535
A GitHub Actions deployment keeps a long-lived Entra service principal password in repository secrets. What outcome most clearly explains the business impact?
- Ad hoc connectivity workarounds can leak credentials or cause recurrent pipeline outages.
- A mismatched platform can increase brittle integrations or weaken accountability for deployments.
- A cross-project release may promote untested or unauthorized binaries into production.
- Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments.
Explanation
Correct Answer
D:Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments. This is the directly relevant business or security consequence of federated workload identity for azure deployment workflows. Root cause: Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
Incorrect Answers
A:Ad hoc connectivity workarounds can leak credentials or cause recurrent pipeline outages. That risk is relevant to azure devops self-hosted agent connectivity to private endpoints, but the specific unresolved condition here concerns federated workload identity for azure deployment workflows and has a different direct consequence.
B:A mismatched platform can increase brittle integrations or weaken accountability for deployments. That risk is relevant to choosing azure pipelines versus github actions for release workflow, but the specific unresolved condition here concerns federated workload identity for azure deployment workflows and has a different direct consequence.
C:A cross-project release may promote untested or unauthorized binaries into production. That risk is relevant to cross-project pipeline artifact consumption with explicit permissions, but the specific unresolved condition here concerns federated workload identity for azure deployment workflows and has a different direct consequence.
Question 536
An Azure Pipeline service connection fails after credential rotation because its workload identity federation subject no longer matches. What change should the DevOps engineer implement FIRST for the stated Azure DevOps requirement?
- Validate webhook identity and signature or trusted token and monitor delivery retries and endpoint changes.
- Configure concurrency and cancellation rules by workflow and target environment with safeguards for stateful operations.
- Configure protected GitHub deployment environments with required reviewers, branch restrictions, and secret scopes.
- Configure supported OpenID Connect workload identity federation with scoped Entra app or managed identity trust claims.
Explanation
Correct Answer
D:Configure supported OpenID Connect workload identity federation with scoped Entra app or managed identity trust claims. Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection. Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments.
Incorrect Answers
A:Validate webhook identity and signature or trusted token and monitor delivery retries and endpoint changes. That applies to authenticated webhook source event integration, not federated workload identity for azure deployment workflows.
B:Configure concurrency and cancellation rules by workflow and target environment with safeguards for stateful operations. That applies to github actions concurrency groups prevent overlapping releases, not federated workload identity for azure deployment workflows.
C:Configure protected GitHub deployment environments with required reviewers, branch restrictions, and secret scopes. That applies to github environment approval and deployment protection rules, not federated workload identity for azure deployment workflows.
Question 537
An Azure Pipeline service connection fails after credential rotation because its workload identity federation subject no longer matches. What check would most directly verify this Microsoft DevOps control?
- Run authorized and untrusted example jobs to verify network reachability and credential separation.
- Attempt deployment without approval and inspect environment review, branch selection, and eventual deployment record.
- Run network, DNS, and token permission checks from an isolated agent against each required service.
- Inspect the federated subject and audience and run an authorized and unauthorized test deployment.
Explanation
Correct Answer
D:Inspect the federated subject and audience and run an authorized and unauthorized test deployment. Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
Incorrect Answers
A:Run authorized and untrusted example jobs to verify network reachability and credential separation. That applies to self-hosted runner security for private network access, not federated workload identity for azure deployment workflows.
B:Attempt deployment without approval and inspect environment review, branch selection, and eventual deployment record. That applies to github environment approval and deployment protection rules, not federated workload identity for azure deployment workflows.
C:Run network, DNS, and token permission checks from an isolated agent against each required service. That applies to azure devops self-hosted agent connectivity to private endpoints, not federated workload identity for azure deployment workflows.
Question 538
An Azure Pipeline service connection fails after credential rotation because its workload identity federation subject no longer matches. Which DevOps implementation principle BEST explains the issue?
- Pipeline variables cross trust boundaries and must be scoped to the specific workflow and environment.
- A trigger is effective only when its selection rules include all changes relevant to the deployment artifact.
- Self-hosted runners extend the enterprise trust boundary into job execution and must isolate untrusted code.
- Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
Explanation
Correct Answer
D:Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection. Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments.
Incorrect Answers
A:Pipeline variables cross trust boundaries and must be scoped to the specific workflow and environment. That applies to azure pipelines variables and variable groups scoped by environment, not controlling principle for federated workload identity for azure deployment workflows.
B:A trigger is effective only when its selection rules include all changes relevant to the deployment artifact. That applies to azure pipelines trigger filters for branches and paths, not controlling principle for federated workload identity for azure deployment workflows.
C:Self-hosted runners extend the enterprise trust boundary into job execution and must isolate untrusted code.
Question 539
An Azure Pipeline service connection fails after credential rotation because its workload identity federation subject no longer matches. What preventive practice should be maintained after the fix?
- Audit federation claims and remove old client secrets whenever workflow identities change.
- Audit environment names and protection rule changes and prevent unrestricted alternate deployment credentials.
- Review the build matrix when application support targets or runner images change.
- Review resource authorization and artifact version mapping whenever producer pipelines or project ownership change.
Explanation
Correct Answer
A:Audit federation claims and remove old client secrets whenever workflow identities change. Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments.
Incorrect Answers
B:Audit environment names and protection rule changes and prevent unrestricted alternate deployment credentials. This helps sustain a control for github environment approval and deployment protection rules; it does not directly stop recurrence of federated workload identity for azure deployment workflows described in this case.
C:Review the build matrix when application support targets or runner images change. This helps sustain a control for hybrid windows and linux pipeline matrix selection; it does not directly stop recurrence of federated workload identity for azure deployment workflows described in this case.
D:Review resource authorization and artifact version mapping whenever producer pipelines or project ownership change. This helps sustain a control for cross-project pipeline artifact consumption with explicit permissions; it does not directly stop recurrence of federated workload identity for azure deployment workflows described in this case.
Question 540
An Azure Pipeline service connection fails after credential rotation because its workload identity federation subject no longer matches. Choose TWO measures that implement and verify an effective Azure DevOps response to this specific situation. (Choose TWO.)
- Declare federated workload identity for azure deployment workflows successful solely from a green pipeline status and skip checking its actual control outcome.
- Inspect the federated subject and audience and run an authorized and unauthorized test deployment.
- Configure supported OpenID Connect workload identity federation with scoped Entra app or managed identity trust claims.
- Bypass review and testing for federated workload identity for azure deployment workflows whenever the release deadline is urgent, applying the change to production immediately.
- Dismiss the known risk for federated workload identity for azure deployment workflows and keep no evidence or accountable owner after deployment.
Explanation
Correct Answers
B:Inspect the federated subject and audience and run an authorized and unauthorized test deployment. Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
C:Configure supported OpenID Connect workload identity federation with scoped Entra app or managed identity trust claims. Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection. Overbroad federation or leaked permanent credentials may permit unauthorized Azure deployments.
Incorrect Answers
A:Declare federated workload identity for azure deployment workflows successful solely from a green pipeline status and skip checking its actual control outcome. It conflicts with the stated operating condition: Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
D:Bypass review and testing for federated workload identity for azure deployment workflows whenever the release deadline is urgent, applying the change to production immediately. It conflicts with the stated operating condition: Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
E:Dismiss the known risk for federated workload identity for azure deployment workflows and keep no evidence or accountable owner after deployment. It conflicts with the stated operating condition: Federated credentials use short-lived token exchange and must bind trust to the intended repository, branch, or service connection.
Designing and Implementing Microsoft DevOps Solutions (AZ-400) Practice Tests