Question 42 — AZ-104 Practice Exam 15
Your team hosts product images in a single container. Marketing wants the public to fetch image URLs directly, but security insists the container listing must not be discoverable. You also need the name to meet Azure’s container naming rules. Which actions satisfy the requirements? (Select two answers)
Set the container’s public access level to Blob.
Set the container’s public access level to Container.
Ensure the container name uses only lowercase letters, numbers, and hyphens.
Begin the container name with a hyphen to make it SEO-friendly.
Correct answers
Set the container’s public access level to Blob.
Ensure the container name uses only lowercase letters, numbers, and hyphens.
Explanations
Correct:
Set the container’s public access level to Blob. This enables anonymous reads of blob content while preventing anonymous container listings.
Ensure the container name uses only lowercase letters, numbers, and hyphens. These are the allowed characters for container names.
Wrong:
Set the container’s public access level to Container. This would allow anonymous listing of the entire container, which security forbids.
Begin the container name with a hyphen to make it SEO-friendly. Names must begin with a letter or number; starting with a hyphen is invalid.