Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Design and implement a DevOps infrastructure practice sets

AZ-400 Design and implement a DevOps infrastructure • Complete Question Bank

AZ-400 Design and implement a DevOps infrastructure — All Questions With Answers

Complete AZ-400 Design and implement a DevOps infrastructure question bank — all 0 questions with answers and detailed explanations.

28
Questions
Free
No signup
Certifications/AZ-400/Practice Test/Design and implement a DevOps infrastructure/All Questions
Question 1easymultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A team wants to enforce that all Azure resource groups in a subscription are tagged with 'CostCenter' and 'Environment'. They need a solution that automatically applies these tags to any new resource group and ensures compliance without manual intervention. What should they use?

Question 2mediummultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A company uses Azure DevOps for CI/CD. They have multiple pipelines that deploy to different environments. They want to ensure that secrets like API keys are not exposed in pipeline logs. What is the best approach?

Question 3hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A company uses Azure Pipelines to build a .NET Core application. The build takes 45 minutes due to dependency restoration. They want to reduce build time. What is the most effective strategy?

Question 4easymultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A team wants to automatically destroy a temporary test environment after a pull request is merged or closed. What Azure DevOps feature should they use?

Question 5mediummultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A company uses Azure Pipelines to deploy a web app to Azure App Service. They want to ensure that the deployment is first validated in a staging slot before swapping to production. What should they configure?

Question 6hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A team uses Terraform to manage Azure infrastructure. They want to store the Terraform state file securely and enable collaboration. What is the recommended approach?

Question 7easymultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A company uses Azure DevOps to manage code. They want to enforce that all changes to the main branch must go through a pull request with at least two reviewers. What should they configure?

Question 8mediummultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A company uses Azure Pipelines to deploy microservices to Azure Kubernetes Service (AKS). They want to implement a canary deployment strategy. What should they use?

Question 9hardmulti select
Read the full Design and implement a DevOps infrastructure explanation →

Which THREE of the following are valid methods to securely store and use secrets in Azure DevOps pipelines?

Question 10easymulti select
Read the full Design and implement a DevOps infrastructure explanation →

Which TWO of the following are benefits of using Infrastructure as Code (IaC) over manual infrastructure management?

Question 11mediummulti select
Read the full Design and implement a DevOps infrastructure explanation →

Which THREE of the following are prerequisites for implementing a CI/CD pipeline for a .NET Core application?

Question 12hardmulti select
Read the full Design and implement a DevOps infrastructure explanation →

Which TWO of the following are valid ways to trigger a pipeline in Azure DevOps when a pull request is created?

Question 13hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

An Azure Policy is defined as shown in the exhibit. You attempt to create a storage account with HTTPS traffic only set to false. What will happen?

Exhibit

Refer to the exhibit.

```
{
  "properties": {
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Storage/storageAccounts"
          },
          {
            "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
            "equals": "false"
          }
        ]
      },
      "then": {
        "effect": "deny"
      }
    }
  }
}
```
Question 14easymultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

You run the Azure CLI command shown in the exhibit. What is the output?

Network Topology
$ az vm listquery "[?location=='eastus'].{Name:nameoutput tableRefer to the exhibit.```Name ResourceGroupvm1 rg-prodvm2 rg-dev
Question 15hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

Your organization uses Azure DevOps to manage a large-scale microservices application deployed to Azure Kubernetes Service (AKS). The application consists of 20 microservices, each with its own code repository and CI/CD pipeline. Recently, the team has been experiencing frequent build failures due to dependency conflicts between microservices when multiple pipelines run simultaneously and try to use the same build agent. The team is using Microsoft-hosted agents with a single agent pool. The builds take an average of 30 minutes each, and there are often 10+ builds queued at the same time. The team wants to reduce build failures and improve build throughput without significant increase in cost. What should they do?

Question 16mediummultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A team is designing a release pipeline for a .NET Core web application. They want to deploy to Azure App Service using a blue-green deployment strategy to minimize downtime. Which Azure App Service feature should they use to implement this?

Question 17hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

An organization uses an on-premises Jenkins server to build Docker images and push them to Azure Container Registry (ACR). The security team requires that all images be scanned for vulnerabilities before deployment. The DevOps team needs to automate this scanning after each push. What is the most efficient way to meet this requirement?

Question 18easymultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A DevOps engineer needs to ensure that only approved Azure Resource Manager (ARM) templates are used for deployments. They want to enforce this at the subscription level. Which Azure service should they use?

Question 19mediummultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

A company uses Azure DevOps for CI/CD. They have a multi-stage YAML pipeline that builds a Java application, runs unit tests, and deploys to a test environment. The test environment uses an Azure SQL Database. The pipeline currently runs successfully but the team notices that the test database schema is not always up-to-date. They want to apply database migrations automatically as part of the pipeline. Which tool or task should they integrate?

Question 20hardmulti select
Read the full Design and implement a DevOps infrastructure explanation →

A company is designing an Azure DevOps strategy for a microservices application. They need to ensure that each microservice can be built, tested, and deployed independently. They also want to reuse pipeline components across services. Which TWO practices should they implement?

Question 21hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

