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

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

List of questions

Question 361

Report
Export
Collapse

You have a project in Azure DevOps named Project1.

You need to ensure that all new pipelines in Project1 execute three specific tasks during pipeline execution. What should you create?

a task group
a task group
a JSON template
a JSON template
a YAML template
a YAML template
a PowerShell task
a PowerShell task
Suggested answer: C

Explanation:


asked 02/10/2024
Raajhavelu Rengaraj
21 questions

Question 362

Report
Export
Collapse

You plan to create a GitHub workflow that will use GitHub Actions. The actions will require a 256-KB secret. You need to recommend a solution to store and encrypt the secret. The secret value must be accessible only to the workflow. The solution must minimize administrative effort What should you recommend?

Store the secret in the organization-level GitHub secrets.
Store the secret in the organization-level GitHub secrets.
Store the secret in the repository-level GitHub secrets.
Store the secret in the repository-level GitHub secrets.
Encrypt the secret value and store the value in the repository. Store the decryption key in the repository-level GitHub secrets.
Encrypt the secret value and store the value in the repository. Store the decryption key in the repository-level GitHub secrets.
Encrypt the secret value and store the value in the repository. Store the decryption key in the organization-level GitHub secrets.
Encrypt the secret value and store the value in the repository. Store the decryption key in the organization-level GitHub secrets.
Suggested answer: C

Explanation:

https://docs.github.com/en/actions/security-guides/encrypted-secrets "To use secrets that are larger than 48 KB, you can use a workaround to store encrypted secrets in your repository and save the decryption passphrase as a secret on GitHub." Because it requires less administrative privilege it's at repository level

asked 02/10/2024
Ben Johnson
34 questions

Question 363

Report
Export
Collapse

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?

a Docker host
a Docker host
Azure Service Fabric
Azure Service Fabric
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
a Docker registry
a Docker registry
Suggested answer: D
asked 02/10/2024
David Shokrai
37 questions

Question 364

Report
Export
Collapse

DRAG DROP

You have an Azure DevOps pipeline that is used to deploy a Node.js app.

You need to ensure that the dependencies are cached between builds.

How should you configure the deployment YAML? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE Each correct selection is worth one point.


Microsoft AZ-400 image Question 364 87123 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 364 87123 10022024015257000
asked 02/10/2024
James Valdivia
30 questions

Question 365

Report
Export
Collapse

HOTSPOT

You are designing YAML-based Azure pipelines for the apps shown in the following table

Microsoft AZ-400 image Question 68 87124 10022024015257000000

You need to configure the YAML strategy value for each app. The solution must minimize app downtime. Which value should you configure for each app? To answer, select the appropriate options in the answer area.


Microsoft AZ-400 image Question 365 87124 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 365 87124 10022024015257000

Explanation:

App1 Canary

App2 rolling

App1 Canary would minimize app downtime for the first app, as it would only deploy new code when the canary has confirmed that it is functional - and if there are any issues, it would roll back to the previous version of the code.

App2 rolling would be the second option, as it would allow for frequent deployments of new code, while still giving the developers enough time to fix any issues that may have been introduced during new code deployments.

asked 02/10/2024
Okan YILDIZ
39 questions

Question 366

Report
Export
Collapse

DRAG DROP

You use get get for source control.

You delete a file, commit the changes, and continue to work.

You need to recover the deleted file.

Which three commands should you run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.


Become a Premium Member for full access
  Unlock Premium Member

Question 367

Report
Export
Collapse

DRAG DROP

You have an app named App1. You have a Log Analytics workspace named Workspace 1 that contains two tables named Events and Logs. Appl manages events in multiple locations and writes logs to Workspace1. You need to query Workspace1 for all log entries related to Asia that occurred during the last two days. In which order should you arrange the query statements? To answer, move all statements from the list of statements to the answer area and arrange them in the correct order.


Become a Premium Member for full access
  Unlock Premium Member

Question 368

Report
Export
Collapse

DRAG DROP

You are using the Dependency Tracker extension in a project in Azure DevOps.

You generate a risk graph for the project.

What should you use in the risk graph to identify the number of dependencies and the risk level of the project? To answer, drag the appropriate elements to the correct data points. Each element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.


Become a Premium Member for full access
  Unlock Premium Member

Question 369

Report
Export
Collapse

DRAG DROP

You are creating a container for an ASP.NET Core app.

You need to create a Dockerfile file to build the image. The solution must ensure that the size of the image is minimized How should you configure the file? To answer, drag the appropriate values to the correct targets.

Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.


Become a Premium Member for full access
  Unlock Premium Member

Question 370

Report
Export
Collapse

HOTSPOT

You have a virtual machine that runs Windows Server 2019 and is managed by using Desired State Configuration (DSC). You have the following DSC configuration.

Microsoft AZ-400 image Question 73 87129 10022024015257000000

You have the following Local Configuration Manager (LCM) configuration.

Microsoft AZ-400 image Question 73 87129 10022024015257000000

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.


Become a Premium Member for full access
  Unlock Premium Member
Total 489 questions
Go to page: of 49
Search

Related questions