Certification Answers

Which of the following HubL and HubDB behaviors should be avoided if possible?

  1. Use a filter query to reduce the data returned from a request.
  2. Use the reject attribute filter to create subsets of table data from an initial request.
  3. Use multiple requests to the same table to build complex templates.
  4. Use loops to access data in multi-select columns.

Correct Answer:

  • Use multiple requests to the same table to build complex templates.

I hope this helps! Let me know if you have any other questions.

FREE Certification Course

COURSE CURRICULUM

HubSpot CMS for Developers Certification Course

https://academy.hubspot.com/courses/cms-for-developers

Certification Questions & Certification Answers

Choose all that apply. Which of the following are always good strategies for building templates?

  1. Keeping content editors front of mind at all times and optimizing their editing experience.
  2. Building in appropriate guardrails to help content editors quickly build pages and reduce the likelihood of errors and bugs.
  3. Looking for ways to keep your codebase DRY and avoid repeated code that is prone to bugs.
  4. Creating lots of blank templates that require content editors to build everything from scratch.

Correct Answer :

  • Keeping content editors front of mind at all times and optimizing their editing experience.
  • Building in appropriate guardrails to help content editors quickly build pages and reduce the likelihood of errors and bugs.
  • Looking for ways to keep your codebase DRY and avoid repeated code that is prone to bugs.

Choose all that apply. Which of the following options is configured in the theme.json file?

  1. Name of the theme
  2. Link to a preview image for the theme
  3. List of account users who cannot use the theme

Correct Answer :

  • Name of the theme
  • Link to a preview image for the theme

Fill in the blank: If you wanted to copy the HubL markup of a section in the page editor, you would need to _____.

  1. Place the the query string ?developerMode=true at the end of the url​ to enter developer mode.
  2. Hover over the section, then right click and copy the code using the developer tools in your browser.
  3. Use the Design Manager.

Correct Answer :

  • Hover over the section, then right click and copy the code using the developer tools in your browser.

Fill in the blank: You should omit the ______ from the simple listing page using the {% if not_simple_list_page %} statement.

  1. post title
  2. post excerpt
  3. featured image
  4. post author

Correct Answer :

  • featured image

How many different email templates should be created?

  1. Three: a thank you email, a welcome email, and a “sad to see you go” email.
  2. One for each day of the week.
  3. None, each email should be built specifically for each use case.
  4. It depends on the organization and should be discussed with the broader team to align with marketing goals.

Correct Answer :

  • It depends on the organization and should be discussed with the broader team to align with marketing goals.

If you need your app code to inspect information about the current build, which class should you use?

  1. BuildConfig
  2. BuildInfo
  3. ConfigParams
  4. ConfigInfo

Correct Answer :

  • BuildConfig

If you wanted to create an unordered list from each value in a dictionary, which aspect of HubL would be most essential?

  1. An expression test
  2. A Loop
  3. The do tag
  4. This is not possible in HubL

Correct Answer :

  • A Loop

In the blog listing template, which variable provides access to blog post data?

  1. contents
  2. posts
  3. post_data
  4. articles

Correct Answer :

  • contents

In the body of a section template, which tag needs to be the parent tag?

  1. dnd_column
  2. dnd_section
  3. dnd_area
  4. dnd_row

Correct Answer :

  • dnd_section

Select all that apply. In order to create a section template, you need which of the following in the file?

  1. A template annotation with the “templateType” set to the value of “section”.
  2. A dnd_section tag
  3. A dnd_area tag
  4. A link to a css file

Correct Answer :

  • A template annotation with the “templateType” set to the value of “section”.
  • A dnd_section tag

Select all that apply. Which of the following is something that can NOT be added to a dnd_section tag inside a section template.

  1. Template annotations
  2. A link to a style sheet
  3. A section class
  4. A context parameter

Correct Answer :

  • A link to a style sheet

True or False? People hate dragging and dropping things so the HubSpot CMS does not contain this capability

  1. True
  2. False

Correct Answer :

  • False

True or false? System templates can only be built using the Design Manager.

  1. True
  2. False

Correct Answer :

  • False

