quiz image

Microsoft AZ-204 Certification Practice Exam

ScenicTriangle avatar
ScenicTriangle
·
·
Download

Start Quiz

Study Flashcards

108 Questions

Does configuring Basic gateway credentials for the Azure resource meet the goal of configuring back-end authentication for the API Management service instance?

Yes

Does configuring Client cert gateway credentials for the HTTP(s) endpoint meet the goal of configuring back-end authentication for the API Management service instance?

Yes

Does configuring Basic gateway credentials for the HTTP(s) endpoint meet the goal of configuring back-end authentication for the API Management service instance?

Yes

Does configuring Client cert gateway credentials for the Azure resource meet the goal of configuring back-end authentication for the API Management service instance?

No

What should you configure to allow an Azure .NET Core MVC application to search for holiday accommodation venues within a specific price range and proximity to an airport using Azure Search?

Configure the Filter property of the SearchParameters class

What should you use to edit workflows for an existing Logic App?

the Logic Apps Designer

How should you complete the Azure Resource Manager template to ensure the VMSS is not created until the storage accounts have been successfully created?

Use dependsOn property

Match the following consistency levels with their descriptions:

Strong = Guarantees linearizability Bounded staleness = Honors the consistent-prefix guarantee Eventual = No ordering guarantee for reads

What are two possible ways to run the static generation script before an Azure Web App starts serving traffic?

Add a PreBuild target in the csproj project file

Match the features with the requirements to automatically configure the firewall and install services for an Azure virtual machine-based application:

Run Command = Automatically configure firewall on VM provision Custom Script Extension = Install supporting services using Azure PowerShell script

You develop an HTTP triggered Azure Function app that continues to time out after four minutes. What solution should be implemented to ensure the app does not time out and processes the blob data?

Pass HTTP trigger payload to an Azure Service Bus queue

You need to design a process to start the photo processing for images uploaded to Azure Storage Blob storage. What solution should be used?

Move photo processing to an Azure Function triggered from the blob upload

To read transaction logs asynchronously for changes in Azure Blob storage, what should you do?

Enable the change feed on the storage account

How should you configure an Azure Function App to process images uploaded to an Azure Blob container with minimal latency?

Use an App Service plan with Azure Blob Storage trigger

You need to ensure that the customer ID of the signed in user is associated with all operations throughout the overall system. What should you do?

On the current SpanContext, set the TraceId to the customer ID for the signed in user

You are building a SaaS application that analyzes DNA data on Azure VMs in an availability zone. The data is stored on managed disks. How should you provision the managed disk to maximize performance while meeting the requirements?

Premium SSD

When developing an application with two Docker containers to be deployed to Azure Container Instances, which configuration values should you use to ensure shared lifecycle, resources, local network, and persistent storage volume?

Azure Files, Root access

When configuring the App Service plan for an ASP.NET Core web service running on Azure Web App with an on-premises SQL Server database, how should you configure the plan to ensure singleton WebJob instances, testing with deployment slots, minimized costs, and isolated resources?

Number of VM instances: 4, Pricing tier: Isolated

To configure Kubernetes Custom Resource Definitions for migrating an Azure Function to Kubernetes with KEDA, you should configure ________ and ________.

Deployment, ScaledObject

Triggering the photo processing from Blob storage events is the suitable solution for ensuring that the process starts in less than one minute.

False

Updating the web.config file to include the applicationInitialization configuration element is a suitable solution to ensure scripts run and resources are available before a swap operation occurs.

True

Enabling auto swap for the Testing slot and deploying the app to the Testing slot is a suitable solution to ensure that scripts run and resources are available before a swap operation occurs.

False

You manage an Azure SQL database that allows for Azure AD authentication. You want database developers to connect to the SQL database via Microsoft SQL Server Management Studio using their on-premises Active Directory account for authentication with minimal prompts. What should you implement?

Active Directory integrated authentication

You are developing an application to transfer data between on-premises file servers and Azure Blob storage. How can you configure the application to allow recovery of an accidental deletion of the key vault or key vault objects for 90 days after deletion?

