Question.1 Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The cluster is located in a resource group. Developers have created an application named MyApp. MyApp was packaged into a container image. You need to deploy the YAML manifest file for the application. Solution: You install the Azure CLI on the device and run the kubectl apply `”f myapp.yaml command. Does this meet the goal? (A) Yes (B) No |
1. Click here to View Answer
Answer is (A) Yes
The solution provided involves using kubectl, which is the Kubernetes command-line tool, to apply the YAML manifest file (myapp.yaml) for deploying the application. Since you’re managing the AKS cluster from an Azure AD-joined device and have the Azure CLI installed, running kubectl apply -f myapp.yaml command will deploy the application to the AKS cluster. This is a common and valid method for deploying applications to Kubernetes clusters, including AKS.
Reference:
https://www.devspace.sh/docs/configuration/deployments/kubectl/inline_manifests
Question.2 Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The cluster is located in a resource group. Developers have created an application named MyApp. MyApp was packaged into a container image. You need to deploy the YAML manifest file for the application. Solution: You install the docker client on the device and run the docker run -it microsoft/azure-cli:0.10.17 command. Does this meet the goal? (A) Yes (B) No |
2. Click here to View Answer
Answer is (B) No
docker run -it microsoft/azure-cli:0.10.17 is no k8s command
The provided solution is incorrect for deploying the YAML manifest file for the application (MyApp) to the Azure Kubernetes Service (AKS) cluster. Using the Docker client (docker run -it microsoft/azure-cli:0.10.17 command) would only allow you to interact with Docker containers, not Kubernetes clusters.
To deploy the YAML manifest file for the application to the AKS cluster, you should use the Kubernetes command-line tool (kubectl) rather than the Docker client. Therefore, the solution provided does not meet the goal.
Question.3 Your company has a web app named WebApp1. You use the WebJobs SDK to design a triggered App Service background task that automatically invokes a function in the code every time new data is received in a queue. You are preparing to configure the service processes a queue data item. Which of the following is the service you should use? (A) Logic Apps (B) WebJobs (C) Flow (D) Functions |
3. Click here to View Answer
Answer is (B) WebJobs
The scenario described suggests that you’re using the WebJobs SDK to create a triggered background task that processes data from a queue. Therefore, the correct service to use for this purpose is: WebJobs
WebJobs allow you to run scripts or programs as background processes alongside your web app in Azure App Service. They can be triggered by various sources, including queues, blobs, and timers. In this case, since you’re triggering a function every time new data is received in a queue, WebJobs would be the appropriate service to configure and manage this process.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-compare-logic-apps-ms-flow-webjobs
Question.4 Your company has an Azure subscription. You need to deploy a number of Azure virtual machines to the subscription by using Azure Resource Manager (ARM) templates. The virtual machines will be included in a single availability set. You need to ensure that the ARM template allows for as many virtual machines as possible to remain accessible in the event of fabric failure or maintenance. Which of the following is the value that you should configure for the platformUpdateDomainCount property? (A) 10 (B) 20 (C) 30 (D) 40 |
4. Click here to View Answer
Answer is (B) 20
Each availability set can be configured with up to three fault domains. The maximum value you can configure for platformUpdateDomainCount is 20. This means that virtual machines within the availability set will be spread across 20 update domains. By setting this value to the maximum, you ensure that the virtual machines are distributed optimally for availability during maintenance or update operations.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/availability-set-overview
Question.5 You are creating an Azure Cosmos DB account that makes use of the SQL API. Data will be added to the account every day by a web application. You need to ensure that an email notification is sent when information is received from IoT devices, and that compute cost is reduced. You decide to deploy a function app. Which of the following should you configure the function app to use? (A) Azure Cosmos DB connector (B) SendGrid action (C) Consumption plan (D) Azure Event Hubs binding (E) SendGrid binding |
5. Click here to View Answer
Answers are (C) & (E)
Consumption plan
SendGrid binding
Configure the function app to use consumption plan and use sendgrid bindings to send emails.
SendGrid action: This option is used to send email messages using SendGrid. However, it requires you to write code to send the email messages. By using the SendGrid binding, you can easily send email notifications without writing any code.
Azure Event Hubs binding: This option is used to receive and process events from Azure Event Hubs. It is not relevant for sending email notifications.
SendGrid binding and SendGrid action are Both functions. But the difference is SendGrid Action is used to send an email synchronously, while SendGrid binding is used to send an email asynchronously.
It means that SendGrid Action will block the execution of the function app until the email has been sent. This can lead to increased compute costs, especially if you are sending a large number of emails. On the other way, SendGrid binding will not block while the email is being sent. This can help to reduce compute costs, as the function app can continue to process other requests while the email is being sent.
Question is “You need to eunsure that compute cost is reduced”. So SendGrid binding which is good for reducing costs.