True or false? The best way to style emails is through an external CSS stylesheet.

  1. True
  2. False

Correct Answer :

  • False

True or false? You can add modules to your blog listing page in the page editor even if your blog listing template does not contain a drag-and-drop area.

  1. True
  2. False

Correct Answer :

  • False

What HubL function must you use when calling a list of custom object records on a CMS page?

  1. crm_associations
  2. crm_objects
  3. crm_property_definitions

Correct Answer :

  • crm_objects

What does the hubspot.config.yml file do?

  1. Configures field names for a theme
  2. Configures the relationship between local files and HubSpot CMS accounts including authentication
  3. Configures account settings like system templates and navigation trees
  4. Configures the relationship between a HubSpot account and the yaml preprocessor

Correct Answer :

  • Configures the relationship between local files and HubSpot CMS accounts including authentication

What pages are you required to set up when creating membership pages?

  1. registration page, login page, password reset request page, password reset page
  2. registration page, logout page, membership account page, password reset page
  3. registration page, login page, membership account page, password reset page
  4. registration page, login page, logout page, password reset page

Correct Answer :

  • registration page, login page, password reset request page, password reset page

Which file in a theme controls the global fields that content editors can edit?

  1. fields.xml
  2. theme.json
  3. fields.json
  4. That depends on the operating system the content editor is using.

Correct Answer :

  • fields.json

Which of the following datasets would be a good fit for creating a custom object?

  1. Location data for retail stores
  2. Job listings
  3. List of favorite books
  4. Dog breeds

Correct Answer :

  • Job listings

Which of the following is NOT a feature of the HubSpot CMS of special interest to web developers?

  1. Preconfigured solutions to common tasks
  2. Security and updates
  3. In-app and local dev workflows
  4. The ability to add PHP anywhere in a template

Correct Answer :

  • The ability to add PHP anywhere in a template

Which of the following is NOT an additional page view generated by the blog listing template?

  1. Author page
  2. Category page
  3. Simple listing page
  4. Tag page

Correct Answer :

  • Category page

Which of the following is NOT true about section templates?

  1. Section templates allow you to add a screenshotPath annotation that is used to preview that section in the page editor.
  2. Section templates have CSS and JavaScript attached to them, just like modules.
  3. Modules can be added to section templates to extend their reusability.

Correct Answer :

  • Section templates have CSS and JavaScript attached to them, just like modules.

Which of the following is possible with the command line tools?

  1. Creating a new template
  2. Watching for changes in local files and uploading on save
  3. Creating a new module
  4. All of the above

Correct Answer :

  • All of the above

Which of the following is required to use custom objects in dynamic pages?

  1. The custom object must have one property where hasUniqueProperty is set to true.
  2. The custom object must be associated with the contact CRM object.
  3. The custom object must have at least three custom properties.
  4. The custom object must be associated with CMS Hub.

Correct Answer :

  • The custom object must have one property where hasUniqueProperty is set to true.

Which of the following statements about HubL module syntax is NOT TRUE?

  1. Basic module syntax is a single line statement.
  2. HubL modules use three curly braces to open and close tags.
  3. HubL modules can be added with a block syntax.
  4. HubL modules use parameters for required and optional module settings.

Correct Answer :

  • HubL modules use three curly braces to open and close tags.

Which of the following statements about HubSpot CMS themes is TRUE?

  1. Themes are a package of assets that help keep a website consistent.
  2. Themes are only relevant for very large websites.
  3. Themes should only contain 5 templates.
  4. Themes cannot contain modules.

Correct Answer :

  • Themes are a package of assets that help keep a website consistent.

Which of the following statements about a healthy codebase is TRUE?

  1. Repeating the same code throughout your codebase is usually preferable to abstracting and reusing code because it’s easier for novice developers to understand.
  2. Developers using the HubSpot CMS are discouraged from reusing snippets of code because the cost of the CMS is prorated by file size and we would prefer that your codebase is extremely large.
  3. DRY is an acronym that stands for Do Right Yesterday. It means that finishing a project early is better than taking extra time to make a codebase maintainable.
  4. Reducing instances of repeated code helps to keep your codebase tidy and bug free.

