πŸ”

AZ-400 β€” questions

Page 5 of 18 Β· 358 total questions.

Topic 4 Β· Question 119

You plan to provision a self-hosted Linux agent. Which authentication mechanism should you use to register the self-hosted agent?

  • Apersonal access token (PAT) (correct answer)
  • BSSH key
  • CAlternate credentials
  • Dcertificate
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: personal access token (PAT).

Topic 4 Β· Question 120

You are building a Microsoft ASP.NET application that requires authentication. You need to authenticate users by using Azure Active Directory (Azure AD). What should you do first?

  • AAssign an enterprise application to users and groups
  • BCreate an app registration in Azure AD (correct answer)
  • CConfigure the application to use a SAML endpoint
  • DCreate a new OAuth token from the application
  • ECreate a membership database in an Azure SQL database
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create an app registration in Azure AD

Explanation

Azure Active Directory (Microsoft Entra ID) provides identity, single sign-on, and conditional access.

Topic 4 Β· Question 121

You have an Azure DevOps organization named Contoso. You need to recommend an authentication mechanism that meets the following requirements: β€’ Supports authentication from Git β€’ Minimizes the need to provide credentials during authentication What should you recommend?

  • Apersonal access tokens (PATs) in Azure DevOps (correct answer)
  • BAlternate credentials in Azure DevOps
  • Cuser accounts in Azure Active Directory (Azure AD)
  • Dmanaged identities in Azure Active Directory (Azure AD)
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: personal access tokens (PATs) in Azure DevOps.

Topic 4 Β· Question 122