Run the az keyvault update --enable-soft-delete true --enable-purge-protection true CLI

You are configuring a web app that delivers streaming video to users with continuous integration and deployment. Does including Azure Redis Cache in your design meet the goal of ensuring high availability and a constant streaming experience for users?

No

You are configuring a web app that delivers streaming video to users with continuous integration and deployment. Does including an Azure Content Delivery Network (CDN) in your design meet the goal?

Yes

You are configuring a web app that delivers streaming video to users with continuous integration and deployment. Does including a Storage Area Network (SAN) in your design meet the goal?

No

You develop a Web App on a tier D1 app service plan and notice increased page load times during peak traffic. What should you do first to implement automatic scaling when CPU load is above 80 percent?

Switch to the Standard App Service tier plan

Your company's Azure subscription includes an Azure Log Analytics workspace linked to on-premises servers. You need to configure alerts based on performance counters associated with security. Which signal type should you use when creating the alert rules?

The Metric signal type

You are developing a .NET Core MVC application that uses Azure Search to search documents related to accommodation with regular expressions. What should you configure in the SearchParameters class to allow customers to search the index using regular expressions?

Configure the QueryType property

You need to update the definitions for an existing Logic App. Which tool should you use?

The Logic App Code View

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?

From the Redeploy blade, click Redeploy.

To deploy the YAML manifest file for an application in an Azure Kubernetes Service (AKS) cluster, you can use the command 'kubectl apply -f myapp.yaml'.

True

To deploy a YAML manifest file for an application in an Azure Kubernetes Service (AKS) cluster, running 'docker run -it microsoft/azure-cli:0.10.17' meets the goal.

No

In a web app named WebApp1, designed to automatically invoke a function in the code every time new data is received in a queue, which service should be used?

WebJobs

When deploying Azure virtual machines through Azure Resource Manager (ARM) templates in a single availability set, what value should be configured for the platformFaultDomainCount property?

Max Value

When deploying Azure virtual machines to a subscription using ARM templates in a single availability set, what value should be configured for the platformUpdateDomainCount property?

20

In migrating MongoDB to an Azure Cosmos DB account, which strategy should include using the mongorestore tool?

mongorestore

To secure sign-ins to an e-Commerce Web App using Azure Key Vault with Azure App Service authentication and Azure Active Directory, what should be done on the e-Commerce Web App?

Enable Managed Service Identity (MSI).

In setting up a conditional access policy for all users to implement multi-factor authentication when accessing the Azure portal, which settings should be configured?

Users and Groups

When creating an Azure key vault using PowerShell and needing to keep deleted objects for 90 days, which parameters must be used?

EnableSoftDelete

You develop a software as a service (SaaS) offering to manage photographs. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. You plan to create an Azure Function app triggered from the blob upload. Will this solution meet the goal?

No

You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot. 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. Will the provided solution meet the goal?

Yes

You are developing a web app protected by Azure Web Application Firewall (WAF), and all traffic is routed through an Azure Application Gateway. To configure the Azure Application Gateway correctly, what are the two actions you should perform?

In the Azure Application Gateway's HTTP setting, enable the Use for App service setting

You develop a SaaS offering where users upload photos to an Azure Blob Storage account. The photos must be processed in less than a minute to create a mobile-friendly version. You plan to use the Azure Blob Storage change feed to trigger the processing. Will this solution meet the goal?

No

Does the solution provided meet the goal of ensuring that scripts run and resources are available before a swap operation occurs?

No

Does converting the Azure Storage account to a BlockBlobStorage storage account meet the goal of producing a mobile-friendly version of the image starting under one minute?

No

For a website expecting high traffic volumes in Azure, what is the best deployment option to ensure availability, responsiveness, and cost efficiency?

Deploy the website to an App Service using the Standard service tier

You need to provision the managed disk for the VM to maximize performance while meeting the requirements in the provided scenario. What type of Azure Managed Disk should you use?

Premium SSD

How should you configure Azure Container Instances for the application as described in the content?

EmtpyDir

