exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 3 question 9 discussion

Actual exam question from Microsoft's AZ-303
Question #: 9
Topic #: 3
[All AZ-303 Questions]

You create an Azure Kubernetes Service (AKS) cluster and an Azure Container Registry.
You need to perform continuous deployments of a containerized application to the AKS cluster as soon as the image updates in the registry.
What should you use to perform the deployments?

  • A. an Azure Automation runbook
  • B. a kubectl script from a CRON job
  • C. an Azure Resource Manager template
  • D. an Azure Pipelines release pipeline
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
You can implement a Continuous Deployment pipeline.
Example:

What the pipeline accomplishes :
Stage 1: The code gets pushed in the Github. The Jenkins job gets triggered automatically. The Dockerfile is checked out from Github.
Stage 2: Docker builds an image from the Dockerfile and then the image is tagged with the build number. Additionally, the latest tag is also attached to the image for the containers to use.
Stage 3: We have default deployment and service YAML files stored on the Jenkins server. Jenkins makes a copy of the default YAML files, make the necessary changes according to the build and put them in a separate folder.
Stage 4: kubectl was initially configured at the time of setting up AKS on the Jenkins server. The YAML files are fed to the kubectl util which in turn creates pods and services.
Reference:
https://medium.com/velotio-perspectives/continuous-deployment-with-azure-kubernetes-service-azure-container-registry-jenkins-ca337940151b

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
syu31svc
Highly Voted 3 years, 8 months ago
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/?view=azure-devops Answer is D
upvoted 6 times
...
sachinp2305
Most Recent 3 years, 1 month ago
D is correct answer -Appeared in today's exam 29 March 2022
upvoted 1 times
...
itvinoth83
3 years, 1 month ago
Appeared in exam on 28-03-2022
upvoted 1 times
...
shree178
3 years, 2 months ago
On exam today 19-2-2022.. Passed with 871.
upvoted 2 times
...
Mr_RJ
3 years, 5 months ago
Selected Answer: D
correct
upvoted 1 times
...
lucascruzm
3 years, 10 months ago
Correct ans
upvoted 4 times
...
hamzeh69
3 years, 10 months ago
Pass exam, come today in my exam 6/7/2021
upvoted 4 times
...
kwaazaar
4 years, 2 months ago
If the k8s application is a cronjob using the 'latest' tag, it will automatically use the latest image on next job creation. Not the solution here, but the trigger in the proposed answer is a source repository, which makes as little sense. Maybe you don't even have the sources for the image.
upvoted 1 times
...
oshoparsi
4 years, 3 months ago
https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/cd/deploy-aks?view=azure-devops&tabs=java
upvoted 1 times
...
Aghora
4 years, 3 months ago
webhooks is the new technology for pipelines
upvoted 2 times
...
Motorzep
4 years, 4 months ago
Why not Answer B? Can this not be done using a CRON job?
upvoted 1 times
Eradain
4 years, 4 months ago
Because in the question it saids "AKS cluster as soon as the image updates in the registry." the CRON job is a syncronous system is not asyincronous like the pipeline.
upvoted 10 times
...
TheAzureArchitect
3 years, 5 months ago
The cron task will fire on a schedule, regardless of when the image was updated. We only want to redeploy when the artefact is updated, ADO can do this.
upvoted 1 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