0
0
Azurecloud~20 mins

Azure Container Registry (ACR) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure Container Registry Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does Azure Container Registry handle image versioning?

Azure Container Registry (ACR) stores container images with tags. What happens when you push a new image with the same tag as an existing image?

AThe push operation fails with an error about duplicate tags.
BThe registry keeps both images and automatically creates a new unique tag for the new image.
CThe registry archives the old image and disables the tag until manually restored.
DThe new image overwrites the existing image with that tag in the registry.
Attempts:
2 left
💡 Hint

Think about how tags work in container registries as pointers to images.

Architecture
intermediate
2:00remaining
Which Azure service is best to securely build container images integrated with Azure Container Registry?

You want to automate building container images and push them to Azure Container Registry securely without managing build servers. Which Azure service should you use?

AAzure Container Registry Tasks
BAzure DevOps Pipelines
CAzure Container Instances
DAzure Kubernetes Service
Attempts:
2 left
💡 Hint

Look for a service that integrates directly with ACR for building images.

security
advanced
2:00remaining
What is the effect of enabling Azure Defender for Container Registries on your ACR?

After enabling Azure Defender for Container Registries on your Azure Container Registry, what security feature is added?

AEncryption of container images at rest using customer-managed keys only.
BAutomatic vulnerability scanning of container images pushed to the registry.
CBlocking all anonymous pull requests to the registry.
DAutomatic rollback of images detected with vulnerabilities.
Attempts:
2 left
💡 Hint

Think about what Azure Defender adds to container registries.

Best Practice
advanced
2:00remaining
Which is the recommended way to restrict access to an Azure Container Registry from specific Azure Virtual Networks?

You want to limit access to your Azure Container Registry so only resources inside certain Azure Virtual Networks can pull or push images. What is the best practice to achieve this?

AUse Azure Private Link to create private endpoints for the registry inside the allowed Virtual Networks.
BUse Azure Role-Based Access Control (RBAC) to restrict access to the registry.
CConfigure network security groups (NSGs) on the ACR subnet to allow only specific IPs.
DEnable the firewall on the ACR and add the allowed Virtual Network subnets to the firewall rules.
Attempts:
2 left
💡 Hint

Consider how to securely connect PaaS services privately inside your network.

🧠 Conceptual
expert
2:00remaining
What happens if you delete an Azure Container Registry resource in Azure Portal?

You delete your Azure Container Registry resource from the Azure Portal. What is the immediate effect on the container images stored inside?

AThe registry is disabled but images remain stored and accessible until manually purged.
BThe registry is soft-deleted and images remain accessible for 30 days before permanent deletion.
CAll container images and metadata stored in the registry are permanently deleted immediately.
DThe registry is archived and images become read-only until restored.
Attempts:
2 left
💡 Hint

Think about resource deletion behavior in Azure for PaaS services like ACR.