You need to configure the App Service plan for the Web App in the provided scenario. Set the number of VM instances to ____ and choose the Pricing tier as Isolated for an Azure Web App with the described requirements.

4

Match the following Kubernetes Custom Resource Definitions (CRD) with their appropriate descriptions based on the context provided:

Deployment = To deploy Azure Functions to Kubernetes with scaling attributes ScaledObject = Controls polling interval for checking Azure Service Bus Queue Secret = Used to store connection strings in Kubernetes Secrets

How should you complete the CLI script for creating an Azure web app and deploying code from GitHub based on the provided information?

az appservice plan create

In the scenario where photos are uploaded for processing, is triggering the photo processing from Blob storage events a suitable solution?

False

In the scenario where Azure App Service API app deployment slots are used, is updating the web.config file for custom initialization actions a suitable way to ensure scripts run before a swap operation?

True

When enabling auto swap for the Testing slot and deploying the app to the Testing slot, does this approach ensure that scripts run and resources are available before a swap operation?

False

Does configuring Basic gateway credentials for the Azure resource meet the goal of configuring backend authentication for the API Management service instance?

Yes

Does configuring Client cert gateway credentials for the Azure resource meet the goal of configuring backend authentication for the API Management service instance?

Yes

Does configuring Basic gateway credentials for the HTTP(s) endpoint meet the goal of configuring backend authentication for the API Management service instance?

Yes

Does configuring Client cert gateway credentials for the Azure resource meet the goal of configuring backend authentication for the API Management service instance?

No

When developing a .NET Core MVC application that needs to list holiday accommodation venues within a specific price range and distance to an airport using Azure Search, which property of the SearchParameters class should be configured?

Filter

To edit workflows for an existing Logic App, which tool should be used?

the Logic Apps Designer

In what sequence should the actions be performed to import data into Azure Search using the Azure Search .NET SDK? ______

  1. Populate the index 2. Create the indexBatch with the documents 3. Populate the newly-created index

To monitor authentication events and process sign-outs as quickly as possible in an Azure Event Grid scenario, what should be done?

Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events

When configuring Azure Functions to compile to a native application named process.exe that supports HTTP requests, which options should be completed in the json files?

Does the solution meet the goal of ensuring that scripts run and resources are available before a swap operation occurs?

No

Does converting the Azure Storage account to a BlockBlobStorage storage account meet the goal of producing a mobile-friendly version of the image in less than one minute?

No

When deploying a website in Azure to handle high traffic volumes while minimizing cost, what should you do?

Deploy the website to an App Service using the Standard service tier and configure it to automatically scale

You are developing a web application that runs as an Azure Web App. The web application stores data in Azure SQL Database and files in an Azure Storage account. The web application makes HTTP requests to external services and is instrumented with Application Insights. The external services are OpenTelemetry compliant. How can you ensure that the customer ID of the signed-in user is associated with all operations in the system?

On the current SpanContext, set the TraceId to the customer ID for the signed-in user

You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app continues to time out after four minutes. You need to ensure the app does not time out and processes the blob data. Should you use the Durable Function async pattern for processing the blob data?

Yes

You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app continues to time out after four minutes. You need to ensure the app does not time out and processes the blob data. Should you pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function?

Yes

You plan to create a Docker image that runs an ASP.NET Core application named ContosoApp. You need to create a Dockerfile that calls setupScript.ps1 when the container is built and runs ContosoApp.dll when the container starts. Which five commands should you use to develop the solution?

FROM

You are developing an Azure Function App that processes images uploaded to an Azure Blob container to minimize latency. What configuration should you choose?

Use an App Service plan with an Azure Blob Storage trigger

When setting up a new development environment for a Java application that requires a Virtual Machine Scale Set (VMSS), several storage accounts, and networking components, which Azure service should be used for the VMSS?

Azure Virtual Machines

You manage an Azure SQL database that allows for Azure AD authentication. You need to make sure that database developers can connect to the SQL database via Microsoft SQL Server Management Studio (SSMS). You also need to make sure the developers use their on-premises Active Directory account for authentication. Your strategy should allow for authentication prompts to be kept to a minimum. Which of the following should you implement?