Correct Answer :

  • Reducing instances of repeated code helps to keep your codebase tidy and bug free.

Which of the following statements about drag and drop areas is TRUE?

  1. The dnd_area tag is all that is needed for basic drag and drop functionality in the page editor.
  2. Drag and drop areas allow developers to drag scripts into their pages for rapid prototyping with handlebars.
  3. Drag and drop areas must contain at least one rich text area.
  4. The dnd_area tag is a special HubL tag that editors can copy and paste into the file manager to edit photos.

Correct Answer :

  • The dnd_area tag is all that is needed for basic drag and drop functionality in the page editor.

Which of the following statements about global partials is NOT TRUE?

  1. Global partials are a good way to keep your codebase DRY.
  2. Global partials can only be used on one template in a theme.
  3. Global partials can be used to give content editors access to content that appears in more than one template.
  4. Global partials can contain content that is not editable in the content editor.

Correct Answer :

  • Global partials can only be used on one template in a theme.

Which of the following statements about templates is NOT TRUE?

  1. Templates allow content creators to do their job without having to collaborate with designers and developers during every step of creating web pages.
  2. Templates have a big effect on the editing experience for content creators.
  3. Templates can only be used to create one live page in the HubSpot CMS.
  4. Templates are an important intersection point for developers and content editors.

Correct Answer :

  • Templates can only be used to create one live page in the HubSpot CMS.

Which of the following statements about templates is TRUE?

  1. Templates must be purchased from a 3rd party vendor.
  2. There are no requirements for header and footer content.
  3. Comments are not allowed in templates because they look messy.
  4. Templates use HubL to create editable areas of pages.

Correct Answer :

  • Templates use HubL to create editable areas of pages.

Which of the following statements about theme fields is NOT TRUE?

  1. Theme fields can give editors access to CSS properties.
  2. Developers can use theme fields to make a theme extremely flexible.
  3. Developers don’t need to worry about how theme fields might be used by editors because theme fields can’t be used to make a website inconsistent or difficult to navigate.
  4. Theme fields can affect the appearance of an entire website.

Correct Answer :

  • Developers don’t need to worry about how theme fields might be used by editors because theme fields can’t be used to make a website inconsistent or difficult to navigate.

Which statement about repeating module fields is FALSE?

  1. Repeating fields give editors the ability to add or subtract instances of fields.
  2. The HubL used to implement repeating fields uses a loop.
  3. Repeating fields and flexible columns are the same thing.
  4. It is also possible to use repeating field groups.

Correct Answer :

  • Repeating fields and flexible columns are the same thing.

Which of the following statements about theme modules is TRUE?

  1. Theme modules should never contain styles.
  2. Theme modules are a great way to keep sites stylistically consistent.
  3. Theme modules need to contain a special JavaScript statement that makes them appear in the theme module section of the content editor.
  4. Themes that use fields should not need modules.

Correct Answer :

  • Theme modules are a great way to keep sites stylistically consistent.

True or false? HubDB is a good place to store customer data such as credit card numbers.

  1. True
  2. False

Correct Answer:

  • False

True or false? It is not possible to publish an email without a link to at least one email subscription template.

  1. False
  2. True

Correct Answer:

  • True

True or false? Page metadata can be populated in the “Settings” section of the page editor.

  1. False
  2. True

Correct Answer:

  • True

True or false? System templates are not published from templates by content editors.

  1. True
  2. False

Correct Answer:

  • True

When creating a drag and drop template, how do you add components?

  1. Components are added in “Settings.”
  2. Templates are pre-populated with all the available components.
  3. Components can be dragged from the “Add” section of the Inspector.
  4. Components must be coded in Javascript and uploaded via FTP.

Correct Answer:

  • Components can be dragged from the “Add” section of the Inspector.

Which CMS tool are developers most likely to spend the most time with?

  1. Editor
  2. file manager
  3. CRM
  4. Design manager

Correct Answer:

  • Design manager

Which CMS tool would you use to find the file size of a PNG?

  1. Email settings
  2. file manager
  3. Blog editor
  4. Website pages settings

Correct Answer:

  • file manager

