AZ204 Microsoft Azure Developer Practice Test Questions ACTUAL UPDATED
QUESTIONS AND CORRECT ANSWERS
Which of the following statements describes the type of All of the data contained in Microsoft 365, including documents, calendar, email,
data that can be retrieved using Microsoft Graph? Teams and people
https://docs.microsoft.com/en-us/graph/overview#whats- Microsoft Graph is the gateway to data and intelligence in Microsoft 365. It
in-microsoft-graph provides a unified programmability model that you can use to access the
tremendous amount of data in Microsoft 365, Windows 10, and Enterprise Mobility
+ Security. Microsoft Graph exposes REST APIs and client libraries to access data
on the following Microsoft cloud services: (A) Microsoft 365 core services:
Bookings, Calendar, Delve, Excel, Microsoft 365 compliance eDiscovery,
Microsoft Search, OneDrive, OneNote, Outlook/Exchange, People (Outlook
contacts), Planner, SharePoint, Teams, To Do, Workplace Analytics. (B) Enterprise
Mobility and Security services: Advanced Threat Analytics, Advanced Threat
Protection, Azure Active Directory, Identity Manager, and Intune. (C) Windows 10
services: activities, devices, notifications, Universal Print. (D) Dynamics 365
Business Central.
What advantage does a Spot VM provide over a Spot instances are significantly cheaper.
regularly-provisioned VM?
Using Azure Spot Virtual Machines allows you to take advantage of our unused
https://docs.microsoft.com/en-us/azure/virtual- capacity at a significant cost savings. At any point in time when Azure needs the
machines/spot-vms capacity back, the Azure infrastructure will evict Azure Spot Virtual Machines.
Therefore, Azure Spot Virtual Machines are great for workloads that can handle
interruptions like batch processing jobs, dev/test environments, large compute
workloads, and more.
,If your Azure solution relies on third-party public images, az acr import
some risks are added to your process. Microsoft
recommends keeping a private copy of public images As a recommended one-time step, import base images and other public content
and deploying from there, instead of deploying directly to your Azure container registry. The az acr import command in the Azure CLI
from public image locations like DockerHub. Which CLI supports image import from public registries such as Docker Hub and Microsoft
command is able to copy a public image into Azure Container Registry and from other private container registries.
Container Registry?
https://docs.microsoft.com/en-ca/azure/container-
registry/buffer-gate-public-content#import-images-to-
an-azure-container-registry
You would like to receive an email every time a new Go into Azure Monitor. Go into Alerts. Select the Subscription scope. Select the
Azure Container Registry is created. Which of the Create or Update Container Registry signal. Add the action group that emails you.
following steps would accomplish that goal? Give it a name and click save
https://docs.microsoft.com/en-us/azure/container-
registry/monitor-service
You are a developer for Acme Inc. You have implemented implement the Redis Cluster feature, and add a second shard to double the
Redis as a caching service and it's going great. You are memory available.
running on a premium plan, and using the top 120 GB of
memory cache. You'd like to increase the memory limit to Redis Cluster supports up to 10 shards to create 1.2 TB of memory.
500 GB, but Redis does not support that. How can you
get more memory when using Azure Redis? Choose the
best answer.
ARM templates are said to have a declarative syntax. Why You don't have to check if the resource exists, you simply declare that it should
is a declarative syntax better than a programmatic exist
approach?
ARM templates allow you to create and deploy an entire Azure infrastructure
https://docs.microsoft.com/en-us/azure/azure-resource- declaratively. For example, you can deploy not only virtual machines, but also the
manager/templates/overview network infrastructure, storage systems, and any other resources you may need.
You have an Azure Container Registry named docker pull constoso.azurecr.io/marketing/website
'contoso.azurecr.io'. There are several departments in
your company that need to push images to the registry, By using repository namespaces, you can allow sharing a single registry across
and you want to keep them organized. You decide to use multiple groups within your organization. Registries can be shared across
respository namespaces to separate out 'sales', deployments and teams. Azure Container Registry supports nested namespaces,
'marketing', 'technology' and 'customerservice'. How do enabling group isolation. However, the registry manages all repositories
you pull down the container image for the 'website' independently, not as a hierarchy. The syntax is
project located in the marketing namespace? contoso.azurecr.io/marketing/website
https://docs.microsoft.com/en-us/azure/container-
registry/container-registry-best-practices#repository-
namespaces
, Which Azure service provides the ability to store and Azure Container Registry (ACR)
manage your private Docker container images?
You can send your container images to Azure Container Registry (ACR) to store
them before deployment
Which type of data can most benefit from being stored in Data that is repeatedly read
a caching system like Azure Redis Cache?
Data that is static but read frequently benefits most from being cached, because
https://docs.microsoft.com/en- you can use the cache to retrieve the data instead of having to go back to the
us/azure/architecture/best-practices/caching? original data source every time. Data that is written and never read does not need
toc=%2fazure%2fredis-cache%2ftoc.json to be cached since caching only benefits reading. Data that is always changing
(like a stock price) cannot be cached since you always have to go back to the
original source to retrieve the latest. Data that is infrequently read but is static can
benefit from caching, but it does not benefit the most of the four options.
What does the CLI command 'az acr build --registry Performs a docker build and immediately pushes the result image into an ACR
$ACR_NAME --image helloacrtasks:v1 .' do?
ACR Tasks is a suite of features within Azure Container Registry that provides
https://docs.microsoft.com/en-us/azure/container- streamlined and efficient Docker container image builds in Azure. az acr build is
registry/container-registry-tutorial-quick-task an ACR Task which queues a quick build, providing streaming logs for an Azure
Container Registry.
You are a developer for Acme Inc. Your company's Service Bus
flagship application is the Wind Monitoring software that
Wind Energy farms use to monitor their equipment. At the Service Bus Queue is enterprise-grade message queue.
end of each day, the Wind Collector sends a message
that contains all of the days statistics in JSON format
which needs to be read, processed, and posted to the
database. Which Azure Service is best for processing this
type of data?
Which ASP.NET method outputs log messages to the System.Diagnostics.Trace.TraceError("message");
application diagnostics log?
Logs messages generated by your application code. The messages can be
https://docs.microsoft.com/en-us/azure/app- generated by the web framework you choose, or from your application code
service/troubleshoot-diagnostic-logs directly using the standard logging pattern of your language. Each message is
assigned one of the following categories: Critical, Error, Warning, Info, Debug,
and Trace. You can select how verbose you want the logging to be by setting the
severity level when you enable application logging.
How many input bindings is an Azure Function allowed to Any number or zero.
have?
You can mix and match different bindings to suit your needs. Bindings are optional
https://docs.microsoft.com/en-us/azure/azure- and a function might have one or multiple input and/or output bindings. Refer to
functions/functions-triggers-bindings?tabs=csharp Microsoft
QUESTIONS AND CORRECT ANSWERS
Which of the following statements describes the type of All of the data contained in Microsoft 365, including documents, calendar, email,
data that can be retrieved using Microsoft Graph? Teams and people
https://docs.microsoft.com/en-us/graph/overview#whats- Microsoft Graph is the gateway to data and intelligence in Microsoft 365. It
in-microsoft-graph provides a unified programmability model that you can use to access the
tremendous amount of data in Microsoft 365, Windows 10, and Enterprise Mobility
+ Security. Microsoft Graph exposes REST APIs and client libraries to access data
on the following Microsoft cloud services: (A) Microsoft 365 core services:
Bookings, Calendar, Delve, Excel, Microsoft 365 compliance eDiscovery,
Microsoft Search, OneDrive, OneNote, Outlook/Exchange, People (Outlook
contacts), Planner, SharePoint, Teams, To Do, Workplace Analytics. (B) Enterprise
Mobility and Security services: Advanced Threat Analytics, Advanced Threat
Protection, Azure Active Directory, Identity Manager, and Intune. (C) Windows 10
services: activities, devices, notifications, Universal Print. (D) Dynamics 365
Business Central.
What advantage does a Spot VM provide over a Spot instances are significantly cheaper.
regularly-provisioned VM?
Using Azure Spot Virtual Machines allows you to take advantage of our unused
https://docs.microsoft.com/en-us/azure/virtual- capacity at a significant cost savings. At any point in time when Azure needs the
machines/spot-vms capacity back, the Azure infrastructure will evict Azure Spot Virtual Machines.
Therefore, Azure Spot Virtual Machines are great for workloads that can handle
interruptions like batch processing jobs, dev/test environments, large compute
workloads, and more.
,If your Azure solution relies on third-party public images, az acr import
some risks are added to your process. Microsoft
recommends keeping a private copy of public images As a recommended one-time step, import base images and other public content
and deploying from there, instead of deploying directly to your Azure container registry. The az acr import command in the Azure CLI
from public image locations like DockerHub. Which CLI supports image import from public registries such as Docker Hub and Microsoft
command is able to copy a public image into Azure Container Registry and from other private container registries.
Container Registry?
https://docs.microsoft.com/en-ca/azure/container-
registry/buffer-gate-public-content#import-images-to-
an-azure-container-registry
You would like to receive an email every time a new Go into Azure Monitor. Go into Alerts. Select the Subscription scope. Select the
Azure Container Registry is created. Which of the Create or Update Container Registry signal. Add the action group that emails you.
following steps would accomplish that goal? Give it a name and click save
https://docs.microsoft.com/en-us/azure/container-
registry/monitor-service
You are a developer for Acme Inc. You have implemented implement the Redis Cluster feature, and add a second shard to double the
Redis as a caching service and it's going great. You are memory available.
running on a premium plan, and using the top 120 GB of
memory cache. You'd like to increase the memory limit to Redis Cluster supports up to 10 shards to create 1.2 TB of memory.
500 GB, but Redis does not support that. How can you
get more memory when using Azure Redis? Choose the
best answer.
ARM templates are said to have a declarative syntax. Why You don't have to check if the resource exists, you simply declare that it should
is a declarative syntax better than a programmatic exist
approach?
ARM templates allow you to create and deploy an entire Azure infrastructure
https://docs.microsoft.com/en-us/azure/azure-resource- declaratively. For example, you can deploy not only virtual machines, but also the
manager/templates/overview network infrastructure, storage systems, and any other resources you may need.
You have an Azure Container Registry named docker pull constoso.azurecr.io/marketing/website
'contoso.azurecr.io'. There are several departments in
your company that need to push images to the registry, By using repository namespaces, you can allow sharing a single registry across
and you want to keep them organized. You decide to use multiple groups within your organization. Registries can be shared across
respository namespaces to separate out 'sales', deployments and teams. Azure Container Registry supports nested namespaces,
'marketing', 'technology' and 'customerservice'. How do enabling group isolation. However, the registry manages all repositories
you pull down the container image for the 'website' independently, not as a hierarchy. The syntax is
project located in the marketing namespace? contoso.azurecr.io/marketing/website
https://docs.microsoft.com/en-us/azure/container-
registry/container-registry-best-practices#repository-
namespaces
, Which Azure service provides the ability to store and Azure Container Registry (ACR)
manage your private Docker container images?
You can send your container images to Azure Container Registry (ACR) to store
them before deployment
Which type of data can most benefit from being stored in Data that is repeatedly read
a caching system like Azure Redis Cache?
Data that is static but read frequently benefits most from being cached, because
https://docs.microsoft.com/en- you can use the cache to retrieve the data instead of having to go back to the
us/azure/architecture/best-practices/caching? original data source every time. Data that is written and never read does not need
toc=%2fazure%2fredis-cache%2ftoc.json to be cached since caching only benefits reading. Data that is always changing
(like a stock price) cannot be cached since you always have to go back to the
original source to retrieve the latest. Data that is infrequently read but is static can
benefit from caching, but it does not benefit the most of the four options.
What does the CLI command 'az acr build --registry Performs a docker build and immediately pushes the result image into an ACR
$ACR_NAME --image helloacrtasks:v1 .' do?
ACR Tasks is a suite of features within Azure Container Registry that provides
https://docs.microsoft.com/en-us/azure/container- streamlined and efficient Docker container image builds in Azure. az acr build is
registry/container-registry-tutorial-quick-task an ACR Task which queues a quick build, providing streaming logs for an Azure
Container Registry.
You are a developer for Acme Inc. Your company's Service Bus
flagship application is the Wind Monitoring software that
Wind Energy farms use to monitor their equipment. At the Service Bus Queue is enterprise-grade message queue.
end of each day, the Wind Collector sends a message
that contains all of the days statistics in JSON format
which needs to be read, processed, and posted to the
database. Which Azure Service is best for processing this
type of data?
Which ASP.NET method outputs log messages to the System.Diagnostics.Trace.TraceError("message");
application diagnostics log?
Logs messages generated by your application code. The messages can be
https://docs.microsoft.com/en-us/azure/app- generated by the web framework you choose, or from your application code
service/troubleshoot-diagnostic-logs directly using the standard logging pattern of your language. Each message is
assigned one of the following categories: Critical, Error, Warning, Info, Debug,
and Trace. You can select how verbose you want the logging to be by setting the
severity level when you enable application logging.
How many input bindings is an Azure Function allowed to Any number or zero.
have?
You can mix and match different bindings to suit your needs. Bindings are optional
https://docs.microsoft.com/en-us/azure/azure- and a function might have one or multiple input and/or output bindings. Refer to
functions/functions-triggers-bindings?tabs=csharp Microsoft