You are the lead DevOps engineer for a large e-commerce company. The company has a multi-region Azure Kubernetes Service (AKS) cluster deployment for its microservices. The current CI/CD pipeline uses Azure DevOps to build Docker images and deploy to AKS via Helm charts. Recently, the team noticed that after a deployment to the West Europe region, the application experienced a 5-minute downtime due to a configuration error where the new pods couldn't connect to the database because the connection string was pointing to a staging database instead of production. The issue was detected manually after a customer reported the outage. The team wants to implement a mechanism to automatically detect such misconfigurations before they affect production traffic. They also want to ensure that if a deployment fails health checks, the previous version is automatically rolled back. The pipeline currently runs all stages in sequence: build, deploy to West Europe, then deploy to East US. The team has a small budget for additional resources. Which approach should the team implement?

Question 22mediumdrag order
Read the full Design and implement a DevOps infrastructure explanation →

Drag and drop the steps to implement a branch policy in Azure Repos for pull requests into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 23mediummatching
Read the full Design and implement a DevOps infrastructure explanation →

Match each Azure Repos policy to its enforcement.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Ensures at least N reviewers approve

Requires PR to be associated with a work item

Requires all comments to be resolved before merge

Requires a successful pipeline run before merge

Question 24hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

Refer to the exhibit. You have an availability set with two VMs. One VM shows a degraded availability state. What is the most likely impact on application availability?

Exhibit

Resource Group: rg-devops
Location: eastus

Properties:
  provisioningState: Succeeded
  platformFaultDomainCount: 2
  platformUpdateDomainCount: 5
  virtualMachines:
    - id: /subscriptions/.../vm1
    - id: /subscriptions/.../vm2
  statuses:
    - code: AvailabilityState
      level: Warning
      displayStatus: Degraded
      message: 'VM vm1 is not running on the fault tolerant infrastructure due to an ongoing platform event.'
Question 25hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

Refer to the exhibit. You apply this Azure Policy to a subscription. A developer attempts to deploy a VM with SKU Standard_D2s_v3. What is the result?

Exhibit

{
  "if": {
    "allOf": [
      {
        "field": "type",
        "equals": "Microsoft.Compute/virtualMachines"
      },
      {
        "field": "Microsoft.Compute/virtualMachines/sku.name",
        "like": "Standard_D*"
      }
    ]
  },
  "then": {
    "effect": "deny"
  }
}
Question 26mediummultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

Refer to the exhibit. You run an ARM template deployment and get the error shown. What is the most likely cause?

Network Topology
az deployment group createresource-group rg1template-file template.json"id": "/subscriptions/.../resourceGroups/rg1/providers/Microsoft.Resources/deployments/azurecli...","properties": {"provisioningState": "Failed","error": {"code": "InvalidTemplateDeployment","details": ["code": "Conflict",
Question 27mediummultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

Refer to the exhibit. You monitor an Azure App Service web app. At 10:30 AM, you observe a spike in HTTP 5xx errors and response time. Based on the metrics, what is the most likely cause?

Exhibit

Metrics for WebApp1 (last 24 hours):
Time        | Requests | HTTP 5xx | AverageResponseTime
10:00 AM   | 1200     | 0        | 200 ms
10:05 AM   | 1500     | 0        | 210 ms
10:10 AM   | 1800     | 0        | 220 ms
10:15 AM   | 2000     | 0        | 230 ms
10:20 AM   | 2200     | 0        | 240 ms
10:25 AM   | 2500     | 0        | 250 ms
10:30 AM   | 3000     | 15       | 500 ms
10:35 AM   | 2800     | 12       | 480 ms
10:40 AM   | 2600     | 8        | 450 ms
10:45 AM   | 2400     | 3        | 400 ms
Question 28hardmultiple choice
Read the full Design and implement a DevOps infrastructure explanation →

Refer to the exhibit. You queue a build in Azure Pipelines. The build status remains 'notStarted' for an extended period. What is the most likely reason?

Network Topology
az pipelines build queuedefinition-id 42branch main"id": 12345,"status": "notStarted","queueTime": "2023-01-15T10:00:00Z","priority": "normal","demands": ["Agent.OS -equals Linux","Agent.Version -gtVersion 2.170.1"],"pool": {"id": 7,"name": "Azure Pipelines","isHosted": true

Practice tests

Scored 10-question sessions with instant feedback and explanations.

AZ-400 Practice Test 1 — 10 Questions→AZ-400 Practice Test 2 — 10 Questions→AZ-400 Practice Test 3 — 10 Questions→AZ-400 Practice Test 4 — 10 Questions→AZ-400 Practice Test 5 — 10 Questions→AZ-400 Practice Exam 1 — 20 Questions→AZ-400 Practice Exam 2 — 20 Questions→AZ-400 Practice Exam 3 — 20 Questions→AZ-400 Practice Exam 4 — 20 Questions→Free AZ-400 Practice Test 1 — 30 Questions→Free AZ-400 Practice Test 2 — 30 Questions→Free AZ-400 Practice Test 3 — 30 Questions→AZ-400 Practice Questions 1 — 50 Questions→AZ-400 Practice Questions 2 — 50 Questions→AZ-400 Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Configure processes and communicationsDesign and implement source controlDesign and implement build and release pipelinesDevelop a security and compliance planImplement an instrumentation strategyDesign and implement a DevOps infrastructureDesign and implement a source control strategy

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Design and implement a DevOps infrastructure setsAll Design and implement a DevOps infrastructure questionsAZ-400 Practice Hub