Active Directory integrated authentication

You are developing an application to transfer data between on-premises file servers and Azure Blob storage. The application stores keys, secrets, and certificates in Azure Key Vault and makes use of the Azure Key Vault APIs. You want to configure the application to allow recovery of an accidental deletion of the key vault or key vault objects for 90 days after deletion. What should you do?

Run the az keyvault update --enable-soft-delete true --enable-purge-protection true CLI

You have two Hyper-V hosts named Host1 and Host2. Host1 has an Azure virtual machine named VM1 deployed by using a custom Azure Resource Manager template. You need to move VM1 to Host2. What should you do?

From the Redeploy blade, click Redeploy.

To deploy the YAML manifest file for an application in an Azure Kubernetes Service (AKS) cluster managed from an Azure AD-joined device, you can use the 'kubectl apply -f myapp.yaml' command.

True

To deploy the YAML manifest file for an application in an Azure Kubernetes Service (AKS) cluster managed from an Azure AD-joined device, using docker run -it microsoft/azure-cli:0.10.17 command meets the goal. Is this statement correct?

No

In a Web App using the WebJobs SDK for triggered App Service background tasks, which service should be used for processing queue data items?

WebJobs

When deploying Azure virtual machines using ARM templates in an availability set, what value should be configured for the platformFaultDomainCount property for maximum accessibility in case of fabric failure or maintenance?

Max Value

To ensure maximum accessibility of Azure virtual machines in an availability set during fabric failure or maintenance, what value should be configured for the platformUpdateDomainCount property?

20

When migrating MongoDB to an Azure Cosmos DB account, which tool should be included in the migration strategy?

mongorestore

For securing sign-ins using Azure App Service authentication and Azure Active Directory in an e-Commerce Web App, what should be done on the Web App?

Enable Managed Service Identity (MSI).

To implement multi-factor authentication through a conditional access policy for accessing the Azure portal, which settings should be configured?

Users and Groups, Cloud Apps, MFA Requirement

When creating an Azure Key Vault using PowerShell with a requirement to retain deleted objects for 90 days, which parameters should be used?

EnableSoftDelete

How should you complete the Azure Resource Manager template to ensure the VMSS is created only after the storage accounts, load balancer, and virtual network are successfully configured?

dependsOn

What are two possible ways to run the static generation script before an Azure Web App starts serving traffic from a GitHub repository using continuous deployment?

Create a file named .deployment in the root of the repository that calls a script to generate the static content and deploy the website

Does creating an Azure Function app using the Consumption hosting model meet the goal of starting the photo processing within one minute?

No

Does updating the Azure App Service API app with a method named statuscheck and configuring WEBSITE_SWAP_WARMUP_PING_PATH and WEBSITE_SWAP_WARMUP_PING_STATUSES settings meet the goal of ensuring scripts run and resources are available before a swap operation?

Yes

Which actions should you perform to configure the Azure Application Gateway for an Azure Web App protected by WAF and requiring SSL? (Select two)

In the Azure Application Gateway's HTTP setting, enable the Use for App service setting

Does using the Azure Blob Storage change feed to trigger photo processing meet the goal of starting the photo processing within one minute?

No

Does the solution meet the goal?

Yes

Does the solution meet the goal?

Yes

Does the solution meet the goal?

Yes

Does the solution meet the goal?

No

What should you do?

Configure the Filter property of the SearchParameters class

What should you use?

the Logic Apps Designer

What should you do?

Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events

You need to make sure that database developers can connect to the SQL database via Microsoft SQL Server Management Studio (SSMS) using their on-premises Active Directory account. Your strategy should allow for authentication prompts to be kept to a minimum. Which of the following should you implement?

Active Directory integrated authentication

You want to configure the application to allow recovery of an accidental deletion of the key vault or key vault objects for 90 days after deletion. What should you do?

Run the az keyvault update --enable-soft-delete true --enable-purge-protection true CLI

You are configuring a web app that delivers streaming video to users, aiming for high availability and low latency. You include the use of Azure Redis Cache in your design. Does the solution meet the goal?

