Font size
WorksheetsAZ-204 REVISION
Total questions: 51
Worksheet time: 3hrs 31mins
To get the details of an Azure web app’s settings, which Azure CLI command should a developer execute?
az webapp config appsettings show
az webapp config appsettings display
az webapp config appsettings list
az webapp config appsettings set
A developer has created a CDN profile and endpoint, but the content isn’t available on the CDN. Users who are trying to access the CDN URL receive an HTTP 404 status code. What are two possible causes of this?
The file's origin isn't visible to the CDN.
The CDN is trying to serve unsupported file types
The file’s TTL (time-to-live) has expired.
The host is rejecting the host header from the CDN
.NET application logs can only be written to which of the following?
The App Service file system
Blob storage
External storage
Azure Storage account
Azure SQL
True or False: Static site hosting with Azure Storage natively supports HTTP and HTTPS for a custom domain?
True
False
You need to scale out an individual App Service app independently of the App Service plan. How do you do this?
Choose all that apply:
Run only one app in each App Service Plan
Set -PerSiteScaling on the App Service Plan to true.
Modify the number of instances on the App.
Azure App Service does not support this scenario.
You are looking to create scale rules for your container group, which of the following scale rules are available for a container group in Azure Container Instances?
CPU and memory
Scaling is not available for container groups
Service Bus Queue
HTTP traffic
Your team have an application using ASP.NET that has been configured to use Application Insights. You wish to take take control of the telemetry sampling rate by setting it yourselves within the application. Which of the following will achieve your goal?
In the ApplicationInsights.config file disable adaptive sampling and add a configuration to enable fixed-rate sampling
In the ApplicationInsights.config file enable fixed-rate sampling
In the ApplicationInsights.config file disable adaptive sampling and add a configuration to enable ingestion sampling
Set a data sampling percentage in the Usage and estimated costs pane of Application Insights in the Azure portal
You are developing a web application using JavaScript. You would like to enable client-side monitoring using Application Insights. Which of the following are ways you can enable client-side monitoring?
Choose two:
Add automatically from Visual Studio
npm packages
SDK Loader Script
NuGet packages.
What is the default return value for an HTTP-triggered function in Azure Functions runtime 2.x and higher?
HTTP 200 OK
HTTP 200 No Content
HTTP 200
HTTP 200 Received
A team wants to take advantage of Azure Cosmos DB’s global distribution. Which of the following is the optional parameter the team would set to specify the preferred location list when initializing a connection using the SQL SDK?
CurrentLocations
ApplicationPreferredRegions
ApplicaitonDefaultLocations
DesiredLocations
Can you scale a Premium cache to a Basic cache?
Yes. However, all data will be lost.
Yes. In addition, all data will be retained.
No. You can’t scale from Premium to Basic.
Scaling is not supported.
Which of the following uniquely identifies your app in the Microsoft Identity Platform?
Resource owner
OAuth client
Endpoint
Application ID
Which Azure CLI command creates a web app?
az app create
New-AzWebApp
az webapp create
az create webapp
If you have an Azure API Management policy configured at the global level and a policy configured for a specific API, which policy will be applied when the API is used?
Only the global policy
Only the API policy
Both
Neither
You are enabling Application Insights on an Azure Web App. If both agent-based monitoring and manual SDK-based instrumentation are detected, which will be honored?
Agent-based monitoring
Manual SDK-based instrumentation
They will cancel each other out, and monitoring will be disabled.
Both will be honored.
The logs indicate that a developer deleted an Azure Key Vault key 118 days ago. Can the developer recover the key?
Yes
No
What are two benefits of using the Azure Functions Premium plan?
No cold start
Ability to leverage existing, underutilized VMs
Premium instance sizes
Custom images
Your company is creating a an application that requires some signed in users to be able to return all profile properties of all organisation users from Microsoft Graph. The users requesting the profile properties will not be company administrators. Which of the following Microsoft Graph permissions will enable this requirement for a user?
Choose all that apply.
True or false: Your requirements for a queueing solution require a maximum queue size of 30 GB, and Storage queues support this requirement.
True
False
True or false: Azure Storage supports using Azure Active Directory to authorize requests to Azure queue storage
True
False
True or false: An Azure App Service domain can manually be renewed 120 days before it expires.
True
False
You are writing a web application that calls the Microsoft Graph APIs either with or without user interaction. Which of the following code grant type or auth code flows match this scenario?
Choose two:
Device Code
Client Credentials
Authorization Code
On Behalf Of
A developer needs to have API callers use different versions of the API. Does Azure API Management Support this?
Yes
No
Which Docker command would you run to build a Docker image?
docker run
docker build
docker create
docker images
A team is deploying an app to Azure App Service and needs to configure the deployment user. Which Azure CLI command should the team run to accomplish this?
az webapp user set
az webapp deployment user set
az deploy user set
az user set
Which of the following is an Event Grid built-in role for managing event subscriptions?
EventGrid EventSubscription Contributor
EventGrid EventSubscription Viewer
EventGrid EventSubscription Owner
EventGrid EventSubscription Operator
Your company uses a line of business application that stores some files as blobs in Azure Storage. You have been asked to create an ordered read-only log of changes that occur to the blobs, so that they can be processed in batch later. What should you enable on the Storage Account?
Point-in-time restore
False
Storage Analytics
Change feed
True or false: A team wants to migrate an existing App Service app to a different subscription. Once the app is migrated, the managed identities should follow and should not need to be updated.
True
False
True or false: A team wants to migrate an existing App Service app to a different subscription. Once the app is migrated, the managed identities should follow and should not need to be updated.
True
False
Which Azure App Service app setting should be configured to use WebDeploy/MSDeploy to deploy a web app from Visual Studio?
WEBSITE_WEBDEPLOY_USE_SCM should be set to true.
WEBSITE_WEBDEPLOY_USE_SCM should be set to false.
WEBSITE_MSDEPLOY_USE_SCM should be set to true.
WEBSITE_MSDEPLOY_USE_SCM should be set to false.
An indexing mode of ___________ on a Cosmos DB container ensures that the index is updated as you create, update or delete items, therefore ensuring the read query consistency matches that of the account?
None
Lazy
Consistent
Strong
In order to disable a system-assigned managed identity from an Azure VM, your account needs which role assignment?
Virtual Machine User Login
Virtual Machine Administrator Login
Virtual Machine Contributor
Classic Virtual Machine Contributor
You plan on streaming events for Apache Kafka. Which Event Hub tier should you choose?
Choose all that apply:
Standard
Basic
Free
Premium
A company is using Azure Event Hubs for data streaming and needs to associate an event hub to a different subscription. What change would you recommend that the company make?
No changes are necessary.
Move existing subscription to a new region.
The company should adjust its capacity allocation for the new subscription.
The company should create a new namespace for the new subscription.
You are working for a development team implementing an application using a microservice architecture with Azure Container Apps. Which of the following dynamic scaling options are available to use for your application?
Choose all that apply:
CPU or memory
HTTP traffic
Azure Service Bus Queues
Azure Storage Queue
What two forms can an Azure Storage shared access signature take?
Account-Level SAS
Ad hoc SAS
Service SAS with stored access policy
User-delegation SAS
True or False. You are working on an application where demand for the resources is unpredictable. Your team have decided to implement caching to load data on demand into a cache and improve performance of the application. You can implement the Cache-Aside pattern to meet these requirements?
True
False
Which two pricing tiers of Azure API Management (APIM) offer support for virtual networks?
Developer
Premium
Standard
Consumption
You are deploying an application with Azure Container Apps and need to know the health of a replica. What should you implement?
A revision
Liveness probe
Readiness probe
Applications Insights availability alert
You only need the display name, department and user principal name to be returned.
What should you add to the end of the original request?
$select=displayName,department,userPrincipalName
?$select=displayName,department,userPrincipalName
$filter=displayName,department,userPrincipalName
?$filter=displayName,department,userPrincipalName
Based on the Azure Portal navigation pane shown here, where would a developer navigate to create autoscale rules for Azure App Service?
Choose all that apply.
App Services
Monitor
Virtual Machines
Azure Cosmos DB
Which of the following supports a brokered messaging communication model?
Event Grid queue
Service Bus queue
Event Hub
None of the above
To create an API Management service, what PowerShell command should a developer run?
New-AzAP
New-AzAPIManagement
New-AzManagement
New-APIManagement
Which of the following types of applications support auth code flow?
Single-page web application (SPA)
An API that calls an API
Desktop and mobile apps
Standard (server-based) web application
Which of the following are valid App Service Plan metrics?
Data Throughput
CPU Percentage
Http 4xx
Memory Percentage
How does Azure Event Grid facilitate the creation of event-driven architectures?
A) By storing large amounts of data securely in the cloud.
B) By routing events from various sources to different destinations in real-time
C) By providing virtual machines for running applications
D) By offering a managed database service for relational databases.
In the context of an online store's inventory management system, which component of Azure Event Grid would you use to ensure that an Azure Function updates the inventory when a new product is added to the catalog?
A) Azure Storage Account
B) Event Grid Topic
C) Virtual Network
D) Azure SQL Database
Which of the following Azure services can be an event source for Azure Event Grid?
A) Azure Virtual Machines
B) Azure Blob Storage
D) Microsoft Teams
C) Azure DevOps
What is the primary purpose of Azure Event Hubs?
A) To store and manage relational databases.
B) To provide a platform for running virtual machines
C) To ingest, process, and store large streams of event data in real-time.
D) To host websites and web applications
Which of the following scenarios is a typical use case for Azure Event Hubs?
A) Running a content management system for a website.
B) Collecting and analyzing real-time telemetry data from IoT devices.
C) Managing user authentication and access control.
D) Hosting and managing SQL databases.
In an event-driven architecture using Azure Event Grid, which service would you use to automate workflows in response to events?
A) Azure Logic Apps
B) Azure SQL Database
C) Azure DevTest Labs
D) Azure App Service
