Question:- Create a Virtual Machine with Azure CLI.
Answer:- Following is an example how one can create a VM using Azure CLI: az vm create --resource-group myResourceGroupName --name myVM --image Win19Datacenter --public-ip-sku Standard --admin-username AzureuserNAME --admin-password AzurePASSWORD
Question:- How will you execute code with the help of Azure if there is no server?
Answer:- Azure Functions can execute code without a server. These services simplify complex orchestration and challenges. They help connect with other services without hard coding of integrations, which speeds up the development process. Developers can write and focus on the business logic code saving time and effort. Azure Application Insights can help analyze and monitor code performance as well as identify hiccups and failure points across various application components.
Question:- What will you do in case of a drive failure?
Answer:- When a drive failure occurs, the following steps need to be performed: Ensure that the drive is not mounted so that Azure Storage is functioning without fail Replace the drive so that it is remounted and formatted
Question:- What could be the reason for the client application to be disconnected from the cache?
Answer:- There could be two possible reasons: • Client-end • Redeployment of application • Scaling operation by application • Change in the client-side networking layer • Transient errors in the client or network between the client and the server • The crossing of bandwidth threshold limits • Server-end • Azure Redis Cache service had a failover from the primary node to the secondary node • The server instance where the cache was deployed had patching or maintenance
Question:- How can you stop the high load issue on an application in cases of no man support on the flow?
Answer:- Azure VM Scale Sets can be used to define proper configurations and conditions and provide a new VM whenever there is a high load. The VM Scale Sets allows the developer to create and manage a group of load-balanced VMs. The scale sets can be configured in accordance with the demand of the application or a predefined schedule that automatically adjusts the number of VMs. Using scale sets ensures that the applications are highly available and enable the management, updation, and configuration of large VMs centrally. It also supports large-scale application development with big workloads, big data, and compute loads. Azure Scale Sets supports up to 1,000 VMs and 600 VMs for custom VM images.
Question:- What would happen if tone reaches the maximum failed attempts for Azure ID authentication?
Answer:- In this situation, the Azure account will get locked depending on the protocol analyzing the entered password and the IP address from where the login is requested.
Question:- If you have an application running on the on-premise server and Azure East US region has a backup, will you be able to access the application via the Azure environment in case of an on-premise server application access failure?
Answer:- Yes. One can access the application by using the Site Recovery Service by Azure. It is capable of handling fail-over and fail-back scenarios between on-premise servers and Azure environments.
Question:- In case the front-end hosting of an application is done on Azure, if the user needs the database hosting to be done on an on-premise server due to security concerns, how will you handle the Azure connectivity?
Answer:- There are a few possibilities to resolve this: • Azure VNET based point-to-site service can be used to connect one on-premise DB to an Azure-hosted application. This is valid where there are limited resources to be connected via VPN. • In case of more resources for connection, site to site or express routes are the solution. Site to site might cause network latency as the VPN works only via public infrastructure, which is the internet. In that case, express routes can be used as it has a dedicated leased line that solves latency issues. • In case VNET is not preferred, Windows Communication Foundation (WCF) service can be developed and hosted on-premise. It will have CRUD operations intended solely for the database that is hosted on-premise. It uses the service bus relay that can build communication between the Azure-hosted app to the WCF service for database access.
Question:- You have an Azure subscription that contains an Azure Log Analytics workspace. You have a resource group that contains 100 virtual machines. The virtual machines run Linux. You need to collect events from the virtual machines to the log analytics workspace. Which type of data source should be configured in the workspace?
Answer:- The answer is Syslog, which is an event logging protocol that is common to Linux. Applications will send messages that may be stored on the local machine or delivered to a Syslog collector. When the log analytics agent for Linux is installed, it configures the local Syslog daemon to forward messages to the agent. The agent then sends the message to Azure Monitor where a corresponding record is created.
Question:- You create a container image named Image1 on a developer workstation. You plan to create an Azure web app for containers named WebAppContainer that will use Image1. You need to upload Image1 to Azure. The solution must ensure that WebAppContainer can use Image1. To which storage type should you upload Image1?
Answer:- Image1 should be uploaded to the Azure container registry. The registry credentials are configured in the web app. App service needs information about the registry and image to pull the private image. In the Azure portal, go to Container settings from the web app and update the Image source, Registry, and Save.
Question:- You have an Azure subscription that contains 100 virtual machines. You have a set of Pester tests in PowerShell that validate the virtual machine environment. You need to run the tests whenever there is an operating system update on the virtual machines. The solution must minimize implementation time and recurring costs. Which three resources should you use to implement the tests?
Answer:- The three resources to use to implement the test are the Azure Automation runbook, an alert rule, and an alert action group. Azure Automation runbooks can be called by using action groups or by using classic alerts to automate tasks based on alerts. Alerts are one of the key features of Azure Monitor. They allow alerts on actions within an Azure subscription.
Question:- You have an Azure App Service app. You need to implement tracing for the app. The tracing information must include the following:
Answer:- • Usage trends • AJAX call responses • Page load speed by browser server and browser exceptions
Question:- You have an Azure App Service app. What should you do?
Answer:- The Azure Application Insights site extension should be enabled in this scenario. For web pages, Application Insights JavaScript SDK automatically collects AJAX calls as dependencies.
Question:- You have an Azure virtual machine named VM1 and an Azure Active Directory (Azure AD) tenant named adatum.com. VM1 has the following settings:
Answer:- IP address: 10.10.0.10 System-assigned managed identity: On You need to create a script that will run from within VM1 to retrieve the authentication token of VM1. Which address should you use in the script? The answer is 169.254.169.254. The code that is running on the VM can request a token from the Azure Instance Metadata Service identity endpoint, accessible only from within the VM: http://169.254.169.254/metadata/identity/oauth2/token