No

You are configuring a web app that delivers streaming video to users, aiming for high availability and low latency. You include the use of an Azure Content Delivery Network (CDN) in your design. Does the solution meet the goal?

Yes

You are configuring a web app that delivers streaming video to users, aiming for high availability and low latency. You include the use of a Storage Area Network (SAN) in your design. Does the solution meet the goal?

No

You develop a Web App on a tier D1 app service plan and notice increased page load times during peak traffic. You want to implement automatic scaling when CPU load is above 80 percent. What should you do first?

Switch to the Standard App Service tier plan

You must configure alerts based on performance counters associated with security from a Log Analytics workspace on on-premises servers. The alerts need to allow for dimensions and a single notification at alert creation and resolution time. Which signal type should you use?

The Metric signal type

You want to implement Azure Search in a .NET Core MVC application to allow customers to search the index using regular expressions. What should you configure?

Configure the QueryType property of the SearchParameters class

When updating the definitions for an existing Logic App, what should you use?

the Logic App Code View

Study Notes

Here are the study notes for the text:

Microsoft Azure Certification Exam (AZ-204)

  • Developing Solutions for Microsoft Azure
  • Total: 397 questions

Moving a Virtual Machine (VM) to a Different Host

  • Use the Redeploy blade to move a VM to a new node within the Azure infrastructure
  • Retains all configuration options and associated resources

Securely Storing a Password in an Azure Resource Manager (ARM) Template

  • Use Key Vault to create a secret containing a password
  • Use an Access Policy to allow access to the created secret

Deploying an Application from a YAML Manifest File

  • Use the Azure CLI command kubectl apply -f myapp.yaml to apply a configuration change to a resource

Creating an Azure Cosmos DB Account

  • Use the SQL API for data added to the account every day by a web application
  • Configure a function app to use Azure Cosmos DB to send email notifications and reduce compute cost

Migrating MongoDB to Azure Cosmos DB

  • Use the Data Management Gateway tool in the migration strategy
  • Use mongorestore to migrate MongoDB to Azure Cosmos DB

Securing Sign-ins to an e-Commerce Web App

  • Use Azure Key Vault to ensure secure sign-ins
  • Enable Managed Service Identity (MSI) for Azure App Service authentication and Azure Active Directory (AAD)

Registering a Mobile Application in Azure AD

  • Register the mobile application in Azure AD
  • Provide a redirect URI for registration purposes

Creating an Azure Key Vault

  • Use EnablePurgeProtection and EnableSoftDelete parameters to retain deleted objects for a specified period
  • Enable soft-delete to retain deleted vaults and objects for 90 days by default

Implementing Multi-Factor Authentication

  • Use a conditional access policy with multi-factor authentication
  • Apply the policy to all users when they access the Azure portal

Connecting to an Azure SQL Database

  • Use Active Directory integrated authentication for authentication
  • Use an Azure AD identity to connect using SQL Server Management Studio (SSMS) or SQL Server Data Tools (SSDT)

Recovering a Deleted Key Vault or Object

  • Use az keyvault update --enable-soft-delete true --enable-purge-protection true CLI command
  • Enable soft-delete and purge protection for 90 days by default

Configuring a Web App for High Availability

  • Use an Azure Content Delivery Network (CDN) to store data in a geographic location nearest to the user
  • Use Azure Redis Cache to improve performance and availability

Implementing Automatic Scaling

  • Use the Standard App Service tier to support auto-scaling
  • Enable autoscaling on the web app and add a scale rule to scale when CPU load is above 80 percent### Azure Log Analytics
  • To configure alerts in Azure Log Analytics, you should use the Metric signal type.
  • Metric alerts work on a range of multi-dimensional platform metrics, custom metrics, Application Insights standard and custom metrics.
  • To allow customers to search the index by using regular expressions, you should configure the QueryType property of the SearchParameters class.
  • You can write queries against Azure Search based on the rich Lucene Query Parser syntax for specialized query forms.
  • To filter the search results by specific criteria, such as a price range and distance to an airport, you should configure the Filter property of the SearchParameters class.

