ExamGecko
Home / Microsoft / AZ-400 / List of questions
Ask Question

Microsoft AZ-400 Practice Test - Questions Answers, Page 3

List of questions

Question 21

Report Export Collapse

You have a free tier of an Azure DevOps organization named Contoso. Contoso contains 10 private projects. Each project has multiple jobs with no dependencies. The build process requires access to resource files located in an onpremises file system.

You frequently run the jobs on five self-hosted agents but experience long build times and frequently queued builds. You need to minimize the number of queued builds and the time it takes to run the builds.

What should you do?

Configure the pipelines to use the Microsoft-hosted agents.
Configure the pipelines to use the Microsoft-hosted agents.
Register additional self-hosted agents.
Register additional self-hosted agents.
Purchase self-hosted parallel jobs.
Purchase self-hosted parallel jobs.
Purchase Microsoft-hosted parallel jobs.
Purchase Microsoft-hosted parallel jobs.
Suggested answer: B
Explanation:

If you want Azure Pipelines to orchestrate your builds and releases, but use your own machines to run them, use self-hosted parallel jobs. For self-hosted parallel jobs, you'll start by deploying our self-hosted agents on your machines. You can register any number of these self-hosted agents in your organization.

Incorrect:

Not D: Microsoft-hosted CI/CD

If you want to run your jobs on machines that Microsoft manages, use Microsoft-hosted parallel jobs. Your jobs run on our pool of Microsoft-hosted agents. We provide a free tier of service by default in every organization.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/licensing/concurrent-jobs

asked 02/10/2024
Yesaldine Salazar
47 questions

Question 22

Report Export Collapse

SIMULATION

You need to ensure that an Azure web app named az400-9940427-main supports rolling upgrades. The solution must ensure that only 10 percent of users who connect to az400-9940427-main use update versions of the app.

The solution must minimize administrative effort.

To complete this task, sign in to the Microsoft Azure portal.

See solution below.
See solution below.
Suggested answer: A
Explanation:

Set up staging environments in Azure App Service

1. Open Microsoft Azure Portal

2. Log into your Azure account, select your app's resource page, in the left pane, select Deployment slots > Add Slot.

Microsoft AZ-400 image Question 22 explanation 87018 10022024015257000000

3. In the Add a slot dialog box, give the slot a name, and select whether to clone an app configuration from another deployment slot. Select Add to continue.

Microsoft AZ-400 image Question 22 explanation 87018 10022024015257000000

4. After the slot is added, select Close to close the dialog box. The new slot is now shown on the Deployment slots page. By default, Traffic % is set to 0 for the new slot, with all customer traffic routed to the production slot

5. Select the new deployment slot to open that slot's resource page.

Microsoft AZ-400 image Question 22 explanation 87018 10022024015257000000

6. Change TRAFFIC % to 10

Reference:

https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots

asked 02/10/2024
Marcel Engelbrecht
48 questions

Question 23

Report Export Collapse

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure SQL database named DB1. You need to create a release pipeline that uses the Azure SQL Database Deployment task to update DB1. Which artifact should you deploy?

a BACPAC
a BACPAC
a DACPAC
a DACPAC
an LDF file
an LDF file
an MDF file
an MDF file
Suggested answer: B
Explanation:

Use Azure SQL Database Deployment task in a build or release pipeline to deploy to Azure SQL DB using a DACPAC or run scripts using SQLCMD.

Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/sql-azure-dacpac-deployment

asked 02/10/2024
Robeena Meer
43 questions

Question 24

Report Export Collapse

Your company has a project in Azure DevOps for a new web application.

The company uses ServiceNow for change management.

You need to ensure that a change request is processed before any components can be deployed to the production environment. What are two ways to integrate ServiceNow into the Azure DevOps release pipeline? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Define a deployment control that invokes the ServiceNow REST API.
Define a deployment control that invokes the ServiceNow REST API.
Define a pre-deployment gate before the deployment to the Prod stage.
Define a pre-deployment gate before the deployment to the Prod stage.
Define a deployment control that invokes the ServiceNow SOAP API.
Define a deployment control that invokes the ServiceNow SOAP API.
Define a post-deployment gate after the deployment to the QA stage.
Define a post-deployment gate after the deployment to the QA stage.
Suggested answer: B, D
Explanation:

An example of a release pipeline that can be modeled through a release pipeline in shown below:

Microsoft AZ-400 image Question 24 explanation 87020 10022024015257000000

In this example, a release of a website is created by collecting specific versions of two builds (artifacts), each from a different build pipeline. The release is first deployed to a Dev stage and then forked to two QA stages in parallel. If the deployment succeeds in both the QA stages, the release is deployed to Prod ring 1 and then to Prod ring 2. Each production ring represents multiple instances of the same website deployed at various locations around the globe.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/release

asked 02/10/2024
Nika Longley
45 questions

Question 25

Report Export Collapse

Your company develops an application named App1 that is deployed in production.