You have an application that consists of several Azure App Service web apps and Azure functions. You need to assess the security of the web apps and the functions. Which Azure feature can you use to provide a recommendation for the security of the application?

  • ASecurity & Compliance in Azure Log Analytics
  • BResource health in Azure Service Health
  • CSmart Detection in Azure Application Insights
  • DCompute & apps in Azure Security Center (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Compute & apps in Azure Security Center.

Topic 4 Β· Question 123

Your company has a project in Azure DevOps for a new web application. The company identifies security as one of the highest priorities. You need to recommend a solution to minimize the likelihood that infrastructure credentials will be leaked. What should you recommend?

  • AAdd a Run Inline Azure PowerShell task to the pipeline.
  • BAdd a PowerShell task to the pipeline and run Set-AzureKeyVaultSecret.
  • CAdd an Azure Key Vault task to the pipeline. (correct answer)
  • DAdd Azure Key Vault references to Azure Resource Manger templates.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Add an Azure Key Vault task to the pipeline.

Explanation

Azure Key Vault securely stores and manages secrets, keys, and certificates with access policies.

Topic 4 Β· Question 125

You create a Microsoft ASP.NET Core application. You plan to use Azure Key Vault to provide secrets to the application as configuration data. You need to create a Key Vault access policy to assign secret permissions to the application. The solution must use the principle of least privilege. Which secret permissions should you use?

  • AList only
  • BGet only (correct answer)
  • CGet and List
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Get only.

Topic 4 Β· Question 128

You have a branch policy in a project in Azure DevOps. The policy requires that code always builds successfully. You need to ensure that a specific user can always merge changes to the master branch, even if the code fails to compile. The solution must use the principle of least privilege. What should you do?

  • AAdd the user to the Build Administrators group.
  • BAdd the user to the Project Administrators group.
  • CFrom the Security settings of the repository, modify the access control for the user.
  • DFrom the Security settings of the branch, modify the access control for the user. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: From the Security settings of the branch, modify the access control for the user.

Topic 4 Β· Question 129

You have an Azure Resource Manager template that deploys a multi-tier application. You need to prevent the user who performs the deployment from viewing the account credentials and connection strings used by the application. What should you use?

  • AAzure Key Vault (correct answer)
  • Ba Web.config file
  • Can Appsettings.json file
  • Dan Azure Storage table
  • Ean Azure Resource Manager parameter file
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Azure Key Vault

Explanation

Azure Key Vault securely stores and manages secrets, keys, and certificates with access policies.

Topic 4 Β· Question 134 Β· Select all that apply

You are deploying a server application that will run on a Server Core installation of Windows Server 2019. You create an Azure key vault and a secret. You need to use the key vault to secure API secrets for third-party integrations. Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AConfigure RBAC for the key vault. (correct answer)
  • BModify the application to access the key vault. (correct answer)
  • CConfigure a Key Vault access policy.
  • DDeploy an Azure Desired State Configuration (DSC) extension.
  • EDeploy a virtual machine that uses a system-assigned managed identity. (correct answer)
Reveal answer & explanation
Correct answer: A, B, E

The correct answer is A, B, E. Option A: Configure RBAC for the key vault. Option B: Modify the application to access the key vault. Option E: Deploy a virtual machine that uses a system-assigned managed identity.

Explanation

An Azure Virtual Machine provides full control of the OS when you need to run custom or legacy workloads. A Managed Identity lets Azure resources authenticate to services without storing credentials. Azure Key Vault securely stores and manages secrets, keys, and certificates with access policies.

Topic 4 Β· Question 136

You have an Azure DevOps organization named Contoso that contains a project named Project1. You provision an Azure key vault named Keyvault1. You need to reference Keyvault1 secrets in a build pipeline of Project1. What should you do first?

  • AAdd a secure file to Project1.
  • BCreate an XAML build service.
  • CCreate a variable group in Project1. (correct answer)
  • DConfigure the security policy of Contoso.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a variable group in Project1.

Topic 4 Β· Question 137

You have the following Azure policy. You assign the policy to the Tenant root group. What is the effect of the policy?

  • Aprevents all HTTP traffic to existing Azure Storage accounts
  • Bensures that all traffic to new Azure Storage accounts is encrypted (correct answer)
  • Cprevents HTTPS traffic to new Azure Storage accounts when the accounts are accessed over the Internet
  • Densures that all data for new Azure Storage accounts is encrypted at rest
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: ensures that all traffic to new Azure Storage accounts is encrypted

Explanation

An Azure Storage Account is the container that groups blob, file, queue, and table storage with unified access control.

Topic 4 Β· Question 138

You have an Azure DevOps organization named Contoso, an Azure DevOps project named Project1, an Azure subscription named Sub1, and an Azure key vault named vault1. You need to ensure that you can reference the values of the secrets stored in vault1 in all the pipelines of Project1. The solution must prevent the values from being stored in the pipelines. What should you do?

  • ACreate a variable group in Project1. (correct answer)
  • BAdd a secure file to Project1.
  • CModify the security settings of the pipelines.
  • DConfigure the security policy of Contoso.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a variable group in Project1.

Topic 4 Β· Question 142 Β· Select all that apply

You use WhiteSource Bolt to scan a Node.js application. The WhiteSource Bolt scan identifies numerous libraries that have invalid licenses. The libraries are used only during development and are not part of a production deployment. You need to ensure that WhiteSource Bolt only scans production dependencies. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • ARun npm install and specify the --production flag. (correct answer)
  • BModify the WhiteSource Bolt policy and set the action for the licenses used by the development tools to Reassign.
  • CModify the devDependencies section of the project's Package.json file. (correct answer)
  • DConfigure WhiteSource Bolt to scan the node_modules directory only.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Run npm install and specify the --production flag. Option C: Modify the devDependencies section of the project's Package.json file.

Topic 4 Β· Question 143

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You plan to update the Azure DevOps strategy of your company. You need to identify the following issues as they occur during the company's development process: β€’ Licensing violations β€’ Prohibited libraries Solution: You implement continuous integration. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 4 Β· Question 144

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You plan to update the Azure DevOps strategy of your company. You need to identify the following issues as they occur during the company's development process: β€’ Licensing violations β€’ Prohibited libraries Solution: You implement pre-deployment gates. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 4 Β· Question 145

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You plan to update the Azure DevOps strategy of your company. You need to identify the following issues as they occur during the company's development process: β€’ Licensing violations β€’ Prohibited libraries Solution: You implement automated security testing. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 4 Β· Question 146

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You plan to update the Azure DevOps strategy of your company. You need to identify the following issues as they occur during the company's development process: β€’ Licensing violations β€’ Prohibited libraries Solution: You implement continuous deployment. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 4 Β· Question 149

You need to configure GitHub to use Azure Active Directory (Azure AD) for authentication. What should you do first?

  • ACreate a conditional access policy in Azure AD.
  • BRegister GitHub in Azure AD. (correct answer)
  • CCreate an Azure Active Directory B2C (Azure AD B2C) tenant.
  • DModify the Security settings of the GitHub organization.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Register GitHub in Azure AD.

Explanation

Azure Active Directory (Microsoft Entra ID) provides identity, single sign-on, and conditional access.

Topic 4 Β· Question 150

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. You need to prevent releases from being deployed unless the releases comply with the Azure Policy rules assigned to Sub1. What should you do in the release pipeline of Project1?

  • AAdd a deployment gate. (correct answer)
  • BModify the Deployment queue settings.
  • CConfigure a deployment trigger.
  • DCreate a pipeline variable.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Add a deployment gate.

Topic 4 Β· Question 152

You have an Azure DevOps project that contains a build pipeline. The build pipeline uses approximately 50 open source libraries. You need to ensure that all the open source libraries comply with your company's licensing standards. Which service should you use?

  • AAnsible
  • BMaven
  • CWhiteSource Bolt (correct answer)
  • DHelm
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: WhiteSource Bolt.

Showing questions 81–100 of 358 Β· Page 5 of 18