Logic Apps

  • To update the definitions for an existing Logic App, you should use the Logic App Code View.
  • The Logic App Code View allows you to edit the Logic App definition in JSON format.

API Management

  • To configure back-end authentication for the API Management service instance, you can use Basic gateway credentials or Client cert gateway credentials depending on the specific requirements.
  • Basic gateway credentials can be used for the Azure resource or the HTTP(s) endpoint.
  • Client cert gateway credentials can be used for the HTTP(s) endpoint.

Azure Search Indexing

  • To import data into the Azure Search index using the Azure Search .NET SDK, you should:
    • Create a SearchIndexClient to populate the index.
    • Create an IndexBatch with the documents to upload.
    • Use the IndexBatch to upload the documents to the index.

Azure Event Grid

  • To process authentication events in a stateful ASP.NET Core web application, you should:
    • Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.
    • Use the Azure Event Grid handler to process the events.

Azure Functions

  • To deploy a native application as an Azure Function, you should:
    • Configure the host.json file with details on how to run the web server via the customHandler section.
    • Set "enableForwardingHttpRequest" to false in the host.json file.

Azure Static Web Apps

  • To ensure that users can view training material pages after authentication in an Azure Static Web App, you should:
    • Configure the Azure AD authentication in the configuration file.

Azure Resource Manager Templates

  • To store templates in Azure for later deployment, you should:
    • Use the Azure Resource Manager templates to store the templates in Azure.
    • Enable versioning of the templates.
    • Manage access to the templates by using Azure RBAC.

Azure Web PubSub

  • To implement the bindings for an Azure Function App using the JSON WebSocket subprotocol, you should:
    • Configure the binding for the Azure Function App to use the JSON WebSocket subprotocol.

Azure Virtual Machines

  • To maximize performance while meeting the requirements for a DNA analysis SaaS application, you should:
    • Use Premium SSD managed disks with zone redundancy (ZRS) for high performance and redundancy.### Azure App Service Environment (ASE)
  • ASE is a feature of Azure App Service that provides network isolation and improved scale capabilities.
  • It is essentially a deployment of the Azure App Service into a subnet of a customer's Azure Virtual Network (VNet).

Azure Function and Kubernetes

  • To deploy Azure Functions to Kubernetes, use the func kubernetes deploy command.
  • The command has several attributes that directly control how the app scales once it is deployed to Kubernetes.
  • Use ScaledObject to control the interval used by KEDA to check Azure Service Bus Queue for messages.
  • Store connection strings in Kubernetes Secrets.

Azure Web App and GitHub Deployment

  • To deploy code from GitHub to a newly created web app, use the az webapp deployment source command.
  • Configure the deployment source with the --repo-url and --git-token options.

Azure Blob Storage Events

  • Azure Storage events allow applications to react to events.
  • Common Blob storage event scenarios include image or video processing, search indexing, or any file-oriented workflow.
  • Only storage accounts of kind StorageV2 (general-purpose v2) and BlobStorage support event integration.
  • Storage (general-purpose v1) does not support integration with Event Grid.

Azure App Service Deployment Slots

  • To ensure that scripts run and resources are available before a swap operation occurs, update the web.config file to include the applicationInitialization configuration element.
  • Specify custom initialization actions to run the scripts.
  • Enabling auto swap on a deployment slot does not ensure that scripts run and resources are available before a swap operation occurs.

TLS Mutual Authentication

  • To validate the client certificate in a web app, access the client certificate from App Service.
  • Configure your app to use client certificate authentication.
  • The client certificate will be available through the HttpRequest.ClientCertificate property.

Azure CLI Commands

  • Use the az group create command to create a resource group.
  • Use the az appservice plan create command to create an App Service plan.
  • Use the az webapp create command to create a web app.
  • Use the az webapp config container set command to configure a Docker container.
  • Use the az webapp config hostname add command to add a custom hostname.

Azure Key Vault and Azure Functions

  • To grant an Azure Functions application access to an Azure Key Vault, create a system-assigned identity for the Azure Functions application.
  • Create an access policy in Azure Key Vault.

