πŸ”

AZ-204 β€” questions

Page 5 of 7 Β· 139 total questions.

Topic 4 Β· Question 178

You are developing a Java application that uses Cassandra to store key and value data. You plan to use a new Azure Cosmos DB resource and the Cassandra API in the application. You create an Azure Active Directory (Azure AD) group named Cosmos DB Creators to enable provisioning of Azure Cosmos accounts, databases, and containers. The Azure AD group must not be able to access the keys that are required to access the data. You need to restrict access to the Azure AD group. Which role-based access control should you use?

  • ADocumentDB Accounts Contributor
  • BCosmos Backup Operator
  • CCosmos DB Operator (correct answer)
  • DCosmos DB Account Reader
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Cosmos DB Operator

Explanation

Azure Cosmos DB is a globally distributed, multi-model NoSQL database with single-digit millisecond latency and automatic scaling.

Topic 4 Β· Question 179

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 are developing a website that will run as an Azure Web App. Users will authenticate by using their Azure Active Directory (Azure AD) credentials. You plan to assign users one of the following permission levels for the website: admin, normal, and reader. A user's Azure AD group membership must be used to determine the permission level. You need to configure authorization. Solution: Configure the Azure Web App for the website to allow only authenticated requests and require Azure AD log on. Does the solution meet the goal?

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

The correct answer is B. Option B: No.

Topic 4 Β· Question 180

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 are developing a website that will run as an Azure Web App. Users will authenticate by using their Azure Active Directory (Azure AD) credentials. You plan to assign users one of the following permission levels for the website: admin, normal, and reader. A user's Azure AD group membership must be used to determine the permission level. You need to configure authorization. Solution: β€’ Create a new Azure AD application. In the application's manifest, set value of the groupMembershipClaims option to All. β€’ In the website, use the value of the groups claim from the JWT for the user to determine permissions. Does the solution meet the goal?

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

The correct answer is A. Option A: Yes.

Topic 4 Β· Question 181

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 are developing a website that will run as an Azure Web App. Users will authenticate by using their Azure Active Directory (Azure AD) credentials. You plan to assign users one of the following permission levels for the website: admin, normal, and reader. A user's Azure AD group membership must be used to determine the permission level. You need to configure authorization. Solution: β€’ Create a new Azure AD application. In the application's manifest, define application roles that match the required permission levels for the application. β€’ Assign the appropriate Azure AD group to each role. In the website, use the value of the roles claim from the JWT for the user to determine permissions. Does the solution meet the goal?

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

The correct answer is A. Option A: Yes.

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

You provide an Azure API Management managed web service to clients. The back-end web service implements HTTP Strict Transport Security (HSTS). Every request to the backend service must include a valid HTTP authorization header. You need to configure the Azure API Management instance with an authentication policy. Which two policies can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • ABasic Authentication (correct answer)
  • BDigest Authentication
  • CCertificate Authentication (correct answer)
  • DOAuth Client Credential Grant
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Basic Authentication Option C: Certificate Authentication.

Topic 4 Β· Question 184

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 are developing a medical records document management website. The website is used to store scanned copies of patient intake forms. If the stored intake forms are downloaded from storage by a third party, the contents of the forms must not be compromised. You need to store the intake forms according to the requirements. Solution: 1. Create an Azure Key Vault key named skey. 2. Encrypt the intake forms using the public key portion of skey. 3. Store the encrypted data in Azure Blob storage. Does the solution meet the goal?

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

The correct answer is A. Option A: Yes.

Topic 4 Β· Question 185

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 are developing a medical records document management website. The website is used to store scanned copies of patient intake forms. If the stored intake forms are downloaded from storage by a third party, the contents of the forms must not be compromised. You need to store the intake forms according to the requirements. Solution: 1. Create an Azure Cosmos DB database with Storage Service Encryption enabled. 2. Store the intake forms in the Azure Cosmos DB database. Does the solution meet the goal?

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

The correct answer is B. Option B: No.

Topic 4 Β· Question 186

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 are developing a medical records document management website. The website is used to store scanned copies of patient intake forms. If the stored intake forms are downloaded from storage by a third party, the contents of the forms must not be compromised. You need to store the intake forms according to the requirements. Solution: Store the intake forms as Azure Key Vault secrets. Does the solution meet the goal?

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

The correct answer is B. Option B: No.

Topic 4 Β· Question 188

Your company is developing an Azure API hosted in Azure. You need to implement authentication for the Azure API to access other Azure resources. You have the following requirements: β€’ All API calls must be authenticated. β€’ Callers to the API must not send credentials to the API. Which authentication mechanism should you use?

  • ABasic
  • BAnonymous
  • CManaged identity (correct answer)
  • DClient certificate
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Managed identity

Explanation

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

Topic 4 Β· Question 190

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 develop Azure solutions. You must grant a virtual machine (VM) access to specific resource groups in Azure Resource Manager. You need to obtain an Azure Resource Manager access token. Solution: Use an X.509 certificate to authenticate the VM with Azure Resource Manager. Does the solution meet the goal?

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

The correct answer is B. Option B: No.

Topic 4 Β· Question 191

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 develop Azure solutions. You must grant a virtual machine (VM) access to specific resource groups in Azure Resource Manager. You need to obtain an Azure Resource Manager access token. Solution: Use the Reader role-based access control (RBAC) role to authenticate the VM with Azure Resource Manager. Does the solution meet the goal?

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

