wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AZ-204 REVISION

Total questions: 51

Worksheet time: 3hrs 31mins

Name
Class
Date
1.

To get the details of an Azure web app’s settings, which Azure CLI command should a developer execute?

a)

az webapp config appsettings show

b)

az webapp config appsettings display

c)

az webapp config appsettings list

d)

az webapp config appsettings set

2.

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?

a)

The file's origin isn't visible to the CDN.

b)


The CDN is trying to serve unsupported file types

c)


The file’s TTL (time-to-live) has expired.

d)

The host is rejecting the host header from the CDN

3.

.NET application logs can only be written to which of the following?

a)

The App Service file system

b)

Blob storage

c)

External storage

d)

Azure Storage account

e)

Azure SQL

4.

True or False: Static site hosting with Azure Storage natively supports HTTP and HTTPS for a custom domain?

a)

True

b)

False

5.

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:

a)

Run only one app in each App Service Plan

b)

Set -PerSiteScaling on the App Service Plan to true.

c)

Modify the number of instances on the App.

d)

Azure App Service does not support this scenario.

6.

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?

a)

CPU and memory

b)

Scaling is not available for container groups

c)

Service Bus Queue

d)

HTTP traffic

7.

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?

a)

In the ApplicationInsights.config file disable adaptive sampling and add a configuration to enable fixed-rate sampling

b)

In the ApplicationInsights.config file enable fixed-rate sampling

c)

In the ApplicationInsights.config file disable adaptive sampling and add a configuration to enable ingestion sampling

d)

Set a data sampling percentage in the Usage and estimated costs pane of Application Insights in the Azure portal

8.

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:

a)


Add automatically from Visual Studio

b)

npm packages

c)


SDK Loader Script

d)

NuGet packages.

9.

What is the default return value for an HTTP-triggered function in Azure Functions runtime 2.x and higher?

a)

HTTP 200 OK

b)

HTTP 200 No Content

c)

HTTP 200

d)

HTTP 200 Received

10.

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?

a)

CurrentLocations

b)

ApplicationPreferredRegions

c)

ApplicaitonDefaultLocations

d)

DesiredLocations

11.

Can you scale a Premium cache to a Basic cache?

a)

Yes. However, all data will be lost.

b)

Yes. In addition, all data will be retained.

c)

No. You can’t scale from Premium to Basic.

d)

Scaling is not supported.

12.

Which of the following uniquely identifies your app in the Microsoft Identity Platform?

a)

Resource owner

b)

OAuth client

c)

Endpoint

d)

Application ID

13.

Which Azure CLI command creates a web app?

a)

az app create

b)

New-AzWebApp

c)

az webapp create

d)

az create webapp

14.

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?

a)

Only the global policy

b)

Only the API policy

c)

Both

d)

Neither

15.

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?

a)

Agent-based monitoring

b)

Manual SDK-based instrumentation

c)

They will cancel each other out, and monitoring will be disabled.

d)

Both will be honored.

16.

The logs indicate that a developer deleted an Azure Key Vault key 118 days ago. Can the developer recover the key?

a)

Yes

b)

No

17.

What are two benefits of using the Azure Functions Premium plan?

a)

No cold start

b)

Ability to leverage existing, underutilized VMs

c)


Premium instance sizes

d)

Custom images

18.

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.

b)
c)

User.Export.All

d)

User.ReadWrite.All

19.

True or false: Your requirements for a queueing solution require a maximum queue size of 30 GB, and Storage queues support this requirement.

a)

True

b)

False

20.

True or false: Azure Storage supports using Azure Active Directory to authorize requests to Azure queue storage

a)

True

b)

False

21.

True or false: An Azure App Service domain can manually be renewed 120 days before it expires.

a)

True

b)

False

22.

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:

a)

Device Code

b)

Client Credentials

c)

Authorization Code

d)

On Behalf Of

23.

A developer needs to have API callers use different versions of the API. Does Azure API Management Support this?

a)

Yes

b)

No

24.

Which Docker command would you run to build a Docker image?

a)

docker run

b)

docker build

c)

docker create

d)

docker images

25.

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?

a)

az webapp user set

b)

az webapp deployment user set

c)

az deploy user set

d)

az user set

26.

Which of the following is an Event Grid built-in role for managing event subscriptions?

a)

EventGrid EventSubscription Contributor

b)

EventGrid EventSubscription Viewer

c)

EventGrid EventSubscription Owner

d)

EventGrid EventSubscription Operator

27.

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?

a)

