AZ-204 Test Questions ACTUAL UPDATED QUESTIONS AND CORRECT
ANSWERS
You are implementing a software as a service (SaaS) # of VM instances: 4
ASP.NET Core web service that will run as an Azure Web Reason: you are not charged for extra deployment slots
App. The web service will use an on-premises SQL Server
database for storage. The web service also includes a Pricing Tier: Isolated
WebJob that processes data updates. Four customers will Reason: azure resource must be located in an isolated network therefore must
use the web service. use the isolated tier
+ each instance of the WebJob processes data for a single
customer and must run as a singleton instance
+ each deployment must be tested by using deployment
slots prior to serving production data
+ azure costs must be minimized
+ azure resources must be located in an isolated network
You need to configure the App Service plan for the Web
App. How should you configure the App Service Plan?
Number of VM instances?
-2
-4
-8
- 16
Pricing Tier?
- Isolated
- Standard
- Premium
- Consumption
,You are a developer for a software as a service (SaaS) Azure Function Code -> Deployment
company that uses an Azure Function to process orders. Reason: To deploy Azure Functions to Kubernetes use the func Kubernetes
The Azure Function currently runs on an Azure Function deploy command has several attributes that directly control how our app scales,
app that is triggered by an Azure Storage queue. You are once it is deployed to Kubernetes
preparing to migrate the Azure Function to Kubernetes
using Kubernetes-based Event Driven Autoscaling Polling Interval -> ScaledObject
(KEDA). You need to configure Kubernetes Custom Reason: with --polling-interval, we can control the interval used by KEDA to
Resource Definitions (CRD) for the Azure Function. Which check Azure Service Bus Queue for messages
CRDs should you configure?
Azure Storage Connection String -> Secret
CRD type options: Reason: store connection strings in Kubernetes Secrets
+ Secret
+ Deployment
+ ScaledObject
+ TriggerAuthentication
Settings to Match:
+ Azure Function code
+ Polling interval
+ Azure Storage connection string
,You are creating a CLI script that creates an Azure web Option 1: az appservice plan create
app and related services in Azure App Service. The web Reason: use resource group to create app service plan
app uses the following variables:
$gitrepo = https://github.com/Contos/webapp Option 2: az webapp create
$webappname = Webapp1103 Reason: create a new webapp
You need to automatically deploy code from GitHub to a
newly created web app. How should you complete the Option 3: --plan $webappname
script? Reason: plan web app with the proper name after the service plan is created
az group create --location westeurope --name Option 4: az webapp deployment
myResourceGroup Reason: deploy the app
Options 1: Option 5: --repo-url $gitrepo --branch master --manual-integration
+ az webapp Reason: allows you to deploy app with a public GitHub repository
+ az appservice plan create
+ az webapp deployment
+ az group delete
OPTION1###### --name $webappname --resource-
group myResourceGroup --sku FREE
Options 2:
+ az webapp
+ az appservice plan create
+ az webapp deployment
+ az group delete
Options 3:
+ --repo-url $gitrepo --branch master --manual
integration
+ git clone $gitrepo
+ --plan $webappname
OPTION2###### --name $webappname --resource-
group myResourceGroup OPTION3 ######
Options 4:
+ az webapp
+ az appservice plan create
+ az webapp deployment
+ az group delete
Options 5:
+ --repo-url $gitrepo --branch master --manual
integration
+ git clone $gitrepo
+ --plan $webappname
OPTION4###### source config --name $webappname -
-resource-group myResourceGroup OPTION5######
, You develop a software as a service (SaaS) offering to B. No
manage photographs. Users upload photos to a web Reason: there can be up to a 10-minute delay in processing new blobs. Using a
service which then store the photos in Azure Storage trigger from blob storage events breaks the requirement of it running in less than
Blob storage. The storage account type is General- 1 minute. Use Event Grid instead.
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.
Proposed Solution: Trigger the photo processing from
Blob storage events
Does this solution meet the goal?
A. Yes
B. No
You develop and deploy an Azure App Service API app A. Yes
to a Windows-hosted deployment slot named Reason:
Development. You create additional deployment slots Some apps require custom warm-up actions before the swap. The swap operation
named Testing and Production. You enable auto swap on waits for this custom warm-up to finish before swapping with the target slot.
the Production deployment slot. You need to ensure that
scripts run and resources are available before a swap The Microsoft documentation gives two ways in which you can add a warm-up
operation occurs. behavior for your wen applications. One is to add the applicationInitialization
Proposed Solution: Update the web.config file to include configuration element to the web.config file. And the other is to add app settings
the applicationInitialization configuration element. for your web application
Specify custom initialization actions to run the scripts.
Does this solution meet the goal? https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-
A. Yes slots#specify-custom-warm-up
B. No
You develop and deploy an Azure App Service API app B. No
to a Windows-hosted deployment slot named Reason: "You need to ensure that scripts run and resources are available before a
Development. You create additional deployment slots swap operation occurs." Simply enabling auto swap doesn't do that.
named Testing and Production. You enable auto swap on
the Production deployment slot. You need to ensure that
scripts run and resources are available before a swap
operation occurs.
Proposed Solution: Enable auto swap for the Testing slot.
Deploy the app to the Testing slot.
Does the solution meet the goal?
A. Yes
B. No
ANSWERS
You are implementing a software as a service (SaaS) # of VM instances: 4
ASP.NET Core web service that will run as an Azure Web Reason: you are not charged for extra deployment slots
App. The web service will use an on-premises SQL Server
database for storage. The web service also includes a Pricing Tier: Isolated
WebJob that processes data updates. Four customers will Reason: azure resource must be located in an isolated network therefore must
use the web service. use the isolated tier
+ each instance of the WebJob processes data for a single
customer and must run as a singleton instance
+ each deployment must be tested by using deployment
slots prior to serving production data
+ azure costs must be minimized
+ azure resources must be located in an isolated network
You need to configure the App Service plan for the Web
App. How should you configure the App Service Plan?
Number of VM instances?
-2
-4
-8
- 16
Pricing Tier?
- Isolated
- Standard
- Premium
- Consumption
,You are a developer for a software as a service (SaaS) Azure Function Code -> Deployment
company that uses an Azure Function to process orders. Reason: To deploy Azure Functions to Kubernetes use the func Kubernetes
The Azure Function currently runs on an Azure Function deploy command has several attributes that directly control how our app scales,
app that is triggered by an Azure Storage queue. You are once it is deployed to Kubernetes
preparing to migrate the Azure Function to Kubernetes
using Kubernetes-based Event Driven Autoscaling Polling Interval -> ScaledObject
(KEDA). You need to configure Kubernetes Custom Reason: with --polling-interval, we can control the interval used by KEDA to
Resource Definitions (CRD) for the Azure Function. Which check Azure Service Bus Queue for messages
CRDs should you configure?
Azure Storage Connection String -> Secret
CRD type options: Reason: store connection strings in Kubernetes Secrets
+ Secret
+ Deployment
+ ScaledObject
+ TriggerAuthentication
Settings to Match:
+ Azure Function code
+ Polling interval
+ Azure Storage connection string
,You are creating a CLI script that creates an Azure web Option 1: az appservice plan create
app and related services in Azure App Service. The web Reason: use resource group to create app service plan
app uses the following variables:
$gitrepo = https://github.com/Contos/webapp Option 2: az webapp create
$webappname = Webapp1103 Reason: create a new webapp
You need to automatically deploy code from GitHub to a
newly created web app. How should you complete the Option 3: --plan $webappname
script? Reason: plan web app with the proper name after the service plan is created
az group create --location westeurope --name Option 4: az webapp deployment
myResourceGroup Reason: deploy the app
Options 1: Option 5: --repo-url $gitrepo --branch master --manual-integration
+ az webapp Reason: allows you to deploy app with a public GitHub repository
+ az appservice plan create
+ az webapp deployment
+ az group delete
OPTION1###### --name $webappname --resource-
group myResourceGroup --sku FREE
Options 2:
+ az webapp
+ az appservice plan create
+ az webapp deployment
+ az group delete
Options 3:
+ --repo-url $gitrepo --branch master --manual
integration
+ git clone $gitrepo
+ --plan $webappname
OPTION2###### --name $webappname --resource-
group myResourceGroup OPTION3 ######
Options 4:
+ az webapp
+ az appservice plan create
+ az webapp deployment
+ az group delete
Options 5:
+ --repo-url $gitrepo --branch master --manual
integration
+ git clone $gitrepo
+ --plan $webappname
OPTION4###### source config --name $webappname -
-resource-group myResourceGroup OPTION5######
, You develop a software as a service (SaaS) offering to B. No
manage photographs. Users upload photos to a web Reason: there can be up to a 10-minute delay in processing new blobs. Using a
service which then store the photos in Azure Storage trigger from blob storage events breaks the requirement of it running in less than
Blob storage. The storage account type is General- 1 minute. Use Event Grid instead.
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.
Proposed Solution: Trigger the photo processing from
Blob storage events
Does this solution meet the goal?
A. Yes
B. No
You develop and deploy an Azure App Service API app A. Yes
to a Windows-hosted deployment slot named Reason:
Development. You create additional deployment slots Some apps require custom warm-up actions before the swap. The swap operation
named Testing and Production. You enable auto swap on waits for this custom warm-up to finish before swapping with the target slot.
the Production deployment slot. You need to ensure that
scripts run and resources are available before a swap The Microsoft documentation gives two ways in which you can add a warm-up
operation occurs. behavior for your wen applications. One is to add the applicationInitialization
Proposed Solution: Update the web.config file to include configuration element to the web.config file. And the other is to add app settings
the applicationInitialization configuration element. for your web application
Specify custom initialization actions to run the scripts.
Does this solution meet the goal? https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-
A. Yes slots#specify-custom-warm-up
B. No
You develop and deploy an Azure App Service API app B. No
to a Windows-hosted deployment slot named Reason: "You need to ensure that scripts run and resources are available before a
Development. You create additional deployment slots swap operation occurs." Simply enabling auto swap doesn't do that.
named Testing and Production. You enable auto swap on
the Production deployment slot. You need to ensure that
scripts run and resources are available before a swap
operation occurs.
Proposed Solution: Enable auto swap for the Testing slot.
Deploy the app to the Testing slot.
Does the solution meet the goal?
A. Yes
B. No