πŸ”

AZ-204 β€” questions

Page 7 of 7 Β· 139 total questions.

Topic 15 Β· Question 255 Β· Select all that apply

You need to reduce read latency for the retail store solution. What are two possible ways to achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • ACreate a new composite index for the store location data queries in Azure Cosmos DB. Modify the queries to support parameterized SQL and update the Azure Function app to call the new queries. (correct answer)
  • BProvision an Azure Cosmos DB dedicated gateway. Update the Azure Function app connection string to use the new dedicated gateway endpoint. (correct answer)
  • CConfigure Azure Cosmos DB consistency to session consistency. Cache session tokens in a new Azure Redis cache instance after every write. Update reads to use the session token stored in Azure Redis.
  • DProvision an Azure Cosmos DB dedicated gateway. Update blob storage to use the new dedicated gateway endpoint.
  • EConfigure Azure Cosmos DB consistency to strong consistency. Increase the RUs for the container supporting store location data.
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Create a new composite index for the store location data queries in Azure Cosmos DB. Modify the queries to support parameterized SQL and update the Azure Function app to call the new queries. Option B: Provision an Azure Cosmos DB dedicated gateway. Update the Azure Function app connection string to use the new dedicated gateway endpoint.

Explanation

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

Topic 15 Β· Question 256 Β· Select all that apply

You need to audit the retail store sales transactions. What are two possible ways to achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • AUpdate the retail store location data upload process to include blob index tags. Create an Azure Function to process the blob index tags and filter by store location.
  • BProcess the change feed logs of the Azure Blob storage account by using an Azure Function. Specify a time range for the change feed data. (correct answer)
  • CEnable blob versioning for the storage account. Use an Azure Function to process a list of the blob versions per day.
  • DProcess an Azure Storage blob inventory report by using an Azure Function. Create rule filters on the blob inventory report.
  • ESubscribe to blob storage events by using an Azure Function and Azure Event Grid. Filter the events by store location. (correct answer)
Reveal answer & explanation
Correct answer: B, E

The correct answer is B, E. Option B: Process the change feed logs of the Azure Blob storage account by using an Azure Function. Specify a time range for the change feed data. Option E: Subscribe to blob storage events by using an Azure Function and Azure Event Grid. Filter the events by store location.

Explanation

Azure Blob Storage provides durable, scalable object storage for unstructured data. Azure Blob Storage provides durable, scalable object storage with hot, cool, and archive tiers for cost control. An Azure Storage Account is the container that groups blob, file, queue, and table storage with unified access control.

Topic 16 Β· Question 257

You need to monitor ContentUploadService according to the requirements. Which command should you use?

  • Aaz monitor metrics alert create ""n alert ""g … - -scopes … - -condition "avg Percentage CPU > 8"
  • Baz monitor metrics alert create ""n alert ""g … - -scopes … - -condition "avg Percentage CPU > 800"
  • Caz monitor metrics alert create ""n alert ""g … - -scopes … - -condition "CPU Usage > 800" (correct answer)
  • Daz monitor metrics alert create ""n alert ""g … - -scopes … - -condition "CPU Usage > 8"
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: az monitor metrics alert create ""n alert ""g … - -scopes … - -condition "CPU Usage > 800".

Topic 16 Β· Question 258

