- (Exam Topic 2)
You need to configure an Azure web app named az400-9940427-main to contain an environmental variable named “MAX_ITEMS”. The environmental variable must have a value of 50.
To complete this task, sign in to the Microsoft Azure portal.
Solution:
* 1. In the Azure portal, navigate to the az400-9940427-main app's management page. In the app's left menu, click Configuration > Application settings.
* 2. Click New Application settings
* 3. Enter the following:
Name: MAX_ITEMS
Value: 50
References:
https://docs.microsoft.com/en-us/azure/app-service/configure-common
Does this meet the goal?
Correct Answer:A
- (Exam Topic 2)
Your company uses a Git source-code repository.
You plan to implement GitFlow as a workflow strategy.
You need to identify which branch types are used for production code and preproduction code in the strategy. Which branch type should you identify for each code type? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.
Solution:
Box 1: Master
The Master branch contains production code. All development code is merged into master in sometime. Box 2: Develop
The Develop branch contains pre-production code. When the features are finished then they are merged into develop. Reference:
https://medium.com/@patrickporto/4-branching-workflows-for-git-30d0aaee7bf
Does this meet the goal?
Correct Answer:A
- (Exam Topic 2)
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 stateful 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.
Correct Answer:BCD
- (Exam Topic 2)
You need to ensure that the https://contoso.com/statushook webhook is called every time a repository named az40010480345acr1 receives a new version of an image named dotnetapp.
To complete this task, sign in to the Microsoft Azure portal.
Solution:
Sign in to the Azure portal.
Navigate to the container registry az40010480345acr1.
Under Services, select Webhooks.
For Trigger actions select image push
Example web hook:
Reference:
https://docs.microsoft.com/en-us/azure/container-registry/container-registry-webhook
Does this meet the goal?
Correct Answer:A
- (Exam Topic 2)
You have a protect in Azure DevOps.
You need to associate an automated test to a test case.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Solution:
The process to associate an automated test with a test case is:
Create a test project containing your automated test. What types of tests are supported?
Check your test project into an Azure DevOps or Team Foundation Server (TFS) repository.
Create a build pipeline for your project, ensuring that it contains the automated test. What are the differences if I am still using a XAML build?
Use Visual Studio Enterprise or Professional 2017 or a later version to associate the automated test with a test case as shown below. The test case must have been added to a test plan that uses the build you just defined.
Reference:
https://docs.microsoft.com/en-us/azure/devops/test/associate-automated-test-with-test-case
Does this meet the goal?
Correct Answer:A