AZ-400 Exam Questions

Total 488 Questions

Last Updated Exam : 16-Dec-2024

Topic 4: Mix Questions Set

You have an Azure DevOps organization named Contoso. You need to receive Microsoft Teams notifications when work items are updated. What should you do?


A. From Azure DevOps. configure a service hook subscription.


B. From Microsoft Teams, configure a connector.


C. From Microsoft Teams, add a channel.


D. From Azure DevOps. install an extension.


E. From the Microsoft Teams admin center configure external access.





A.
  From Azure DevOps. configure a service hook subscription.

You have Azure Pipelines and GitHub integrated as a source code repository. The build pipeline has continuous integration enabled.
You plan to trigger an automated build whenever code changes are committed to the repository.
You need to ensure that the system will wait until a build completes before queuing another build.
What should you implement?


A. path filters


B. batch changes


C. scheduled builds


D. branch filters





B.
  batch changes

Explanation:
Batching CI runs
If you have many team members uploading changes often, you may want to reduce the number of runs you start. If you set batch to true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.
Example:
# specific branch build with batching trigger:
batch: true branches:
include:
- master
To clarify this example, let us say that a push A to master caused the above pipeline to run. While that pipeline is running, additional pushes B and C occur into the repository. These updates do not start new independent runs immediately. But after the first run is completed, all pushes until that point of time are batched together and a new run is started.

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure virtual machine scale set named VMSS1. VMSS1 hosts a web application named
WebApp1. WebApp1 uses state full sessions.
The WebApp1 installation is managed by using the Custom Script extension. The script resides in an Azure Storage account named sa1.
You plan to make a minor change to a UI element of WebApp1 and to gather user feedback about the change.
You need to implement limited user testing for the new version of WebApp1 on VMSS1. Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.


A. Modify the load balancer settings of VMSS1.


B. Redeploy VMSS1.


C. Upload a custom script file to sa1.


D. Modify the Custom Script extension settings of VMSS1.


E. Update the configuration of a virtual machine in VMSS1.





B.
  Redeploy VMSS1.

C.
  Upload a custom script file to sa1.

D.
  Modify the Custom Script extension settings of VMSS1.

To resolve the current technical issue, what should you do to the Register- AzureRmAutomationDscNode command?


A. Change the value of the ConfigurationMode parameter.


B. Replace the Register-AzureRmAutomationDscNode cmdlet with Register-AzureRmAutomationScheduledRunbook


C. Add the AllowModuleOverwrite parameter.


D. Add the DefaultProfile parameter.





A.
  Change the value of the ConfigurationMode parameter.

Explanation: Change the ConfigurationMode parameter from ApplyOnly to ApplyAndAutocorrect.
The Register-AzureRmAutomationDscNode cmdlet registers an Azure virtual machine as an APS Desired State Configuration (DSC) node in an Azure Automation account.
Scenario: Current Technical Issue
The test servers are configured correctly when first deployed, but they experience configuration drift over time. Azure Automation State Configuration fails to correct the configurations.
Azure Automation State Configuration nodes are registered by using the following command.

Note: This Question Is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to ft. As a result, these questions will not appear in the review screen.

  • You company has a prefect in Azure DevOps for a new web application.
  • You need to ensure that when code is checked in, a build runs automatically.
Solution: From the Triggers tab of the build pipeline, you selected Batch changes while a build is in progress. Does this meet the goal?


A. Yes


B. No





B.
  No

How should you complete the code to initialize App Center in the mobile application? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection a worth one point.








Scenario: Visual Studio App Center must be used to centralize the reporting of mobile application crashes and device types in use.
In order to use App Center, you need to opt in to the service(s) that you want to use, meaning by default no services are started and you will have to explicitly call each of them when starting the SDK.
Insert the following line to start the SDK in your app's App Delete class in the didFinishLaunchingWithOptions method.
MSAppCenter.start("{Your App Secret}", withServices: [MSAnalytics.self, MSCrashes.self])

You need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

  • The builds must access an on-premises dependency management system.
  • The build outputs must be stored as Server artifacts in Azure DevOps.
  • The source code must be stored in a Git repository in Azure DevOps.
Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running a Linux image. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?


A. Yes


B. No





A.
  Yes

To run your jobs, you'll need at least one agent. A Linux agent can build and deploy different kinds of apps, including Java and Android apps. If your pipelines are in Azure Pipelines and a Microsoft-hosted agent meets your needs, you can skip setting up a private Linux agent. The Azure Pipelines agent pool offers several virtual machine images to choose from, each including a broad range of tools and software. We support Ubuntu, Red Hat, and CentOS.

You manage code by using GitHub. You need to ensure that repository owners are notified if a new vulnerable dependency or malware is found in their repository. What should you do?


A. Configure branch protection rules for each repository.


B. Configure Dependabot alerts.


C. Configure CodeQL scanning actions.


D. Subscribe all the repository owners to the GitHub Advisory Database.





B.
  Configure Dependabot alerts.

You are automating the build process for a Java-based application by using Azure DevOps. You need to add code coverage testing and publish the outcomes to the pipeline. What should you use?


A. Cobertura


B. JUnit


C. Coverage.py


D. Bullseye Coverage





A.
  Cobertura

You have an Azure subscription linked to a tenant in Microsoft Azure Active Directory (Azure AD), part of Entrap. The tenant is licensed for Azure AD Premium Plan 1. A security review indicates that too many users have privileged access to resources.
You need to deploy a privileged access management solution that meets the following requirements:

  • Enforces time limits on the use of privileged access
  • Requires approval to activate privileged access
  • Minimizes costs
What should you do first?


A. Configure alerts for the activation of privileged roles.


B. Enforce Azure Multi-Factor Authentication (MFA) for role activation.


C. Configure notifications when privileged roles are activated.


D. Upgrade the license of the Azure AD tenant.





D.
  Upgrade the license of the Azure AD tenant.


Page 5 out of 49 Pages
Previous