📘 Free AZ-204 Sample Questions
You have two Hyper-V hosts named Host1 and Host2. Host1 has an Azure virtual machine named VM1 that was
deployed by using a custom Azure Resource
Manager template.
You need to move VM1 to Host2.
What should you do?
A
From the Update management blade, click Enable.
B
From the Overview blade, move VM1 to a different subscription.
C
. From the Redeploy blade, click Redeploy.
D
From the Profile blade, modify the usage location.
Correct Answer:
C. . From the Redeploy blade, click Redeploy.
Explanation:
The "Redeploy" blade in the Azure portal can be used to redeploy a virtual machine to a different host. When you
redeploy a virtual machine, it moves to a new host within the same Azure datacenter
Reference:
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/redeploy-to-new-node-windows#use-the
azure-portal
You have downloaded an Azure Resource Manager template to deploy numerous virtual machines. The template is
based on a current virtual machine, but must be adapted to reference an administrative password.
You need to make sure that the password is not stored in plain text.
You are preparing to create the necessary components to achieve your goal.
Which of the following should you create to achieve your goal? Answer by dragging the correct option from the list
to the answer area.
Select and Place:
A
Correct Answer:
A.
Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The
cluster is located in a resource group.
Developers have created an application named MyApp. MyApp was packaged into a container image.
You need to deploy the YAML manifest file for the application.
Solution: You install the Azure CLI on the device and run the kubectl apply `"f myapp.yaml command.
Does this meet the goal?
A
. Yes
B
No
Correct Answer:
A. . Yes
Explanation:
The solution provided involves using kubectl, which is the Kubernetes command-line tool, to apply the YAML
manifest file (myapp.yaml) for deploying the application. Since you're managing the AKS cluster from an Azure AD
joined device and have the Azure CLI installed, running kubectl apply -f myapp.yaml command will deploy the
application to the AKS cluster. This is a common and valid method for deploying applications to Kubernetes clusters,
including AKS.
Reference:
https://learn.microsoft.com/en-us/azure/aks/learn/quick-kubernetes-deploy-cli
Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The
cluster is located in a resource group.
Developers have created an application named MyApp. MyApp was packaged into a container image.
You need to deploy the YAML manifest file for the application.
Solution: You install the docker client on the device and run the docker run -it microsoft/azure-cli:0.10.17 command.
Does this meet the goal?
A
Yes
B
No
Correct Answer:
B. No
Explanation:
Installing the Docker client and running the docker run -it microsoft/azure-cli:0.10.17 command will start an
interactive Azure CLI session within a Docker container, but it does not directly deploy the YAML manifest file to the
AKS cluster. To deploy the YAML manifest file, you need to use the kubectl apply -f myapp.yaml command, which is
specifically designed for interacting with Kubernetes clusters
Your company has a web app named WebApp1.
You use the WebJobs SDK to design a triggered App Service background task that automatically invokes a function in
the code every time new data is received in a queue.
You are preparing to configure the service processes a queue data item.
Which of the following is the service you should use?
A
Logic Apps
B
WebJobs
C
C. Flow
D
Functions
Correct Answer:
B. WebJobs
Explanation:
"WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web
app. All app service plans support WebJobs. There's no extra cost to use WebJobs."
Reference:
https://learn.microsoft.com/en-us/azure/app-service/webjobs-create?tabs=windowscode
Your company has an Azure subscription.
You need to deploy a number of Azure virtual machines to the subscription by using Azure Resource Manager (ARM)
templates. The virtual machines will be included in a single availability set.
You need to ensure that the ARM template allows for as many virtual machines as possible to remain accessible in
the event of fabric failure or maintenance.
Which of the following is the value that you should configure for the platformFaultDomainCount property?
A
10
B
30
C
. Min Value
D
Max Value
Correct Answer:
D. Max Value
Explanation:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-manage-fault
domains
https://docs.microsoft.com/en-us/azure/virtual-machines/availability-set-overview
Explanation:
Each virtual machine in your availability set is assigned an update domain and a fault domain by the underlying Azure
platform. Each availability set can be configured with up to three fault domains and twenty update domains.
Your company has an Azure subscription.
You need to deploy a number of Azure virtual machines to the subscription by using Azure Resource Manager (ARM)
templates. The virtual machines will be included in a single availability set.
You need to ensure that the ARM template allows for as many virtual machines as possible to remain accessible in
the event of fabric failure or maintenance.
Which of the following is the value that you should configure for the platformUpdateDomainCount property?
A
. 10
B
20
C
30
D
40
Correct Answer:
B. 20
Explanation:
"Update domains indicate groups of virtual machines and underlying physical hardware that can be rebooted at the
same time. When more than five virtual machines are configured within a single availability set with five update
domains, the sixth virtual machine is placed into the same update domain as the first virtual machine, the seventh in
the same update domain as the second virtual machine, and so on." Given that we want to maximize the number of
VMs available at all times, we want to maximize the number of update domains – e.g. a single update domain would
basically mean no redundancy at all. Having said that, there is a constraint on the maximum number of update
domains.
Each availability set can be configured with up to three fault domains and twenty update domains.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/availability-set-overview
You are creating an Azure Cosmos DB account that makes use of the SQL API. Data will be added to the account
every day by a web application.
You need to ensure that an email notification is sent when information is received from IoT devices, and that
compute cost is reduced.
You decide to deploy a function app.
Which of the following should you configure the function app to use? Answer by dragging the correct options from
the list to the answer area.
Select and Place:
A
Correct Answer:
A.
This question requires that you evaluate the underlined text to determine if it is correct.
AZ-204: Actual Exam Q&A | CLEARCATNET
You company has an on-premises deployment of MongoDB, and an Azure Cosmos DB account that makes use of the
MongoDB API.
You need to devise a strategy to migrate MongoDB to the Azure Cosmos DB account.
You include the Data Management Gateway tool in your migration strategy.
Instructions: Review the underlined text. If it makes the statement correct, select `No change required.` If the
statement is incorrect, select the answer choice that makes the statement correct.
A
No change required
B
. mongorestore
C
Azure Storage Explorer
D
AzCopy
Correct Answer:
B. . mongorestore
Explanation:
"The MongoDB native tools are a set of binaries that facilitate data manipulation on an existing MongoDB instance.
Since Azure Cosmos DB exposes an API for MongoDB, the MongoDB native tools are able to insert data into Azure
Cosmos DB. The focus of this doc is on migrating data out of a MongoDB instance using mongoexport/mongoimport
or mongodump/mongorestore. Since the native tools connect to MongoDB using connection strings, you can run the
tools anywhere, however we recommend running these tools within the same network as the MongoDB instance to
avoid firewall issues."
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-pre-migration
You are developing an e-Commerce Web App.
You want to use Azure Key Vault to ensure that sign-ins to the e-Commerce Web App are secured by using Azure
App Service authentication and Azure Active
Directory (AAD).
What should you do on the e-Commerce Web App?
A
Run the az keyvault secret command.
B
. Enable Azure AD Connect.
C
Enable Managed Service Identity (MSI).
D
Create an Azure AD service principal.
Correct Answer:
C. Enable Managed Service Identity (MSI).
Explanation:
Managed Service Identity (MSI) is a feature in Azure that allows you to securely authenticate an Azure service to
other Azure services without having to manage credentials. By enabling MSI on the Azure App Service hosting the e
Commerce Web App, you can create a trust relationship between the App Service and Azure Key Vault. This allows
the e-Commerce Web App to authenticate with Azure Active Directory (AAD) and securely retrieve secrets from the
Key Vault.
Questions: 1-10 out of 487
Continue Full Practice..
GET ALL 487 QUESTIONS