HOTSPOT - You need to ensure that validation testing is triggered per the requirements. How should you complete the code segment? To answer, select the appropriate values in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
I'm not sure if this is correct. Take a look at Background Overview:
"The ContentAnalysisService is deployed with Azure Container Instances from a private Azure Container Registry named contosoimages."
"contentanalysisservice" is not the name of a repository and "contonsoimages" is the name of the ACR.
Sorry I Don't understand... as you said contentanalysisservice in the new of the service, I suppose, and contosoimages is the name of the ACR. so how can it be repository and topic?
An event does not have service, repository or imageCollection as top-level data, it has a topic. Regarding the repository, from the choises available, the target has only repository as property. It is all documented in the already given link:
https://docs.microsoft.com/en-us/azure/event-grid/event-schema-container-registry?tabs=event-grid-event-schema
Yes, imho the answer should be ImagePushed, repository and topic. As the Example Event shows a Event Grid event schema, with explained the scheme. The schema of the Azure Container Registry EventGrid events doesn't contain fields like imagecollection, service, etc. Note that for eventType only ImagePushed, ImageDeleted, ChartPushed and ChartDeleted (last two raised form Helm charts) are valid. So 1 should be ImagePushed, send the json notes a data.target.repository
Ok, I need to start memorizing all schemes of possible event system topics:
Azure API Management
Azure App Configuration
Azure App Service
Azure Blob Storage
Azure Cache for Redis
Azure Communication Services
Azure Container Registry
Azure Event Hubs
Azure FarmBeats
Azure Health Data Services
Azure IoT Hub
Azure Key Vault
Azure Kubernetes Service
Azure Machine Learning
Azure Maps
Azure Media Services
Azure Policy
Azure resource groups
Azure Service Bus
Azure SignalR
Azure subscriptions....
I would go for
1. ImagePushed
2. Repository
3. Topic
Based on the grid event schema example everyone has linked to
[{
"topic": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.ContainerRegistry/registries/<name>",
"eventType": "Microsoft.ContainerRegistry.ImagePushed",
"data": {
"target": {
"repository": "<name>",
},
},
}]
How does a new image being pushed mean a new deployment. And they expect me to remember the whole schema for all the services that can send events to EventGrid? And I could even imagine a blob storage being there. This requirement itself is at the edge of darkness and using a repository event to fulfill that requirement can only be thought of really junior hello world programmers of Microsoft.
EUREKA. Did you guys notice "All Internal services must only be accessible from internal Virtual Networks (VNets)." It NEVER said it should be connected to a vnet. It just said it should be ACCESSED from INTERNAL vnet (not Azure vnet). A nice red-herring planted by Microsoft guys (Do not be evil)
THE ANSWER SHOULD BE CONSUMPTION PLAN
1. Imagepushed - acr has only 4 event types imagepushed, imagedeleted, chartpushed n chart deleted
2. Service ?
3. Repository - this is correct as per MS documentation
"Image pushed into a repository" is not the same as "image deployed, container is running". One cannot start testing on a pushed image, only after it has been deployed.
Hmm, maybe some multi-step task will be used so "ImagePushed" event means the image will be run as a container in a moment? Or is there some functionality in that private ACR which will run/deploy the updated image automatically?
https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tasks-multi-step
This section is not available anymore. Please use the main Exam Page.AZ-204 Exam Questions
Log in to ExamTopics
Sign in:
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.
halmosi
Highly Voted 3 years, 2 months agoShion2009
3 years, 1 month agojvyas
2 years, 11 months agoShion2009
3 years, 1 month agoPozz4ever
3 years, 1 month agokapetan
3 years agoPozz4ever
3 years agogbtest
2 years, 10 months agoKingChuang
1 year, 4 months agordemontis
3 years, 1 month agocoffecold
Highly Voted 1 year, 6 months agoENGs
Most Recent 7 months, 1 week agokatrang
7 months, 4 weeks agoNightshadeRC
9 months, 3 weeks agomacobuzi
8 months, 2 weeks agoKGi
1 year, 2 months agoAlexeyG
1 year, 3 months agoOPT_001122
1 year, 5 months agogmishra88
1 year, 7 months agogmishra88
1 year, 7 months agoTMakki
1 year, 9 months agoCiupaz
7 months agoSandeep12093
1 year, 11 months agoSandeep12093
1 year, 11 months agoSandeep12093
1 year, 11 months agoSivajiTheBoss
2 years, 2 months agopetitbilly
2 years, 2 months agoleonidn
2 years, 3 months agomc0re
2 years, 9 months agoMiraA
2 years, 7 months agoHarichakradhar
2 years, 9 months agosien
3 years ago