Practice Free AZ-400 Exam Online Questions
SIMULATION
You have a web app that connects to an Azure SQL Database named db1.
You need to configure db1 to send Query Store runtime statistics to Azure Log Analytics.
To complete this task, sign in to the Microsoft Azure portal.
Topic 3, Woodgrove bank
Overview
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.
To start the case study
To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.
Overview
General Overview
Woodgrove Bank is a financial services company that has a main office in the United Kingdom.
Technical Requirements and Planned Changes
Planned Changes
Woodgrove Bank plans to implement the following project management changes:
✑ Implement Azure DevOps for project tracking.
✑ Centralize source code control in private GitHub repositories.
✑ Implement Azure Pipelines for build pipelines and release pipelines.
Woodgrove Bank plans to implement the following changes to the identity environment:
✑ Deploy an Azure AD tenant named woodgrovebank.com.
✑ Sync the Active Directory domain to Azure AD.
✑ Configure App1 to use a service principal.
✑ Integrate GitHub with Azure AD.
Woodgrove Bank plans to implement the following changes to the core apps:
✑ Migrate App1 to ASP.NET Core.
✑ Integrate Azure Pipelines and the third-party build tool used to develop App2.
Woodgrove Bank plans to implement the following changes to the DevOps environment:
✑ Deploy App1 to Azure App Service.
✑ Implement source control for the DB1 schema.
✑ Migrate all the source code from TFS1 to GitHub.
✑ Deploy App2 to an Azure virtual machine named VM1.
✑ Merge the POC branch into the GitHub default branch.
✑ Implement an Azure DevOps dashboard for stakeholders to monitor development progress.
Technical Requirements
Woodgrove Bank identifies the following technical requirements:
✑ The initial databases for new environments must contain both schema and reference data.
✑ An Azure Monitor alert for VM1 must be configured to meet the following requirements:
✑ The commit history of the POC branch must replace the history of the default branch.
✑ The Azure DevOps dashboard must display the metrics shown in the following table.

✑ Access to Azure DevOps must be restricted to specific IP addresses.
✑ Page load times for App1 must be captured and monitored.
✑ Administrative effort must be minimized.
HOTSPOT
You need to configure the alert for VM1.The solution must meet the technical requirements.
Which two settings should you configure? To answer, select the appropriate settings in the answer area. NOTE: Each correct selection is worth one point.

Explanation:
Setting 1: Threshold value
Set to 80 %
Scenario: An Azure Monitor alert for VM1 must be configured to meet the following requirements:
Be triggered when average CPU usage exceeds 80 percent for 15 minutes.
Calculate CPU usage averages once every minute.
Setting 2: Aggregation granularity
Set to 15 minutes.
You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and a user named User1. Pipeline1 is used to build and test an app named Appl. User1 is assigned the Contributors role for Pipeline1.
You plan to test App1 by using an Azure Deployment Environments environment.
You need to ensure that User1 can provision the environment. The solution must follow the principle of least privilege.
Which role should you assign to User1?
- A . DevCenter Project Admin
- B . Deployment Environments User
- C . Build Administrators
- D . Contributors
HOTSPOT
You have a GitHub Enterprise account.
You have three projects named Project 1, Project2, and Project3.
Project! must meet the following requirements:
• Perform concurrent testing across 700 hosts.
• Support workflow job durations of at least five hours.
Project2 must meet the following requirements:
• Perform concurrent load testing across 35 hosts that run macOS.
• Support workflow job durations of at least one hour.
Project3 must meet the following requirements:
• Perform concurrent load testing across 200 hosts run that Windows.
• Support workflow job durations of at least 24 hours.
You need to recommend an architecture for the GitHub runners of the projects. The solution must minimize costs.
What should you recommend for each project? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.


DRAG DROP
You need to increase the security of your team’s development process.
Which type of security tool should you recommend for each stage of the development process? To answer, drag the appropriate security toots to the correct stages. Each security tool may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content NOTE: Each correct selection is worth one point.

