Contents

AZ-204 Exam

https://learn.microsoft.com/en-us/credentials/certifications/exams/az-204/ Exam Study Guide

Develop Azure compute solutions (25–30%)

Implement containerized solutions

Create and manage container images for solutions Publish an image to Azure Container Registry Run containers by using Azure Container Instance Create solutions by using Azure Container Apps

Implement Azure App Service Web Apps

Create an Azure App Service Web App Enable diagnostics logging Deploy code to a web app Configure web app settings including Transport Layer Security (TLS), API settings, and connection strings Implement autoscaling

Implement Azure Functions

Create and configure an Azure Functions app Implement input and output bindings Implement function triggers by using data operations, timers, and webhooks

Develop for Azure storage (15–20%)

Develop solutions that use Azure Cosmos DB

Perform operations on containers and items by using the SDK Set the appropriate consistency level for operations Implement change feed notifications

Develop solutions that use Azure Blob Storage

Set and retrieve properties and metadata Perform operations on data by using the appropriate SDK Implement storage policies and data lifecycle management Implement static website hosting

Implement Azure security (20–25%)

Implement user authentication and authorization

Authenticate and authorize users by using the Microsoft Identity platform Authenticate and authorize users and apps by using Microsoft Entra ID Create and implement shared access signatures Implement solutions that interact with Microsoft Graph

Implement secure Azure solutions

Secure app configuration data by using App Configuration or Azure Key Vault Develop code that uses keys, secrets, and certificates stored in Azure Key Vault Implement Managed Identities for Azure resources

Monitor, troubleshoot, and optimize Azure solutions (15–20%)

Implement caching for solutions

Configure cache and expiration policies for Azure Cache for Redis Implement secure and optimized application cache patterns including data sizing, connections, encryption, and expiration Implement Azure Content Delivery Network endpoints and profiles

Troubleshoot solutions by using Application Insights

Configure an app or service to use Application Insights Monitor and analyze metrics, logs, and traces Implement Application Insights web tests and alerts

Connect to and consume Azure services and third-party services (15–20%)

Implement API Management

Create an Azure API Management instance Create and document APIs Configure access to APIs Implement policies for APIs

Develop event-based solutions

Implement solutions that use Azure Event Grid Implement solutions that use Azure Event Hub

Develop message-based solutions

Implement solutions that use Azure Service Bus Implement solutions that use Azure Queue Storage queues

Azure Compute

Azure compute is an on-demand computing services for running cloud based applications.

  • Azure Virtual Machines
  • Azure Container Instances
  • Azure App Service
  • Azure Functions (or serverless computing)

Azure Virtual Machines (VMs)

Virtual Machines are virtual computer systems. They include

  • Virtual processor
  • Memory
  • Storage
  • Networking resources VMs host an opertaing system, and we can install and run softwares on the VMs just like a physical computer. VMs provide IaaS (infrastructure as a service).

Storage

  • OS Disk
  • Data Disk
  • Temporary Disk (instance)
  • Unmanaged vs managed

Operating System

  • Windows
  • Linux

Connections to VMs

  • RDP
  • SSH

Region


OS Type (OS Only) Tier (Standered) Category ( General Purpose | Compute Optimized) Instance Series Instance Number of VM

Virtual machine scale sets

Virtual machine scale sets are like image of an operating system

Eventhub

  • Configure resource group and location.
1
az configure --defaults group=[sandbox Resource Group] location=westus2
  • Create Eventhub namespace
1
az eventhubs namespace create --name $NS_NAME
  • Fetch authorization key and connectionstring
1
2
3
az eventhubs namespace authorization-rule keys list \
    --name RootManageSharedAccessKey \
    --namespace-name $NS_NAME
  • Create Eventhub
1
az eventhubs eventhub create --name $HUB_NAME --namespace-name $NS_NAME
  • Show eventhub
1
az eventhubs eventhub show --namespace-name $NS_NAME --name $HUB_NAME

Connecting to eventhub ** To Publishing Message** Following eventhub details are required for sending event to eventhub:

  1. Event hub namespace name
  2. Event hub name
  3. Shared access policy name
  4. Primary shared access key

** Receive messages from an Event Hub**

Following eventhub details are required:

  1. Event hub namespace name
  2. Event hub name
  3. Shared access policy name
  4. Primary shared access key
  5. Storage account name
  6. Storage account connection string
  7. Storage account container name
1
az storage account create --name $STORAGE_NAME --sku Standard_RAGRS --encryption-service blob

Retrieve the storage account key.

1
az storage account keys list --account-name $STORAGE_NAME

Retrieve the connection string for an Azure Storage account.

1
az storage account show-connection-string -n $STORAGE_NAME

Creates a new container in a storage account.

1
az storage container create --name messages --connection-string "<connection string here>"