ExamGecko
Home Home / Microsoft / AZ-400

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

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
Configure the pipelines to use the Microsoft-hosted agents.
A.
Configure the pipelines to use the Microsoft-hosted agents.
Answers
B.
Register additional self-hosted agents.
B.
Register additional self-hosted agents.
Answers
C.
Purchase self-hosted parallel jobs.
C.
Purchase self-hosted parallel jobs.
Answers
D.
Purchase Microsoft-hosted parallel jobs.
D.
Purchase Microsoft-hosted parallel jobs.
Answers
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

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.

A.
See solution below.
A.
See solution below.
Answers
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.

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.

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.

6. Change TRAFFIC % to 10

Reference:

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

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.
a BACPAC
A.
a BACPAC
Answers
B.
a DACPAC
B.
a DACPAC
Answers
C.
an LDF file
C.
an LDF file
Answers
D.
an MDF file
D.
an MDF file
Answers
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

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.

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

Explanation:

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

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

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?

A.
Implement a feature flag.
A.
Implement a feature flag.
Answers
B.
Create a fork in the build.
B.
Create a fork in the build.
Answers
C.
Create a branch in the build.
C.
Create a branch in the build.
Answers
D.
Implement a branch policy.
D.
Implement a branch policy.
Answers
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

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

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.

A.
Create a Microsoft Intune device compliance policy.
A.
Create a Microsoft Intune device compliance policy.
Answers
B.
Deploy a certificate from an internal certification authority (CA) to each device.
B.
Deploy a certificate from an internal certification authority (CA) to each device.
Answers
C.
Register the application in the iTunes store.
C.
Register the application in the iTunes store.
Answers
D.
Onboard the devices into Microsoft Intune.
D.
Onboard the devices into Microsoft Intune.
Answers
E.
Distribute a new release of the application.
E.
Distribute a new release of the application.
Answers
F.
Register the IDs of the devices in the Apple Developer portal.
F.
Register the IDs of the devices in the Apple Developer portal.
Answers
Suggested answer: E, F

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.
Select Register devices and sign my app.
A.
Select Register devices and sign my app.
Answers
B.
Create an active subscription in App Center Test.
B.
Create an active subscription in App Center Test.
Answers
C.
Create an unsigned build.
C.
Create an unsigned build.
Answers
D.
Add the device owner to the collaborators group.
D.
Add the device owner to the collaborators group.
Answers
Suggested answer: A

Explanation:

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

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

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.

A.
See solution below.
A.
See solution below.
Answers
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.

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

Name: az40011566895n1-tm

Routing method: Geographic

Resource group: RG1lod11566895

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/

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.


Question 30
Correct answer: Question 30

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

Total 482 questions
Go to page: of 49