Microsoft

AZ-204 Free Practice Questions — Page 14

Question 136

HOTSPOT - You are developing several microservices to run on Azure Container Apps. You need to monitor and diagnose the microservices. Which features should you use? To answer, select the appropriate feature in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-204 question 136
Show Answer
Correct Answer: Log streaming Container console
Explanation:
Log streaming provides near real-time viewing of system and console logs from Azure Container Apps. Container console allows interactive access to the container to debug the microservice from inside.

Question 138

HOTSPOT - You are developing a new API to be hosted by Azure API Management (APIM). The backend service that implements the API has not been completed. You are creating a test API and operation. You must enable developers to continue with the implementation and testing of the APIM instance integrations while you complete the backend API development. You need to configure a test API response. How should you complete the configuration? To answer, select the appropriate options in the answer area.

Illustration for AZ-204 question 138
Show Answer
Correct Answer: mock-response inbound 200
Explanation:
Use the mock-response policy to return a simulated response when the backend is not ready. The policy must be placed in the inbound section so the request is handled before reaching any backend. HTTP 200 indicates a successful mock operation for testing integrations.

Question 139

You are developing several Azure API Management (APIM) hosted APIs. The APIs have the following requirements: • Require a subscription key to access all APIs. • Include terms of use that subscribers must accept to use the APIs. • Administrators must review and accept or reject subscription attempts. • Limit the count of multiple simultaneous subscriptions. You need to implement the APIs. What should you do?

A. Configure and apply header-based versioning.
B. Create and publish a product.
C. Configure and apply query string-based versioning.
D. Add a new revision to all APIs. Make the revisions current and add a change log entry.
Show Answer
Correct Answer: B
Explanation:
In Azure API Management, products are the mechanism that enforce subscriptions and subscription keys, define and require acceptance of terms of use, allow administrator approval of subscription requests, and can limit the number of subscriptions. Versioning or revisions do not address these access control and governance requirements. Therefore, creating and publishing a product meets all stated requirements.

Question 140

HOTSPOT - You are developing an application that runs in several customer Azure Kubernetes Service clusters. Within each cluster, a pod runs that collects performance data to be analyzed later. A large amount of data is collected so saving latency must be minimized. The performance data must be stored so that pod restarts do not impact the stored data. Write latency should be minimized. You need to configure blob storage. How should you complete the YAML configuration? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-204 question 140
Show Answer
Correct Answer: kind: StorageClass provisioner: kubernetes.io/azure-disk reclaimPolicy: Retain
Explanation:
A StorageClass defines dynamic provisioning. Azure Disk with Premium_LRS provides low write latency. Retain ensures data persists beyond pod restarts and resource deletion.

Question 141

HOTSPOT - You are developing a solution by using the Azure Event Hubs SDK. You create a standard Azure Event Hub with 16 partitions. You implement eight event processor clients. You must balance the load dynamically when an event processor client fails. When an event processor client fails, another event processor must continue processing from the exact point at which the failure occurred. All events must be aggregate and upload to an Azure Blob storage account. You need to implement event processing recovery for the solution. Which SDK features should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-204 question 141
Show Answer
Correct Answer: Checkpoint Checkpoint
Explanation:
Checkpointing is the Event Hubs SDK feature that records and persists the processing position for an event processor client. When a processor fails, another processor can take over and resume from the last checkpointed position, ensuring exact recovery within the event sequence and within each partition.

Question 142

You are developing an Azure App Service web app. The web app must securely store session information in Azure Redis Cache. You need to connect the web app to Azure Redis Cache. Which three Azure Redis Cache properties should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A. Access key
B. SSL port
C. Subscription name
D. Location
E. Host name
F. Subscription id
Show Answer
Correct Answer: A, B, E
Explanation:
To connect an Azure App Service web app securely to Azure Redis Cache, you need the cache endpoint and credentials. The host name identifies the Redis Cache instance endpoint. The SSL port is required to ensure encrypted communication. The access key is used for authentication to securely access the cache. Subscription details and location are not used in the application connection string.

Question 143

You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices. The microservices must be deployed to the same virtual network and write logs to the same Log Analytics workspace. You need to deploy the microservices. What should you do?

A. Enable single revision mode.
B. Use a separate environment for each container.
C. Use a private container registry image and single image for all containers.
D. Use a single environment for all containers.
E. Enable multiple revision mode.
Show Answer
Correct Answer: D
Explanation:
In Azure Container Apps, an environment is the secure boundary that defines the virtual network integration and the Log Analytics workspace used for diagnostics. Deploying multiple microservices into the same Container Apps environment ensures they run in the same virtual network and write logs to the same Log Analytics workspace. Revision modes, registries, or images do not affect networking or shared logging requirements.

Question 144

HOTSPOT - You develop two Python scripts to process data. The Python scripts must be deployed to two, separate Linux containers running in an Azure Container Instance container group. The containers must access external data by using the Server Message Block (SMB) protocol. Containers in the container group must run only once. You need to configure the Azure Container Instance. Which configuration value should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-204 question 144
Show Answer
Correct Answer: Azure file share Never
Explanation:
Containers must access external data via SMB, which is supported by Azure File shares in Azure Container Instances. The containers must run only once, so the container restart policy should be set to Never.

Question 145

DRAG DROP - You are developing several microservices to run on Azure Container Apps. The microservices must allow HTTPS access by using a custom domain. You need to configure the custom domain in Azure Container Apps. In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Illustration for AZ-204 question 145
Show Answer
Correct Answer: Enable ingress. Add the custom domain name. Bind the certificate. Add DNS records to the domain provider. Validate the custom domain name.
Explanation:
Ingress must be enabled first to allow external access. The custom domain is then added to the container app. A certificate is selected or bound as part of the custom domain configuration. Azure then provides DNS records that must be added at the domain provider. Finally, the custom domain is validated after DNS propagation completes.

Question 146

HOTSPOT - You have an App Service plan named asp1 based on the Free pricing tier. You plan to use asp1 to implement an Azure Function app with a queue trigger. Your solution must minimize cost. You need to identify the configuration options that will meet the requirements. Which value should you configure? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-204 question 146
Show Answer
Correct Answer: Azure App Service feature: Always On Azure App Service pricing tier: Basic
Explanation:
Azure Functions hosted on an App Service plan require Always On so that non-HTTP triggers (such as queue triggers) continue to run without the app going idle. Free and Shared tiers do not support Azure Functions hosting, so the lowest-cost supported dedicated tier is Basic.

$19

Get all 447 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.