Microsoft DevOps Engineer Expert AZ-400 Practice Question

Your organization hosts 150 private GitHub repositories that build and publish Docker images by using Azure Pipelines.
You must meet the following security and compliance requirements:

  • Identify known vulnerabilities in the base image before the image is pushed to Azure Container Registry (ACR).
  • Block pull requests that introduce credentials, tokens, or other secrets.
  • Prevent packages that carry any GPL license from being added to the dependency graph.
  • Provide a single, centrally-managed solution that requires little or no per-repository maintenance and surfaces results directly in each pull request conversation.

Which strategy should you recommend?

  • Enable GitHub Advanced Security for the GitHub organization, require secret scanning, CodeQL, and dependency review status checks, and publish a reusable organization-level workflow that runs the azure/container-scan action during the build.

  • Apply an Azure Policy initiative that blocks pushes containing secrets, enable Qualys-based image scanning in ACR, and integrate a third-party Black Duck server for license compliance.

  • Install Microsoft Defender for Cloud DevOps Security, rely on its automated repository analysis, enable Dependabot alerts on each repository, and use ACR's image scan after the push completes.

  • Create an Azure DevOps pipeline template that runs OWASP Dependency-Check, Gitleaks, and Trivy in separate jobs; reference the template from every repository's pipeline definition.

Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot