ACQUIA-CERTIFIED-SITE-BUILDER-D10 practice question 11 of 25

Which of the following are methods for adding media in Drupal? (Choose two)

Full set: 120 questions
Answer options
A: Uploading files directly to the Media Library Correct answer
B: Embedding media from external sources via URL Correct answer
C: Storing images as raw HTML in a text field
D: Using JavaScript to attach media dynamically
Correct Answer:
A. Uploading files directly to the Media Library; B. Embedding media from external sources via URL
Explanation

Drupal's core Media module provides two primary methods for site builders to add media. Users can upload files directly from their computer to create new media entities, which are then stored in the Media Library. Alternatively, they can embed media from external services like YouTube or Vimeo by simply providing the URL. Both methods create reusable media entities that can be managed centrally. This functionality is a key feature for modern content management, allowing for a separation of content from its presentation and facilitating reuse across the site.

Why Incorrect

C. Storing images as raw HTML bypasses the media system, losing benefits like reusability, accessibility, and responsive image styles.
D. Using JavaScript is a developer-centric approach, not a standard method for a site builder to add content through the user interface.

References

1. Drupal.org. (2023). User Guide, Chapter 6.5. Adding a Media Item. Retrieved from https://www.drupal.org/docs/userguide/en/media-add.html

2. Drupal.org. (2023). User Guide, Chapter 6.6. Embedding Media. Retrieved from https://www.drupal.org/docs/userguide/en/media-embed.html

3. Drupal.org. (2023). Core modules: Media. Retrieved from https://www.drupal.org/docs/core-modules-and-themes/core-modules/media-module-overview (Section: "Adding media items")

Scroll to Top