Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Create and configure a container in Blob Storage

A worked example

Complete the statement

A developer proposes several names for new containers in an existing storage account. Some of the portal create operations fail validation.

Proposed container name
Product-Images
product--images
-productimages
pi
product-images-2024
Media_Files

Complete the sentence about the container names in the exhibit.

The only name in the list that is valid is . The name Media_Files is rejected because .

  • Blank 1: product-images-2024 (correct answer)

    This name uses only lowercase letters, numbers and single hyphens. It starts with a letter and is between 3 and 63 characters long. Product-Images contains uppercase letters, product--images has two consecutive dashes, -productimages starts with a hyphen, and pi is shorter than three characters.

  • Blank 2: it contains an uppercase letter and an underscore (correct answer)

    Media_Files contains uppercase letters and an underscore, and neither is allowed in a container name. The name is 11 characters long and starts with a letter, so the other rules are met.

Why

A container name forms part of the container's URI, so it must be a valid DNS-style name. The name can be 3 to 63 characters long and can use only lowercase letters, numbers and hyphens. It must begin with a letter or a number and cannot contain consecutive hyphens. The name must also be unique within the storage account.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free