HOTSPOT (Drag and Drop is not supported)You are developing a microservices-based application that uses Azure Container Apps. The application consists of several containerized services that handle tasks, such as processing orders, managing inventory, and generating reports.You must secure the container apps. All apps must reside in the same virtual network, share the same Dapr configuration, and share the same logging location.Apps must support the configuration of the amount of memory and compute resources available to containers.You need to configure the Azure Container App.How should you complete the CLI command? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Answer(s): A
HOTSPOT (Drag and Drop is not supported) You are developing a solution that uses the Azure Storage Client library for .NET. You have the following code: (Line numbers are included for reference only.)For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: Yes AcquireLeaseAsync does not specify leaseTime.leaseTime is a TimeSpan representing the span of time for which to acquire the lease, which will be rounded down to seconds. If null, an infinite lease will be acquired. If not null, this must be 15 to 60 seconds.Box 2: No The GetBlockBlobReference method just gets a reference to a block blob in this container.Box 3: Yes The BreakLeaseAsync method initiates an asynchronous operation that breaks the current lease on this container.
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.acquireleaseasync https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.getblockblobreference https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.breakleaseasync
You are building a website that uses Azure Blob storage for data storage. You configure Azure Blob storage lifecycle to move all blobs to the archive tier after 30 days.Customers have requested a service-level agreement (SLA) for viewing data older than 30 days.You need to document the minimum SLA for data recovery.Which SLA should you use?
Answer(s): B
The archive access tier has the lowest storage cost. But it has higher data retrieval costs compared to the hot and cool tiers. Data in the archive tier can take several hours to retrieve depending on the priority of the rehydration. For small objects, a high priority rehydrate may retrieve the object from archive in under 1 hour.
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers?tabs=azure-portal
HOTSPOT (Drag and Drop is not supported) You are developing a ticket reservation system for an airline.The storage solution for the application must meet the following requirements:-Ensure at least 99.99% availability and provide low latency.-Accept reservations even when localized network outages or other unforeseen failures occur.-Process reservations in the exact sequence as reservations are submitted to minimize overbooking or selling the same seat to multiple travelers.-Allow simultaneous and out-of-order reservations with a maximum five-second tolerance window.You provision a resource group named airlineResourceGroup in the Azure South-Central US region.You need to provision a SQL API Cosmos DB account to support the app.How should you complete the Azure CLI commands? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: BoundedStaleness Bounded staleness: The reads are guaranteed to honor the consistent-prefix guarantee. The reads might lag behind writes by at most "K" versions (that is,"updates") of an item or by "T" time interval. In other words, when you choose bounded staleness, the "staleness" can be configured in two ways:The number of versions (K) of the itemThe time interval (T) by which the reads might lag behind the writesIncorrect Answers:Strong Strong consistency offers a linearizability guarantee. Linearizability refers to serving requests concurrently. The reads are guaranteed to return the most recent committed version of an item. A client never sees an uncommitted or partial write. Users are always guaranteed to read the latest committed write.Box 2: --enable-automatic-failover true\For multi-region Cosmos accounts that are configured with a single-write region, enable automatic-failover by using Azure CLI or Azure portal. After you enable automatic failover, whenever there is a regional disaster, Cosmos DB will automatically failover your account.
HOTSPOT (Drag and Drop is not supported) You are preparing to deploy a Python website to an Azure Web App using a container. The solution will use multiple containers in the same container group. TheDockerfile that builds the container is as follows:You build a container by using the following command. The Azure Container Registry instance named images is a private registry.The user name and password for the registry is admin.The Web App must always run the same version of the website regardless of future builds.You need to create an Azure Web App to run the website.How should you complete the commands? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: --SKU B1 --hyper-v --hyper-vHost web app on Windows container.Box 2: --deployment-source-url images.azurecr.io/website:v1.0.0--deployment-source-url -uGit repository URL to link with manual integration.The Web App must always run the same version of the website regardless of future builds.Incorrect:--deployment-container-image-name -iLinux only. Container image name from Docker Hub, e.g. publisher/image-name:tag.Box 3: az webapp config container set -url https://images.azurecr.io -u admin -p admin az webapp config container setSet a web app container's settings.Paremeter: --docker-registry-server-url -rThe container registry server url.The Azure Container Registry instance named images is a private registry.Example:az webapp config container set --docker-registry-server-url https://{azure-container-registry-name}.azurecr.io
https://docs.microsoft.com/en-us/cli/azure/appservice/plan
Post your Comments and Discuss Microsoft AZ-204 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AZ-204 content, but please register or login to continue.