exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 2 discussion

Actual exam question from Microsoft's AZ-204
Question #: 2
Topic #: 2
[All AZ-204 Questions]

DRAG DROP -
You are a developer for a software as a service (SaaS) company that uses an Azure Function to process orders. The Azure Function currently runs on an Azure
Function app that is triggered by an Azure Storage queue.
You are preparing to migrate the Azure Function to Kubernetes using Kubernetes-based Event Driven Autoscaling (KEDA).
You need to configure Kubernetes Custom Resource Definitions (CRD) for the Azure Function.
Which CRDs should you configure? To answer, drag the appropriate CRD types to the correct locations. Each CRD type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Deployment -
To deploy Azure Functions to Kubernetes use the func kubernetes deploy command has several attributes that directly control how our app scales, once it is deployed to Kubernetes.

Box 2: ScaledObject -
With --polling-interval, we can control the interval used by KEDA to check Azure Service Bus Queue for messages.
Example of ScaledObject with polling interval
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: transformer-fn
namespace: tt
labels:
deploymentName: transformer-fn
spec:
scaleTargetRef:
deploymentName: transformer-fn
pollingInterval: 5
minReplicaCount: 0
maxReplicaCount: 100

Box 3: Secret -
Store connection strings in Kubernetes Secrets.
Example: to create the Secret in our demo Namespace:
# create the k8s demo namespace
kubectl create namespace tt
# grab connection string from Azure Service Bus
KEDA_SCALER_CONNECTION_STRING=$(az servicebus queue authorization-rule keys list \
-g $RG_NAME \
--namespace-name $SBN_NAME \
--queue-name inbound \
-n keda-scaler \
--query "primaryConnectionString" \
-o tsv)
# create the kubernetes secret
kubectl create secret generic tt-keda-auth \
--from-literal KedaScaler=$KEDA_SCALER_CONNECTION_STRING \
--namespace tt
Reference:
https://www.thinktecture.com/en/kubernetes/serverless-workloads-with-keda/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mlantonis
Highly Voted 3 years, 11 months ago
Box 1: Deployment To deploy Azure Functions to Kubernetes use the func kubernetes deploy command has several attributes that directly control how our app scales, once it is deployed to Kubernetes. Box 2: ScaledObject With --polling-interval, we can control the interval used by KEDA to check Azure Service Bus Queue for messages. Box 3: Secret Store connection strings in Kubernetes Secrets.
upvoted 78 times
...
neerajupadhyay82
Highly Voted 4 years, 2 months ago
kubernetes is marked as out of scope but still there are few questions coming in the exam from this section
upvoted 23 times
...
8ac3742
Most Recent 9 months ago
while the pollingInterval itself doesn’t directly scale the application, it influences how often KEDA evaluates the need to scale based on the defined triggers.
upvoted 1 times
...
AhmedAbdelAziz
1 year, 2 months ago
I think kubernetes out of the exam
upvoted 5 times
spahno
1 year, 1 month ago
I hope so...
upvoted 1 times
...
...
jakobste
1 year, 8 months ago
I hope this is not on the exam anymore.
upvoted 2 times
...
wrak
2 years, 2 months ago
out-of-the-scope for the AZ-204 Exam; please remove from the Question Bank
upvoted 6 times
...
Esward
2 years, 3 months ago
Given answers are correct!! https://learn.microsoft.com/en-us/azure/azure-functions/functions-kubernetes-keda
upvoted 1 times
...
[Removed]
2 years, 7 months ago
This question is not AKS, but Functions being run in Kubernetes. So, technically in scope
upvoted 4 times
...
nuiowmokka
2 years, 8 months ago
Is Kubernetes part of AZ-204, I did not study Kubernetes?
upvoted 4 times
VACAS
2 years, 8 months ago
I dont know but it doesn't appers here https://docs.microsoft.com/en-us/certifications/exams/az-204
upvoted 4 times
...
...
dookebroyle
2 years, 10 months ago
Is there any Microsoft documentation on this? I can't find it.
upvoted 1 times
ldiw02
2 years, 10 months ago
https://keda.sh/
upvoted 2 times
...
...
Dev666
3 years, 3 months ago
Box 1: Deployment - Box 2: ScaledObject - Box 3: Secret
upvoted 2 times
...
finnishr
3 years, 8 months ago
1. Azure Function code - Deployment -To deploy Azure Functions to Kubernetes use the func kubernetes deploy command 2. Polling interval - ScaledObject - This is the interval to check each trigger on. By default KEDA will check each trigger source on every ScaleObject every 30 seconds. 3. Azure Storage connection string - Secret - Store connection string in Kubernetes secret Source for ScaledObject: https://keda.sh/docs/1.4/concepts/scaling-deployments/
upvoted 6 times
...
glam
3 years, 11 months ago
Box 1: Deployment - Box 2: ScaledObject - Box 3: Secret -
upvoted 3 times
...
Kiranvnv
4 years, 5 months ago
https://www.thinktecture.com/en/kubernetes/serverless-workloads-with-keda/serverless-workloads-with-keda/ is the right link
upvoted 5 times
...
Leandromellor
4 years, 5 months ago
is this question in the exam?
upvoted 4 times
notjon
4 years, 5 months ago
yes it is, got it yesterday when taking the 204
upvoted 15 times
...
dirtygooback
4 years, 5 months ago
Yes. There are several Kubernetes questions. I found this odd since all the study material from MS states they use the container registry.
upvoted 8 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago