Exam Name: HubSpot CMS for Developers II: Best Practices
Exam URL: https://academy.hubspot.com/courses/cms-for-developers-best-practices
- Creating a form that can be completed and submitted using the keyboard only adheres to which WCAG principle?
- Creating a user interface that is consistent across pages adheres to which WCAG principle?
- To make it easier for individuals using assistive technology to navigate your page, use _________ to organize the page’s content.
- Fill in the blank: Use a _________ class to hide elements visually while keeping them accessible to screen readers.
- The WCAG are broadly divided into four principles. Which of the following is NOT one of those principles?
- True or false? Every <img> element should have alternative text.
- True or false? If your website doesn’t have automatically detectable accessibility issues, it might still have accessibility barriers.
- Select all that apply. What are some web accessibility best practices you should account for near the beginning of a project?
- Select all that apply. When performing manual keyboard testing on your page, what should you check for?
- Select all that apply. Which of the following are HTML semantic elements?
- Select all that apply. Which of the following is an example of a web accessibility optimization that also benefits most of your users?
- Which of the following is NOT a common accessibility error found on web pages?
- Which of the following is NOT a web accessibility best practice?
- Which of the following is NOT an element of manual accessibility testing?
- Select all that apply. Which of the following make page navigation more efficient for those using assistive technology?
- Writing valid HTML adheres to which WCAG principle?
- Consider this scenario: You are loading a script (script 1) on your page which two other scripts rely on to function (scripts 2 and 3). All of these scripts can be safely executed after construction of the DOM. Which of the following approaches would work when loading these scripts? Select all that apply.
- Fill in the blank: _____________ refers to how long it takes the browser to take your site’s files and paint the pixels to the page.
- Fill in the blank: Adding width and height attributes to images helps reduce _________________.
- The ____________ is the browser’s representation of the page’s styles.
- Fill in the blank: The ___________ is a combination of both the DOM and CSSOM.
- Fill in the blank. Defer loading of non-critical CSS by adding ______ as an argument in your require_css function call.
- Fill in the blank. Many browsers support native image lazy-loading using the _________ attribute.
- Fill in the blank. To provide a good user experience, a Largest Contentful Paint of ___________ or less is recommended.
- If your site has consistently poor Total Blocking Time scores, which approach should you take to improve this metric?
- Select all that apply. What can you do to optimize images within a custom module?
- What is Largest Contentful Paint?
- Select all that apply. Which of the following are Core Web Vitals?
- Which of the following is most likely to block page interactivity?
- Fill in the blank: Use the ________ statement to use the same base template across multiple page templates.
- Select all that apply. How can you help content creators more easily work with modules?
- In the CMS Boilerplate, what is the filename of the common template used as the foundation for all page templates?
- True or false? You can add a brand setting token to a theme’s fields.json file to allow content editors to edit its value.
- What would you use to access the tertiary brand color in a theme’s fields.json file?
- Select all that apply. Where can you access a brand color that you’ve set in the account’s brand settings?
- Select all that apply. Where can you access a brand logo that you’ve set in your account’s brand settings?
- Which file does the CMS Boilerplate use to apply the styles set in the theme’s settings?
- Select all that apply. Which of the following fields should you include in your theme’s fields.json file?
- Select all that apply. Which of the following best describes modules?
- Which of the following is NOT a system template?
- Which of the following is NOT a valid brand logo attribute?
- Which of the following section template annotations will help a content editor easily visualize a section in the page editor?
- Which of the following would be NOT be an appropriate class name to use in a theme called “Blue Horizons”?
- Select all that apply. Which style fields have a generated .css property?
- Within a module, where should you place instance-specific styles?
- Fill in the blank: Google recommends a font size of at least _______ on at least 60% of the text on your page.
- Fill in the blank: Google recommends that tap targets should be at least ___________ apart from each other.
- Fill in the blank: Google’s main crawler is known as __________.
- Fill in the blank: If you want a page’s new URL to appear in search results, use _____________.
- Fill in the blank: Google displays structured data in SERPs as _________.
- Fill in the blank: The primary function of a robots.txt file is_______________.
- Fill in the blank: Your page must undergo_________, in order for Google to view any JavaScript-generated content.
- Fill in the blank. If you want a page that’s temporarily down to still appear in search results for some time, use _____________.
- Select all that apply: In order to account for mobile-first indexing, you should:
- Select all that apply. What can you use sitemaps for?
- What effect will this line in robots.txt have on Google’s crawling behavior? # Disallow: /
- Select all that apply. What is a canonical URL?
- What is the recommended format for adding structured data to pages?
- Select all that apply. When might you use a redirect?
- Select all that apply. Which of the following will prevent a page from appearing in Google’s search results?
- A skip to content link should skip to which landmark element on the page?
- Providing text alternatives for non-text content adheres to which WCAG principle?
- True or false? Automated testing is sufficient to test for appropriate use of alternative text.
- True or false? Part of making a form input accessible is including include a label for the input.
- Select all that apply. Which elements should receive focus as you tab through a web page?
- Consider the line of code below. If you were to load a script in this way, what would be the result? {{ require_js(get_asset_url(“./path/to/file.js”), { async: true }) }}
- Fill in the blank: _______ is the process through which all unnecessary characters are removed from a file.
- Fill in the blank: Add the ________ attribute to your script to tell the browser to execute it after construction of the DOM.
- Select all that apply. Which of the following are examples of render-blocking resources?
- Select all that apply. What is Cumulative Layout Shift?
- Select all that apply. What is First Input Delay?
- What is the first step of the Critical Rendering Path?
- Which HubL function can you use to control the size of the images that appear on your website?
- Fill in the blank: Use the __________ tag to include multiple CSS partial files within a single CSS file.
- Fill in the blank: When a boolean field controls a major layout change, use a _________.
- True or false? All themes must contain at least 10 section templates.
- Select all that apply. When should you create a section template instead of a module?
- Select all that apply. Which of the following module elements would be a good candidate for a style field?
- Select all that apply. When it comes to SEO, developers are usually responsible for:
- True or false: Using structured data guarantees that Google will make a rich snippet for your page.
- Select all that apply. Which of the following are good examples of descriptive link text?
- Scenario: Your colleague has told you that they’d like a landing page to not appear in search results. You notice that this landing page URL is already disallowed in robots.txt. What should you do to guarantee the page doesn’t appear in Google’s search results?
- True or false? Comprehensive knowledge of the WCAG is necessary before beginning to implement web accessibility best practices.
- What is the final step of the Critical Rendering Path?
- Which of the following is NOT a step in the Critical Rendering Path?
- True or false? Sections provide a built-in way to set a background image.
- A ____________ status code indicates a temporary redirect.
- Fill in the blank: Sitemaps are _______ files that provide search engines information about the structure of your site.
- Which of the following is NOT a component of how a web page ends up in search results?