ExamDumpster

Free AZ-400 sample questions

Try these free AZ-400 sample questions, each with the right answer and an explanation. They cover pipeline design, branching strategy and security checks inside pipelines. Use them to see which DevOps topics to study before you book.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose one

**Case Study:** A healthcare technology company, HealthData Inc., is migrating its monolithic patient portal application to a microservices architecture on Azure Kubernetes Service (AKS). The company operates under strict regulatory compliance (HIPAA) and must maintain a high degree of security and traceability. **Current Situation:** The development team uses GitHub for source code management. The current CI/CD process is manual, slow, and error-prone. There is no automated security scanning, and secrets like database connection strings are stored in configuration files within the repositories. The operations team has limited Kubernetes experience, and developers need a way to test their services in isolated, production-like environments before merging code. **Requirements:** 1. **CI/CD Automation:** Implement a fully automated build, test, and deployment pipeline using GitHub Actions. 2. **Security:** All container images must be scanned for vulnerabilities. Secrets must be removed from source code and managed securely. A full audit trail of all code changes and deployments is required. 3. **Developer Environments:** Provide developers with on-demand, self-service environments for testing pull requests. 4. **Deployment Strategy:** Deployments to the production AKS cluster must use a progressive exposure model to minimize risk. Which proposed solution best addresses all of HealthData Inc.'s requirements?

Question 2Choose one

A team is designing a package management strategy using Azure Artifacts. They produce several internal NuGet packages that are consumed by different applications. They need to create a feed that provides access to their own packages as well as packages from the official nuget.org repository. New applications should only use packages that have been vetted and approved by a quality assurance team. How should they configure their feeds to meet these requirements?

Question 3Choose one

A DevOps engineer is optimizing a multi-stage YAML pipeline that builds, tests, and deploys a large application. The build and test stages take a significant amount of time. The engineer observes that several independent jobs within the test stage could run concurrently. What is the most effective way to configure the pipeline to run these test jobs in parallel?

Question 4Choose one

A project requires a wiki to document its architecture, coding standards, and release procedures. The documentation will include complex diagrams to illustrate process flows and system interactions. The team wants to store these diagrams as text within the markdown files so they can be version-controlled and easily updated. Which syntax should the team use within the Azure DevOps wiki to embed these diagrams as code?

Question 5Choose one

You are creating a Bicep template to deploy an Azure Web App. You need to ensure that the application setting `ASPNETCORE_ENVIRONMENT` is set based on an input parameter named `environmentType`. If `environmentType` is 'Production', the value should be 'Production'; otherwise, it should be 'Development'. Which Bicep expression should you use to define the value of this application setting?

Question 6Choose one

A team is migrating their classic UI-based release pipelines in Azure DevOps to multi-stage YAML pipelines. They heavily use release gates to query Azure Monitor alerts and ensure system health before promoting a release to the next stage. How can this same functionality be implemented in a YAML pipeline?

Question 7Choose one

A developer needs to revert a specific commit (`abc1234`) from the `main` branch that introduced a bug, but wants to keep the commit in the branch history for auditing purposes. The commit is not the most recent one. Which Git command should be used to achieve this?

Question 8Choose one

A company is using GitHub and wants to automate the analysis of vulnerabilities in their open-source dependencies. They need a tool that automatically creates pull requests to upgrade packages to non-vulnerable versions. Which GitHub feature should they configure?

Question 9Choose 2

An organization is using both GitHub for source control and Azure DevOps for work item tracking and CI/CD pipelines. They want to establish traceability between GitHub commits and Azure Boards work items. Which two actions are required to enable developers to link commits to work items? (Select TWO)

Question 10Choose one

A team uses a multi-stage YAML pipeline to deploy an application to Staging and Production environments. The deployment to Production requires an explicit sign-off from the project manager. The following diagram shows the pipeline structure. How should this approval be configured? flowchart LR Build --> Test Test --> Deploy_Staging Deploy_Staging --> Approval{Approval?} Approval -->|Yes| Deploy_Production Approval -->|No| Stop([End])

10 more free samples are waiting

Create a free account to unlock the whole AZ-400 sample bank, or get full access to all 250 practice questions in the simulator.

Create account