AZ-400 Practice Test Questions

488 Questions


Topic 4: Mix Questions Set

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. You need to prevent releases from being deployed unless the releases comply with the Azure Policy rules assigned to Sub1. What should you do in the release pipeline of Project1?


A. Create a pipeline variable


B. Add a deployment gate.


C. Configure a deployment trigger.


D. Modify the Deployment queue settings.





B.
  Add a deployment gate.

Explanation:
You can check policy compliance with gates.
You can extend the approval process for the release by adding a gate. Gates allow you to configure automated calls to external services, where the results are used to approve or reject a deployment.
You can use gates to ensure that the release meets a wide range or criteria, without requiring user intervention.

You have a project in Azure DevOps. You have an Azure Resource Group deployment project in Microsoft Visual Studio that is checked in to the Azure DevOps project. You need to create a release pipeline that will deploy resources by using Azure Resource Manager templates. The solution must minimize administrative effort. Which task type should you include in the solution?


A. Azure Cloud Service Deployment


B. Azure RM Web App Deployment


C. Azure PowerShell


D. Azure App Service Manage





C.
  Azure PowerShell

Explanation:
There are two different ways to deploy templates to Azure DevOps Services. Both methods provide the same results, so choose the one that best fits your workflow.
1. Add a single step to your build pipeline that runs the PowerShell script that’s included in the Azure Resource Group deployment project (Deploy-AzureResourceGroup.ps1). The script copies artifacts and then deploys the template.
2. Add multiple Azure DevOps Services build steps, each one performing a stage task. The first option has the advantage of using the same script used by developers in Visual Studio and providing consistency throughout the lifecycle.

You have an Azure solution that contains a build pipeline in Azure Pipelines. You experience intermittent delays before the build pipeline starts. You need to reduce the time it takes to start the build pipeline. What should you do?


A. Split the build pipeline into multiple stages


B. Purchase an additional parallel job.


C. Create a new agent pool


D. Enable self-hosted build agents





B.
  Purchase an additional parallel job.

You use Calendar Versioning (CalVer) for code assets. You need to store an optional tag of beta as part of the version. Which part of the version should you use for the tag?


A. micro


B. minor


C. major


D. modifier





D.
  modifier

You use Azure Artifacts to host NuGet packages that you create. You need to make one of the packages available to anonymous users outside your organization. The solution must minimize the number of publication points. What should you do?


A. Create a new feed for the package


B. Publish the package to a public NuGet repository.


C. Promote the package to a release view.


D. Change the feed URL of the package





A.
  Create a new feed for the package

Explanation: Azure Artifacts introduces the concept of multiple feeds that you can use to organize and control access to your packages. Packages you host in Azure Artifacts are stored in a feed. Setting permissions on the feed allows you to share your packages with as many or as few people as your scenario requires. Feeds have four levels of access: Owners, Contributors, Collaborators, and Readers.

You have a private distribution group that contains provisioned and unprovisioned devices. You need to distribute a new iOS application to the distribution group by using Microsoft Visual Studio App Center. What should you do?


A. Request the Apple ID associated with the user of each device


B. Register the devices on the Apple Developer portal


C. Create an active subscription in App Center Test


D. Add the device owner to the organization in App Center





B.
  Register the devices on the Apple Developer portal

Explanation: When releasing an iOS app signed with an ad-hoc or development provisioning profile, you must obtain tester's device IDs (UDIDs), and add them to the provisioning profile before compiling a release. When you enable the distribution group's Automatically manage devices setting, App Center automates the before mentioned operations and removes the constraint for you to perform any manual tasks. As part of automating the workflow, you must provide the user name and password for your Apple ID and your production certificate in a .p12 format. App Center starts the automated tasks when you distribute a new release or one of your testers registers a new device. First, all devices from the target distribution group will be registered, using your Apple ID, in your developer portal and all provisioning profiles used in the app will be generated with both new and existing device ID. Afterward, the newly generated provisioning profiles are downloaded to App Center servers.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure DevOps organization named Contoso and an Azure subscription. The subscription contains an Azure virtual machine scale set named VMSS1 that is configured for autoscaling. You have a project in Azure DevOps named Project1. Project1 is used to build a web app named App1 and deploy App1 to VMSS1. You need to ensure that an email alert is generated whenever VMSS1 scales in or out. Solution: From Azure DevOps, configure the Notifications settings for Project1. Does this meet the goal?


A. Yes


B. No





B.
  No

Explanation: Notifications help you and your team stay informed about activity that occurs within your projects in Azure DevOps. You can get notified when changes occur to the following items:

  • work items
  • code reviews
  • pull requests
  • source control files
  • builds

You use Get for source control. You need to commit a 3-G3 ZIP file that contains virtual machines used for testing. The solution must meet the following requirements:

  • The file must be versioned.
  • The file must be associated with the corresponding code commits.
Which two actions should you include in the solution? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.


A. Store files in Azure Storage and enable blob versions.


B. Install the Get IFS extension and associate the extension to ZIP files.


C. Use G Zip to compress the file before committing the file.


D. Install the get-stash extension and associate the extension to ZIP files.


E. Install the get-fat extension and associate the extension to ZIP files.





B.
  Install the Get IFS extension and associate the extension to ZIP files.

D.
  Install the get-stash extension and associate the extension to ZIP files.

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unit 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 it. As a result, these questions will not appear if the review screen.
You use an Azure Pipelines pipeline to build and release web apps.
You need to configure the pipeline to meet the following requirements:
• Only run when there is a change in the /webapp folder.
• Only run when a pr is created.
Solution: You configure the pipeline definition by using the following elements.



Does this meet the goal?


A. Yes


B. No





A.
  Yes

You have a private project in Azure DevOps and two users named User1 and User2.
You need to add User1 and User2 to groups to meet the following requirements:
User1 must be able to create a code wiki.
User2 must be able to edit wiki pages.
The solution must use the principle of least privilege.
To which group should you add each user? To answer, drag the appropriate groups to the correct users. Each group 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:
User1: Project Administrators
You must have the permission Create Repository to publish code as wiki. By default, this permission is set for members of the Project Administrators group.
User2: Contributors
Anyone who is a member of the Contributors security group can add or edit wiki pages.
Anyone with access to the team project, including stakeholders, can view the wiki.

Your company builds a multi tier web application.
>You use Azure DevOps and host the production application on Azure virtual machines.
Your team prepares an Azure Resource Manager template of the virtual machine that you mil use to test new features.
You need to create a staging environment in Azure that meets the following requirements:

  • Minimizes the cost of Azure hosting
  • Provisions the virtual machines automatically
  • Use* the custom Azure Resource Manager template to provision the virtual machines
What should you do?


A. In Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs.


B. From Azure Cloud Shell, run Azure PowerShell commands to create and delete the new virtual machines in a staging resource group.


C. In Azure DevOps, configure new tasks in the release pipeline to deploy to Azure Cloud Services.


D. In Azure Cloud Shell, run Azure CLI commands to create and delete the new virtual machines in a staging resource group.





A.
  In Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs.

Explanation: You can use the Azure DevTest Labs Tasks extension that's installed in Azure DevOps to easily integrate your CI/CD build-and-release pipeline with Azure DevTest Labs. The extension installs three tasks:

  • Create a VM
  • Create a custom image from a VM
  • Delete a VM
The process makes it easy to, for example, quickly deploy a "golden image" for a specific test task and then delete it when the test is finished.

You have a project in Azure DevOps that includes two users named User1 and User2.
You plan to use Azure Monitor to manage logs.
You need to ensure that the users can perform the actions shown in following the table.







Page 19 out of 41 Pages
Previous