(AZ-204 topic) Develop Azure Compute Solutions Flashcards
Test takers will be expected to develop solutions using Azure Virtual Machines, Azure Containers Instances and Container Registry, in addition to know how to deploy web applications to Azure App Service and develop Azure Functions. Questions for this domain comprise 25% of the total questions for this exam.
Your company wants to move it’s website to Azure. You currently host your website on a docker container that see’s high-volume during peak business hours that causes CPU spikes and has been set-up to be able to failover to a local node should there be an issue. You’ve been instructed to shift the website to the cloud with as little change as possible while also keeping your webstire secured, resilient, and with costs at a minimum. Which situation would be the best solution?
- Upload your container to Azure Container Registry & deploy a new Azure Web App Service at the Standard tier with auto-scaling
- Upload your container to Azure Container Registry & deploy to Azure Container Instances with Auto-Scaling set up
- Build an Azure Virtual Machine that runs docker in a public facing virtual network. Move your container to the Virtual Machine and set your Virtual Machine to scale under high CPU conditions
- Build a Virtual Machine Scale Set that runs docker in a public facing virtual network. Configure your scale set to loadblance and increase the number of nodes based on CPU load.
-Upload your container to Azure Container Registry & deploy a new Azure Web App Service at the Standard tier with auto-scaling
Azure App Service would allow you to not only run, but also secure and offer high-availability for your web application with minimal effort when using the Standard Tier.
The ordering system for your company is getting an upgrade which will update a separate customer application whenever an order is completed. The order system processes at most 1000 orders per day, and the application is built using Azure Functions. What is the most efficient and economical way for the ordering system to notify the application when an order is complete?
- Use Cosmos DB for the data and use the built-in event notification service.
- Poll the order database from the application using a timer trigger to check if an order has been completed.
- Use an Azure Event Hub to collect and manage the order completion events. Then, build a pipeline to send the data to the application.
- Use a webhook to an Azure Function which can update the application as the order is completed.
-Use a webhook to an Azure Function which can update the application as the order is completed.
Webhooks are great for passive events, where you don’t know when the event might happen. No polling is necessary, and as such, it is efficient and “cheap”.
Your company has developed an application that needs to be able to accept, store, and process images. This application utilizes Azure App Services to host the web app, utilizes OAuth for authentication, and uses a General-Purpose v2 Blob Storage account for the images. You’ve been asked to ensure images uploaded are processed to create a better experience for people viewing from mobile devices by converting them to more manageable sizes & formats. The process should only run when new images are uploaded or updated. What is the best method to achieve this result?
- Use Azure Storage Blob Compression to process images as they come in
- Create a Function that is triggered whenever an upload request comes through the webapp, catching the image before it lands in the Blob Storage Account
- Build an Event Hub trigger event that kicks off a Function that will process the images.
- Build an Azure Function that uses a Blob Storage Trigger for any changes and runs whenever it detects new images or when an image is updated.
-Build an Azure Function that uses a Blob Storage Trigger for any changes and runs whenever it detects new images or when an image is updated.
Polling the blob container for updates creates a simple and efficient method of triggering your function.
Which framework does Azure Durable Functions use?
- Azure Serverless Framework
- .NET Framework
- Azure API Management
- Durable Task Framework
-Durable Task Framework
Durable functions are built on the Durable Task Framework, which provides orchestration, event storming and event sourcing.
Which scenario is best suited for using Azure Container Instances to host your application?
- A legacy application that needs to run on a specific version of Windows Server.
- An application that is expected to scale and grow rapidly.
- An application that is being tested for a small user group in a single region.
- An application that requires native TLS support for the public Internet.
-An application that is being tested for a small user group in a single region.
ACI provides a group of instances, which is a collection of containers that get scheduled on the same host machine. The containers in a container group share a lifecycle, local network, and storage volumes.
Your company has asked you to make an update to one of your ARM Templates that deploys an environment that follows your security compliance standards. You’ve been tasked with updating the SKU that can be used for your Virtual Machines to include Standard_D1_v2 to Standard_E2_v3. Under which Element can you accomplish this?
- Under the “Functions” element
- Under the “Variables” element
- Under the “Parameters” element
- Under the Outputs Element
-Under the “Parameters” element
Parameters is where you can set an array of values that are allowed to be used with your deployments.
When creating a container registry, what Azure CLI command can be used to initiate the process?
- az registry create
- az registry new
- az acr new
- az acr create
-az acr create
This will create a new Azure Container Registry.
How would you retrieve the ARM template for an existing service in Azure, in order to reuse and automate it?
- Lodge a support ticket with Azure Support to have the template generated. This requires a Standard support plan or higher.
- Use the PowerShell cmdlet Export-AzARMTemplate.
- ARM templates can only be retrieved when the resource is created.
- In the Azure Portal use the “Export Template” option.
-In the Azure Portal use the “Export Template” option.
In the “Automation” section you can export the ARM template to exactly duplicate the resource.
There have been some concerns in your company about the security of the Azure Web Apps you are using. Your development manager has asked you to ensure traffic to and from the Web Apps is secure. What is the best way to do this?
- Use a system-assigned managed identity to hide any credentials passing through the network.
- Install an SSL certificate on the App Service itself to encrypt all the web traffic.
- Use Azure Key Vault to protect the database connection and encrypt the certificate credentials.
- Use an App Service deployment slot to redirect traffic through a secure zone.
-Install an SSL certificate on the App Service itself to encrypt all the web traffic.
An SSL certificate is used to encrypt the data passing over the Internet. They can ensure that traffic to and from a Web App is secure.
Which of these is not a required element on an ARM template?
- resources
- $schema
- variables
- contentVersion
-variables
You don’t have to include variables in an ARM template. It is okay, but not very dynamic, to specify everything directly.
You have been asked to deploy a static text file asynchronously to a Web App called acg204 in resource group wizardsRG. Fill in the two missing value in the Azure CLI command.
az webapp _______ –resource-group wizardsRG –name acg204 –src-path SourcePath –type static –async _______
- deploy, true
- deploy, IsAsync
- deployment, IsAsync
- deployment, true
-deploy, true
‘deploy’ deploys a provided artifact to Azure Web Apps. Valid values for –async are ‘true’ and ‘false’.
Which properties do you get when using a Windows Azure Container Instance (ACI) for your application? (Choose 3.)
- A public IP address
- Virtual Network deployment.
- Fully qualified domain name (FQDN)
- Access to the virtual machine running the container
- Greater security for customer data
- Integration with Docker Hub and Azure container registry .
-A public IP address
This is the IP address you can access the container on over the Internet.
-Fully qualified domain name (FQDN)
Your container will get a default FQDN, or you can set up your own using DNS.
-Integration with Docker Hub and Azure container registry .
You can create container instances directly from Docker Hub or ACR. Neat.
Which of the following are valid Azure Function Triggers? (Choose 3.)
- IoT
- HTTP
- Service Bus
- Webhook
- App Service
- JavaScript
-HTTP
A HTTP Trigger is a basic and simple trigger for your Azure Function.
-Service Bus
Use the Service Bus trigger to respond to messages from a Service Bus queue or topic. I like buses.
-Webhook
If an external system supports webhooks, it can be configured to call an Azure Functions Webhook using HTTP and pass on relevant data.
Which of the following languages is NOT supported by Durable Functions?
- PowerShell
- Java
- Javascript
- F#
-Java
Currently, Durable Functions only supports C#, JavaScript, Python, F#, and PowerShell. More languages will be supported over time, but it currently does not support Java.
The new infrastructure you are designing for your new airbending service is using Azure Functions as part of the architecture. The functions will work in conjunction with an App Service hosted on an App Service Plan that runs close to computing capacity. The functions are expected to have minimum use, as they perform a critical but infrequent maintenance task. What is the most cost effective service to host these Functions on?
- Create a new App Service Plan only for the Functions.
- Use a consumption model.
- Scale up the existing App Service Plan and use that.
- Use the existing App Service Plan.
-Use a consumption model.
The first 1 million function requests every month are free on the consumption model.
You are the administrator of the Nutex Corporation. You have created an Azure function in Visual Studio and have uploaded the function to Azure. You want to use the recommended method to monitor the execution of your function app.
Which Azure resource do you have to create after publishing the function app with Visual Studio?
- System Center Operations Manager
- Azure Monitor
- Azure Service Bus
- Application Insights
-Application Insights
You would create the Application Insights resource because the recommended way to monitor the execution of your functions is by integrating your function app with Azure Application Insights. Integrating your function app with Azure
Application Insights is done automatically. When you create your function app during Visual Studio publishing, the integration of your function in Azure is not complete. You need to enable the Application Insights integration manually after publishing the function app.
You would not choose Azure Monitor because this is not the recommended way to monitor the execution of function apps.
You would not choose System Center Operations Manager because it is not used primarily for Azure function apps. Instead, it is an overall monitoring solution.
You would not choose Azure Service Bus because this is a messaging service and not usable for application
monitoring.
Lana has been asked to deploy a complex solution in Azure involving multiple VMs running various custom service applications. She has been asked to do this at least three times because Test, Development, and Production environments are required. The Test and Development solutions will need to be able to be destroyed and recreated regularly, incorporating new data from production each time. The Nutex system administration team is already using Ansible internally to accomplish deployments.
What will Lana need to do to get things started in Azure?
- On each Ansible managed node, Lana will need to install Azure Dependencies using pip.
- Using the Azure Cloud Shell, Lana needs to install the Ansible modules.
- On the Ansible control machine, Lana will need to install Azure Resource Manager modules using pip.
- Working in a local Windows Powershell, Lana will need to install the Ansible modules.
-On the Ansible control machine, Lana will need to install Azure Resource Manager modules using pip.
Lana needs to install Azure Resource Manager modules on the Ansible control machine using pip. The Ansible control machine will need the Azure Resource Manager modules to appropriately communicate with Azure. Using pip allows for an easier managment of Python modules.
She would not use the Azure Cloud Shell to install the Ansible Modules. This is not necessary because the Ansible Modules are already installed in the Azure Cloud Shell.
She would not use a local Windows Powershell to install the Ansible modules. This is not currently possible because the Ansible Control Machine cannot currently run on a Windows PC, and therefore cannot be managed with a Windows Powershell.
She would not install Azure Dependencies on each Ansible managed node using pip. The managed nodes do not need any Azure Dependencies installed, that is one of the biggest selling points! They only require a Python install and SSH access.