Sunday, August 31, 2025

Azure Functions - Practice Tests

Question

You are developing an Azure Functions app named App1.
You also plan to use cross-origin requests (CORS).

You have the following requirements:

  1. App1 functions must securely access an Azure Blob Storage account.

  2. Access to the Azure Blob Storage account must not require the provisioning or rotation of secrets.

  3. JavaScript code running in a browser on an external host must not be allowed to interact with the function.

You need to implement App1.

Which configuration should you use?
To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Answer Area

Requirement: Azure Blob Storage access
Configuration value (options):

  • Client secret credentials
  • User-assigned managed identity
  • System-assigned managed identity


Requirement: Disallow access from other domains
Configuration value (options):

  • Configure CORS allowed origins to *
  • Configure CORS allowed origins to none
  • Configure CORS allowed origins to disable



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Question

You need to implement the bindings for the CheckUserContent function.

How should you complete the code segment?
To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Code Segment
public static class CheckUserContent { [FunctionName("CheckUserContent")] public static void Run( [ ▼ SELECT OPTION ▼ ] string content, [ ▼ SELECT OPTION ▼ ] Stream output) { … } }

Answer Area

For the input binding (string content):

Options:

  • [QueueTrigger("userContent")]
  • [BlobTrigger("userContent/{name}")]
  • [CosmosDBTrigger("content", "userContent")]
  • [Table("content", "userContent", "{name}")]


For the output binding (Stream output):

Options:

  • [Queue("userContent")]
  • [CosmosDB("content", "userContent")]
  • [Table("content", "userContent", "{name}")]
  • [Blob("userContent/{name}", FileAccess.Write)]


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


You need to secure the Shipping Function app.

How should you configure the app? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

You need to implement the Azure Function for delivery driver profile information.

Which configurations should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

You need to deploy the CheckUserContent Azure function. The solution must meet the security and cost requirements.

Which hosting model should you use?

  • A. Consumption plan
  • B. Premium plan
  • C. App Service plan

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

You need to investigate the Azure Function app error message in the development environment.

What should you do?

  • A. Connect Live Metrics Stream from Application Insights to the Azure Function app and filter the metrics.
  • B. Create a new Azure Log Analytics workspace and instrument the Azure Function app with Application Insights.
  • C. Update the Azure Function app with extension methods from Microsoft.Extensions.Logging to log events by using the log instance.
  • D. Add a new diagnostic setting to the Azure Function app to send logs to Log Analytics.




https://github.com/arvigeus/AZ-204?tab=readme-ov-file

No comments:

Post a Comment