High-Traffic Website Deployment

  • To deploy a website that expects high traffic volumes, use an App Service that uses the Standard service tier.
  • Configure the App Service plan to automatically scale when the CPU load is high.

Java Web App Deployment

  • To deploy a Java web app, create a resource group, an App Service plan, and a web app.
  • Create a deployment slot with the name "staging".
  • Deploy the code from GitHub to the "staging" slot.

Here are the study notes for the text:

Microsoft Azure Certification Exam (AZ-204)

  • Developing Solutions for Microsoft Azure
  • Total: 397 questions

Moving a Virtual Machine (VM) to a Different Host

  • Use the Redeploy blade to move a VM to a new node within the Azure infrastructure
  • Retains all configuration options and associated resources

Securely Storing a Password in an Azure Resource Manager (ARM) Template

  • Use Key Vault to create a secret containing a password
  • Use an Access Policy to allow access to the created secret

Deploying an Application from a YAML Manifest File

  • Use the Azure CLI command kubectl apply -f myapp.yaml to apply a configuration change to a resource

Creating an Azure Cosmos DB Account

  • Use the SQL API for data added to the account every day by a web application
  • Configure a function app to use Azure Cosmos DB to send email notifications and reduce compute cost

Migrating MongoDB to Azure Cosmos DB

  • Use the Data Management Gateway tool in the migration strategy
  • Use mongorestore to migrate MongoDB to Azure Cosmos DB

Securing Sign-ins to an e-Commerce Web App

  • Use Azure Key Vault to ensure secure sign-ins
  • Enable Managed Service Identity (MSI) for Azure App Service authentication and Azure Active Directory (AAD)

Registering a Mobile Application in Azure AD

  • Register the mobile application in Azure AD
  • Provide a redirect URI for registration purposes

Creating an Azure Key Vault

  • Use EnablePurgeProtection and EnableSoftDelete parameters to retain deleted objects for a specified period
  • Enable soft-delete to retain deleted vaults and objects for 90 days by default

Implementing Multi-Factor Authentication

  • Use a conditional access policy with multi-factor authentication
  • Apply the policy to all users when they access the Azure portal

Connecting to an Azure SQL Database

  • Use Active Directory integrated authentication for authentication
  • Use an Azure AD identity to connect using SQL Server Management Studio (SSMS) or SQL Server Data Tools (SSDT)

Recovering a Deleted Key Vault or Object

  • Use az keyvault update --enable-soft-delete true --enable-purge-protection true CLI command
  • Enable soft-delete and purge protection for 90 days by default

Configuring a Web App for High Availability

  • Use an Azure Content Delivery Network (CDN) to store data in a geographic location nearest to the user
  • Use Azure Redis Cache to improve performance and availability

Implementing Automatic Scaling

  • Use the Standard App Service tier to support auto-scaling
  • Enable autoscaling on the web app and add a scale rule to scale when CPU load is above 80 percent### Azure Log Analytics
  • To configure alerts in Azure Log Analytics, you should use the Metric signal type.
  • Metric alerts work on a range of multi-dimensional platform metrics, custom metrics, Application Insights standard and custom metrics.

Azure Search

  • To allow customers to search the index by using regular expressions, you should configure the QueryType property of the SearchParameters class.
  • You can write queries against Azure Search based on the rich Lucene Query Parser syntax for specialized query forms.
  • To filter the search results by specific criteria, such as a price range and distance to an airport, you should configure the Filter property of the SearchParameters class.

Logic Apps

  • To update the definitions for an existing Logic App, you should use the Logic App Code View.
  • The Logic App Code View allows you to edit the Logic App definition in JSON format.

API Management

  • To configure back-end authentication for the API Management service instance, you can use Basic gateway credentials or Client cert gateway credentials depending on the specific requirements.
  • Basic gateway credentials can be used for the Azure resource or the HTTP(s) endpoint.
  • Client cert gateway credentials can be used for the HTTP(s) endpoint.