Explanation:
https://docs.microsoft.com/en-us/azure/devops/migrate/security-validation-cicd-pipeline?view=azure-devops&viewFallbackFrom=vsts So:
PR: Static Code Analysis
CI: Static Code Analysis
CD: PenTest
DRAG DROP
You need to increase the security of your team’s development process.
Which type of security tool should you recommend for each stage of the development process? To answer, drag the appropriate security toots to the correct stages. Each security tool may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content NOTE: Each correct selection is worth one point.

Explanation:
https://docs.microsoft.com/en-us/azure/devops/migrate/security-validation-cicd-pipeline?view=azure-devops&viewFallbackFrom=vsts So:
PR: Static Code Analysis
CI: Static Code Analysis
CD: PenTest
HOTSPOT
You use Get for source control. You have an app named Appt.
In the main branch. you need to restore the third most recent revision of a file named App.exe.config.
How should your complete command?


You are creating a build pipeline in Azure Pipelines.
You define several tests that might fail due to third-party applications.
You need to ensure that the build pipeline completes successfully if the third-party applications
are unavailable.
What should you do?
- A . Configure the build pipeline to use parallel jobs
- B . Configure flaky tests
- C . Increase the test pass percentage
- D . Add the Requirements quality widget to your dashboard
You have a build pipeline in Azure Pipelines that occasionally fails.
You discover that a test measuring the response time of an API endpoint causes the failures.
You need to prevent the build pipeline from failing due to The test.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point
- A . Enable Test Impact Analysis (TIA).
- B . Enable test slicing.
- C . Clear Flaky tests included in test pass percentage
- D . Set Flaky test detection to Off
- E . Manually mark the test as flaky.
C,E
Explanation:
Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/test/flaky-test-management
SIMULATION
Task 6
You have an Azure function hosted in an App Service plan named az400-38443478-funct
You need to configure az400 38443478-funcl lo update the functions automatically whenever new code is committed to the main branch of https://githubcom/Azure-Samples/functions-quickstart. NOTE: Access to GitHub is blocked in the exam environment. Access to GitHub is NOT required to complete the task successfully.
is committed to the main branch of the specified GitHub repository, you can use GitHub Actions for
continuous deployment. Here’s how to set it up:
Create a GitHub Actions Workflow:
In your GitHub repository, navigate to the.github/workflows/directory. Create a new file for your workflow (e.g.,azure-function-cd.yml). Define the Workflow:
In the workflow file, define the steps for the build and deployment process.
Use theAzure/functions-actionto deploy to your Azure Function App.
Set up triggers for themainbranch to initiate the workflow on every commit.
Generate Deployment Credentials:
In the Azure Portal, navigate to your Function Appaz400-38443478-funct.
Download the publish profile from theOverviewsection by clicking onGet publish profile.
Store the Publish Profile as a GitHub Secret:
In your GitHub repository, go toSettings>Secrets and variables>Actions.
Create a new secret (e.g.,AZURE_FUNCTIONAPP_PUBLISH_PROFILE) and paste the content of the publish profile.
Configure the Workflow to Use the Secret:
In the workflow file, reference the secret to authenticate the deployment to Azure.
Here’s a sample GitHub Actions workflow snippet:
name: Deploy Azure Function
on:
push:
branches:
– main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
– uses: actions/checkout@v2
– name: Set up Python version uses: actions/setup-python@v2 with:
python-version: ‘3.x’
– name: Install dependencies run: |
pip install -r requirements.txt
– name: Deploy to Azure Functions uses: Azure/functions-action@v1 with:
app-name: az400-38443478-funct
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }}
package: .
Replace theapp-namewith the name of your Azure Function App and ensure the Python version and dependencies match your application’s requirements.
By following these steps, yourAzure Function will automatically update whenever new code is pushed to the main branch of the GitHub repository. This setup minimizes manual effort and ensures that your function app is always running the latest code.