As part of an application update, a new service is being added to App1. The new service requires access to an application named App2 that is currently in development. You need to ensure that you can deploy the update to App1 before App2 becomes available. You must be able to enable the service in App1 once App2 is deployed. What should you do?

Implement a feature flag.
Implement a feature flag.
Create a fork in the build.
Create a fork in the build.
Create a branch in the build.
Create a branch in the build.
Implement a branch policy.
Implement a branch policy.
Suggested answer: A
Explanation:

Feature flags support a customer-first DevOps mindset, to enable (expose) and disable (hide) features in a solution, even before they are complete and ready for release.

Incorrect Answers:

C: Branch policies are an important part of the get workflow and enable you to:

Isolate work in progress from the completed work in your master branch

Guarantee changes build before they get to master

Reference:

https://docs.microsoft.com/en-us/azure/devops/migrate/phase-features-with-feature-flags

asked 02/10/2024
walterio mendez
33 questions

Question 26

Report Export Collapse

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?

Request the Apple ID associated with the user of each device.
Request the Apple ID associated with the user of each device.
Register the devices on the Apple Developer portal.
Register the devices on the Apple Developer portal.
Create an active subscription in App Center Test.
Create an active subscription in App Center Test.
Add the device owner to the organization in App Center.
Add the device owner to the organization in App Center.
Suggested answer: B
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.

Reference:

https://docs.microsoft.com/en-us/appcenter/distribution/groups

asked 02/10/2024
Reinhard KOhl
42 questions

Question 27

Report Export Collapse

You are developing an iOS application by using Azure DevOps.

You need to test the application manually on 10 devices without releasing the application to the public. Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Create a Microsoft Intune device compliance policy.
Create a Microsoft Intune device compliance policy.
Deploy a certificate from an internal certification authority (CA) to each device.
Deploy a certificate from an internal certification authority (CA) to each device.
Register the application in the iTunes store.
Register the application in the iTunes store.
Onboard the devices into Microsoft Intune.
Onboard the devices into Microsoft Intune.
Distribute a new release of the application.
Distribute a new release of the application.
Register the IDs of the devices in the Apple Developer portal.
Register the IDs of the devices in the Apple Developer portal.
Suggested answer: E, F
asked 02/10/2024
Beatriz Mejia
49 questions

Question 28

Report Export Collapse

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?

Select Register devices and sign my app.
Select Register devices and sign my app.
Create an active subscription in App Center Test.
Create an active subscription in App Center Test.
Create an unsigned build.
Create an unsigned build.
Add the device owner to the collaborators group.
Add the device owner to the collaborators group.
Suggested answer: A
Explanation:

The following diagram displays the entire app re-signing flow in App Center.

Microsoft AZ-400 image Question 28 explanation 87024 10022024015257000000

Incorrect Answers:

C: The application build must be signed.

D: The device owner does not need to be added.

Reference:

https://docs.microsoft.com/hu-hu/appcenter/distribution/auto-provisioning

asked 02/10/2024
hajar mechrany
33 questions

Question 29

Report Export Collapse

SIMULATION

You plan to deploy a website that will be hosted in two Azure regions.

You need to create an Azure Traffic Manager profile named az40011566895n1-tm in a resource group named RG1lod11566895. The solution must ensure that users will always connect to a copy of the website that is in the same country. To complete this task, sign in to the Microsoft Azure portal.

See solution below.
See solution below.
Suggested answer: A
Explanation:

1. Go to the Azure portal, navigate to Traffic Manager profiles and click on the Add button to create a routing profile.

Microsoft AZ-400 image Question 29 explanation 87025 10022024015257000000

2, In the Create Traffic Manager profile, enter, or select these settings:

Name: az40011566895n1-tm

Routing method: Geographic

Resource group: RG1lod11566895

Microsoft AZ-400 image Question 29 explanation 87025 10022024015257000000

Note: Traffic Manager profiles can be configured to use the Geographic routing method so that users are directed to specific endpoints (Azure, External or Nested) based on which geographic location their DNS query originates from. This empowers Traffic Manager customers to enable scenarios where knowing a user’s geographic region and routing them based on that is important.

Reference:

https://azure.microsoft.com/en-us/blog/announcing-the-general-availability-of-geographic-routing-capability-in-azure-traffic-manager/

asked 02/10/2024
Jose Rodrigues
44 questions

Question 30

Report Export Collapse

HOTSPOT

Your company uses get as a source code control system for a complex app named App1.

You plan to add a new functionality to App1.

You need to design a branching model for the new functionality.

Which branch lifetime and branch time should you use in the branching model? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 30 87026 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 30 87026 10022024015257000
Explanation:

Branch lifetime: Short-lived

Branch type: Feature

Feature branches are used when developing a new feature or enhancement which has the potential of a development lifespan longer than a single deployment. When starting development, the deployment in which this feature will be released may not be known. No matter when the feature branch will be finished, it will always be merged back into the master branch.

References:

https://gist.github.com/digitaljhelms/4287848

asked 02/10/2024
Jorge Fontes
48 questions
Total 489 questions
Go to page: of 49
Search

Related questions