MySQL DBA InnoDB Tablespace Management Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 16 | Questions: 20 | Updated: Aug 15, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. Which file contains the undo logs in a default InnoDB configuration?

Explanation

In a traditional InnoDB configuration, undo records are stored in the system tablespace, whose default data file is `ibdata1`. These records let InnoDB roll back transactions and provide older row versions for consistent reads. Separate undo tablespaces can be configured, but without that setup, `ibdata1` contains the undo logs.

Submit
Please wait...
About This Quiz
MySQL DBA Innodb Tablespace Management Quiz - Quiz

This quiz evaluates your understanding of InnoDB tablespace management in MySQL. You'll assess knowledge of file-per-table tablespaces, general tablespaces, undo tablespaces, temporary tablespaces, and best practices for storage configuration. Essential for database administrators managing production MySQL environments.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. In MySQL 8.0, where are undo logs stored by default when using separate undo tablespaces?

Explanation

In MySQL 8.0, when separate undo tablespaces are enabled, InnoDB stores undo logs in dedicated tablespace files, typically named `undo_001` and `undo_002`. These files are separate from the system, temporary, and binary log files.

Submit

3. What does the innodb_undo_tablespaces variable control?

Explanation

The `innodb_undo_tablespaces` variable specifies how many separate tablespaces InnoDB uses to store undo logs. It does not set their maximum size, compression level, or undo-record retention period.

Submit

4. What is the primary purpose of the innodb_file_per_table setting in MySQL?

Explanation

The `innodb_file_per_table` setting controls whether InnoDB stores each table’s data and indexes in its own `.ibd` file, rather than placing them in the shared system tablespace. This can make table-level space management and operations such as dropping or moving tables easier.

Submit

5. Which command drops a general tablespace that contains no tables?

Explanation

In MySQL, `DROP TABLESPACE tablespace_name` removes a general tablespace from the database. The tablespace must be empty, meaning it cannot contain any tables when the command is run. `DELETE`, `REMOVE`, and `DESTROY` are not valid SQL commands for dropping a tablespace.

Submit

6. What is stored in the InnoDB data dictionary within the system tablespace?

Explanation

The InnoDB data dictionary stores metadata describing InnoDB tables and indexes, such as their definitions and structural details. This information helps the storage engine manage and access database objects; it does not store user credentials, binary log positions, or temporary query results.

Submit

7. In a file-per-table setup, where is the table structure information stored?

Explanation

In a file-per-table setup, InnoDB stores table metadata in the system tablespace, while the table’s `.ibd` file contains its tablespace data and related structural information. The binary log records database changes, and the data dictionary provides metadata management, but neither is the sole location described here.

Submit

8. What is the purpose of the innodb_temp_data_file_path parameter?

Explanation

The `innodb_temp_data_file_path` parameter specifies where InnoDB stores its temporary tablespace and configures its size, including options such as the initial size and whether the file can grow automatically. This lets administrators manage the storage used for temporary InnoDB operations.

Submit

9. True or False: You can assign a table to a general tablespace at table creation time using CREATE TABLE.

Explanation

In MySQL, a general tablespace can hold multiple tables. You can place a table in one at creation time by specifying `TABLESPACE tablespace_name` in the `CREATE TABLE` statement. The tablespace must already exist, and the table’s storage engine and tablespace characteristics must be compatible.

Submit

10. What is the default page size for InnoDB tablespaces in MySQL?

Explanation

InnoDB stores table data and indexes in pages, which are the basic units of storage and I/O. MySQL uses 16 KB pages by default. Although other page sizes can be configured when initializing a MySQL instance, 16 KB is the standard default.

Submit

11. True or False: InnoDB page size can be changed after the tablespace is created.

Explanation

InnoDB’s page size is set when the MySQL instance is initialized and is fixed for its lifetime. It cannot be changed for an existing tablespace or by altering a table. Using a different page size requires creating a new instance with that size and migrating the data into it.

Submit

12. Which tablespace type stores temporary tables created during query execution?