Which data structure does HubL use for storing data in key and value pairs?

  1. Lists
  2. Dictionaries
  3. Objects
  4. Binary trees

Correct Answer:

  • Dictionaries

Which of the following CMS tools is used in CAN-SPAM compliance?

  1. Navigation in settings
  2. Email settings
  3. The replace button in file details
  4. The templates tab in blog settings

Correct Answer:

  • Email settings

Which of the following HubL and HubDB behaviors should be avoided if possible?

  1. Use a filter query to reduce the data returned from a request.
  2. Use the reject attribute filter to create subsets of table data from an initial request.
  3. Use multiple requests to the same table to build complex templates.
  4. Use loops to access data in multi-select columns.

Correct Answer:

  • Use multiple requests to the same table to build complex templates.

Which of the following characters are used to open a HubL statement?

  1. {-
  2. {%
  3. [&
  4. {#

Correct Answer:

  • {%

Which of the following is NOT a sound strategy for working with HubDB?

  1. Plan out your data needs with stakeholders before creating tables in HubDB.
  2. While adding data to tables, create columns as needed and iterate as the project grows.
  3. Use multiple tables linked with foreign ids to handle complex, multi-facetedcontent.
  4. Use select columns to standardize repeated values.

Correct Answer:

  • While adding data to tables, create columns as needed and iterate as the project grows.

Which of the following is NOT a system template?

  1. Email subscription preferences page
  2. Search results page
  3. Blog preferences page
  4. Error page

Correct Answer:

  • Blog preferences page

Which of the following is NOT an aspect of HubDB?

  1. HubDB is a semi-relational data store.
  2. HubDB is a subset of fork of MySQL.
  3. HubDB uses tables to store data in rows.
  4. HubDB tables are accessed with a unique ID.

Correct Answer:

  • HubDB is a subset of fork of MySQL.

Which of the following is NOT an important aspect of using HubL?

  1. Documentation
  2. Memorizing all tags and parameters
  3. Community
  4. Developer info

Correct Answer:

  • Memorizing all tags and parameters

Which of the following is NOT an important reason to familiarize yourself with available settings?

  1. Some templates are coded exclusively in settings.
  2. Some settings determine data available in templates.
  3. Code can be added globally in settings.
  4. Web developers should advise content editors on technical aspects.

Correct Answer:

  • Some templates are coded exclusively in settings.

Which of the following is NOT available in the file manager?

  1. file URL
  2. HTML image snippets
  3. Replace button to swap assets
  4. Template and content dependencies

Correct Answer:

  • HTML image snippets

Which of the following is NOT possible with HubL?

  1. Passing data from HubL to client side code
  2. Passing data from client side code to HubL
  3. Looping through data
  4. Conditionally executing HubL statements

Correct Answer:

  • Passing data from client side code to HubL

Which of the following is not an aspect of dynamic pages?

  1. Dynamic pages require multiple templates.
  2. Pages are generated from table rows.
  3. A published page must be linked to a dynamic page table via page settings.
  4. Links to dynamic pages should be added to the listing section of a template.

Correct Answer:

  • Dynamic pages require multiple templates.

Which of the following is not included in HubL?

  1. Loops
  2. Macros
  3. filters
  4. Classes

Correct Answer:

  • Classes

Which of the following sets of data would NOT be a good fit for storing in a single HubDB table?

  1. Names, titles, and biographies of employees of an organization
  2. A dinner menu for a restaurant
  3. Information about cats available for adoption from an animal shelter
  4. Product inventory, hex values for internal branding guidelines, vendor contact archive

Correct Answer:

  • Product inventory, hex values for internal branding guidelines, vendor contact archive

Which of the following statements about HubL and JavaScript is TRUE?

  1. HubL can be used in both the HTML + HubL and the JS sections of the module editor.
  2. HubL tags contain a “post_js_rendering”? attribute so that you can pass JS data to HubL in modules.
  3. Module builders can choose between JavaScript and HubL to add module fields to their markup.
  4. JS written in the HTML + HubL section of the module editor will be repeated on a page for every instance of a module.

Correct Answer:

  • JS written in the HTML + HubL section of the module editor will be repeated on a page for every instance of a module.

Which of the following statements about HubL filters is TRUE?

  1. HubL filters are only used in expressions.
  2. HubL filters are used for a wide variety of tasks.
  3. HubL filters cannot be used in loops.
  4. HubL filters do not accept arguments or parameters.

Correct Answer:

  • HubL filters are used for a wide variety of tasks.

Which of the following statements about HubL in modules is TRUE?

  1. Modules must contain custom HubL and cannot be published without it.
  2. HTML attributes cannot contain HubL code.
  3. Module fields are added to module markup with HubL.
  4. The drag and drop editor allows you to write HubL in a custom module without having to write code.

Correct Answer:

  • Module fields are added to module markup with HubL.

Which of the following statements about HubL module syntax is untrue?

  1. Basic module syntax is a single line statement.
  2. HubL modules use three curly braces to open and close tags.
  3. HubL modules can be added with a block syntax.
  4. HubL modules use parameters for required and optional module settings.

Correct Answer:

  • HubL modules use three curly braces to open and close tags.

Which of the following statements about accessing HubDB via Javascript is NOT true?

  1. Most GET requests only require a table ID.
  2. Modifying table data requires authentication.
  3. Using an API key in client side code is a bad idea.
  4. As long as your Javascript is written in the CMS, it can be used to modify table data.

Correct Answer:

  • As long as your Javascript is written in the CMS, it can be used to modify table data.

Which of the following statements about blog settings is TRUE?

  1. Content editors can assign any number of templates to individual blog posts by tag.
  2. It is not possible to assign separate templates for listing and post views in settings.
  3. Listing page post summaries can be enabled and disabled in settings.
  4. All blog settings can be overridden by HubL at the template level.

Correct Answer:

  • Listing page post summaries can be enabled and disabled in settings.

Which of the following statements about blog templates is NOT true?

  1. Listing and post pages can be separate templates.
  2. Templates are connected to blogs in settings.
  3. Blog templates must contain an author profile and a full list of available topics.
  4. The blog content module contains listing and post HubL markup.

Correct Answer:

  • Blog templates must contain an author profile and a full list of available topics.

Which of the following statements about blog templates is TRUE?

  1. Any template can be used for blogs.
  2. Blog templates cannot contain custom modules.
  3. To build a blog template, you must write custom HubL.
  4. Only blog templates can be used for blogs.

Correct Answer:

  • Only blog templates can be used for blogs.

Which of the following statements about email templates is NOT true?

  1. CAN SPAM fields are required.
  2. You can customize the appearance of CAN SPAM content with HTML and CSS.
  3. Email templates cannot contain custom modules.
  4. Email testing is accessed through the editor.

Correct Answer:

  • Email templates cannot contain custom modules.

Which of the following statements about menus in HubSpot is FALSE?

  1. Navigation with more than one level is managed in settings.
  2. Simple menus can be edited at the page level.
  3. HubDB can be used to build totally custom menus.
  4. The only way to build a menu is with the menu tool.

Correct Answer:

  • The only way to build a menu is with the menu tool.

Which of the following statements about module fields is TRUE?

  1. Modules can contain logic fields.
  2. Modules have 7 available fields.
  3. Math fields allow content editors to use modules for common tasks like long division.
  4. field groups can only contain fields of the same category.

Correct Answer:

  • Modules can contain logic fields.

Which of the following statements about modules is FALSE?

  1. Modules can be used to maintain consistency in site functionality.
  2. Modules can be used to add consistency to website maintenance.
  3. Modules can be used to create a more consistent user experience for editors.
  4. None of the above.

Correct Answer:

  • None of the above.

Which of the following statements about navigation items is FALSE?

  1. Navigation items can have extra URL parameters.
  2. It is possible to create items without links.
  3. Navigation items are automatically created when editors create a new page and cannot be created elsewhere.

Correct Answer:

  • Navigation items are automatically created when editors create a new page and cannot be created elsewhere.

Which of the following statements about the design manager is NOT true?

  1. The design manager is an IDE.
  2. The design manager helps developers build and manage assets.
  3. The design manager is used by content editors to publish pages.
  4. The design manager can be used to edit CSS files.

Correct Answer:

  • The design manager is used by content editors to publish pages.

Which of the following statements about using HubL in blog listing templates is NOT true?

  1. Use a loop to add blog posts to the listing template.
  2. Author name is the only author data available in the listing conditional of a template.
  3. Conditionals can be used to add or subtract content from author and topic views.
  4. If you’re using one template for both the listing and post views, you’ll need a conditional to separate the markup for each view.

Correct Answer:

  • Author name is the only author data available in the listing conditional of a template.

Which of the following statements does NOT accurately describe HubL?

  1. HubL is a templating language for building assets in the HubSpot CMS.
  2. HubL provides common programming constructs like variables, loops, and conditionals.
  3. HubL is not client side code.
  4. HubL provides state management for single page apps.

Correct Answer:

  • HubL provides state management for single page apps.

Which statement about CSS in modules is TRUE?

  1. CSS rules will have the same effect on the page whether they’re written in the CSS section or the HTML+ HubL section of the module editor.
  2. Module CSS is automatically scoped to modules and will not apply to other elements on a page.
  3. CSS added to the HTML+ HubL section of the module editor will be repeated on the page in every instance of a module.
  4. Modules require custom CSS and cannot be published without it.

Correct Answer:

  • CSS added to the HTML+ HubL section of the module editor will be repeated on the page in every instance of a module.

Which statement about adding classes to groups is TRUE?

  1. You must use a coded template to add classes to groups.
  2. Classes added to groups of components will be added to all components inside the group.
  3. Classes inside of global groups will apply to every instance of that global group in a site.
  4. Classes cannot be added to groups.

Correct Answer:

  • Classes inside of global groups will apply to every instance of that global group in a site.

Which statement about module fields is FALSE?

  1. It’s a good idea to give fields an intuitive and descriptive name to help content editors use your modules.
  2. fields have HubL variable names that are used to create the markup for modules.
  3. fields can be required but there’s no support for custom validation.
  4. The available options for fields vary depending on the field type.

Correct Answer:

  • fields can be required but there’s no support for custom validation.

Which statement about naming components is FALSE?

  1. Components can be named in the Inspector.
  2. Component names help content editors understand how to use a template. Component names can be the same as their default values.
  3. Component names should be left at default because content editors will always get all the context they need from the editor.

Correct Answer:

  • Component names should be left at default because content editors will always get all the context they need from the editor.

Which statement about stylesheets is TRUE?

  1. When a template is created, a new stylesheet with the name of the new template is automatically created and attached to the template.
  2. New stylesheets automatically include helpful but optional CSS.
  3. HubSpot stylesheets are written in Javascript
  4. Stylesheets can be added to specific areas of templates with the stylesheet module.

Correct Answer:

  • New stylesheets automatically include helpful but optional CSS.

Which statement about template types in the HubSpot CMS is TRUE?

  1. There is only one template type.
  2. There are a number of different template types which can be created in either drag and drop or coded formats.
  3. The editing experience is exactly the same for every template type.
  4. There are three template types.

Correct Answer:

  • There are a number of different template types which can be created in either drag and drop or coded formats.

Which statement about the “Prevent editing in content editors” option is TRUE?

  1. Prevent editing in content editors is not an option in HubSpot CMS templates.
  2. Prevent editing in content editors is a blog feature that allows developers to lock the number of tags in a blog.
  3. Prevent editing in content editors allows content editors to set permissions levels for specific content so that other editors cannot make edits.
  4. Prevent editing in content editors allows developers to set static values for components at the template level that content editors cannot modify in the page editor.

Correct Answer:

  • Prevent editing in content editors allows developers to set static values for components at the template level that content editors cannot modify in the page editor.

Which type of CMS assets do not require HubL?

  1. Custom modules
  2. Drag and drop templates
  3. Coded email templates
  4. Coded blog templates

Correct Answer:

  • Drag and drop templates

This page was last edited on 12th March, 2024 at 9:00 AM (UTC).

  • © 2024 Certification Answers - Text is available under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).
    Additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.