Azure Search Indexing

  • To import data into the Azure Search index using the Azure Search .NET SDK, you should:
    • Create a SearchIndexClient to populate the index.
    • Create an IndexBatch with the documents to upload.
    • Use the IndexBatch to upload the documents to the index.

Azure Event Grid

  • To process authentication events in a stateful ASP.NET Core web application, you should:
    • Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.
    • Use the Azure Event Grid handler to process the events.

Azure Functions

  • To deploy a native application as an Azure Function, you should:
    • Configure the host.json file with details on how to run the web server via the customHandler section.
    • Set "enableForwardingHttpRequest" to false in the host.json file.

Azure Static Web Apps

  • To ensure that users can view training material pages after authentication in an Azure Static Web App, you should:
    • Configure the Azure AD authentication in the configuration file.

Azure Resource Manager Templates

  • To store templates in Azure for later deployment, you should:
    • Use the Azure Resource Manager templates to store the templates in Azure.
    • Enable versioning of the templates.
    • Manage access to the templates by using Azure RBAC.

Azure Web PubSub

  • To implement the bindings for an Azure Function App using the JSON WebSocket subprotocol, you should:
    • Configure the binding for the Azure Function App to use the JSON WebSocket subprotocol.

Azure Virtual Machines

  • To maximize performance while meeting the requirements for a DNA analysis SaaS application, you should:
    • Use Premium SSD managed disks with zone redundancy (ZRS) for high performance and redundancy.### Azure App Service Environment (ASE)
  • ASE is a feature of Azure App Service that provides network isolation and improved scale capabilities.
  • It is essentially a deployment of the Azure App Service into a subnet of a customer's Azure Virtual Network (VNet).

Azure Function and Kubernetes

  • To deploy Azure Functions to Kubernetes, use the func kubernetes deploy command.
  • The command has several attributes that directly control how the app scales once it is deployed to Kubernetes.
  • Use ScaledObject to control the interval used by KEDA to check Azure Service Bus Queue for messages.
  • Store connection strings in Kubernetes Secrets.

Azure Web App and GitHub Deployment

  • To deploy code from GitHub to a newly created web app, use the az webapp deployment source command.
  • Configure the deployment source with the --repo-url and --git-token options.

Azure Blob Storage Events

  • Azure Storage events allow applications to react to events.
  • Common Blob storage event scenarios include image or video processing, search indexing, or any file-oriented workflow.
  • Only storage accounts of kind StorageV2 (general-purpose v2) and BlobStorage support event integration.
  • Storage (general-purpose v1) does not support integration with Event Grid.

Azure App Service Deployment Slots

  • To ensure that scripts run and resources are available before a swap operation occurs, update the web.config file to include the applicationInitialization configuration element.
  • Specify custom initialization actions to run the scripts.
  • Enabling auto swap on a deployment slot does not ensure that scripts run and resources are available before a swap operation occurs.

TLS Mutual Authentication

  • To validate the client certificate in a web app, access the client certificate from App Service.
  • Configure your app to use client certificate authentication.
  • The client certificate will be available through the HttpRequest.ClientCertificate property.

Azure CLI Commands

  • Use the az group create command to create a resource group.
  • Use the az appservice plan create command to create an App Service plan.
  • Use the az webapp create command to create a web app.
  • Use the az webapp config container set command to configure a Docker container.
  • Use the az webapp config hostname add command to add a custom hostname.

Azure Key Vault and Azure Functions

  • To grant an Azure Functions application access to an Azure Key Vault, create a system-assigned identity for the Azure Functions application.
  • Create an access policy in Azure Key Vault.

High-Traffic Website Deployment

  • To deploy a website that expects high traffic volumes, use an App Service that uses the Standard service tier.
  • Configure the App Service plan to automatically scale when the CPU load is high.

Java Web App Deployment

  • To deploy a Java web app, create a resource group, an App Service plan, and a web app.
  • Create a deployment slot with the name "staging".
  • Deploy the code from GitHub to the "staging" slot.

Practice for Microsoft Azure certification exam AZ-204 with 397 questions. Get ready to pass with CertyIQ's premium exam material.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser