HOTSPOT -
You have an Azure Service Bus namespace that contains a topic named Topic1.
You plan to create a subscription named Sub1 to Topic1. In Sub1, you plan to filter messages from Topic1 based on their system properties and apply an action that will annotate each filtered message.
You need to configure the filtering.
How should you configure the filtering? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: Use the SQL type.
Annotate the metadata of the original message.
Explanation: Filter actions are supported only with SQL filters. SQL filters can evaluate system properties and allow actions that add or update message metadata without changing the body.
Question 47
HOTSPOT
-
Case study
-
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.
To start the case study
-
To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. When you are ready to answer a question, click the Question button to return to the question.
Background
-
Fourth Coffee is a global coffeehouse chain and coffee company recognized as one of the world’s most influential coffee brands. The company is renowned for its specialty coffee beverages, including a wide range of espresso-based drinks, teas, and other beverages. Fourth Coffee operates thousands of stores worldwide.
Current environment
-
The company is developing cloud-native applications hosted in Azure.
Corporate website
-
The company hosts a public website located at http://www.fourthcoffee.com/. The website is used to place orders as well as view and update inventory items.
Inventory items
-
In addition to its core coffee offerings, Fourth Coffee recently expanded its menu to include inventory items such as lunch items, snacks, and merchandise. Corporate team members constantly update inventory. Users can customize items. Corporate team members configure inventory items and associated images on the website.
Orders
-
Associates in the store serve customized beverages and items to customers. Orders are placed on the website for pickup.
The application components process data as follows:
1. Azure Traffic Manager routes a user order request to the corporate website hosted in Azure App Service.
2. Azure Content Delivery Network serves static images and content to the user.
3. The user signs in to the application through a Microsoft Entra ID for customers tenant.
4. Users search for items and place an order on the website as item images are pulled from Azure Blob Storage.
5. Item customizations are placed in an Azure Service Bus queue message.
6. Azure Functions processes item customizations and saves the customized items to Azure Cosmos DB.
7. The website saves order details to Azure SQL Database.
8. SQL Database query results are cached in Azure Cache for Redis to improve performance.
The application consists of the following Azure services:
Requirements
-
The application components must meet the following requirements:
• Azure Cosmos DB development must use a native API that receives the latest updates and stores data in a document format.
• Costs must be minimized for all Azure services.
• Developers must test Azure Blob Storage integrations locally before deployment to Azure. Testing must support the latest versions of the Azure Storage APIs.
Corporate website
-
• User authentication and authorization must allow one-time passcode sign-in methods and social identity providers (Google or Facebook).
• Static web content must be stored closest to end users to reduce network latency.
Inventory items
-
• Customized items read from Azure Cosmos DB must maximize throughput while ensuring data is accurate for the current user on the website.
• Processing of inventory item updates must automatically scale and enable updates across an entire Azure Cosmos DB container.
• Inventory items must be processed in the order they were placed in the queue.
• Inventory item images must be stored as JPEG files in their native format to include exchangeable image file format (data) stored with the blob data upon upload of the image file.
• The Inventory Items API must securely access the Azure Cosmos DB data.
Orders
-
• Orders must receive inventory item changes automatically after inventory items are updated or saved.
Issues
-
• Developers are storing the Azure Cosmos DB credentials in an insecure clear text manner within the Inventory Items API code.
• Production Azure Cache for Redis maintenance has negatively affected application performance.
You need to implement code to process inventory changes and update orders.
Which configuration should you use? To answer, select the appropriate options in the answer area
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: Serverless function in Azure Functions
Pull model
Explanation: Azure Functions provides a cost-effective, automatically scaling compute host to process inventory changes. Reading the Azure Cosmos DB change feed using the pull model reliably processes all updates in order and allows downstream order updates to react automatically when items are created or modified.
Question 48
DRAG DROP
-
You have a static website hosted in an Azure Storage account named storage1. You access the website by using a URL that ends with the web.core.windows.net suffix.
You plan to configure the website to be accessible through the URL www.contoso.com. The website must be accessible during configuration.
The contoso.com zone is hosted in Azure DNS.
You need to complete the website configuration.
Which four actions should you perform in sequence? To answer, move the appropriate domain name configuration steps from the list of domain name configuration steps to the answer area and arrange them in the correct order.
Show Answer
Correct Answer: 1. Identify the host name of the storage endpoint of the website.
2. Create a CNAME record asverify.www.contoso.com in Azure DNS.
3. Set the custom domain name of storage1 to www.contoso.com.
4. Create a CNAME record www.contoso.com in Azure DNS.
Explanation: To map a custom domain with zero downtime for an Azure Storage static website, you first identify the storage endpoint host name. Then you use an asverify CNAME record to verify domain ownership without affecting live traffic. After verification, you assign the custom domain to the storage account, and finally create the public CNAME record so users can access the site via www.contoso.com.
Question 49
HOTSPOT
-
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.
Explanation: You must create an Azure Container Apps environment (az containerapp env create) so that all apps share the same VNet integration, Dapr configuration, and Log Analytics workspace. Enabling workload profiles allows configuring memory and compute resources for containers, which is a stated requirement. The --internal-only flag is optional and only controls ingress exposure, not resource configuration.
Question 50
HOTSPOT
-
You plan to implement an Azure function named Function1 that will use the timer trigger.
You plan to use a TimeSpan value to set the schedule of function execution.
You need to select the hosting model and the schedule expression assignment method.
Which hosting model and schedule expression assignment method should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: App Service plan
App settings
Explanation: Timer triggers that use a TimeSpan schedule are supported only on an App Service plan. The schedule can be assigned via an app setting and referenced with %SettingName%, which supports both CRON and TimeSpan values.
Question 51
You develop an ASP. Net Care application by integrating the Application Insights SDK into your solution.
The application sends a very high rate of telemetry in a short time interval. You observe a reduced number of events, traces, and metrics being recorded and increased error rates for telemetry ingestion. Telemetry data must synchronize the client and server information to allow HTTP request and response correlation.
You need to reduce telemetry traffic, data costs, and storage costs while preserving a statistically correct analysis of application telemetry data.
What should you do?
A. Set a daily cap on the Log Analytics workspace. Create an Activity log alert rule.
B. Modify the pricing tier for the Log Analytics workspace.
C. Verify adaptive sampling is enabled. Set the maxTelemetryItemsPerSecond value.
D. Set retention and archive policies by table in the Log Analytics workspace. Purge retained data beyond 30 days.
Show Answer
Correct Answer: C
Explanation: The requirement is to reduce telemetry traffic and costs while preserving statistically correct analysis and maintaining request/response correlation. Application Insights sampling is designed for exactly this scenario. Adaptive sampling (and fixed-rate sampling) reduces the volume of telemetry sent while keeping correlation intact and ensuring statistically valid metrics. Setting maxTelemetryItemsPerSecond further controls ingestion rate during traffic spikes. The other options affect cost caps, pricing, or retention after ingestion and do not reduce telemetry traffic or ingestion errors.
Question 52
You manage an Azure Key Vault named kv1 of Standard SKU.
You plan to programmatically store in kv1 an asymmetric key pair and use the key pair for encryption and decryption.
You must develop an application named app1 that will access the key pair in kv1.
You need to configure an object to retrieve a key pair from kv1.
Which object should you use?
A. SecretClient
B. KeyVaultSettingsClient
C. CertificateClient
D. KeyClient
Show Answer
Correct Answer: D
Explanation: Azure Key Vault separates objects by purpose: secrets, keys, and certificates. An asymmetric key pair used for encryption and decryption is a Key Vault *key*. The Azure SDK class used to create, retrieve, and manage cryptographic keys is `KeyClient`. `SecretClient` is for secrets (passwords, tokens), `CertificateClient` is for certificates, and `KeyVaultSettingsClient` is not used for accessing keys.
Question 53
You manage an Azure Storage account named storage1.
You plan to load 1 million blobs into storage1.
You must assign key-value pairs to blobs so that both keys and their values are automatically indexed and searchable by using the built-in services of storage1.
You need to run the command to assign key-value pairs.
Which command should you run?
A. Update -AzStorageBobServiceProperty
B. Set-AzStorageBlobTag
C. az storage blob service-properties update
D. Set-AzStorageBlobContent
Show Answer
Correct Answer: B
Explanation: Azure Blob Index Tags provide automatically indexed and searchable key-value pairs on blobs. In Azure PowerShell, the command used to assign or update these blob index tags is Set-AzStorageBlobTag. The other options either manage service properties, use Azure CLI equivalents, or upload blob content, none of which directly set indexed key-value tags on blobs.
Question 54
A large retail company operates online and physical stores. The company tracks inventory levels in real time to manage stock efficiently across all locations. You develop an Azure Event Grid solution to handle events generated by the inventory management system deployed to Azure.
You need to implement a subscription filter that dynamically adjusts to seasonal changes in product demand.
Which event filter should you use?
A. An advanced filter using a Boolean condition that evaluates multiple data fields, including a season field within the event data
B. A prefix filter on the event type field that matches the current season's name
C. A subscription filter that uses label filter to include events tagged with seasonal promotional codes
D. A static subject filter that targets events with a subject ending in “/seasonal/inventory”
Show Answer
Correct Answer: A
Explanation: Advanced filters in Azure Event Grid allow evaluating conditions on multiple event data fields, including custom fields such as a season indicator. This supports dynamic, data-driven filtering that can adapt to seasonal demand changes. Prefix, label, or static subject filters are more rigid and cannot dynamically evaluate changing seasonal attributes.
Question 55
You have an Azure Queue Storage account that contains a queue named queue1.
You plan to use Azure SDK for .NET to develop a solution that uses queue1.
You need to author C# code that will return an approximate number of messages in queue1. Your solution must minimize the development effort.
Which method should you use in your code?
A. GetProperties method of the QueueClient class
B. GetProperties method of the QueueServiceClient class
C. PeekMessages method of the QueueClient class
D. GetStatistics method of the QueueServiceClient class
Show Answer
Correct Answer: A
Explanation: To get the approximate number of messages in a specific Azure Queue with minimal effort, you should call QueueClient.GetProperties(). The returned QueueProperties object includes the ApproximateMessagesCount property, which is designed exactly for this purpose. The other options either operate at the service level or retrieve messages rather than queue metadata.
$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.