Friday, 24 January 2025

AZ-204 Question and Answer Part 13

Question #161
HOTSPOT
-

You are developing an online game that allows players to vote for their favorite photo that illustrates a word. The game is built by using Azure Functions and uses durable entities to track the vote count.

The voting window is 30 seconds. You must minimize latency.

You need to implement the Azure Function for voting.

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

Correct Answer:

Question #162
You develop a web application that provides access to legal documents that are stored on Azure Blob Storage with version-level immutability policies. Documents are protected with both time-based policies and legal hold policies. All time-based retention policies have the AllowProtectedAppendWrites property enabled.

You have a requirement to prevent the user from attempting to perform operations that would fail only when a legal hold is in effect and when all other policies are expired.

You need to meet the requirement.

Which two operations should you prevent? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.
  1. A
    adding data to documents
  2. B
    deleting documents
  3. C
    creating documents
  4. D
    overwriting existing documents

Correct Answer:
BD

In the context of Azure Blob Storage, when a legal hold is active, operations such as deletion or overwriting of documents are prohibited. While a legal hold is in effect, attempting to delete or overwrite blobs will result in an error. This ensures compliance with legal requirements by preserving the integrity and availability of the data. Preventing these operations avoids users encountering errors due to the immutable state enforced by the legal hold. Understanding and implementing restrictions according to the state of the legal hold are crucial for maintaining data governance and legal compliance.


Question #163
HOTSPOT
-

You provisioned an Azure Cosmos DB for NoSQL account named account1 with the default consistency level.

You plan to configure the consistency level on a per request basis. The level needs to be set for consistent prefix for read and write operations to account1.

You need to identify the resulting consistency level for read and write operations.

Which levels should you configure? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Correct Answer:

Question #165
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.


Correct Answer:


Question #166
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.

Correct Answer:

Question #167
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?
  1. A
    Enable single revision mode.
  2. B
    Use a separate environment for each container.
  3. C
    Use a private container registry image and single image for all containers.
  4. D
    Use a single environment for all containers.
  5. E
    Enable multiple revision mode.

Correct Answer:
A

Employing a single environment for all containers is a strategic approach when working with multiple microservices on Azure Container Apps. This configuration simplifies management by allowing all the services to operate within the same virtual network and utilize the same Log Analytics workspace. This streamlined environment enables more efficient network policy management and facilitates smoother inter-service communication. Hence, this setup not only meets the requirement of connectivity and logging but also enhances overall service manageability and efficiency.


Question #168
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.


Correct Answer:


Question #169
HOTSPOT
-

You are developing a static website hosted on Azure Blob Storage. You create a storage account and enable static website hosting.

The website must support the following requirements:

• Custom domain name
• Custom header values for all responses
• Custom SSL certificate

You need to implement the static website.

What should you configure? To answer, select the appropriate values in the answer area.

NOTE: Each correct selection is worth one point.

Correct Answer:


Question #170

You are developing an inventory tracking solution. The solution includes an Azure Function app containing multiple functions triggered by Azure Cosmos DB. You plan to deploy the solution to multiple Azure regions.

The solution must meet the following requirements:

• Item results from Azure Cosmos DS must return the most recent committed version of an item.
• Items written to Azure Cosmos DB must provide ordering guarantees.

You need to configure the consistency level for the Azure Cosmos DB deployments.

Which consistency level should you use?
  1. A
    consistent prefix
  2. B
    eventual
  3. C
    bounded staleness
  4. D
    strong
  5. E
    session

Correct Answer:
D

Strong consistency in Azure Cosmos DB guarantees that reads will always reflect the most recent write operation, fulfilling the requirement for returning the most recent committed version of an item. This level ensures linearizability which is crucial for scenarios where accuracy and recency of the data are critical. However, it's worth noting that if the deployment extends to multiple write regions, strong consistency might not be achievable due to the inherent limitations in distributed systems. Thus, another consistency level like bounded staleness could be a better fit in multi-write region scenarios.


No comments:

Post a Comment