You need to investigate the http server log output to resolve the issue with the ContentUploadService. Which command should you use first?

  • Aaz webapp log
  • Baz ams live-output
  • Caz monitor activity-log
  • Daz container attach (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: az container attach.

Topic 17 Β· Question 259

You need to investigate the Azure Function app error message in the development environment. What should you do?

  • AConnect Live Metrics Stream from Application Insights to the Azure Function app and filter the metrics. (correct answer)
  • BCreate a new Azure Log Analytics workspace and instrument the Azure Function app with Application Insights.
  • CUpdate the Azure Function app with extension methods from Microsoft.Extensions.Logging to log events by using the log instance.
  • DAdd a new diagnostic setting to the Azure Function app to send logs to Log Analytics.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Connect Live Metrics Stream from Application Insights to the Azure Function app and filter the metrics.

Explanation

Application Insights provides application performance monitoring and diagnostics for apps.

Topic 18 Β· Question 261

You need to correct the RequestUserApproval Function app error. What should you do?

  • AUpdate line RA13 to use the async keyword and return an HttpRequest object value.
  • BConfigure the Function app to use an App Service hosting plan. Enable the Always On setting of the hosting plan.
  • CUpdate the function to be stateful by using Durable Functions to process the request payload. (correct answer)
  • DUpdate the functionTimeout property of the host.json project file to 15 minutes.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Update the function to be stateful by using Durable Functions to process the request payload.

Topic 19 Β· Question 263

You need to ensure that the solution can meet the scaling requirements for Policy Service. Which Azure Application Insights data model should you use?

  • Aan Application Insights dependency
  • Ban Application Insights event
  • Can Application Insights trace
  • Dan Application Insights metric (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: an Application Insights metric

Explanation

Application Insights provides application performance monitoring and diagnostics for apps.

Topic 20 Β· Question 266

You need to ensure receipt processing occurs correctly. What should you do?

  • AUse blob properties to prevent concurrency problems
  • BUse blob SnapshotTime to prevent concurrency problems
  • CUse blob metadata to prevent concurrency problems
  • DUse blob leases to prevent concurrency problems (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use blob leases to prevent concurrency problems.

Topic 20 Β· Question 267

You need to resolve the capacity issue. What should you do?

  • AConvert the trigger on the Azure Function to an Azure Blob storage trigger
  • BEnsure that the consumption plan is configured correctly to allow scaling
  • CMove the Azure Function to a dedicated App Service Plan
  • DUpdate the loop starting on line PC09 to process items in parallel (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Update the loop starting on line PC09 to process items in parallel.

Topic 20 Β· Question 268

You need to resolve the log capacity issue. What should you do?

  • ACreate an Application Insights Telemetry Filter
  • BChange the minimum log level in the host.json file for the function (correct answer)
  • CImplement Application Insights Sampling
  • DSet a LogCategoryFilter during startup
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Change the minimum log level in the host.json file for the function.

Topic 22 Β· Question 270 Β· Select all that apply

You need to troubleshoot the order workflow. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AReview the API connections.
  • BReview the activity log.
  • CReview the run history. (correct answer)
  • DReview the trigger history. (correct answer)
Reveal answer & explanation
Correct answer: C, D

The correct answer is C, D. Option C: Review the run history. Option D: Review the trigger history.

Topic 23 Β· Question 273

You need to support the requirements for the Shipping Logic App. What should you use?

  • AAzure Active Directory Application Proxy
  • BSite-to-Site (S2S) VPN connection
  • COn-premises Data Gateway (correct answer)
  • DPoint-to-Site (P2S) VPN connection
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: On-premises Data Gateway.

Topic 24 Β· Question 275

You need to ensure that all messages from Azure Event Grid are processed. What should you use?

  • AAzure Event Grid topic
  • BAzure Service Bus topic
  • CAzure Service Bus queue (correct answer)
  • DAzure Storage queue
  • EAzure Logic App custom connector
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Azure Service Bus queue

Explanation

Azure Service Bus is a fully managed enterprise message broker that decouples components with queues and topics.

Topic 26 Β· Question 279 Β· Select all that apply

You need to resolve a notification latency issue. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • ASet Always On to true. (correct answer)
  • BEnsure that the Azure Function is using an App Service plan. (correct answer)
  • CSet Always On to false.
  • DEnsure that the Azure Function is set to use a consumption plan.
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Set Always On to true. Option B: Ensure that the Azure Function is using an App Service plan.

Explanation

Azure App Service is a fully managed platform for hosting web apps and APIs with built-in scaling and patching.

Topic 27 Β· Question 281

You need to deploy the CheckUserContent Azure Function. The solution must meet the security and cost requirements. Which hosting model should you use?

  • APremium plan
  • BApp Service plan (correct answer)
  • CConsumption plan
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: App Service plan

Explanation

Azure App Service is a fully managed platform for hosting web apps and APIs with built-in scaling and patching.

Topic 28 Β· Question 283

You need to access data from the user claim object in the e-commerce web app. What should you do first?

  • AWrite custom code to make a Microsoft Graph API call from the e-commerce web app.
  • BAssign the Contributor RBAC role to the e-commerce web app by using the Resource Manager create role assignment API.
  • CUpdate the e-commerce web app to read the HTTP request header values. (correct answer)
  • DUsing the Azure CLI, enable Cross-origin resource sharing (CORS) from the e-commerce checkout API to the e-commerce web app.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Update the e-commerce web app to read the HTTP request header values.

Topic 30 Β· Question 286 Β· Select all that apply

You need to implement a solution to resolve the retail store location data issue. Which three Azure Blob features should you enable? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • ASoft delete (correct answer)
  • BChange feed (correct answer)
  • CSnapshots
  • DVersioning (correct answer)
  • EObject replication
  • FImmutability
Reveal answer & explanation
Correct answer: A, B, D

The correct answer is A, B, D. Option A: Soft delete Option B: Change feed Option D: Versioning.

Topic 31 Β· Question 287

You need to store the user agreements. Where should you store the agreement after it is completed?

  • AAzure Storage queue
  • BAzure Event Hub (correct answer)
  • CAzure Service Bus topic
  • DAzure Event Grid topic
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Azure Event Hub.

Topic 31 Β· Question 289

You need to configure the ContentUploadService deployment. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AAdd the following markup to line CS23: type: Private (correct answer)
  • BAdd the following markup to line CS24: osType: Windows
  • CAdd the following markup to line CS24: osType: Linux
  • DAdd the following markup to line CS23: type: Public
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Add the following markup to line CS23: type: Private.

Showing questions 121–139 of 139 Β· Page 7 of 7