Explanation

A global temporary tablespace provides temporary storage for tables needed during query execution. Unlike system or general tablespaces, which hold persistent database objects and data, it is intended for transient data that does not need to remain permanently after the work is completed.

Submit

13. True or False: Multiple tables can share a single general tablespace.

Explanation

A general tablespace can store data for multiple tables, allowing them to share a common tablespace file. This differs from file-per-table tablespaces, where each table has its own tablespace.

Submit

14. Which command moves an existing table to a general tablespace?

Explanation

`ALTER TABLE table_name TABLESPACE general_ts` moves an existing table into the specified general tablespace. The `ALTER TABLE` statement modifies the table’s storage placement, while `TABLESPACE general_ts` names the destination. The other options use unsupported or incorrect syntax for moving a table to a general tablespace.

Submit

15. What is the minimum number of undo tablespaces recommended for production MySQL servers?

Explanation

Production MySQL servers should use at least two undo tablespaces. Having two allows MySQL to manage undo data and truncate an eligible tablespace while transactions continue using the other, helping control tablespace growth and avoid disruption.

Submit

16. Which parameter specifies the location where InnoDB data and log files are stored?

Explanation

`innodb_data_home_dir` specifies the directory that InnoDB uses as the base location for its system data files, such as the shared tablespace. It is distinct from `innodb_log_group_home_dir`, which sets the location for InnoDB log files, and `innodb_file_per_table`, which controls tablespace storage per table.

Submit

17. True or False: The system tablespace (ibdata1) can be reduced in size after tables are moved to file-per-table tablespaces.

Explanation

Moving InnoDB tables to file-per-table tablespaces does not return their previously allocated space to the operating system. The system tablespace file, typically `ibdata1`, does not shrink in place. Reclaiming that disk space generally requires rebuilding the system tablespace, often by dumping the databases, recreating it, and restoring the data.

Submit

18. Which statement creates a general tablespace in MySQL?

Explanation

`CREATE TABLESPACE ts1 ADD DATAFILE 'ts1.ibd'` creates a general tablespace named `ts1` and specifies its data file. In MySQL, general tablespaces are created with `CREATE TABLESPACE`; `CREATE GENERAL TABLESPACE` is not valid syntax.

Submit

19. In MySQL, the ____ tablespace contains the InnoDB data dictionary, undo logs, and change buffer.

Explanation

In MySQL’s InnoDB storage engine, the system tablespace is a shared storage area that holds core engine data, including the data dictionary, undo logs, and change buffer. It is commonly stored in the `ibdata` file and may also contain other InnoDB structures, depending on the server configuration.

Submit

20. The innodb_undo_log_truncate variable controls whether ____ logs are automatically truncated.

Explanation

The `innodb_undo_log_truncate` variable determines whether InnoDB automatically truncates undo logs to reclaim space.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which file contains the undo logs in a default InnoDB configuration?
In MySQL 8.0, where are undo logs stored by default when using...
What does the innodb_undo_tablespaces variable control?
What is the primary purpose of the innodb_file_per_table setting in...
Which command drops a general tablespace that contains no tables?
What is stored in the InnoDB data dictionary within the system...
In a file-per-table setup, where is the table structure information...
What is the purpose of the innodb_temp_data_file_path parameter?
True or False: You can assign a table to a general tablespace at table...
What is the default page size for InnoDB tablespaces in MySQL?
True or False: InnoDB page size can be changed after the tablespace is...
Which tablespace type stores temporary tables created during query...
True or False: Multiple tables can share a single general tablespace.
Which command moves an existing table to a general tablespace?
What is the minimum number of undo tablespaces recommended for...
Which parameter specifies the location where InnoDB data and log files...
True or False: The system tablespace (ibdata1) can be reduced in size...
Which statement creates a general tablespace in MySQL?
In MySQL, the ____ tablespace contains the InnoDB data dictionary,...
The innodb_undo_log_truncate variable controls whether ____ logs are...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!