πŸ”

AZ-400 β€” questions

Page 6 of 18 Β· 358 total questions.

Topic 4 Β· Question 153

You are designing the security validation strategy for a project in Azure DevOps. You need to identify package dependencies that have known security issues and can be resolved by an update. What should you use?

  • AOctopus Deploy
  • BJenkins
  • CGradle
  • DSonarQube (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: SonarQube.

Topic 4 Β· Question 154

You administer an Azure DevOps project that includes package feeds. You need to ensure that developers can unlist and deprecate packages. The solution must use the principle of least privilege. Which access level should you grant to the developers?

  • ACollaborator
  • BContributor (correct answer)
  • COwner
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Contributor.

Topic 4 Β· Question 156

Your company is concerned that when developers introduce open source libraries, it creates licensing compliance issues. You need to add an automated process to the build pipeline to detect when common open source libraries are added to the code base. What should you use?

  • AMicrosoft Visual SourceSafe
  • BCode Style
  • CBlack Duck (correct answer)
  • DJenkins
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Black Duck.

Topic 4 Β· Question 159

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?

  • ANuGet
  • BMaven
  • CBlack Duck (correct answer)
  • DHelm
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Black Duck.

Topic 4 Β· Question 161

Your company develops an app for iOS. All users of the app have devices that are members of a private distribution group in Microsoft Visual Studio App Center. You plan to distribute a new release of the app. You need to identify which certificate file you require to distribute the new release from App Center. Which file type should you upload to App Center?

  • A.cer
  • B.pfx
  • C.p12 (correct answer)
  • D.pvk
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C:.p12.

Topic 4 Β· Question 165

Your company is concerned that when developers introduce open source libraries, it creates licensing compliance issues. You need to add an automated process to the build pipeline to detect when common open source libraries are added to the code base. What should you use?

  • AOWASP ZAP
  • BJenkins
  • CCode Style
  • DWhiteSource Bolt (correct answer)
Reveal answer & explanation
Correct answer: D

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

Topic 4 Β· Question 166

You plan to use a NuGet package in a project in Azure DevOps. The NuGet package is in a feed that requires authentication. You need to ensure that the project can restore the NuGet package automatically. What should the project use to automate the authentication?

  • Aan Azure Automation account
  • Ban Azure Artifacts Credential Provider (correct answer)
  • Can Azure Active Directory (Azure AD) account that has multi-factor authentication (MFA) enabled
  • Dan Azure Active Directory (Azure AD) service principal
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: an Azure Artifacts Credential Provider.

Topic 4 Β· Question 167

You use Azure Pipelines to manage project builds and deployments. You plan to use Azure Pipelines for Microsoft Teams to notify the legal team when a new build is ready for release. You need to configure the Organization Settings in Azure DevOps to support Azure Pipelines for Microsoft Teams. What should you turn on?

  • AThird-party application access via OAuth (correct answer)
  • BAzure Active Directory Conditional Access Policy Validation
  • CAlternate authentication credentials
  • DSSH authentication
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Third-party application access via OAuth.

Topic 4 Β· Question 168

You have an existing project in Azure DevOps. You plan to integrate GitHub as the repository for the project. You need to ensure that Azure Pipelines runs under the Azure Pipelines identity. Which authentication mechanism should you use?

  • Apersonal access token (PAT)
  • BGitHub App (correct answer)
  • CAzure Active Directory (Azure AD)
  • DOAuth
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: GitHub App.

Topic 4 Β· Question 171

You use release pipelines in Azure Pipelines to deploy an app. Secrets required be the pipeline are stored as pipeline variables. Logging of commands is enabled for the Azure Pipelines agent. You need to prevent the values of the secrets from being logged. What should you do?

  • AStore the secrets in the environment variables instead of the pipeline variables. (correct answer)
  • BPass the secrets on the command line instead of in the pipeline variables.
  • CApply a prefix of secret to the name of the variables.
  • DEcho the values of the secrets to the command line.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Store the secrets in the environment variables instead of the pipeline variables.

Topic 4 Β· Question 174

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?

  • AStore the secret in the organization-level GitHub secrets.
  • BStore the secret in the repository-level GitHub secrets.
  • CEncrypt the secret value and store the value in the repository. Store the decryption key in the repository-level GitHub secrets. (correct answer)
  • DEncrypt the secret value and store the value in the repository. Store the decryption key in the organization-level GitHub secrets.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Encrypt the secret value and store the value in the repository. Store the decryption key in the repository-level GitHub secrets.

Topic 4 Β· Question 175

Your company uses Azure DevOps and Microsoft Azure Active Directory (Azure AD), part of Microsoft Entra. Only users who have accounts in Azure AD can access the Azure DevOps environment. You need to ensure that only devices that are connected to the on-premises network can access the Azure DevOps environment. What should you do?

  • AAssign the Stakeholder access level to all users.
  • BIn Azure DevOps, configure Security in Project Settings.
  • CIn Azure AD, configure conditional access. (correct answer)
  • DIn Azure AD, configure risky sign-ins.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: In Azure AD, configure conditional access.

Explanation

Azure Active Directory (Microsoft Entra ID) provides identity, single sign-on, and conditional access. Conditional Access enforces access policies based on user, device, location, and risk signals.

Topic 4 Β· Question 176

You have an Azure subscription that contains four Azure virtual machines. You need to configure the virtual machines to use a single identity. The solution must meet the following requirements: β€’ Ensure that the credentials for the identity are managed automatically. β€’ Support granting privileges to the identity. Which type of identity should you use?

  • Aa system-assigned managed identity
  • Ba user-assigned managed identity (correct answer)
  • Ca service principal
  • Da user account
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: a user-assigned managed identity

Explanation

A Managed Identity lets Azure resources authenticate to services without storing credentials.

Topic 4 Β· Question 178

You have a GitHub repository that contains multiple workflows and a secret stored at the environment level. You need to ensure that the secret can be used by all the workflows. What should you do first?

  • ARecreate the secret at the organization level.
  • BRecreate the secret at the repository level. (correct answer)
  • CEnable required reviewers.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Recreate the secret at the repository level.

Topic 4 Β· Question 180

You have an Azure key vault named KV1 and three web servers. You plan to deploy an app named App1 to the web servers. You need to ensure that App1 can retrieve a secret from KV1. The solution must meet the following requirements: β€’ Minimize the number of permission grants required. β€’ Follow the principle of least privilege. What should you include in the solution?

  • Arole-based access control (RBAC) permission
  • Ba system-assigned managed identity
  • Ca user-assigned managed identity (correct answer)
  • Da service principal
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: a user-assigned managed identity

Explanation

A Managed Identity lets Azure resources authenticate to services without storing credentials.

Topic 4 Β· Question 181

You plan to use Azure DevOps to build and deploy an app that will be hosted in a Kubernetes cluster. You need to scan the app image for vulnerabilities before the image is deployed to the cluster. What should you include in the solution?

  • AMicrosoft Defender for Containers (correct answer)
  • BMicrosoft Defender for App Service
  • CMicrosoft Defender for DevOps
  • DMicrosoft Defender for Storage
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Microsoft Defender for Containers.

Topic 4 Β· Question 183

You have an app named App1 that is built by using Azure Pipelines. The source code for App1 is stored in Azure Repos and contains open source libraries. You need to identify security vulnerabilities in the open source code. What should you use?

  • AMend Bolt (correct answer)
  • BRollbar
  • CCode Climate
  • DDeepSource
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Mend Bolt.

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

You manage code by using GitHub. You plan to use Dependabot to scan for code dependencies. You need to identify when scanning will be triggered automatically. Which two actions will trigger a scan? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.

  • AThe dependency graph of a repository changes. (correct answer)
  • BA pull request is created.
  • CA branch is forked.
  • DAny commit is pushed.
  • EA new advisory is added. (correct answer)
Reveal answer & explanation
Correct answer: A, E

The correct answer is A, E. Option A: The dependency graph of a repository changes. Option E: A new advisory is added.

Topic 4 Β· Question 188

You have a GitHub repository that uses GitHub Actions and stores access keys by using GitHub encrypted secrets. You plan to update the secrets by using the GitHub REST API. You need to wrap the secrets before adding them to a REST-based call. Which encryption library should you use?

  • ACryptoNet
  • BBouncyCastle
  • Clibsodium (correct answer)
  • Dhashlib
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: libsodium.

Topic 4 Β· Question 190

You use Azure Pipelines pipeline to build and deploy an app named App1. You need to ensure that before App1 is deployed, all the code for the app passes a security validation by using a custom tool. What should you do?

  • AAdd a status check to the policies of the branch used by your company's development department.
  • BAdd a status check to the policies of the main branch. (correct answer)
  • CAdd a service hook to the project.
  • DLimit the job authorization scope to the current project for all the release pipelines.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Add a status check to the policies of the main branch.

Showing questions 101–120 of 358 Β· Page 6 of 18