Point-in-time restore

b)

False

c)

Storage Analytics

d)

Change feed

28.

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.

a)

True

b)

False

29.

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.

a)

True

b)

False

30.

Which Azure App Service app setting should be configured to use WebDeploy/MSDeploy to deploy a web app from Visual Studio?

a)

WEBSITE_WEBDEPLOY_USE_SCM should be set to true.

b)

WEBSITE_WEBDEPLOY_USE_SCM should be set to false.

c)

WEBSITE_MSDEPLOY_USE_SCM should be set to true.

d)

WEBSITE_MSDEPLOY_USE_SCM should be set to false.

31.

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?

a)

None

b)

Lazy

c)

Consistent

d)

Strong

32.

In order to disable a system-assigned managed identity from an Azure VM, your account needs which role assignment?

a)

Virtual Machine User Login

b)

Virtual Machine Administrator Login

c)

Virtual Machine Contributor

d)

Classic Virtual Machine Contributor

33.

You plan on streaming events for Apache Kafka. Which Event Hub tier should you choose?

Choose all that apply:

a)

Standard

b)

Basic

c)


Free

d)

Premium

34.

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?

a)

No changes are necessary.

b)

Move existing subscription to a new region.

c)

The company should adjust its capacity allocation for the new subscription.

d)

The company should create a new namespace for the new subscription.

35.

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:

a)

CPU or memory

b)

HTTP traffic

c)


Azure Service Bus Queues

d)

Azure Storage Queue

36.

What two forms can an Azure Storage shared access signature take?

a)

Account-Level SAS

b)


Ad hoc SAS

c)

Service SAS with stored access policy

d)

User-delegation SAS

37.

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?

a)

True

b)

False

38.

Which two pricing tiers of Azure API Management (APIM) offer support for virtual networks?

a)


Developer

b)

Premium

c)

Standard

d)

Consumption

39.

You are deploying an application with Azure Container Apps and need to know the health of a replica.  What should you implement?

a)

A revision

b)

Liveness probe

c)

Readiness probe

d)

Applications Insights availability alert

40.

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?

a)

$select=displayName,department,userPrincipalName

b)

?$select=displayName,department,userPrincipalName

c)

$filter=displayName,department,userPrincipalName

d)

?$filter=displayName,department,userPrincipalName

41.

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.

a)


App Services

b)

Monitor

c)


Virtual Machines

d)

Azure Cosmos DB

42.

Which of the following supports a brokered messaging communication model?

a)

Event Grid queue

b)

Service Bus queue

c)

Event Hub

d)

None of the above

43.

To create an API Management service, what PowerShell command should a developer run?

a)

New-AzAP

b)

New-AzAPIManagement

c)

New-AzManagement

d)

New-APIManagement

44.

Which of the following types of applications support auth code flow?

a)

Single-page web application (SPA)

b)

An API that calls an API

c)

Desktop and mobile apps

d)

Standard (server-based) web application

45.

Which of the following are valid App Service Plan metrics?

a)

Data Throughput

b)


CPU Percentage

c)

Http 4xx

d)


Memory Percentage

46.

How does Azure Event Grid facilitate the creation of event-driven architectures?

a)

A) By storing large amounts of data securely in the cloud.

b)

B) By routing events from various sources to different destinations in real-time

c)

C) By providing virtual machines for running applications

d)

D) By offering a managed database service for relational databases.

47.

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)

A) Azure Storage Account

b)

B) Event Grid Topic

c)

C) Virtual Network

d)

D) Azure SQL Database

48.

Which of the following Azure services can be an event source for Azure Event Grid?

a)

A) Azure Virtual Machines

b)

B) Azure Blob Storage

c)

D) Microsoft Teams

d)

C) Azure DevOps

49.

What is the primary purpose of Azure Event Hubs?

a)

A) To store and manage relational databases.

b)

B) To provide a platform for running virtual machines

c)

C) To ingest, process, and store large streams of event data in real-time.

d)

D) To host websites and web applications

50.

Which of the following scenarios is a typical use case for Azure Event Hubs?

a)

A) Running a content management system for a website.

b)

B) Collecting and analyzing real-time telemetry data from IoT devices.

c)

C) Managing user authentication and access control.

d)

D) Hosting and managing SQL databases.

51.

In an event-driven architecture using Azure Event Grid, which service would you use to automate workflows in response to events?

a)

A) Azure Logic Apps

b)

B) Azure SQL Database

c)

C) Azure DevTest Labs

d)

D) Azure App Service