Microsoft

AZ-400 Free Practice Questions — Page 28

Question 225

You have an Azure subscription named Subscription1 that contains a custom Azure policy named Policy1. Policy1 is an audit policy that monitors naming convention compliance for the resources deployed to Subscription1. You have a pipeline named Pipeline1 in Azure Pipelines. Pipeline1 deploys Azure Resource Manager (ARM) resources to Subscription1. You need to ensure that the resources deployed by Pipeline1 comply with Policy1. What should you add to Pipeline1?

A. a pre-deployment task that runs a security and compliance assessment
B. a post-deployment task that runs a security and compliance assessment
C. an ARM template deployment task to assign Policy1 to Subscription1
D. an ARM template deployment task to deploy Policy1 to Subscription1
Show Answer
Correct Answer: B
Explanation:
Policy1 is already a custom audit policy that monitors naming compliance. The question asks what to add to the pipeline to ensure deployed resources comply. An audit policy does not prevent deployment; it evaluates compliance after resources exist. Therefore, add a post-deployment security and compliance assessment task to check Azure Policy compliance after deployment. Options C and D are unnecessary because the policy already exists, and A is less appropriate for an audit policy that evaluates deployed resources. Sources: https://learn.microsoft.com/en-us/azure/container-registry/container-registry-azure-policy https://azure.microsoft.com/en-ca/products/azure-policy

Question 226

Your company has 60 developers who are assigned to four teams. Each team has 15 members. The company uses an agile development methodology. You need to structure the work of the development teams so that each team owns their respective work while working together to reach a common goal. Which parts of the taxonomy should you enable the team to perform autonomously?

A. Features and Tasks
B. Initiatives and Epics
C. Epics and Features
D. Stories and Tasks
Show Answer
Correct Answer: D
Explanation:
In Azure DevOps Agile scaling, leadership typically manages initiatives, epics, and features to align teams toward common goals, while individual development teams are given autonomy over user stories and tasks. Since the teams should own their day-to-day work while collaborating on broader objectives, Stories and Tasks are the appropriate level of autonomous ownership.

Question 227

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?

A. Maven
B. CocoaPods
C. Xcode
D. Gulp
Show Answer
Correct Answer: A
Explanation:
Maven is the standard Java build task and integrates with SonarQube/SonarScanner for Java projects in build pipelines. CocoaPods is for iOS dependencies, Xcode is Apple's IDE/build system, and Gulp is a JavaScript task runner, none of which are appropriate for building and analyzing a Java solution with SonarQube.

Question 228

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?

A. Octopus
B. Chef
C. CocoaPods
D. Gradle
Show Answer
Correct Answer: D
Explanation:
Gradle is a Java build automation tool with SonarQube integration commonly used in Azure DevOps build pipelines to build and analyze Java projects. Octopus is for deployment, Chef is configuration management, and CocoaPods is for iOS dependency management.

Question 229

You use GitHub for source control and project-related discussions. You receive a notification when an entry is made to any team discussion. You need to ensure that you receive email notifications only for discussions in which you commented or in which you are mentioned. Which two Notifications settings should you clear? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A. Automatically watch teams
B. Participating
C. Automatically watch repositories
D. Watching
Show Answer
Correct Answer: A, C
Explanation:
To receive notifications only for discussions in which you participate or are mentioned, disable the automatic subscription behaviors. Clearing 'Automatically watch teams' stops automatic team discussion notifications, and clearing 'Automatically watch repositories' prevents automatic watching of repositories you gain access to. Keep 'Participating' enabled so you still receive notifications for conversations you are involved in. 'Watching' refers to notifications for items you explicitly watch rather than the automatic watching behavior asked about.

Question 231

You build an iOS app. You receive crash reports from Crashlytics. You need to capture the following data: ✑ Crash-free users ✑ Custom events ✑ Breadcrumbs What should you do?

A. Configure the xcworkspace file in the project
B. Add the GoogleAnalytics pod to the app.
C. Configure the Crashlytics pod in the app.
D. Import the Firebase module to UIApplicationDelegate.
Show Answer
Correct Answer: D
Explanation:
The app is already receiving Crashlytics crash reports, so Crashlytics itself is effectively set up. To enable analytics-related Crashlytics features such as crash-free users and breadcrumbs, Firebase must be initialized by importing the Firebase module and calling FirebaseApp.configure() in the AppDelegate/UIApplicationDelegate (or App struct). Configuring the Crashlytics pod alone is not sufficient if Firebase is not initialized. The GoogleAnalytics pod is outdated; Firebase Analytics is the current integration.

Question 233

You need to meet the technical requirements for monitoring App1. What should you use?

A. Splunk
B. Azure Application Insights
C. Azure Advisor
D. App Service logs
Show Answer
Correct Answer: B
Explanation:
Azure Application Insights is the Azure service designed to monitor application performance, including metrics such as page load times, request rates, failures, dependencies, and end-user telemetry. Azure Advisor provides recommendations, App Service logs are basic platform/application logs, and Splunk is a third-party analytics platform rather than the native Azure monitoring service typically required for these technical monitoring requirements.

Question 235

You are designing a YAML template for use with Azure Pipelines. The template will include the outputfile parameter. Which two methods can you use to reference the parameter? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

A. ${{parameters.outputfile}}
B. $(parameters['outputfile'])
C. $(parameters.outputfile)
D. $(parameters[outputfile])
E. ${{parameters['outputfile']}}
Show Answer
Correct Answer: A, E
Explanation:
Azure Pipelines template parameters are evaluated at compile time using template expressions with the ${{ }} syntax. Parameters can be referenced using either property dereference syntax (${{ parameters.outputfile }}) or index syntax (${{ parameters['outputfile'] }}). The $( ) syntax is macro syntax for runtime variables, not template parameters.

Question 236

You have an Azure virtual machine that is monitored by using Azure Monitor. The virtual machine has the Azure Log Analytics agent installed. You plan to deploy the Service Map solution from the Azure Marketplace. What should you deploy to the virtual machine to support the Service Map solution?

A. the Dependency agent
B. the Telegraf agent
C. the Windows Azure diagnostics extension (WAD)
D. the Azure monitor agent
Show Answer
Correct Answer: A
Explanation:
Service Map requires the Dependency agent on the VM in addition to the Log Analytics agent (for the legacy Service Map solution). The Telegraf agent is for collecting Linux metrics, WAD is for Azure diagnostics, and Azure Monitor Agent is the newer monitoring agent but does not change the legacy prerequisite as stated in the question.

Question 237

HOTSPOT - You have a project in Azure DevOps that contains a Continuous Integration/Continuous Deployment (CI/CD) pipeline. You need to enable detailed logging by defining a pipeline variable. How should you configure the variable? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for AZ-400 question 237
Show Answer
Correct Answer: Name: System.Debug Value: true
Explanation:
Azure DevOps enables detailed (verbose) pipeline logging by setting the predefined pipeline variable `System.Debug` to `true`.

$19

Get all 541 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.