Fill in the blank. If you want a page that’s temporarily down to still appear in search results for some time, use _____________.
- a permanent redirect
- your site’s robots.txt file
- the noindex meta tag
- a temporary redirect
Home » HubSpot CMS for Developers II: Best Practices Exam Answers » Page 7
HubSpot CMS for Developers II: Best Practices Exam Answers
As a web developer, you're responsible for creating websites that delight your customers and generate leads for your business. It's not enough, however, for your website to look great — it also needs to be accessible, fast, and search-friendly. Additionally, the themes and modules you develop should be easy for content editors and developers to manage. Explore how to develop websites that prioritize web accessibility, performance optimization, SEO, and HubSpot-specific best practices.
To get the certification you need to pass the exam and do the practicum.
Exam URL: https://academy.hubspot.com/courses/cms-for-developers-best-practices
Questions:
-True or false? Every element should have alternative text.
-Creating a form that can be completed and submitted using the keyboard only 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.
-True or false? Every <img> element should have alternative text.
-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?
-Which of the following is NOT a common accessibility error found on web pages?
-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?
-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: _______ 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.
-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 is Cumulative Layout Shift?
-What is Largest Contentful Paint?
-What is the final step of the Critical Rendering Path?
-What is the first step of the Critical Rendering Path?
-Which of the following is most likely to block page interactivity?
-Which of the following is NOT a step in the Critical Rendering Path?
-Fill in the blank: Use the __________ tag to include multiple CSS partial files within a single CSS file.
-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? All themes must contain at least 10 section 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.
-Select all that apply. When should you create a section template instead of a module?
-Select all that apply. Where can you access a brand color that you've set in the 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?
-Select all that apply. Which of the following module elements would be a good candidate for a style field?
-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"?
-Within a module, where should you place instance-specific styles?
-A ____________ status code indicates a temporary redirect.
-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: Google displays structured data in SERPs as _________.
-Fill in the blank: Sitemaps are _______ files that provide search engines information about the structure of your site.
-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. 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. 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?
-Select all that apply. When might you use a redirect?
-Select all that apply. Which of the following are good examples of descriptive link text?
-Which of the following is NOT a component of how a web page ends up in search results?
-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?
-A skip to content link should skip to which landmark element on the page?
-Creating a user interface that is consistent across pages adheres to which WCAG principle?
-Providing text alternatives for non-text content adheres to which WCAG principle?
-The WCAG are broadly divided into four principles. Which of the following is NOT one of those principles?
-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?
-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 web accessibility best practice?
-Writing valid HTML adheres to which WCAG principle?
-Fill in the blank: Adding width and height attributes to images helps reduce _________________.
-Which HubL function can you use to control the size of the images that appear on your website?
-Fill in the blank: When a boolean field controls a major layout change, use a _________.
-What would you use to access the tertiary brand color in a theme's fields.json file?
-Select all that apply. Which style fields have a generated .css property?
-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.
-What is the recommended format for adding structured data to pages?
-Select all that apply. Which of the following will prevent a page from appearing in Google's search results?
-True or false? Comprehensive knowledge of the WCAG is necessary before beginning to implement web accessibility best practices.
-True or false? If your website doesn't have automatically detectable accessibility issues, it might still have accessibility barriers.
-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 }) }}
-Select all that apply. What can you do to optimize images within a custom module?
-Select all that apply. What is First Input Delay?
-Select all that apply. Which of the following are Core Web Vitals?
-Select all that apply. Where can you access a brand logo that you've set in your account's brand settings?
-Fill in the blank: If you want a page's new URL to appear in search results, use _____________.
-True or false? Sections provide a built-in way to set a background image.
-Select all that apply. Which of the following are examples of render-blocking resources?
By vmartinez
Fill in the blank. If you want a page that’s temporarily down to still appear in search results for some time, use _____________.
By vmartinez
Fill in the blank: Your page must undergo_________, in order for Google to view any JavaScript-generated content.
By vmartinez
Fill in the blank: The primary function of a robots.txt file is_______________.
Explanation: The primary function of a robots.txt file is to prevent your site from being overloaded with requests by crawlers. This file serves as a communication tool between website owners and web crawlers, also known as spiders or bots, informing them about which parts of the website they are allowed or not allowed to crawl. While it does not directly prevent pages from appearing in search results, its main purpose is to manage crawl traffic efficiently to prevent servers from being overwhelmed by excessive requests from crawlers. By specifying directories or pages that should not be crawled in the robots.txt file, website owners can control crawl behavior and allocate server resources effectively. This helps prevent performance issues, such as slow loading times or server crashes, which may occur when crawlers generate a high volume of requests. Therefore, the primary function of a robots.txt file is to regulate crawler access and prevent the site from being overloaded with requests, ensuring optimal website performance and availability.
By vmartinez
Fill in the blank: Google displays structured data in SERPs as _________.
Explanation: The correct answer is rich results. Rich results are enhanced search results displayed by Google in Search Engine Results Pages (SERPs) that provide additional information beyond the standard blue link and meta description. They may include elements like review stars, product prices, event dates, recipe ingredients, and more, depending on the type of structured data markup used on the webpage. By incorporating structured data markup into their HTML, website owners can provide search engines like Google with contextually relevant information about their content, enabling the generation of rich results. Rich results enhance the visibility and attractiveness of search listings, potentially increasing click-through rates and driving more organic traffic to the website. Additionally, they offer users more comprehensive and interactive search experiences by presenting key information directly within the search results page, reducing the need to click through to individual websites for basic information.
By vmartinez
Fill in the blank: If you want a page’s new URL to appear in search results, use _____________.
Explanation: If you want a page’s new URL to appear in search results, use a permanent redirect. When you change the URL of a page on your website, it’s essential to inform search engines about the change to ensure that they update their index accordingly and direct users to the new URL when they search for relevant content. A permanent redirect, also known as a 301 redirect, instructs search engines that the original URL has permanently moved to a new location. This allows search engines to transfer the existing search engine rankings, authority, and traffic from the old URL to the new one, ensuring that users can still find the page in search results. Using a permanent redirect is crucial for maintaining the SEO value of the page and avoiding negative impacts such as broken links or loss of traffic. Temporary redirects (302 redirects) are used when a page has temporarily moved, and they do not pass on the same SEO benefits as permanent redirects. Therefore, selecting a permanent redirect correctly identifies the appropriate method for ensuring that a page’s new URL appears in search results and retains its search engine rankings and visibility.
By vmartinez
Fill in the blank: Google’s main crawler is known as __________.
Explanation: The correct answer is Googlebot. Googlebot is Google’s main web crawler responsible for indexing web pages and gathering information from websites to include in its search index. As an automated software, Googlebot navigates the web by following links from one page to another, analyzing the content of each page it encounters. By crawling and indexing web pages, Googlebot enables Google’s search engine to deliver relevant search results to users based on their queries. Understanding the role of Googlebot is crucial for website owners and developers as it influences how their content is discovered and displayed in Google search results. By optimizing websites to be easily crawled and indexed by Googlebot, webmasters can improve their site’s visibility and ranking in Google search, ultimately driving more organic traffic to their web pages.