At Pass4itexam, we believe in smart preparation. That’s why we’ve built a complete guide to help you succeed in the Microsoft AZ-400 exam. Whether you’re a first-time test taker or revisiting certification, our expert-curated PDF dumps for AZ-400 are your shortcut to confidence and clarity.
This isn’t just a question bank—it’s a full prep system. Our materials reflect real exam objectives, with relevant scenarios and actual exam-style questions. You’ll get to know the format, practice effectively, and reduce test-day anxiety.
What to Expect from Our AZ-400 Preparation
1. Straightforward Study Material
Exam-Aligned Content: Every topic we cover is mapped to Microsoft's objectives, so no wasted time.
Easy to Understand: No fluff, no filler—just simplified concepts that actually stick.
2. Real Practice for Real Exams
True-to-Exam Questions: Practice on material that mirrors the real AZ-400 exam format.
Instant Feedback: Learn from your mistakes and understand the “why” behind the answers.
3. Smart Strategies That Work
Master time management to reduce pressure during the exam.
Use our proven techniques to handle tricky or unexpected questions.
Learn patterns and question logic to boost your confidence.
4. Always Updated, Always Relevant
90 Days Free Updates: We keep your dumps current, so you’re never studying outdated content.
Based on Real Feedback: We monitor exam changes and adjust quickly.
Your Success Is Our Promise
If you use our AZ-400 prep materials and still don’t pass, we’ll refund you—simple as that. No hidden terms. No stress.
We stand behind our products with a full 100% Money-Back Guarantee, because we know our materials deliver results.
Final Thoughts
If you’re serious about passing the Microsoft AZ-400 certification, you’re in the right place. Our resources are designed to help you save time, study smarter, and get certified faster.
You plan to implement infrastructure as code (IaC) to deploy Azure resources.You need to automate the deployment. The solution must meet the following requirements:Ensure that you can track the status of the deployment by using the Azure portal.Support the deployment of Azure services in preview.Minimize development effort.What should you use?
A. Bicep B. Azure Developer CLI C. Windows Subsystem for Linux (WSL) D. Terraform
Answer: A
Question # 2
Task 2For the RG1 lod42147S09 resource group, you need to create an action group named DevOpsAGthat can be triggered in any region by using Alerts.The action group must email two users named admin1 @contoso.com andadmin2@contoso.com and notify members of the Owner role for the resource.Use only the common alert schema for notifying the resource owners.
Answer: See the solution below in explanation. Explanation: Step 1: Create an Action Group Navigate to Azure Portal: Go to Azure Portal and sign in with your credentials. Access Azure Monitor: In the left-hand menu, select Monitor. Create ActionGroup: Under Alerts, select Action groups. Click on + Create. Configure Basic Settings: Subscription: Select your subscription. Resource Group: Select RG1 lod42147S09. Action Group Name: Enter DevOpsAG. Display Name: Enter a display name for the action group. Step 2: Define Actions Add Email Notifications: Click on Add action. Action Type: Select Email/SMS message/Push/Voice. Action Name: Enter a name for the action (e.g., EmailAdmins). Email: Enter admin1@contoso.com and admin2@contoso.com. Click OK. Notify Resource Owners: Click on Add action again. Action Type: Select Email/SMS message/Push/Voice. Action Name: Enter a name for the action (e.g., NotifyOwners). Email: Select Notify all owners. Click OK. Step 3: Enable Common Alert Schema Common Alert Schema: In the Advanced tab, enable the Common alert schema option1. Step 4: Review and Create Review: Review all the settings you have configured. Create: Click on Review + create and then Create. By following these steps, you will have successfully created an action group named DevOpsAG that emails the specified users and notifies resource owners using the common alert schema
Question # 3
Task 6For Project 1. you need to create a service connection that can be used to deploy resources to the RGHod489Q1628 resource group.The service connection must use the ManagedJd1 identity and workload identity federation.
Answer: See explanation below Explanation: Task 6: Create a Service Connection for Resource Group Deployment using Managed Identity and Workload Identity Federation Step 1: Understand the Requirements You want to deploy resources in the RGHod489Q1628 resource group. The service connection must: Use the ManagedJd1 managed identity. Use workload identity federation (OIDC-based authentication for enhanced security). Step 2: Verify Prerequisites You need to ensure: The ManagedJd1 managed identity exists in your Azure subscription. Your Azure DevOps project (Project1) is linked to an Azure Active Directory tenant (for OIDC support). You have the Owner or User Access Administrator role on the RGHod489Q1628 resource group. Step 3: Assign Role to Managed Identity Go to the Azure Portal. In the search bar, type Managed Identities and select Managed Identities. Locate and click on the ManagedJd1 identity. In the left menu, click Azure role assignments. Click + Add role assignment. Set the following: Scope: Resource Group Subscription: Your subscription Resource Group: RGHod489Q1628 Role: Contributor (or appropriate role) Click Save. This step ensures ManagedJd1 has permissions to deploy resources to RGHod489Q1628. Step 4: Create a Federated Credential for Workload Identity Federation In the Azure Portal, navigate to the ManagedJd1 managed identity. In the left menu, click Workload identity federation (preview). Click + Add a federated credential. Configure as follows: Federated credential name: devops-oidc Issuer: https://vstoken.actions.githubusercontent.com (or use the default https://pipelines.actions.githubusercontent.com for Azure DevOps) Subject identifier: Use the following format for Azure DevOps: css Copy system:azuredevops:{organizationName}:{projectName} For example: css Copy system:azuredevops:{YourOrganizationName}:{Project1} Audience: api://AzureADTokenExchange Click Add. This federated credential establishes trust between your Azure DevOps project and the managed identity. Step 5: Create a Service Connection in Azure DevOps Go to your Azure DevOps project (Project1) in the browser. In the left menu, click Project settings. Under Pipelines, click Service connections. Click New service connection. Choose Azure Resource Manager. Choose the authentication method: Select Workload identity federation. Configure the service connection: Scope level: Resource Group. Resource Group: RGHod489Q1628. Subscription: Your subscription. Authentication method: Managed Identity with workload identity federation. Managed Identity: Enter the client ID or select ManagedJd1. Service connection name: e.g., Project1-RGHod489Q1628-Conn. Grant access permission to all pipelines (recommended). Click Save. Step 6: Validate the Service Connection After creation, click on the new service connection to Verify it. Ensure the connection test is successful. You can now use this service connection in your pipelines for deploying resources to RGHod489Q1628.
Question # 4
You have an Azure subscription that contains a storage account named storage1.You are building an app named App1 that will read blobs stored in storage1 and perform actions based on the contents of the blobs. App1 must be triggered each time a new blob is written to storage1.You need to recommend a container solution for App1. The solution must minimize administrative effort.What should you include in the recommendation?
A. Azure Kubernetes Service (AKS) B. Azure Container Apps C. Azure App Service D. Azure Container Instances
Answer: B
Question # 5
You use GitHob for source control and Microsoft Teams for collaboration.You need to send a notification to a Teams channel for each commit. The, solution mutt minimi/e development effort.What should you do?
A. Use GitHub Actions with a dispatch to send a message to the Teams channel by using the Teams API B. Use the Microsoft Teams for GitHub app and configure a subscription to receive notifications in the Teams channel C. Use Azure Functions to connect to the GitHub REST API and send a message to the Teams channel. D. Use Azure Automation to connect to the GitHub Actions API and send a message to the Teams channel.
Answer: B
Question # 6
You manage projects by using Azure Boards.You have a current work item named itemA that is dependent on a work item named itemB.You need to be able to trace the dependency for itemA.What should you do in the web portal for Azure DevOps?
A. From Queries, open the context menu, select Add link, and then select Existing item. Set Link type to Affected By and add the ID of itemB. B. From Backlogs, open the context menu, select Add link, and then select itemB. Set Link type to Related and add the ID of itemA. C. From Backlogs, open the context menu, select Add link, and then select itemA. Set Link type to References and add the ID of itemB. D. From Backlogs, open the context menu, select Add link, and then select itemA. Set Link type to Predecessor and add the ID of itemB.
Answer: C
Question # 7
Task 8In Project1, you need to create a service hook that will integrate with Azure Storage.Use the queue1 queue from the storage48901628 storage account.
Answer: See explanation below Explanation: Task 8: Create a Service Hook to Integrate with Azure Storage (queue1) Step 1: Verify the Storage Account and Queue In the Azure portal (https://portal.azure.com): Go to Storage accounts. Find the storage48901628 storage account. In the left menu, click on Queues. Ensure that a queue named queue1 exists.If not, create it by: Clicking + Queue. Enter Name: queue1. Click OK. Step 2: Prepare the Storage Account’s Shared Access Signature (SAS) Azure DevOps uses SAS tokens to send messages to a storage queue. In the Azure portal, go to the storage48901628 storage account. In the left menu, click Shared access signature. Set the following: Allowed services: Queue. Allowed resource types: Object. Allowed permissions: Add, Write. Start and expiry date/time: Adjust as needed (e.g., 1 year). Click Generate SAS and connection string. Copy the Queue SAS URL (e.g., https://storage48901628.queue.core.windows.net/queue1?sv=...). Step 3: Create the Service Hook in Azure DevOps In your Azure DevOps Project (Project1): In the bottom-left, click Project settings. In the left menu, click Service hooks. Click + Create subscription. Step 4: Configure the Azure Storage Service Hook In the Create a subscription wizard, choose Azure Storage Queues and click Next. Choose the Trigger: For example: Code pushed (or other events you want to send to the queue). Click Next. Configure the Action: Queue endpoint URL: The Queue SAS URL you copied in Step 2 (including the queue1 endpoint and SAS token). Example: bash Copy https://storage48901628.queue.core.windows.net/queue1?sv=... Step 5: Finalize and Test the Integration Click Test to ensure Azure DevOps can send a message to the queue. If the test succeeds, click Finish to create the service hook. Step 6: Validate in the Azure Portal In the Azure portal, go to storage48901628 > Queues > queue1. You should see new messages appear in the queue whenever the configured Azure DevOps event (like push or PR) occurs.
Question # 8
You have a GitHub repository.A file that contains secrets is committed and pushed to the repository accidentally.You need to perform the following actions:• Remove the file from the repository.• Remove all commits that include the file from the repository.The solution must minimize administrative effort. What should you use?
A. GitHub Actions B. a branch protection rule C. the git re command D. the git filter-repo command
Answer: D
Question # 9
Task 7You need to prepare a network security group (NSG) named az400 38443478 nsgl to host an Azure DevOps pipeline agent. The solution must allow only the required outbound port for Azure DevOps and deny all other inbound and outbound access to the Internet
Answer: See the solution below in explanation. Explanation: To prepare a Network Security Group (NSG) namedaz400-38443478-nsg1for hosting an Azure DevOps pipeline agent, while allowing only the required outbound port for Azure DevOps and denying all other inbound and outbound access to the Internet, follow these steps: Create the NSG: Navigate to the Azure Portal. Go toNetwork Security Groupsand click on+ Create. Fill in the details, including the nameaz400-38443478-nsg1, and create the NSG. ConfigureOutbound Security Rules: Once the NSG is created, go to its settings. Navigate toOutbound security rules. Click on+ Addto create a new rule. Set theDestination port rangesto443, which is the required port for Azure DevOps12. Set theProtocoltoTCP. Set theActiontoAllow. Assign aPrioritynumber (e.g.,100) that does not conflict with existing rules. Provide a meaningfulNamefor the rule (e.g.,AllowAzureDevOps). Configure Default Rules to Deny All Other Traffic: In the sameOutbound security rulessection, edit the default rule to deny alltraffic. Change theActiontoDenyfor the rule with the lowest priority (highest number). Ensure that this rule applies to all protocols, source and destination IP ranges, and port ranges. Associate the NSG with the Appropriate Resource: Associate the NSGwith the subnet or network interface of the virtual machine or resource where the Azure DevOps pipeline agent will be hosted. By following these steps, you will ensure that the Azure DevOps pipeline agent can communicate with Azure DevOps services over the required port while blocking all other inbound and outbound Internet access, adhering to the principle of least privilege and security best practices.
Question # 10
Task 9In Project1, you need to create a variable group named varGroup1 that will contain the following variables:serverNane: server1 dbName: db1
Answer: Seethe solution below in explanation. Explanation: Step 1: Navigate to the Library Navigate to Azure DevOps: Go to Azure DevOps and sign in with your credentials. Select Your Project: Choose Project1 from your list of projects. Access the Library: In the left-hand menu, select Pipelines > Library. Step 2: Create a Variable Group Create a New Variable Group: On the Library page, click on + Variable group. Configure the Variable Group: Name: Enter varGroup1. Description: Optionally, add a description for thevariable group. Add Variables: Click on + Add to add a new variable. Variable Name: Enter serverName. Value: Enter server1. Click OK. Click on + Add again to add another variable. Variable Name: Enter dbName. Value: Enter db1. Click OK. Save the Variable Group: Click on Save to save the variable group. By following these steps, you will have successfully created a variable groupnamed varGroup1 containing the specified variables
Question # 11
Task 3Initialize the default main branch, if it floes not already exist.You need to protect the main branch of the Project l repository to ensure that all changes are processed by using a pull request that has traceability to a work item.
Answer: See explanation below Explanation: Step 1: Navigate to the Project1 Repository In your browser, go to your Azure DevOps organization:https://dev.azure.com/{YourOrganizationName} In the left menu, select the project named Project1. In the left menu under Repos, click on Files. Step 2: Initialize the Main Branch (if it doesn’t exist) If the main branch doesn’t exist (because the repo is empty): In the Repos > Files view, you’ll see a message: “This repository is empty.” Click on the Initialize button. Choose the default branch name as main and create a README file (or any file to initialize). Click Initialize. This creates the main branch in your repository. Step 3: Set Up Branch Protection for the Main Branch Branch protection ensures that all changes go through a pull request (PR), and that PRs are linked to work items (for traceability). In the Repos view, click on Branches in the left menu. Locate the main branch in the list. Click on the three dots (...) next to main and select Branch policies. Step 4: Configure Branch Policies for main In the Branch policies for the main branch: Require a minimum number of reviewers: Enable this option and set to 1 or more as per your team’s standards. Check for linked work items: Enable the Check for linked work items option. This ensures that every PR has at least one linked work item. Require a linked work item: This enforces the traceability requirement you mentioned. Optionally, you can also: Enable build validation if you have a pipeline to validate builds. Enforce merge strategies (like squash merge). Click Save changes at the bottom.
Question # 12
You have an Azure DevOps project that contains two Azure Repos repositories named Repo1 and Repo2. Repo1 contains a YAML pipeline named Pipeline1 that builds a release artifact. Repo2 contains a YAML pipeline named Pipeline2 that builds and deploys an application by using the artifact produced by Pipeline1. Pipeline1 runs for multiple branches, including main, feature branches, and release branches.You need to ensure that Pipeline2 starts automatically when a valid upstream artifact is produced. The solution must ensure that Pipeline2 is NOT triggered by repository activity in Repo2.What type of trigger should you add to Pipeline2?
A. scheduled B. CI C. pipeline resource completion D. PR
Answer: C
Question # 13
You have an application that consists of several Azure App Service web apps and Azure functions. You need to assess the security of the web apps and the functions.Which Azure feature can you use to provide a recommendation for the security of the application?
A. Smart Detection in Azure Application Insights B. Security & Compliance in Azure Log Analytics C. Compute & apps in Microsoft Defender for Cloud D. Resource health in Azure Service Health
You have an Azure DevOps organization.You have an Azure subscription that contains a resource group named RG1. RG1 contains an Azure App Service web app namedAppl.You need to enable developer self-service for Appl. The solution must meet the following requirements:• Developers must be able to create new web apps on demand in RG1.• The web apps must be automatically configured to use the Azure DevOps organization,• Administrative effort must be minimized.Which two actions should you perform? Each correct answer presents part of the solution.NOTE: Each correct answer is worth one point.
A. Assign the Contributor role on RG1 to the developers. B. Assign the App Service Contributor role on RG1 to the developers. C. Create a managed identity for App1 and grant the identity access to Azure DevOps. D. Create Azure Resource Manager (ARM) templates for the web apps. E. Deploy a dedicated Azure DevOps agent pool to each developer's environment.
Answer: C,D
Question # 16
You have an Azure subscription that contains an Azure Kubernetes Service (AKS) instance named AKS1. You collect and analyze metrics for AKS1 by using the Azure Monitor managed service for Prometheus. You need to analyze the performance of AKS1.Which query language should you use?
A. PromQL B. KQL C. PL/SQL D. SparkQL
Answer: A
Question # 17
Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem.After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.You have an on-premises web server named Server1.You need to ensure that you can build .NET apps and deploy the apps to Server1 by using Azure Pipelines.Solution: You deploy a virtual machine scale set and select a custom Ubuntu image that includes the .NET command-line interface (CU) tools.Does this meet the goal?
A. Yes B. No
Answer: A
Question # 18
You have an Azure DevOps project named Project1 that uses an Azure Pipelines pipeline to build, test, and deploy an app named Appl.You have a credential named credl.You need to ensure that credl can be used to deploy builds of Appl to production The solution must ensure that credl is available for use only by specific users and pipelines in Project 1.What should you do?
A. Create a deployment gate for the pipelines that deploy builds of Appl to production. B. Create cred 1 as a secret variable in a variable group. C. Add credl to an Azure key vault. D. Add credl as a variable to a template pipeline.
Answer: B
Question # 19
Task 5You plan to stoic signed images in an Azure Container Registry instance named az40038443478act1.You need to modify the SKU for az40038443478aa1 to support the planned images. The solution must minimize costs.
Answer: See the solution below in explanation. Explanation: To store signed images in an Azure Container Registry (ACR) instance and support your planned images while minimizing costs, you need to modify the SKU of your ACR instance to one that supports content trust and image signing. Here’s how you can do it: Determine the Appropriate SKU: Content trust and image signing are features of thePremiumservice tier of Azure ContainerRegistry1. If cost minimization is a priority, ensure that the Premium tier is necessary for your use case. If you require content trust, the Premium tier is the appropriate choice. Modify the SKU of the ACR Instance: Navigate to the Azure Portal. Go to your ACR instanceaz40038443478act1. SelectUpdatefrom the overview pane. Choose thePremiumSKU from the SKU drop-down menu2. Review the changes and pricing, then save the configuration. By upgrading to the Premium SKU, you’ll be able to store signed images in your ACR instance. Remember to monitor your usage and costs to ensure they align with your budget and requirements.
Question # 20
Task 4Initialize the default main branch, if it does not exist already.In the Userl-42147509 Azure DevOps project, you need to implement an approval process for the default main branch.The process must use the four-eyes principle and have at least one approval on every iteration.
Answer: See the solution below in explanation. Explanation: Step 1: Initialize the Default Main Branch Navigate to Azure DevOps: Go to Azure DevOps and sign in with your credentials. Select Your Project: Choose Project1 from your list of projects. Initialize the Main Branch: Go to Repos > Files. If themain branch does not exist, you will see an option to initialize it. Click on Initialize and follow the prompts to create the main branch. Step 2: Implement an Approval Process for the Main Branch Navigate to Branch Policies: Go to Repos > Branches. Findthe main branch and click on the … (ellipsis) next to it. Select Branch policies. Enable Required Reviewers: Under Policies, enable Minimum number of reviewers. Set the minimum number of reviewers to 2 to enforce the four-eyes principle. Add RequiredReviewers: Add the users who should review the changes. Ensure that at least one approval is required on every iteration. Enable Reset Code Reviewer Votes: Enable the Reset code reviewer votes when there are new changes option to ensure that any new changes require re-approval. Save Changes: Click on Save changes to apply the policies. Step 3: Verify the Approval Process Create a Pull Request: Make a change in a branch and create a pull request to merge it into the main branch. Review and Approve: Ensurethat the pull request requires at least two reviewers to approve it before it can be merged. By following these steps, you will have successfully initialized themain branch and implemented an approval process that adheres to the four-eyes principle, ensuring that every iteration has at least one approval
0 Review for Microsoft AZ-400 Exam Dumps