Hosting WordPress Hosting 2 — Questions and Answers
Question 1: What is the purpose of a WordPress 'child theme'?
- A theme designed for mobile devices only
- A theme that inherits from a parent theme, allowing customizations that survive parent theme updates (Correct answer)
- A lightweight free theme
- A theme for WordPress multisite subsites
Correct answer: A theme that inherits from a parent theme, allowing customizations that survive parent theme updates
A WordPress child theme inherits styles and templates from its parent theme and allows customizations that won't be overwritten when the parent theme is updated.
Question 2: What does the WordPress 'wp-config.php' file contain?
- Your WordPress posts and pages
- Critical configuration settings including database credentials, security keys, and debug settings (Correct answer)
- Your theme's CSS styles
- A list of installed plugins
Correct answer: Critical configuration settings including database credentials, security keys, and debug settings
The wp-config.php file is the core WordPress configuration file containing database connection details, authentication keys, table prefix, debug settings, and other critical parameters.
Question 3: Which WordPress plugin category is essential for SEO on a WordPress site?
- Slider plugins
- Contact form plugins
- SEO plugins like Yoast SEO or Rank Math (Correct answer)
- Page speed plugins
Correct answer: SEO plugins like Yoast SEO or Rank Math
SEO plugins like Yoast SEO and Rank Math are essential for WordPress SEO as they manage meta titles, descriptions, sitemaps, schema markup, and other on-page optimization.
Question 4: What is the recommended PHP version for optimal WordPress performance as of 2025?
- PHP 5.6
- PHP 7.0
- PHP 8.2 or higher (Correct answer)
- PHP 4.4
Correct answer: PHP 8.2 or higher
PHP 8.2 or higher is recommended for WordPress in 2025 as it offers significant performance improvements over older versions and receives active security support.
Question 5: What is 'WP-CLI'?
- A WordPress plugin for CLI tools
- A command-line interface for managing WordPress installations without a browser (Correct answer)
- A WordPress page builder
- A caching plugin for WordPress
Correct answer: A command-line interface for managing WordPress installations without a browser
WP-CLI is a command-line tool for managing WordPress installations, allowing administrators to install plugins, update WordPress, manage users, and run database operations via terminal.
Question 6: What does enabling 'object caching' with Redis do for WordPress?
- Caches static HTML pages only
- Stores database query results in memory so WordPress doesn't have to query the database on every page load (Correct answer)
- Compresses images automatically
- Minifies CSS and JavaScript files
Correct answer: Stores database query results in memory so WordPress doesn't have to query the database on every page load
Redis object caching stores the results of WordPress database queries in memory, dramatically reducing database load and speeding up page generation for dynamic pages.
What is the purpose of a WordPress 'child theme'?