The correct answer is B. Option B: No.

Topic 4 Β· Question 193

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 are developing a website that will run as an Azure Web App. Users will authenticate by using their Azure Active Directory (Azure AD) credentials. You plan to assign users one of the following permission levels for the website: admin, normal, and reader. A user's Azure AD group membership must be used to determine the permission level. You need to configure authorization. Solution: β€’ Configure and use Integrated Windows Authentication in the website. β€’ In the website, query Microsoft Graph API to load the groups to which the user is a member. Does the solution meet the goal?

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

The correct answer is B. Option B: No.

Topic 4 Β· Question 194

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 develop Azure solutions. You must grant a virtual machine (VM) access to specific resource groups in Azure Resource Manager. You need to obtain an Azure Resource Manager access token. Solution: Run the Invoke-RestMethod cmdlet to make a request to the local managed identity for Azure resources endpoint. Does the solution meet the goal?

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

The correct answer is A. Option A: Yes.

Topic 4 Β· Question 196

You develop an app that allows users to upload photos and videos to Azure storage. The app uses a storage REST API call to upload the media to a blob storage account named Account1. You have blob storage containers named Container1 and Container2. Uploading of videos occurs on an irregular basis. You need to copy specific blobs from Container1 to Container2 when a new video is uploaded. What should you do?

  • ACopy blobs to Container2 by using the Put Blob operation of the Blob Service REST API
  • BCreate an Event Grid topic that uses the Start-AzureStorageBlobCopy cmdlet (correct answer)
  • CUse AzCopy with the Snapshot switch to copy blobs to Container2
  • DDownload the blob to a virtual machine and then upload the blob to Container2
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create an Event Grid topic that uses the Start-AzureStorageBlobCopy cmdlet

Explanation

Azure Event Grid routes events between services for reactive, event-driven architectures.

Topic 4 Β· Question 197

You are developing an ASP.NET Core website that uses Azure FrontDoor. The website is used to build custom weather data sets for researchers. Data sets are downloaded by users as Comma Separated Value (CSV) files. The data is refreshed every 10 hours. Specific files must be purged from the FrontDoor cache based upon Response Header values. You need to purge individual assets from the Front Door cache. Which type of cache purge should you use?

  • Asingle path (correct answer)
  • Bwildcard
  • Croot domain
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: single path.

Topic 4 Β· Question 198

Your company is developing an Azure API. You need to implement authentication for the Azure API. You have the following requirements: All API calls must be secure. β€’ Callers to the API must not send credentials to the API. Which authentication mechanism should you use?

  • ABasic
  • BAnonymous
  • CManaged identity (correct answer)
  • DClient certificate
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Managed identity

Explanation

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

Topic 4 Β· Question 199

You are a developer for a SaaS company that offers many web services. All web services for the company must meet the following requirements: β€’ Use API Management to access the services β€’ Use OpenID Connect for authentication β€’ Prevent anonymous usage A recent security audit found that several web services can be called without any authentication. Which API Management policy should you implement?

  • Ajsonp
  • Bauthentication-certificate
  • Ccheck-header
  • Dvalidate-jwt (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: validate-jwt.

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

You are developing an Azure App Service REST API. The API must be called by an Azure App Service web app. The API must retrieve and update user profile information stored in Azure Active Directory (Azure AD). You need to configure the API to make the updates. Which two tools should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AMicrosoft Graph API (correct answer)
  • BMicrosoft Authentication Library (MSAL) (correct answer)
  • CAzure API Management
  • DMicrosoft Azure Security Center
  • EMicrosoft Azure Key Vault SDK
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Microsoft Graph API Option B: Microsoft Authentication Library (MSAL).

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

You develop a REST API. You implement a user delegation SAS token to communicate with Azure Blob storage. The token is compromised. You need to revoke the token. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • ARevoke the delegation key. (correct answer)
  • BDelete the stored access policy.
  • CRegenerate the account key.
  • DRemove the role assignment for the security principle. (correct answer)
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Revoke the delegation key. Option D: Remove the role assignment for the security principle.

Topic 4 Β· Question 205

You develop and deploy an Azure Logic app that calls an Azure Function app. The Azure Function app includes an OpenAPI (Swagger) definition and uses an Azure Blob storage account. All resources are secured by using Azure Active Directory (Azure AD). The Azure Logic app must securely access the Azure Blob storage account. Azure AD resources must remain if the Azure Logic app is deleted. You need to secure the Azure Logic app. What should you do?

  • ACreate a user-assigned managed identity and assign role-based access controls. (correct answer)
  • BCreate an Azure AD custom role and assign the role to the Azure Blob storage account.
  • CCreate an Azure Key Vault and issue a client certificate.
  • DCreate a system-assigned managed identity and issue a client certificate.
  • ECreate an Azure AD custom role and assign role-based access controls.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a user-assigned managed identity and assign role-based access controls.

Explanation

A Managed Identity lets Azure resources authenticate to services without storing credentials. Azure RBAC grants least-privilege access by assigning built-in or custom roles at a defined scope.

Showing questions 81–100 of 139 Β· Page 5 of 7