- (Exam Topic 4)
You have an Azure function hosted in an App Service plan named az400-9940427-func1.
You need to configure az400-9940427-func1 to upgrade the functions automatically whenever new code is committed to the master branch of https://github.com/Azure-Samples/functions-quickstart.
To complete this task, sign in to the Microsoft Azure portal.
Solution:
* 1. Open Microsoft Azure Portal
* 2. Log into your Azure account, select App Services in the Azure portal left navigation, and then select configure az400-9940427-func1.
* 3. On the app page, select Deployment Center in the left menu.
* 4. On the Build provider page, select Azure Pipelines (Preview), and then select Continue.
* 5. On the Configure page, in the Code section:
For GitHub, drop down and select the Organization, Repository, and Branch you want to deploy continuously.
* 6. Select Continue.
* 7. On the Test page, choose whether to enable load tests, and then select Continue.
* 8. Depending on your App Service plan pricing tier, you may see a Deploy to staging page. Choose whether to enable deployment slots, and then select Continue.
* 9. After you configure the build provider, review the settings on the Summary page, and then select Finish. References:
https://docs.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
You have a pipeline named Pipeline1 in Azure Pipelines.
You need to create a service connection to enable Pipeline1 to download a public container image. Which type of service connection should you create?
Correct Answer:
D
- (Exam Topic 4)
You have web app named App1 that uses Application Insights in Azure Monitor to Store log data. App1 has users in multiple locations.
You need to query App1 requests from London and Paris that return error. The solution must meet the following requirements:
Return the timestamp, url, resultCode, and duration fields.
Only requests made the last hour.
How shout you complete the query?
Solution:
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
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 m Azure DevOps named Project 1. Project! is used to build a web app named App1 and deploy App1 to VMSSt.
You need to ensure that an email alert is generated whenever VMSS1 scales in or out. Solution: From Azure Monitor, configure the autoscale settings.
Does this meet the goal?
Correct Answer:
B
- (Exam Topic 4)
Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions. You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?
Correct Answer:
B
SonarQube is a set of static analyzers that can be used to identify areas of improvement in your code. It allows you to analyze the technical debt in your project and keep track of it in the future. With Maven and Gradle build tasks, you can run SonarQube analysis with minimal setup in a new or existing Azure DevOps Services build task.
References:
https://docs.microsoft.com/en-us/azure/devops/java/sonarqube?view=azure-devops