Question 1
Question
You are developing an ASP.NET Core web application. You plan to deploy the application to Azure Web App for Containers.
The application needs to store runtime diagnostic data that must be persisted across application restarts. You have the following code:
public void SaveDiagData(string data)
{
var path = Environment.GetEnvironmentVariable("DIAGDATA");
File.WriteAllText(Path.Combine(path, "data"), data);
}
You need to configure the application settings so that diagnostic data is stored as required.
How should you configure the web app's settings? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer area
App setting || Value
[blank_start][Option 1][blank_end] true
DIAGDATA [blank_start][Option 2][blank_end]
Answer
-
LOCALAPPDATA
-
WEBSITE_LOCALCACHE_ENABLED
-
DOTNET_HOSTING_OPTIMIZATION_CACHE
-
WEBSITES_ENABLE_APP_SERVICE_STORAGE
-
/home
-
/local
-
D:\home
-
D:\local
Question 2
Question
You are developing a web app that is protected by Azure Web Application Firewall (WAF). All traffic to the web app is routed through an Azure Application
Gateway instance that is used by multiple web apps. The web app address is contoso.azurewebsites.net.
All traffic must be secured with SSL. The Azure Application Gateway instance is used by multiple web apps.
You need to configure the Azure Application Gateway for the web app.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Answer
-
In the Azure Application Gateway's HTTP setting, enable the Use for App service setting.
-
Convert the web app to run in an Azure App service environment (ASE).
-
Add an authentication certificate for contoso.azurewebsites.net to the Azure Application Gateway.
-
In the Azure Application Gateway's HTTP setting, set the value of the Override backend path option to contoso22.azurewebsites.net.
Question 3
Question
You develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in Azure
Storage Blob storage. The storage account type is General-purpose V2.
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Use the Azure Blob Storage change feed to trigger photo processing.
Does the solution meet the goal?
Question 4
Question
You are developing a web application that runs as an Azure Web App. The web application stores data in Azure SQL Database and stores files in an Azure
Storage account. The web application makes HTTP requests to external services as part of normal operations.
The web application is instrumented with Application Insights. The external services are OpenTelemetry compliant.
You need to ensure that the customer ID of the signed in user is associated with all operations throughout the overall system.
What should you do?
Answer
-
Add the customer ID for the signed in user to the CorrelationContext in the web application.
-
On the current SpanContext, set the TraceId to the customer ID for the signed in user.
-
Set the header Ocp-Apim-Trace to the customer ID for the signed in user.
-
Create a new SpanContext with the TraceFlags value set to the customer ID for the signed in user.
Question 5
Question
You are developing an Azure Function App. You develop code by using a language that is not supported by the Azure Function App host. The code language supports HTTP primitives.
You must deploy the code to a production Azure Function App environment.
You need to configure the app for deployment.
Which configuration values should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area:
Configuration parameter || Configuration value
Publish || [blank_start][Option 1][blank_end]
Runtime stack || [blank_start][Option 2][blank_end]
Version || [blank_start][Option 3][blank_end]
Answer
-
Code
-
Docker Container
-
Node.js
-
Python
-
PowerShell Core
-
Custom Handler
-
14 LTS
-
7.0
-
custom
Question 6
Question
You provision virtual machines (VMs) as development environments.
One VM does not start. The VM is stuck in a Windows update process. You attach the OS disk for the affected VM to a recovery VM.
You need to correct the issue.
In which order should you perform the actions? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:
Actions
[Action 1]
Run the following command at an elevated command prompt:
-> dism /image:\ /get-packages > c:\temp\Patch.txt
[Action 2]
Run the following command at an elevated command prompt:
-> dism /Image:<Attached OS disks>:\ /Remove-Package /PackageName:<package name to delete>
[Action 3]
Detach the OS disk and recreate the VM
[Action 4]
Open C:\temp\Patch.txt file and locate the update that is in a pending state
Answer Area:
[blank_start][Option 1][blank_end]
[blank_start][Option 2][blank_end]
[blank_start][Option 3][blank_end]
[blank_start][Option 4][blank_end]
Answer
-
Action 3
-
Action 1
-
Action 4
-
Action 2
Question 7
Question
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.
The app continues to time out after four minutes. The app must process the blob data.
You need to ensure the app does not time out and processes the blob data.
Solution: Update the functionTimeout property of the host.json project file to 10 minutes.
Does the solution meet the goal?
Question 8
Question
You are developing an Azure Durable Function based application that processes a list of input values. The application is monitored using a console application that retrieves JSON data from an Azure Function diagnostic endpoint.
During processing a single instance of invalid input does not cause the function to fail. Invalid input must be available to the monitoring application.
You need to implement the Azure Durable Function and the monitoring console application.
How should you complete the code segments? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area:
[FunctionName("App")]
public static async Task<List<string>> RunOrchestrator(
[OrchestrationTrigger] IDurableOrchestrationContext context) {
EntityId[] input = . . .
int errIndex = . . .
[blank_start][Option 1][blank_end];
using (var client = new HttpClient())
{
while (true)
{
var response = await client.GetAsync(". . .");
response.EnsureSuccessStatusCode();
var json = await response.Content.ReadAsStringAsync();
dynamic result = JsonConvert.DeserializeObject(json);
if (result.runtimeStatus == "[blank_start][Option 2][blank_end]")
{
return result.[blank_start][Option 3][blank_end];
}
}
}
}
Answer
-
context.SetOutput(input[errIndex])
-
context.SetCustomStatus(input[errIndex])
-
context.SignalEntity(input[errIndex],"e"
-
await context.CallEntityAsync(input[errI
-
Failed
-
Awaited
-
Listening
-
Completed
-
input
-
output
-
runtimeStatus
-
customStatus
Question 9
Question
You are developing an Azure Durable Function to manage an online ordering process.
The process must call an external API to gather product discount information.
You need to implement the Azure Durable Function.
Which Azure Durable Function types should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Answer
-
Orchestrator
-
Entity
-
Client
-
Activity
Question 10
Question
You are authoring a set of nested Azure Resource Manager templates to deploy multiple Azure resources.
The templates must be tested before deployment and must follow recommended practices.
You need to validate and test the templates before deployment.
Which tools should you use? To answer, drag the appropriate tools to the correct requirements. Each tool may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:
Answer Area:
Requirement || tool
Determine wheter the templates follow recommended practices. || [blank_start][Option 1][blank_end]
Test and validate changes that templates will make to the environment || [blank_start][Option 2][blank_end]
Question 11
Question
You develop Azure Durable Functions to manage vehicle loans.
The loan process includes multiple actions that must be run in a specified order. One of the actions includes a customer credit check process, which may require multiple days to process.
You need to implement Azure Durable Functions for the loan process.
Which Azure Durable Functions type should you use?
Answer
-
orchestrator
-
client
-
entity
-
activity
Question 12
Question
You are developing an Azure Function app.
All functions in the app meet the following requirements:
• Run until either a successful run or until 10 run attempts occur.
• Ensure that there are at least 20 seconds between attempts for up to 15 minutes.
You need to configure the host.json file.
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.
Answer Area
{
"[blank_start][Option 1][blank_end]": {
"strategy": "[blank_start][Option 2][blank_end]",
"[blank_start][Option 3][blank_end]": 10,
"minimumInterval": "00:00:20",
"maximumInterval": "00:15:00"
}
}
Answer
-
retry
-
healthMonitor
-
singleton
-
exponentialBackoff
-
counterThreshold
-
fixedDelay
-
maxRetryCount
-
healthCheckInterval
-
healthCheckThreshold
Question 13
Question
You develop Azure Web Apps for a commercial diving company. Regulations require that all divers fill out a health questionnaire every 15 days after each diving job starts.
You need to configure the Azure Web Apps so that the instance count scales up when divers are filling out the questionnaire and scales down after they are complete.
You need to configure autoscaling.
What are two possible auto scaling configurations to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Question 14
Question
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.
Answer area
[FunctionName("Vote")]
public static async Task<HttpResponseMessage> Run([HttpTrigger("POST", Route = "pic/{id}")] HttpRequestMessage req, [blank_start][Option 1][blank_end] c, string id)
{
var eid = new EntityId("pic", id);
await c.[blank_start][Option 2][blank_end] (eid, "vote")
}
Answer
-
CallEntityAsync
-
SignalEntityAsync
-
[DurableClient] IDurableEntityClient
-
[DurableClient] IDurableOrchestrationCli
-
CallEntityAsync
-
SignalEntityAsync
-
[DurableClient] IDurableEntityClient
-
[DurableClient] IDurableOrchestrationCli
Question 15
Question
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.
Answer Area
Configuration option || Value
Azure App Service feature || [blank_start][Option 1][blank_end]
Azure App Service pricing tier || [blank_start][Option 2][blank_end]
Answer
-
Always On
-
Managed Identity
-
Continuous deployment
-
Basic
-
Shared
-
Standard
Question 16
Question
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.
Answer Area.
[blank_start][Option 1][blank_end]
[blank_start][Option 2][blank_end]
[blank_start][Option 3][blank_end]
[blank_start][Option 4][blank_end]
[blank_start][Option 5][blank_end]
Answer
-
Enable Ingress.
-
Add the custom domain name.
-
BInd certificate
-
Add DNS records to the domain provider
-
Validate the custom domain name.
Question 17
Question
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?
Answer
-
Enable single revision mode.
-
Use a separate environment for each container.
-
Use a private container registry image and single image for all containers.
-
Use a single environment for all containers.
-
Enable multiple revision mode.
Question 18
Question
You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices.
A deployed microservice must be updated to allow users to test new features. You have the following requirements:
• Enable and maintain a single URL for the updated microservice to provide to test users.
• Update the microservice that corresponds to the current microservice version.
You need to configure Azure Container Apps.
Which features should you configure? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area
Requirement || Feature
Single URL for test users || [blank_start][Option 1][blank_end]
Current microservice activation || [blank_start][Option 2][blank_end]
Answer
-
Revision label
-
Revision mode
-
Container image
-
Container registry
-
Revision label
-
Revision mode
-
Container image
-
Container registry
Question 19
Question
The app must support the following requirements:
• Event-driven scaling
• Ability to use custom Linux images for function execution
You need to identify the app’s hosting plan and the maximum amount of time that the app function can take to respond to incoming requests.
Which configuration setting values should you use? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area
Configuration setting || Value
Hosting plan || [blank_start][Option 1][blank_end]
Timeout value || [blank_start][Option 2][blank_end]
Answer
-
Consumption
-
Dedicated
-
Premium
-
230 seconds
-
10 minutes
-
unlimited
Question 20
Question
You plan to develop an Azure Functions app with an HTTP trigger.
You develop a Python application for image rendering. The application uses GPU resources to optimize rendering processes.
You have the following requirements:
• The application must be deployed to a Linux container.
• The container must be stopped when the image rendering is complete.
• The solution must minimize cost.
You need to deploy the application to Azure.
Answer Area
Environtment configuration || Configuration value
Compute target || [blank_start][Option 1][blank_end]
Container termination || [blank_start][Option 2][blank_end]
Answer
-
Azure Container Instances
-
Azure Kubernetes Service
-
Azure Container Apps
-
Azure App Service
-
Restart policy
-
Environtment variable
-
System-assigned Managed Identity
-
User-assigned Managed identity
Question 21
Question
You plan to develop an Azure Functions app with an Azure Blob Storage trigger. The app will be used infrequently, with a limited duration of individual executions.
The app must meet the following requirements:
• Event-driven scaling
• Support for deployment slots
• Minimize costs
You need to identify the hosting plan and the maximum duration when executing the app.
Which configuration setting values should you use? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area
Configuration setting || Value
Hosting plan || [blank_start][Option 1][blank_end]
Maximun execution time || [blank_start][Option 2][blank_end]
Answer
-
Consumption
-
Dedicated
-
Premium
-
230 seconds
-
10 minutes
-
unlimited
Question 22
Question
You are developing an ASP.NET Core app hosted in Azure App Service.
The app requires custom claims to be returned from Microsoft Entra ID for user authorization. The claims must be removed when the app registration is removed.
You need to include the custom claims in the user access token.
What should you do?
Answer
-
Require the https://graph.microsoft.com/.default scope during authentication.
-
Configure the app to use the OAuth 2.0 authorization code flow.
-
Implement custom middleware to retrieve role information from Azure AD.
-
Add the groups to the groupMembershipClaims attribute in the app manifest.
-
Add the roles to the appRoles attribute in the app manifest.
Question 23
Question
You are developing a microservice to run on Azure Container Apps for a company. External HTTP ingress traffic has been enabled.
The company requires that updates to the microservice must not cause downtime.
You need to deploy an update to the microservices.
What should you do?
Answer
-
Enable single revision mode.
-
Use multiple environments for each container.
-
Use a private container registry and single image for all containers.
-
Use a single environment for all containers.
-
Enable multiple revision mode.
Question 24
Question
A company uses Azure Container Apps. A container app named App1 resides in a resource group named RG1.
The company requires testing of updates to App1.
You enable multiple revision modes on App1.
You need to ensure traffic is routed to each revision of App1.
How should you complete the code segment?
NOTE: Each correct selection is worth one point.
Answer Area
az [blank_start][Option 1][blank_end] [blank_start][Option 2][blank_end] traffic set \
--name App1 \
--resource-group RG1 \
--revision-weight <REVISION_1>=80 <REVISION_2>=20
Answer
-
container
-
containerapp
-
network
-
resource
-
app
-
connection
-
ingress
-
revision
Question 25
Question
You deploy an Azure Container Apps app and disable ingress on the container app.
Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances.
You need to resolve the issue with the container app.
Solution: Enable ingress, create an HTTP scale rule, and apply the rule to the container app.
Does the solution meet the goal?
Question 26
Question
You deploy an Azure Container Apps app and disable ingress on the container app.
Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances.
You need to resolve the issue with the container app.
Solution: Enable ingress, create a custom scale rule, and apply the rule to the container app.
Does the solution meet the goal?
Question 27
Question
You deploy an Azure Container Apps app and disable ingress on the container app.
Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances.
You need to resolve the issue with the container app.
Solution: Enable ingress and configure the minimum replicas to 1 for the container app.
Does the solution meet the goal?
Question 28
Question
Background
-
Munson’s Pickles and Preserves Farm is an agricultural cooperative corporation based in Washington, US, with farms located across the United States. The company supports agricultural production resources by distributing seeds fertilizers, chemicals, fuel, and farm machinery to the farms.
Current Environment
-
The company is migrating all applications from an on-premises datacenter to Microsoft Azure. Applications support distributors, farmers, and internal company staff.
Corporate website
-
• The company hosts a public website located at http://www.munsonspicklesandpreservesfarm.com. The site supports farmers and distributors who request agricultural production resources.
Farms
-
• The company created a new customer tenant in the Microsoft Entra admin center to support authentication and authorization for applications.
Distributors
-
• Distributors integrate their applications with data that is accessible by using APIs hosted at http://www.munsonspicklesandpreservesfarm.com/api to receive and update resource data.
Requirements
-
The application components must meet the following requirements:
Corporate website
-
• The site must be migrated to Azure App Service.
• Costs must be minimized when hosting in Azure.
• Applications must automatically scale independent of the compute resources.
• All code changes must be validated by internal staff before release to production.
• File transfer speeds must improve, and webpage-load performance must increase.
• All site settings must be centrally stored, secured without using secrets, and encrypted at rest and in transit.
• A queue-based load leveling pattern must be implemented by using Azure Service Bus queues to support high volumes of website agricultural production resource requests.
Farms
-
• Farmers must authenticate to applications by using Microsoft Entra ID.
Distributors
-
• The company must track a custom telemetry value with each API call and monitor performance of all APIs.
• API telemetry values must be charted to evaluate variations and trends for resource data.
Internal staff
-
• App and API updates must be validated before release to production.
• Staff must be able to select a link to direct them back to the production app when validating an app or API update.
• Staff profile photos and email must be displayed on the website once they authenticate to applications by using their Microsoft Entra ID.
Security
-
• All web communications must be secured by using TLS/HTTPS.
• Web content must be restricted by country/region to support corporate compliance standards.
• The principle of least privilege must be applied when providing any user rights or process access rights.
• Managed identities for Azure resources must be used to authenticate services that support Microsoft Entra ID authentication.
Issues
-
Corporate website
-
• Farmers report HTTP 503 errors at the same time as internal staff report that CPU and memory usage are high.
• Distributors report HTTP 502 errors at the same time as internal staff report that average response times and networking traffic are high.
• Internal staff report webpage load sizes are large and take a long time to load.
• Developers receive authentication errors to Service Bus when they debug locally.
Distributors
-
• Many API telemetry values are sent in a short period of time. Telemetry traffic, data costs, and storage costs must be reduced while preserving a statistically correct analysis of the data points sent by the APIs.
You need to configure App Service to support the corporate website migration.
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
Configuration setting || Configuration value
App Service Plan || [blank_start][Option 1][blank_end]
Code change validation feature || [blank_start][Option 2][blank_end]
Answer
-
Basic
-
Standard
-
Premium
-
Isolated
-
Deployment slot
-
Custom container
-
Domain certificate
-
Deployment credentials
Question 29
Question
You have an Azure Cosmos DB for NoSQL API account named account1 and a database named db1. An application named app1 will access db1 to perform read and write operations.
You plan to modify the consistency levels for read and write operations performed by app1 on db1.
You must enforce the consistency level on a per-operation basis whenever possible.
You need to configure the consistency level for read and write operations.
Which locations should you configure? To answer, move the appropriate locations to the correct operations. You may use each location once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Answer area
Locations to configure operations
Operation || Location
Read || [blank_start][Option 1][blank_end]
Write || [blank_start][Option 2][blank_end]
Answer
-
db1
-
app1
-
account1
-
db1
-
app1
-
account1
Question 30
Question
You are creating an Azure Functions app project in your local development environment by using Azure Functions Core Tools.
You must create the project in either Python or C# without using a template.
You need to specify the command and its parameter required to create the Azure Functions app project.
Which command and parameter should you specify? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area
Syntax element || Value
Command || [blank_start][Option 1][blank_end]
Parameter || [blank_start][Option 2][blank_end]
Answer
-
func new
-
func init
-
func azure
-
--language
-
--worker-runtime
-
--target-framework
Question 31
Question
You have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1.
You plan to enable schedule-based autoscaling for APSPlan1.
You need to minimize the cost of running WebApp1.
Solution: Scale down ASPPlan1 to the Shared pricing tier.
Does the solution meet the goal?
Question 32
Question
You have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1.
You plan to enable schedule-based autoscaling for APSPlan1.
You need to minimize the cost of running WebApp1.
Solution: Scale out APSPlan1.
Does the solution meet the goal?
Question 33
Question
You have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1.
You plan to enable schedule-based autoscaling for APSPlan1.
You need to minimize the cost of running WebApp1.
Solution: Scale up ASPPlan1 to the Premium V2 pricing tier.
Does the solution meet the goal?
Question 34
Question
You have an Azure Functions app using the Consumption hosting plan for a company. The app contains the following functions:
Function Name || Trigger type
f1 || HTTP
f2 || Timer
f3 || Azure Queues
You plan to enable dynamic concurrency on the app. The company requires that each function has its concurrency level managed separately.
You need to configure the app for dynamic concurrency.
Which file or function names should you use? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.
Answer Area
Requirement || File or Function Name
File name || [blank_start][Option 1][blank_end]
Function name || [blank_start][Option 2][blank_end]
Answer
-
function.json
-
host.json
-
local.setting.json
-
f1
-
f2
-
f3
Question 35
Question
You deploy an Azure Container Apps app and disable ingress on the container app.
Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances.
You need to resolve the issue with the container app.
Solution: Enable ingress, create an TCP scale rule, and apply the rule to the container app.
Does the solution meet the goal?
Question 36
Question
You have two Azure Container Registry (ACR) instances: ACR01 and ACR02.
You plan to implement a containerized application named APP1 that will use a base image named BASE1. The image for APP1 will be stored in ACR01. The image BASE1 will be stored in ACR02.
You need to automate the planned implementation by using a sequence of five Azure command-line interface (Azure CLI) commands. Your solution must ensure that the APP1 image stored in ACR01 will be automatically updated when the BASE1 image is updated.
In which order should you perform the actions? To answer, move all container build automation options from the list of container build automations to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
Answer Area
[blank_start][Option 1][blank_end]
[blank_start][Option 2][blank_end]
[blank_start][Option 3][blank_end]
[blank_start][Option 4][blank_end]
[blank_start][Option 5][blank_end]